/* Shared shell for the landing page, /work and the three case studies.
   Rebuilt 2026-09-07 to the WarmCase exploration (explorations/warm-branches + WarmCase.dc.html):
   its palette, its type scale, its 200px section label rail, its hero meta card, its pill header.
   The artboard is a fixed 1440px still, so every fixed value here is the DESKTOP end of a clamp —
   that is the one liberty taken with it, and it is what keeps the pages usable under 900px.
   Per-case-study values (--eyebrow, --eyebrow-lift) stay inline on each page,
   as does anything only one page uses. */

  /* Self-hosted 2026-09-09 (backlog row 63) — was three render-blocking Google Fonts
     <link>s per page. Both are variable fonts, latin subset, one file covers every weight.
     Files: assets/fonts/. */
  @font-face{
    font-family:'Gabarito'; font-style:normal; font-weight:500 700; font-display:swap;
    src:url('assets/fonts/gabarito-latin.woff2') format('woff2');
    unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
  }
  @font-face{
    font-family:'Hanken Grotesk'; font-style:normal; font-weight:400 600; font-display:swap;
    src:url('assets/fonts/hanken-grotesk-latin.woff2') format('woff2');
    unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
  }

  :root{
    /* Warm, straight off the artboard. The variable NAMES are unchanged from the cobalt
       era, so every rule below still resolves. */
    /* grounds */
    --paper:#FBF6EF;
    --card:#FFFFFF;
    --paper-tint:#F3EADD;
    --paper-line:#EFE5D8;
    /* ink */
    --ink:#2C231C;
    --ink-soft:#7A6A5C;      /* 4.83:1 on the cream — clears AA as body copy */
    --prose:#4A3D33;         /* the artboard's .p colour, darker than --ink-soft */
    /* accent */
    --accent:#C2553A;        /* 4.20:1 on cream: fills, chip grounds and large numerals only */
    --accent-tint:#F6E4DE;
    --accent-deep:#9C3A22;   /* 6.42:1 — every terracotta run of small text uses this instead */
    --accent-ink:#FFF9F2;
    /* the one secondary, plus the neutral chip */
    --sage:#5E7360;          /* 4.77:1 on cream */
    --sage-tint:#E4EBE4;
    --sage-ink:#F2F5F2;      /* 4.66:1 on the sage ground — do not fade it, see .g-sage */
    --chip:#F3EADD;
    --chip-ink:#635646;      /* 5.97:1 on --chip — chip labels are 12px, need AA small text */
    --sage-deep:#47594A;     /* 6.19:1 on --sage-tint — the sector chip */

    --radius-lg:34px;   /* the handoff block */
    --radius:28px;      /* cards, panels */
    --radius-md:18px;   /* inset media inside a card */
    --radius-sm:16px;   /* content images, dialog rows */
    --radius-pill:999px;/* anything fully round: header, chips, CTAs */

    --shadow:0 1px 2px rgba(44,35,28,.05), 0 18px 40px -24px rgba(44,35,28,.28);

    /* the artboard's ramp. desktop end = the value it draws. */
    --t-display: clamp(2.5rem, 6vw, 4.75rem);      /* 40 -> 76 */
    --t-head:    clamp(1.75rem, 3.4vw, 2.5rem);    /* 28 -> 40 */
    --t-sub:     clamp(1.5rem, 2.5vw, 1.875rem);   /* 24 -> 30 */
    --t-lede:    clamp(1.0625rem, 1.6vw, 1.25rem); /* 17 -> 20 */
    --t-prose:   1.0625rem;                        /* 17 */
    --t-title:   1.125rem;                         /* 18 */
    --t-body:    1rem;                             /* 16 */
    --t-mini:    0.9375rem;                        /* 15 */
    --t-small:   0.75rem;                          /* 12 */
    --t-label:   0.75rem;                          /* 12 */

    --gut: clamp(20px, 5vw, 56px);
    --sec: clamp(56px, 9vw, 88px);
    --rail: 200px;
    --rail-gap: clamp(28px, 4vw, 56px);
  }

  *,*::before,*::after{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0; background:var(--paper); color:var(--ink);
    font-family:'Hanken Grotesk',system-ui,sans-serif; font-size:var(--t-body);
    line-height:1.6; -webkit-font-smoothing:antialiased;
    /* faint paper grain — the tactile half of the direction; it is why the cream reads as stock */
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  }
  img{ max-width:100%; height:auto; display:block; }
  a{ color:inherit; }
  a:hover{ color:var(--accent-deep); }
  button{ font:inherit; }
  ::selection{ background:var(--accent); color:var(--accent-ink); }
  :focus-visible{ outline:2px solid var(--accent-deep); outline-offset:3px; border-radius:4px; }
  /* terracotta is under 3:1 on an ink ground — WCAG 2.4.11 wants the light tone there. */
  .skip:focus-visible, .g-ink :focus-visible, .g-sage :focus-visible{ outline-color:var(--accent-ink); }

  .skip{ position:absolute; left:-9999px; top:0; z-index:100; background:var(--ink); color:var(--accent-ink); padding:12px 16px; border-radius:0 0 8px 0; text-decoration:none; font-weight:600; }
  .skip:focus{ left:0; }
  .sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

  .display{ font-family:'Gabarito',system-ui,sans-serif; font-weight:600; letter-spacing:-0.025em; }
  /* the artboard is 1440 wide with a 56px gutter, so the content measure is 1328. max-width is
     that measure + both gutters, which puts the pill, the ink band and the body copy on one edge. */
  .wrap{ max-width:calc(1328px + var(--gut) * 2); margin:0 auto; padding-inline:var(--gut); }

  /* the artboard's one repeated small-type unit: 12px, .13em, uppercase, soft */
  .lbl,.eyebrow,.label,.k,.meta dt{
    font-size:var(--t-label); font-weight:600; letter-spacing:.13em;
    text-transform:uppercase; color:var(--ink-soft); margin:0;
  }
  .chip{
    display:inline-block; padding:7px 16px; border-radius:var(--radius-pill);
    background:var(--chip); color:var(--chip-ink);
    font-size:var(--t-label); font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  }
  .chip.hot{ background:var(--accent-tint); color:var(--accent-deep); }
  .chips{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:26px; }
  .p{ font-size:var(--t-prose); line-height:1.72; color:var(--prose); margin:0 0 18px; }
  .p:last-child{ margin-bottom:0; }

  /* ---------- site header ---------- */
  header.site{
    position:sticky; top:0; z-index:20; padding-inline:var(--gut);
    background:color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter:blur(8px);
  }
  .nav{
    /* the pill tracks the content measure (1328), not .wrap's full 1440 — so its edges
       line up with the cards below it. header.site supplies the outer gutter; .wrap still
       gives the auto inline margins, so the pill stays centred at every width. */
    max-width:1328px;
    display:flex; align-items:center; justify-content:space-between; gap:16px;
    margin-block:clamp(16px,2.4vw,26px); padding:16px 20px 16px 28px;
    background:var(--card); border-radius:var(--radius-pill); box-shadow:var(--shadow);
  }
  .wordmark{ font-family:'Gabarito',system-ui,sans-serif; font-weight:600; font-size:1.3125rem; letter-spacing:-0.025em; text-decoration:none; }
  .wordmark:hover{ color:var(--accent-deep); }
  /* static so the dropdown resolves against header.site and runs its full width */
  .menuwrap{ position:static; }
  .menubtn{
    width:44px; height:44px; border-radius:var(--radius-pill); cursor:pointer; position:relative;
    border:1px solid var(--paper-line); background:var(--paper); padding:0;
  }
  /* the bars sit in their own span: Safari will not lay a <button> out as a grid container */
  .bars{ position:absolute; inset:0; display:grid; place-items:center; align-content:center; gap:4px; }
  .bars i{ display:block; width:16px; height:1.5px; background:var(--ink); border-radius:2px; transition:translate .18s ease, rotate .18s ease, opacity .12s ease; }
  .menubtn:hover{ border-color:var(--ink); }
  .menubtn[aria-expanded="true"] i:nth-child(1){ translate:0 5.5px; rotate:45deg; }
  .menubtn[aria-expanded="true"] i:nth-child(2){ opacity:0; }
  .menubtn[aria-expanded="true"] i:nth-child(3){ translate:0 -5.5px; rotate:-45deg; }
  /* a sheet under the pill, inset by the header's padding rather than pinned to the button */
  .navlinks{
    position:absolute; left:var(--gut); right:var(--gut); top:100%; z-index:5;
    list-style:none; margin:0; padding:12px;
    display:grid; gap:2px; font-size:var(--t-body);
    background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
  }
  .navlinks:not(.open){ display:none; }
  .navlinks a{ text-decoration:none; display:block; padding:11px 14px; border-radius:var(--radius-pill); }
  .navlinks a:hover{ background:var(--accent-tint); color:var(--accent-deep); }
  /* the CTA stays the one filled control at every width */
  .navlinks .cta{ background:var(--accent); color:var(--accent-ink); margin-top:6px; font-weight:600; }
  .navlinks .cta:hover{ background:var(--ink); color:var(--accent-ink); }
  /* menu button is a mobile affordance only — from 900px the links sit inline again. */
  @media(min-width:900px){
    .menubtn{ display:none; }
    .navlinks,
    .navlinks:not(.open){
      display:flex; position:static; gap:clamp(14px,2.2vw,28px); align-items:center;
      padding:0; min-width:0; background:none; border:0; box-shadow:none; border-radius:0;
    }
    .navlinks a{ padding:0; border-radius:0; font-weight:500; }
    .navlinks a:hover{ background:none; color:var(--accent-deep); }
    .navlinks .cta{ padding:12px 24px; border-radius:var(--radius-pill); margin-top:0; }
    .navlinks .cta:hover{ color:var(--accent-ink); }
    /* the section link you are reading, for the case studies */
    .navlinks a[aria-current]{ color:var(--accent-deep); }
  }
  @media (prefers-reduced-motion:reduce){ .bars i{ transition:none; } }

  /* ---------- section shells ---------- */
  /* the artboard's rail: the section label sits in a 200px column, everything else in the
     second. .head is display:contents so no page needed its markup rewrapped. */
  section{ padding-block:var(--sec); scroll-margin-top:140px; }
  /* :where() keeps these at element specificity so a page-level .hero or .work still wins */
  main > :where(section:first-child){ padding-top:clamp(32px,5vw,56px); }
  main > :where(section + section){ padding-top:0; }
  section > .wrap:has(.head){
    /* column-gap only: .head is display:contents so the statement is its own grid row, and a
       row gap here would stack on top of the statement's own margin-bottom (was 56 + 36 = 92) */
    display:grid; grid-template-columns:var(--rail) 1fr; column-gap:var(--rail-gap); align-items:start;
  }
  section > .wrap:has(.head) > *{ grid-column:2; min-width:0; }
  .head{ display:contents; }
  .eyebrow{ grid-column:1; grid-row:1; color:var(--eyebrow,var(--ink-soft)); }
  .g-ink .eyebrow,.g-ink .label,.g-ink .k{ color:var(--eyebrow-lift,#A2917F); }
  .statement{ font-size:var(--t-head); line-height:1.2; margin:0 0 36px; }

  @media(max-width:899px){
    section > .wrap:has(.head){ display:block; }
    .head{ display:block; margin-bottom:30px; }
    .eyebrow{ margin-bottom:12px; }
    .statement{ margin-bottom:0; }
  }

  .g-paper{ background:var(--paper); }
  /* the handoff block is a card in the flow, not a full-bleed band — artboard, radius 34 */
  .g-ink{ background:none; }
  .g-ink > .wrap{
    width:min(1328px, 100% - var(--gut) * 2);
    max-width:none; margin-inline:auto;
    padding:clamp(36px,5vw,64px) clamp(24px,4.5vw,60px);
    background:var(--ink); color:var(--accent-ink); border-radius:var(--radius-lg);
  }
  .g-ink p{ color:#BCAC9B; }
  /* sage panel, the recovery block. --sage-ink at full strength: the artboard's .92 opacity
     drops it to 4.24:1, under AA, and this is 17px body copy. */
  .g-sage{ background:var(--sage); color:var(--sage-ink); border-radius:var(--radius); padding:44px; }
  .g-sage .chip{ background:rgba(255,255,255,.18); color:var(--sage-ink); }
  .g-sage p{ color:var(--sage-ink); }

  /* ---------- hero ---------- */
  .back{ display:inline-block; margin-bottom:32px; text-decoration:none;
         font-size:var(--t-label); font-weight:600; letter-spacing:.13em;
         text-transform:uppercase; color:var(--ink-soft); }
  /* 24px minimum tap target (WCAG 2.5.8) without moving anything visually */
  .back,.foot a,.foot-row a{ position:relative; }
  .back::after,.foot a::after,.foot-row a::after{ content:""; position:absolute; inset:-6px 0; }
  .back:hover{ color:var(--accent-deep); }
  /* case-study hero title runs to 80% of the measure (the landing does the same on its own
     wrapper); it drops to full width on the smallest screens */
  h1{ font-size:var(--t-display); line-height:1.06; margin:0 0 32px; max-width:80%; }
  @media(max-width:640px){ h1{ max-width:100%; } }
  .lede{ margin:0 0 48px; font-size:var(--t-lede); line-height:1.6; color:var(--ink-soft); max-width:62ch; }
  /* the meta is a white card on the artboard, four columns, not a flat row */
  .meta{
    background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
    padding:clamp(24px,3vw,34px) clamp(26px,3.6vw,44px);
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 32px; margin:0 0 48px;
  }
  @media(min-width:900px){ .meta{ grid-template-columns:repeat(4,minmax(0,1fr)); gap:44px; } }
  .meta dt{ margin-bottom:8px; }
  .meta dd{ margin:0; font-size:var(--t-title); font-weight:500; }
  .meta .hot{ color:var(--accent-deep); }
  .cover{ margin:0; border-radius:var(--radius-lg); overflow:hidden; background:var(--paper-tint); }
  .cover img{ width:100%; height:clamp(240px,38vw,560px); object-fit:cover; }

  /* ---------- shared bits ---------- */
  .muted{ color:var(--ink-soft); }
  .cap{ font-size:var(--t-small); color:var(--ink-soft); margin:13px 0 0; max-width:60ch; }
  .lead{ margin:0; max-width:80ch; }

  /* a white card of copy — the artboard's brief/approach pair and its takeaway trio */
  .cardbox{ background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow); padding:clamp(24px,3vw,34px); }
  .cardbox .label,.cardbox .lbl{ color:var(--accent-deep); margin-bottom:14px; }
  .cardbox h3{ font-family:'Gabarito',system-ui,sans-serif; font-weight:600; letter-spacing:-0.025em;
               font-size:1.375rem; line-height:1.24; margin:0 0 12px; }
  /* a bare <p> in a cardbox is the analysis takeaway body — 15px. Exclude <p class="p">
     (17px prose, the brief/approach cards) and the label <p>s, which must stay 12px. */
  .cardbox p:not(.p):not(.label):not(.lbl){ margin:0; font-size:var(--t-mini); line-height:1.65; color:var(--ink-soft); }
  /* a tinted panel — the artboard's "what the revamp set out to do" */
  .panel{ background:var(--paper-tint); border-radius:var(--radius); padding:clamp(26px,3.4vw,38px) clamp(26px,3.8vw,42px); }

  .cols2{ display:grid; gap:24px; }
  @media(min-width:900px){ .cols2{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
  .cols3{ display:grid; gap:20px; }
  @media(min-width:900px){ .cols3{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
  .col-rule{ border-top:1px solid var(--paper-line); padding-top:14px; }
  .g-ink .col-rule{ border-top-color:color-mix(in srgb, var(--accent-ink) 18%, transparent); }
  .col-rule .label{ margin-bottom:0; }

  /* a figure or image group in its own white card — shared by all three case studies.
     the section's own .shots/.art grid sits inside; its top margin is cleared here. */
  .mediacard{ background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
              padding:clamp(18px,2.4vw,24px); }
  .mediacard > img{ width:100%; border-radius:var(--radius-sm); display:block; }
  .mediacard > .shots,.mediacard > .art{ margin-top:0; }
  .mediacard > .shots + .cap,.mediacard .lbl{ margin-top:14px; }
  .mediacard .lbl{ color:var(--ink-soft); }
  /* a caption set below a group inside a card runs the full card width, not the 60ch prose cap */
  .mediacard > .cap{ max-width:none; }
  /* every content image carries the same hairline edge on the cream, one weight, one colour */
  .mediacard img,.media img,.shot img,.art img{ border:1px solid var(--paper-line); border-radius:var(--radius-sm); }
  .g-ink .shot img,.g-ink .art img{ border-color:color-mix(in srgb, var(--accent-ink) 14%, transparent); }
  /* a stat row inside a card: keep the hairline as a divider from whatever sits above it,
     but clear the 36px top margin the standalone rule carries */
  .cardbox > .stats,.mediacard > .stats{ margin-top:24px; padding-top:24px; }
  .mediacard > .stats:first-child{ border-top:0; margin-top:0; padding-top:0; }
  .mediacard > .lead{ margin:0 0 20px; }
  .mediacard > .lead + .shots{ margin-top:0; }

  /* ---------- case-study card — landing teaser and the /work index ---------- */
  /* the section keeps the standard 88px block rhythm — no bespoke padding, so the gap to
     the ink band and the About panel matches every other section on the page */
  .work-heading{ display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:28px; }
  .work-heading h2{ font-size:var(--t-head); margin:0; }
  /* the "see all work" link sits on the heading's baseline, so it reads as part of that row */
  .work-more{ font-size:var(--t-body); font-weight:600; color:var(--accent-deep); text-decoration:none; position:relative; }
  .work-more::after{ content:""; position:absolute; inset:-6px -4px; }
  .work-more:hover{ color:var(--accent); }

  .card-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
  .card{
    border-radius:var(--radius); background:var(--card); box-shadow:var(--shadow);
    /* the image is inset inside the card rather than flush to its edge — the padding is the frame */
    padding:16px; display:flex; flex-direction:column; text-decoration:none; color:inherit;
    transition:transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease;
  }
  .card:hover{ transform:translateY(-4px); box-shadow:0 1px 2px rgba(44,35,28,.05), 0 28px 54px -26px rgba(44,35,28,.34); }
  .card-media{
    aspect-ratio:16/9; border-radius:var(--radius-md); overflow:hidden;
    background:linear-gradient(135deg, var(--accent-tint), var(--chip));
    display:flex; align-items:center; justify-content:center;
    font-size:var(--t-label); color:var(--ink-soft); letter-spacing:.13em; text-transform:uppercase;
  }
  .card-media img{ width:100%; height:100%; object-fit:cover; display:block; }
  .card-body{ padding:24px 12px 10px; display:flex; flex-direction:column; gap:12px; flex:1; }
  .card-body h3{ font-family:'Gabarito',system-ui,sans-serif; font-size:1.8125rem; font-weight:600; letter-spacing:-0.025em; line-height:1.2; margin:0; }
  .card-body p{ margin:0; font-size:var(--t-body); color:var(--ink-soft); max-width:48ch; }
  /* facts, not a category pill — the chips sit above the title on every card */
  .card-meta{ margin:0 0 6px; display:flex; flex-wrap:wrap; gap:10px; }
  .card-meta span{
    background:var(--chip); color:var(--chip-ink); padding:7px 16px; border-radius:var(--radius-pill);
    font-size:var(--t-label); font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  }
  /* the sector is the first chip — one treatment on every card, lead and grid alike */
  .card-meta span:first-child{ background:var(--sage-tint); color:var(--sage-deep); }

  /* lead card — the most recent case study runs full width above the pair */
  .card-lead{ display:grid; grid-template-columns:1.55fr 1fr; gap:8px; margin-bottom:24px; padding:24px; }
  .card-lead .card-media{ aspect-ratio:auto; height:100%; min-height:340px; }
  .card-lead .card-body{ padding:clamp(20px,2.4vw,32px); gap:14px; justify-content:center; }
  .card-lead .card-body h3{ font-size:clamp(1.75rem,3vw,2.25rem); line-height:1.18; }
  .card-lead .card-body p{ max-width:38ch; }

  @media (max-width:900px){ .card-lead{ grid-template-columns:1fr; padding:16px; } .card-lead .card-media{ aspect-ratio:16/9; min-height:0; } }
  @media (max-width:640px){ .card-grid{ grid-template-columns:1fr; } }
  @media (prefers-reduced-motion:reduce){
    .card{ transition:none; }
    .card:hover{ transform:none; }
  }

  /* ---------- contact panel — shared by the landing "About" and /work "Get in touch" ---------- */
  .contact-panel{ padding:clamp(32px,5vw,60px); display:grid; gap:32px; align-items:center; }
  @media(min-width:900px){ .contact-panel{ grid-template-columns:1fr 400px; gap:64px; } }
  .contact-panel .lbl{ margin-bottom:22px; }
  .contact-panel h2{ margin:0 0 20px; max-width:20ch; font-size:clamp(1.75rem,4.2vw,2.75rem); line-height:1.16; }
  /* :not(.lbl) so the "About" / "Get in touch" label keeps its 12px .lbl size, not the lede size */
  .contact-panel p:not(.lbl){ margin:0; font-size:var(--t-lede); color:var(--ink-soft); }
  .contact-panel .pill-btn{ justify-self:start; }
  @media(min-width:900px){ .contact-panel .pill-btn{ justify-self:end; } }

  /* the one terracotta pill — the "Contact me" button that opens the contact dialog */
  .pill-btn{ display:inline-block; padding:20px 34px; border-radius:var(--radius-pill); font:inherit; font-weight:600; font-size:var(--t-title); background:var(--accent); color:var(--accent-ink); text-decoration:none; border:0; cursor:pointer; }
  .pill-btn:hover{ background:var(--accent-deep); color:var(--accent-ink); }

  /* contact dialog — email + WhatsApp, opened from the "Contact me" pill */
  .contact-dialog{ border:0; padding:0; border-radius:var(--radius); background:var(--card); color:var(--ink); width:min(92vw,420px); box-shadow:var(--shadow); }
  .contact-dialog::backdrop{ background:color-mix(in srgb, var(--ink) 74%, transparent); }
  .contact-dialog-inner{ padding:clamp(28px,5vw,40px); display:grid; gap:12px; }
  .contact-dialog .lbl{ margin-bottom:8px; }
  .contact-dialog a{ display:grid; gap:3px; padding:16px 20px; border:1.5px solid var(--paper-line); border-radius:var(--radius-sm); text-decoration:none; font-weight:600; }
  .contact-dialog a:hover{ border-color:var(--ink-soft); color:var(--accent-deep); }
  .contact-dialog a .muted{ font-weight:400; font-size:var(--t-mini); }
  .contact-dialog-close{ margin-top:4px; justify-self:start; background:none; border:0; cursor:pointer; padding:6px 0;
    font-size:var(--t-label); font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:var(--ink-soft); }
  .contact-dialog-close:hover{ color:var(--accent-deep); }

  /* ---------- "more case studies" tail — the same .card / .card-grid the landing uses ----------
     the cards are landing cards; only the section heading is bespoke. */
  .more-title{
    font-family:'Gabarito',system-ui,sans-serif; font-weight:600; letter-spacing:-0.025em;
    font-size:var(--t-sub); line-height:1.24; margin:0 0 28px;
  }

  /* ---------- footer — one light rule for all five pages, per the artboard ---------- */
  footer.site-foot,footer.case-foot{
    border-top:1px solid var(--paper-line); margin-top:var(--sec);
    padding:32px 0 40px; background:none; color:var(--ink-soft);
  }
  .foot-row,.foot{
    display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px 30px; align-items:center;
    font-size:var(--t-label); font-weight:600; letter-spacing:.13em; text-transform:uppercase;
  }
  .foot-links{ display:flex; flex-wrap:wrap; gap:30px; }
  .site-foot a,.case-foot a{ text-decoration:none; color:var(--ink-soft); }
  .site-foot a:hover,.case-foot a:hover{ color:var(--accent-deep); }

  /* ---------- scroll reveal — sections rise in as they enter view ----------
     progressive: reveal.js adds .reveal only when IntersectionObserver is present and
     prefers-reduced-motion is not set, so nothing is hidden if the script never runs. */
  .reveal{ opacity:0; translate:0 8px; transition:opacity .55s ease, translate .55s ease; transition-delay:var(--rd,0ms); }
  .reveal.in{ opacity:1; translate:0 0; }

  /* ---------- micro-interactions (backlog row 71e) ----------
     underline wipe on the reading-chrome links, a press state on the pill buttons,
     and a scale-in on the lightbox. all guarded by prefers-reduced-motion. */
  .back,.work-more{
    background-image:linear-gradient(currentColor,currentColor);
    background-size:0% 1px; background-position:0 100%; background-repeat:no-repeat;
    padding-bottom:2px; transition:background-size .28s ease, color .2s ease;
  }
  .back:hover,.work-more:hover{ background-size:100% 1px; }
  .site-foot a,.case-foot a{
    background-image:linear-gradient(currentColor,currentColor);
    background-size:0% 1px; background-position:0 100%; background-repeat:no-repeat;
    transition:background-size .28s ease, color .2s ease;
  }
  .site-foot a:hover,.case-foot a:hover{ background-size:100% 1px; }
  @media(min-width:900px){
    .navlinks a:not(.cta){
      background-image:linear-gradient(currentColor,currentColor);
      background-size:0% 1px; background-position:0 100%; background-repeat:no-repeat;
      padding-bottom:3px; transition:background-size .28s ease, color .2s ease;
    }
    .navlinks a:not(.cta):hover,
    .navlinks a[aria-current]:not(.cta){ background-size:100% 1px; }
  }
  .pill-btn:active,.navlinks .cta:active,.menubtn:active,.work-more:active{ translate:0 1px; }

  #lightbox[open] img{ animation:lb-in .22s cubic-bezier(.16,1,.3,1); }
  @keyframes lb-in{ from{ opacity:0; scale:.94; } }

  @media (prefers-reduced-motion:reduce){
    html{ scroll-behavior:auto; }
    .back,.work-more,.site-foot a,.case-foot a,.navlinks a{ transition:none; background-image:none; }
    .pill-btn:active,.navlinks .cta:active,.menubtn:active,.work-more:active{ translate:none; }
    #lightbox[open] img{ animation:none; }
  }

  /* ---------- cross-page view transitions (backlog row 71c) ----------
     native MPA transitions: a cross-fade on every same-origin nav, plus a
     shared-element morph from each work card's image box to the case-study
     hero cover. the vt-* names are set inline on the paired containers
     (landing .card-media / case-study figure.cover). progressive — a browser
     without the API just navigates. */
  @view-transition{ navigation:auto; }
  @media (prefers-reduced-motion:reduce){
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*){ animation:none !important; }
  }
