/* =====================================================================
   Daytime Design Co. — Shared Design System
   Tokens · type scale · shared components (nav / buttons / footer)

   NOTE ON TYPE: primary typeface is Inter. The highlight voice is
   GT Canon Italic (licensed). Fraunces italic is loaded as a close free
   stand-in — drop the licensed GT Canon web-font files in /assets and
   it is used automatically (listed first in --font-serif).
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --c-ink:        #272727;
  --c-ink-3:      #757575;
  --c-paper:      #fcfcfc;
  --c-off-white:  #fefefc;
  --c-cream:      #f9f5eb;
  --c-hair:       rgba(0,0,0,0.10);

  --c-acid:       #faff5b;
  --c-pink:       #fec7fb;
  --c-lilac:      #fdc9f9;   /* matches assets/backgrounds/bg-purple.png */
  --c-blue:       #b8dce8;
  --c-orange:     #f55733;

  --c-olive:      #a28a10;
  --c-olive-deep: #725e0c;

  --c-green:      #0a5342;
  --c-green-deep: #042d22;
  --c-forest:     #16231b;

  --c-red:        #dd0011;
  --c-red-bg:     #cc2823;
  --c-red-deep:   #7e1617;

  /* Type families — Inter is primary, GT Canon Italic is the highlight */
  --font-serif: "GT Canon", "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, monospace;
  --font-mono-footer: "DM Mono", ui-monospace, monospace;

  /* Layout — 1440px content column with 80px gutters */
  --maxw: 1600px;
  --gutter: 80px;
  --radius: 16px;
  --radius-lg: 22px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Type helpers ---------- */
