/* ============================================================================
   AumnI digital — brand layer (brand.css)
   Loaded FIRST on every page, before effects.css / cards.css / subpage.css.
   Owns: the Finger Paint face, brand tokens, the wordmark lockup, and the
   paint-stroke utilities (brush highlight, torn divider, paint dab, splatter).
   Everything is namespaced --ad-* / .ad-* so it can't collide with the engine.
   ========================================================================== */

@font-face {
  font-family: 'Finger Paint';
  src: url('fonts/FingerPaint.woff2') format('woff2'),
       url('fonts/FingerPaint.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- brand core (sampled from the logo) --- */
  --ad-orange:      #EB573A;
  --ad-orange-deep: #B93A22;   /* orange text on light bands (AA on cream) */
  --ad-orange-wash: #FFEDE7;   /* pale orange band background */
  --ad-navy:        #00004D;   /* the base background of the whole site */
  --ad-navy-soft:   #12124F;   /* raised navy surfaces */
  --ad-cream:       #F4EFE6;   /* body text on navy */
  --ad-cream-dim:   #A8A8C8;   /* secondary text on navy */

  /* --- contact blue (distinct from the pale sky used by Ads & Video) --- */
  --ad-blue:        #3D5AFF;
  --ad-blue-deep:   #1B2E9E;
  --ad-blue-wash:   #E9EDFF;

  /* --- destination accents --- */
  --ad-acc-home:     #EB573A;  /* Who We Are        — brand orange */
  --ad-acc-video:    #9BD8FF;  /* Ads & Video       — sky      */
  --ad-acc-auto:     #A5EBD4;  /* Automate&Integrate— mint     */
  --ad-acc-design:   #FFB3CD;  /* Design & Develop  — rose     */
  --ad-acc-deliver:  #C9BAFF;  /* Deliver           — lavender */
  --ad-acc-contact:  #3D5AFF;  /* Sales & Smiles    — blue     */

  --ad-font-paint: 'Finger Paint', 'Comic Sans MS', cursive;
}

/* ---------------------------------------------------------------- wordmark
   THE SUPPLIED LOGO ARTWORK IS THE WORDMARK — do not typeset it.
   The capital I in "AumnI" was hand-corrected in the artwork so it cannot be
   misread as an l, and the font alone does not reproduce that. So the lockup
   is the PNG, and the markup's text spans are kept purely as the accessible
   name (visually hidden, still read by screen readers and copied by crawlers).

   Markup is unchanged from before:
     <a class="ad-wordmark" href="index.html">
       <span class="ad-wordmark__a">AumnI</span><span class="ad-wordmark__d">digital</span>
     </a>
   Add .ad-wordmark--onlight inside pale bands (navy "digital" instead of cream). */
.ad-wordmark {
  display: inline-block; position: relative;
  height: clamp(30px, 3.2vw, 42px);
  aspect-ratio: 2.2083 / 1;          /* the artwork's own ratio */
  width: auto;
  background: url('assets/brand/logo-ondark.png') no-repeat left center / contain;
  text-decoration: none;
  transition: opacity .2s ease;
}
.ad-wordmark--onlight { background-image: url('assets/brand/logo-onlight.png'); }
.ad-wordmark:hover { opacity: .86; }
.ad-wordmark:focus-visible { outline: 2px solid var(--ad-orange); outline-offset: 4px; }

/* the words stay in the DOM for accessibility, but the artwork does the showing */
.ad-wordmark__a, .ad-wordmark__d {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}

@media (prefers-reduced-motion: reduce) { .ad-wordmark { transition: none; } }

/* Finger Paint utility — for eyebrows, display numerals, badge chips.
   Never use it for paragraphs; it is a display face. */
.ad-fp { font-family: var(--ad-font-paint); font-weight: 400; }

/* ------------------------------------------------------- brush highlight
   A hand-painted swash sitting behind/under a word. The SVG path is stroked,
   so the motion layer can paint it on as the section scrolls in.
     <span class="ad-brush">omnichannel
       <svg class="ad-brush__s" viewBox="0 0 300 24" preserveAspectRatio="none"
            aria-hidden="true"><path d="M4 16 C60 6, 120 20, 180 11 S276 6, 296 14"/></svg>
     </span>                                                                */
.ad-brush { position: relative; display: inline-block; }
.ad-brush__s {
  position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .5em;
  overflow: visible; pointer-events: none;
}
.ad-brush__s path {
  fill: none;
  stroke: var(--ad-brush-color, var(--ad-orange));
  stroke-width: 9; stroke-linecap: round; stroke-linejoin: round;
  opacity: .85;
}
/* thick highlighter variant that sits BEHIND the text */
.ad-brush--behind .ad-brush__s { bottom: .05em; height: .82em; z-index: -1; }
.ad-brush--behind .ad-brush__s path { stroke-width: 22; opacity: .28; }

/* ---------------------------------------------------------- torn divider
   Ragged painted edge between two bands — put it as the LAST child of the
   upper band; it paints the lower band's colour over a torn boundary.
     <svg class="ad-tear" viewBox="0 0 1200 40" preserveAspectRatio="none"
          aria-hidden="true"><path d="M0 40 V16 C90 4,150 26,240 18 S420 2,520 14
       S700 30,820 16 S1010 2,1120 15 C1150 19,1180 13,1200 9 V40 Z"/></svg>  */
.ad-tear {
  display: block; width: 100%; height: clamp(22px, 3vw, 44px);
  margin-bottom: -1px; /* kill the sub-pixel seam */
}
.ad-tear path { fill: var(--ad-tear-color, var(--ad-navy)); }
.ad-tear--flip { transform: scaleY(-1); margin: -1px 0 0; }

/* -------------------------------------------------------------- paint dab
   Irregular blob to replace perfect circles (route dots, bullets, markers). */
.ad-dab {
  border-radius: 62% 38% 55% 45% / 45% 58% 42% 55%;
  transform: rotate(-8deg);
}

/* ------------------------------------------------------------- splatter
   Decorative corner flecks. Always aria-hidden + pointer-events:none.       */
.ad-splat { position: absolute; pointer-events: none; opacity: .5; }
.ad-splat circle, .ad-splat ellipse { fill: var(--ad-splat-color, var(--ad-orange)); }

/* --------------------------------------------------------- painted button
   Rough-edged CTA that reads as a brush block rather than a pill.           */
.ad-btn-paint {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--ad-font-paint); font-size: 17px; letter-spacing: .01em;
  color: var(--ad-navy); background: var(--ad-orange);
  padding: 14px 30px 15px;
  border-radius: 56% 44% 52% 48% / 48% 54% 46% 52%;
  transition: transform .2s cubic-bezier(.4,0,.2,1), filter .2s ease;
}
.ad-btn-paint:hover { transform: translateY(-1px); filter: brightness(1.05); }
.ad-btn-paint:active { transform: translateY(0); }
.ad-btn-paint:focus-visible { outline: 2px solid var(--ad-cream); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .ad-btn-paint { transition: none; }
  .ad-btn-paint:hover { transform: none; }
}