/* Primary voice: Inter, bold. Highlight voice: GT Canon Italic. */
.sans    { font-family: var(--font-sans); font-weight: 700; }
.it      { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.serif   { font-family: var(--font-serif); font-weight: 400; }
.serif-it{ font-family: var(--font-serif); font-weight: 400; font-style: italic; }

.t-mono-label {
  font-family: var(--font-mono);
  font-weight: 500; font-size: 13px; line-height: 1.4;
  letter-spacing: 4px; text-transform: uppercase;
}
.t-mono-tag {
  font-family: var(--font-mono);
  font-weight: 400; font-size: 13px; line-height: 1.4;
  letter-spacing: 4px; text-transform: uppercase;
}
.t-body-l { font-size: 18px; line-height: 1.55; }
.t-body-m { font-size: 16px; line-height: 1.5; }

/* Highlighter eyebrow — acid marker behind mono text. */
.eyebrow {
  display: inline-block;
  background: var(--c-acid);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Highlighter marker — solid acid swipe (used sparingly) */
.mark {
  background: linear-gradient(104deg, transparent 0.5%, var(--c-acid) 3%, var(--c-acid) 97%, transparent 99.5%);
  padding: 0 0.18em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Straight highlighter — thick acid marker running behind the word */
.hl {
  background-image: linear-gradient(var(--c-acid), var(--c-acid));
  background-repeat: no-repeat;
  background-position: 0 62%;
  background-size: 100% 0.72em;
  padding: 0 0.12em;
}

/* ---------- Dingbats render as glyphs, never as emoji ----------
   U+2733 ✳ (spark) and U+2714 ✔ (testimonial tick) have EMOJI as their DEFAULT
   Unicode presentation. Left alone, iOS and Android swap in the colour emoji
   font and the mark arrives fluorescent, wrongly sized, and off-brand — and it
   stops inheriting `color`, so .spark's red and the animation both die.

   Two defences, because neither covers every device on its own:
   1. every occurrence in the HTML is followed by U+FE0E, the text-presentation
      selector. Universal, including older iOS. Invisible in the source.
   2. font-variant-emoji below — the modern CSS equivalent — catches anything
      added later without the selector (pasted copy, a new label).
   Safe to set globally: the site uses no true emoji (nothing above U+1F000). */
body { font-variant-emoji: text; }

/* Little red spark ✳ used as punctuation around labels */
.spark { display: inline-block; color: var(--c-red); font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
  .spark { animation: sparkSpin 9s linear infinite; }
  @keyframes sparkSpin { to { transform: rotate(360deg); } }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { position: relative; }
.hairline { height: 1px; width: 100%; background: var(--c-hair); border: 0; }

/* Full-bleed row — spans the viewport with a 40px edge margin */
.fullbleed { width: 100%; max-width: none; margin-inline: 0; padding-inline: 40px; }

/* Acid grid background (About / Experience) */
.grid-bg {
  background-color: var(--c-cream);
  background-image:
    linear-gradient(to right, rgba(202,206,40,0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(202,206,40,0.55) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* =====================================================================
   BUTTONS — one primary, variations derived from it. Every button is a
   pill with an arrow. No black buttons.

   .btn--green  : PRIMARY   — green fill, acid text (default action)
   .btn--acid   : SECONDARY — acid fill, ink text (pops on dark / red)
   .btn--purple : SECONDARY — lilac fill, ink text (cream / white bands)
   .btn--white  : SECONDARY — white fill, green text (purple / pink bands)
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  padding: 17px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { font-size: 17px; line-height: 1; transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn--green { background: var(--c-green); color: var(--c-acid); }
.btn--green:hover { background: var(--c-green-deep); box-shadow: 0 10px 26px rgba(4,45,34,0.28); }

.btn--acid { background: var(--c-acid); color: var(--c-ink); }
.btn--acid:hover { background: #f2f83f; box-shadow: 0 10px 26px rgba(0,0,0,0.14); }

.btn--purple { background: var(--c-lilac); color: var(--c-ink); }
.btn--purple:hover { background: #fbb5f6; box-shadow: 0 10px 26px rgba(126,22,23,0.14); }

.btn--white { background: #fff; color: var(--c-green); }
.btn--white:hover { color: var(--c-green-deep); box-shadow: 0 10px 26px rgba(126,22,23,0.18); }

/* ---------- Pills / tags ---------- */
.tag-pink {
  display: inline-flex;
  align-items: center;
  padding: 7px 19px;
  border-radius: 999px;
  background: var(--c-pink);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Logo lockup ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo__word { font-family: var(--font-sans); font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.logo__pill {
  font-family: var(--font-serif);
  font-size: 12px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--c-off-white);
  color: var(--c-ink);
  white-space: nowrap;
}

/* ---------- Nav (sits over the olive hero) ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 50; height: 88px; display: flex; align-items: center; }
.nav__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav .logo__word { color: var(--c-cream); }
.nav .logo__pill { background: var(--c-acid); color: var(--c-ink); }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-size: 16px; font-weight: 600; color: #fff; opacity: 0.92; transition: opacity .15s ease; position: relative; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
/* squiggle underline — static on the active page, wiggling on hover */
.nav__links a::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: -9px; height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3 Q 3.25 0.4 6.5 3 T 13 3' fill='none' stroke='%23faff5b' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 13px 6px;
  opacity: 0;
  transition: opacity .18s ease;
}
.nav__links a.is-active::after { opacity: 1; }
.nav__links a:hover::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .nav__links a:hover::after { animation: squigSlide 2.2s linear infinite; }
  @keyframes squigSlide { to { background-position-x: 13px; } }
}
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__cta .btn { padding: 13px 24px; font-size: 15px; }
.nav__burger {
  display: none; background: none; border: 0; font-size: 24px; cursor: pointer;
  color: var(--c-ink); line-height: 1; padding: 4px 2px;
  transition: transform .34s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.nav__burger.is-open { transform: rotate(90deg) scale(1.05); }

/* ---------- Mobile menu — scrim behind the drawer (injected by anim.js) ----------
   z-index MUST stay below .nav (50). The drawer is a child of .nav, so its own
   z-index:60 only competes inside .nav's stacking context — to the page the whole
   nav sits at 50. A scrim above 50 covers the drawer and eats every tap on it. */
.nav__scrim {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(4,45,34,0.42);
  opacity: 0; pointer-events: none;
  transition: opacity .34s var(--ease-out, ease);
}
body.nav-open .nav__scrim { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }
@supports (backdrop-filter: blur(3px)) {
  .nav__scrim { backdrop-filter: blur(3px); }
}

/* ---------- Editorial tag row — small mono labels with 40px side padding ---------- */
.tagrow { display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; }
.tagrow .t-mono-label { opacity: 0.6; }
.tagrow--line { border-bottom: 1px solid var(--c-hair); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; width: 100%; }
.marquee__track { display: inline-flex; white-space: nowrap; will-change: transform; animation: marquee 30s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Wavy section edges (the pink CTA band) ---------- */
.wave { line-height: 0; display: block; }
.wave svg { width: 100%; height: clamp(34px, 4.6vw, 70px); display: block; }
.wave--top { background: var(--c-paper); margin-bottom: -1px; }
.wave--bottom { background: var(--c-green); margin-top: -1px; }
.wave svg.wave__mob { display: none; }
@media (max-width: 820px) {
  .wave svg.wave__desk { display: none; }
  .wave svg.wave__mob { display: block; }
  /* kill the sub-pixel seam between the wave and its section */
  .wave--top svg { margin-bottom: -1px; }
  .wave--bottom svg { margin-top: -1px; }
}

/* ---------- Spinning circular badge ---------- */
.badge-spin { pointer-events: none; }
.badge-spin svg { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .badge-spin svg { animation: badgeSpin 22s linear infinite; }
  @keyframes badgeSpin { to { transform: rotate(360deg); } }
}

/* ---------- Project tags — ONE shape (the scalloped flower), three colourways.
   .sticker--soon (lilac) · .sticker--new (acid) · .sticker--updated (pink)
   Colour is driven by --tag-bg / --tag-fg so the SVG stays identical. ---------- */
.sticker {
  position: absolute; z-index: 4; pointer-events: none;
  width: 104px; height: 104px;
  transform: rotate(6deg);
  --tag-bg: var(--c-lilac); --tag-fg: var(--c-ink);
}
.sticker svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sticker__petals { fill: var(--tag-bg); }
.sticker__label { fill: var(--tag-fg); font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; }

.sticker--soon    { --tag-bg: var(--c-lilac); --tag-fg: var(--c-ink); }
/* light blue so it never lands yellow-on-yellow over the acid grid cover */
.sticker--new     { --tag-bg: var(--c-blue);  --tag-fg: var(--c-ink); transform: rotate(-7deg); }
.sticker--updated { --tag-bg: var(--c-pink);  --tag-fg: var(--c-ink); transform: rotate(-4deg); }
/* on close-value fields the tag needs a hair of separation */
.cover--cream .sticker--soon, .cover--cream .sticker--updated { filter: drop-shadow(0 3px 10px rgba(0,0,0,0.12)); }

/* ---------- Flower sticker ---------- */
.sticker-flower { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .sticker-flower { animation: flowerBob 5.5s ease-in-out infinite; }
  @keyframes flowerBob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(6deg); } }
}

/* Scroll is locked until the loader lands the gif into the hero */
body.is-loading { overflow: hidden; height: 100vh; }

/* ---------- Loader — the marquee gif starts small, then flies into the hero ---------- */
.loader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  pointer-events: none;
}
.loader__bg {
  position: absolute; inset: 0;
  background: var(--c-olive);
  transition: opacity .55s ease;
}
.loader__gif {
  position: relative;
  width: min(44vw, 620px);
  will-change: transform;
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .loader__gif { animation: loaderBreathe 2.4s ease-in-out infinite; }
  @keyframes loaderBreathe { 0%,100% { scale: 1; } 50% { scale: 1.03; } }
}
.loader.is-landing .loader__gif { animation: none; }
.loader.is-landing .loader__bg { opacity: 0; transition-delay: .35s; }
.loader.is-done { display: none; }
@media (max-width: 820px) {
  .loader__gif { width: 78vw; }
}

/* ---------- Cursor moment — illustrated eyes appear over work ---------- */
.cursor-eyes {
  position: fixed; top: 0; left: 0; z-index: 500;
  width: 66px; height: 40px;
  pointer-events: none;
  display: none;
  opacity: 0;
  transition: opacity .2s ease;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.22));
}
.cursor-eyes.is-on { opacity: 1; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor-eyes { display: block; }
}
.cursor-eyes svg { width: 100%; height: 100%; animation: eyesBlink 4.2s ease-in-out infinite; transform-origin: center; }
@keyframes eyesBlink { 0%, 91%, 100% { transform: scaleY(1); } 94%, 96% { transform: scaleY(0.12); } }
.cursor-eyes .pupils { transition: transform .18s ease-out; }

/* ---------- Mockups (browser + phone placeholders) ---------- */
.mock-browser { background: var(--c-off-white); border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,0.22); overflow: hidden; }
.mock-browser__bar { height: 26px; display: flex; align-items: center; gap: 6px; padding-inline: 12px; background: #e9e5da; }
.mock-browser__bar span { width: 9px; height: 9px; border-radius: 50%; }
.mock-browser__bar span:nth-child(1){ background:#f55733; }
.mock-browser__bar span:nth-child(2){ background:#f2c94c; }
.mock-browser__bar span:nth-child(3){ background:#27ae60; }
.mock-browser__body { aspect-ratio: 16 / 10; background: linear-gradient(135deg,#e9e9e9,#d7d7d7); }
.mock-phone { background: #111; border-radius: 26px; padding: 7px; box-shadow: 0 30px 60px rgba(0,0,0,0.32); }
.mock-phone__screen { width: 100%; height: 100%; border-radius: 20px; background: linear-gradient(160deg,#3a3a3a,#111); }

/* =====================================================================
   FOOTER (green)
   ===================================================================== */
.footer { background: var(--c-green); color: var(--c-cream); padding: 90px 0 34px; overflow: hidden; position: relative; }
.footer a { color: var(--c-cream); opacity: 0.82; transition: opacity .15s ease; }
.footer a:hover { opacity: 1; }
/* acid squiggle under footer links — all sections, desktop + mobile */
.footer__col a {
  position: relative;
  display: inline-block;
}
.footer__col a::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: -6px; height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3 Q 3.25 0.4 6.5 3 T 13 3' fill='none' stroke='%23faff5b' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 13px 6px;
  opacity: 0;
  transition: opacity .18s ease;
}
.footer__col a:hover::after,
.footer__col a:focus-visible::after,
.footer__col a:active::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .footer__col a:hover::after { animation: squigSlide 2.2s linear infinite; }
}
.footer__top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo__pill { background: var(--c-acid); color: var(--c-ink); }
.footer .logo__word { color: var(--c-cream); }
/* Studio tagline — stands in for the parked newsletter signup (04_Docs/PARKED-footer-newsletter.md).
   Same 34px/380px footprint so the footer grid doesn't shift if the form comes back.
   Echoes the homepage h1 on purpose: the site opens and closes on the same line. */
.footer__tagline {
  margin-top: 34px; max-width: 380px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 22px; line-height: 1.3; letter-spacing: -0.3px;
  color: var(--c-cream); opacity: 0.9;
}
.footer__news { margin-top: 34px; max-width: 380px; }
.footer__news .t-mono-label { opacity: 0.75; margin-bottom: 14px; display: block; }
.footer__field { display: flex; align-items: center; border: 1px solid rgba(249,245,235,0.4); border-radius: 999px; padding: 6px 6px 6px 20px; transition: border-color .2s ease; }
.footer__field:focus-within { border-color: var(--c-acid); }
.footer__field input { flex: 1; background: none; border: 0; color: var(--c-cream); font-family: var(--font-sans); font-size: 15px; outline: none; min-width: 0; }
.footer__field input::placeholder { color: rgba(249,245,235,0.6); }
.footer__field button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--c-lilac); color: var(--c-ink); font-size: 18px; cursor: pointer; transition: transform .18s ease; flex: 0 0 auto; }
.footer__field button:hover { transform: translateX(3px); }
.footer__note { margin-top: 14px; font-size: 14px; opacity: 0.7; }
.footer__col h4 { margin-bottom: 20px; color: var(--c-acid); }
.footer__col li { margin-bottom: 13px; font-size: 16px; }

/* Wordmark — SVG text stretched so the D and the period kiss the edges.
   Each letter is its own hover moment: brand color + a little burst. */
.footer__wordmark { margin: 64px 0 0; }
.footer__wordmark svg { width: 100%; height: auto; display: block; overflow: visible; }
.footer__wordmark .wml { transition: fill .22s ease; pointer-events: all; }
@media (pointer: fine) {
  .footer__wordmark .wml:nth-of-type(1):hover { fill: var(--c-acid); }
  .footer__wordmark .wml:nth-of-type(2):hover { fill: var(--c-pink); }
  .footer__wordmark .wml:nth-of-type(3):hover { fill: var(--c-orange); }
  .footer__wordmark .wml:nth-of-type(4):hover { fill: var(--c-blue); }
  .footer__wordmark .wml:nth-of-type(5):hover { fill: var(--c-lilac); }
  .footer__wordmark .wml:nth-of-type(6):hover { fill: var(--c-acid); }
  .footer__wordmark .wml:nth-of-type(7):hover { fill: var(--c-orange); }
}

/* the burst of little shapes that pops off a hovered letter */
.wm-burst { position: fixed; z-index: 450; pointer-events: none; }
.wm-burst i {
  position: absolute; left: 0; top: 0;
  font-style: normal; line-height: 1;
  animation: burstFly .75s var(--ease-out, ease) forwards;
}
@keyframes burstFly {
  0%   { transform: translate(0, 0) scale(0.3) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1) rotate(140deg); opacity: 0; }
}
.footer__pins {
  height: 8px; margin-top: 26px; border-radius: 4px;
  background: repeating-linear-gradient(to right,
    var(--c-acid) 0 42px, var(--c-pink) 42px 84px,
    var(--c-orange) 84px 126px, var(--c-blue) 126px 168px);
}
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.footer__bottom span { font-family: var(--font-sans); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: 0.75; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1200px) {
  :root { --gutter: 56px; }
}
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  :root { --gutter: 24px; }
  .fullbleed { padding-inline: 24px; }
  .nav__burger { display: block; }
  .nav__cta .btn { display: none; }

  /* ---- the drawer: springs down from the burger, links stagger in ---- */
  .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 76px; right: var(--gutter); left: var(--gutter);
    background: var(--c-green);
    padding: 14px 22px 18px; border-radius: 18px;
    box-shadow: 0 26px 60px rgba(4,45,34,0.32);
    z-index: 60;
    opacity: 0; visibility: hidden;
    transform: translateY(-12px) scale(0.97);
    transform-origin: top right;
    transition: opacity .26s var(--ease-out, ease),
                transform .42s cubic-bezier(0.34, 1.32, 0.5, 1),
                visibility .42s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }

  /* drawer links are always cream, whatever nav variant the page uses */
  .nav .nav__links a[href] {
    color: var(--c-cream); opacity: 0.94;
    font-size: 20px; font-weight: 600; letter-spacing: -0.3px;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(249,245,235,0.15);
    display: flex; align-items: center; gap: 12px;
  }
  .nav .nav__links a[href]:last-of-type { border-bottom: 0; }
  .nav .nav__links a[href].is-active { opacity: 1; }
  /* the squiggle underline doesn't belong in the stacked drawer */
  .nav__links a::after { display: none; }

  /* ---- sticker icons — one per item ----
     Inline SVG data URIs, so there are no extra requests and nothing to 404.
     Matched on href, not :nth-child, so reordering the nav can't misassign them.
     Colour lives in the data URI (%23 = #), alternating acid / pink down the list.
     Each is nudged a degree or two off square — hand-placed, not stamped. */
  .nav__links a[href]::before {
    content: ""; flex: 0 0 auto; width: 22px; height: 22px;
    background: no-repeat center / contain;
    transition: transform .3s cubic-bezier(0.34, 1.4, 0.5, 1);
  }
  .nav__links a[href]:active::before { transform: scale(1.18) rotate(8deg); }

  /* Home. Star geometry is computed, not eyeballed — outer r 10.6, inner r 5.3
     (ratio 0.50, chunkier than the classic 0.382) so it holds the same visual
     weight as the flower and asterisk at 22px. The earlier hand-written path
     was irregular and read spindly. Matches `index.html`, so it hits both
     `index.html` on the homepage and `../index.html` everywhere else. */
  .nav__links a[href*="index.html"]::before {
    transform: rotate(-6deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.4 15.12 7.71 22.08 8.72 17.04 13.64 18.23 20.58 12 17.3 5.77 20.58 6.96 13.64 1.92 8.72 8.88 7.71z' fill='%23faff5b'/%3E%3C/svg%3E");
  }
  .nav__links a[href*="about"]::before {
    transform: rotate(4deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23fec7fb'%3E%3Ccircle cx='12' cy='5.5' r='4'/%3E%3Ccircle cx='18.5' cy='12' r='4'/%3E%3Ccircle cx='12' cy='18.5' r='4'/%3E%3Ccircle cx='5.5' cy='12' r='4'/%3E%3Ccircle cx='12' cy='12' r='4.6'/%3E%3C/g%3E%3C/svg%3E");
  }
  .nav__links a[href*="services"]::before {
    transform: rotate(-3deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23faff5b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 3v18M3 12h18M5.6 5.6l12.8 12.8M18.4 5.6L5.6 18.4'/%3E%3C/g%3E%3C/svg%3E");
  }
  .nav__links a[href*="work"]::before {
    transform: rotate(5deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23fec7fb' stroke-width='2.6' fill='none' stroke-linecap='round'%3E%3Cpath d='M4 6.5c3-2.6 5.6 2.6 8 0s5-2.6 8 0'/%3E%3Cpath d='M4 13c3-2.6 5.6 2.6 8 0s5-2.6 8 0'/%3E%3Cpath d='M4 19.5c3-2.6 5.6 2.6 8 0s5-2.6 8 0'/%3E%3C/g%3E%3C/svg%3E");
  }
  .nav__links a[href*="contact"]::before {
    transform: rotate(-5deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6c6 0 9.4 3 9.4 6.6 0 3.4-3 6.2-8 6.2-.9 0-1.7 0-2.4-.2l-4.7 3 1-3.9C4.2 13 2.6 11.2 2.6 9.2c0-3.6 3.4-6.6 9.4-6.6z' fill='%23faff5b'/%3E%3C/svg%3E");
  }

  /* ---- the drawer CTA (cloned in by anim.js) ----
     The header's Book Your Project button is display:none below 820px, which left
     mobile with no CTA in the nav at all. This puts it back, inside the drawer. */
  /* Needs [href] + the class to out-specify `.nav .nav__links a[href]`, which sets
     cream — cream on acid is unreadable. Same trap as the stagger rule above. */
  .nav .nav__links a[href].nav__drawer-cta {
    margin-top: 14px; justify-content: center; gap: 8px;
    background: var(--c-acid); color: var(--c-ink);
    border-radius: 999px; padding: 14px 18px;
    font-size: 15px; font-weight: 700; letter-spacing: 0;
    border-bottom: 0;
  }
  .nav.is-open .nav__links a[href].nav__drawer-cta { opacity: 1; }
  .nav .nav__links a[href].nav__drawer-cta::before { display: none; }

  /* Closed state needs to out-specify `.nav .nav__links a[href]` above, which
     sets opacity .94 — a bare `.nav__links a` loses and the links never start
     hidden, so the stagger never plays. */
  .nav:not(.is-open) .nav__links a[href] {
    opacity: 0; transform: translateY(8px);
  }
  .nav__links a {
    transition: opacity .3s var(--ease-out, ease), transform .3s var(--ease-out, ease);
  }
  .nav.is-open .nav__links a {
    opacity: 0.94; transform: none;
    transition-delay: calc(90ms + var(--i, 0) * 50ms);
  }

  @media (prefers-reduced-motion: reduce) {
    .nav__links, .nav__links a, .nav__scrim, .nav__burger { transition: none; }
    .nav.is-open .nav__links a { transition-delay: 0s; }
  }
  /* Explore + Connect sit side by side; brand and fine print span full width */
  .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__wordmark { margin-top: 44px; }
}
