/* Case studies in the homepage's world (concepts/d-editorial.html): quiet paper, ink, one burnt orange,
   Archivo throughout, rounded media, no rule lines, the rough orange footer card. Loaded last; markup stays as is. */

:root {
  --sf: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --page: #F2F2EF; --surface: #FFFFFF;
  --ink: #111111; --muted: #6B6A65; --line: rgba(17,17,17,0.12);
  --gray: #FFFFFF;                 /* the old grey panels become white cards on the paper */
  --accent: #B4451F;
  --blue: var(--accent);           /* every old accent hook (focus ring, progress bar, links) takes the one orange */
  --sky: #C9C7C0;                  /* list bullets: quiet, not a second colour */
  --edge: clamp(20px, 2.2vw, 32px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --tint: #E9E8E2;                 /* each case study overrides this with its own project colour (below) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");   /* panels and cards: texture you feel more than see */
}
/* One warm stone for every case study: a deeper step of the paper, so it sits with the burnt orange;
   each project's own colour lives in its videos, as on the homepage */
body[data-project] { --tint: #E8E5DD; }
body { background: var(--page); color: var(--ink); font-family: var(--sf); accent-color: var(--accent); }
::selection { background: var(--ink); color: var(--page); }
a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(17,17,17,0.25); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

/* Nav: the homepage's glass pill */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 140; display: flex; align-items: center; gap: 18px;
  padding: 6px 6px 6px 20px; border-radius: 999px; background: rgba(255,255,255,0.72); white-space: nowrap;
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9), 0 10px 30px rgba(17,17,17,0.08); }
.nav .name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.nav nav { display: flex; gap: 2px; }
.nav nav a { font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; transition: color .2s ease, background-color .2s ease, transform .16s ease-out; }
.nav nav a:hover { color: var(--ink); background: rgba(17,17,17,0.05); }
.nav nav .cta { background: var(--accent); color: #fff; }
.nav nav .cta:hover { background: var(--ink); color: #fff; }
.nav nav a:active { transform: scale(0.97); }
@supports not (backdrop-filter: blur(1px)) { .nav { background: rgba(255,255,255,0.96); } }
@media (max-width: 560px) { .nav { gap: 8px; padding-left: 16px; } .nav nav a:not(.cta) { display: none; } }

/* Type: one family, weight and width do the work */
.kicker, .hero .kicker { color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: -0.005em; }
.h-hero { font-size: clamp(42px, 6vw, 84px); font-weight: 650; letter-spacing: -0.045em; line-height: 1; max-width: 16ch; }
.h-hero em, .h2 em, .d-h em, .dec-h em, .block-h em { font-style: italic; color: inherit; font-weight: inherit; }
.h2 { font-weight: 650; letter-spacing: -0.04em; }
.h3, .d-h, .dec-h, .block-h, .tile-h, .vh, .sys-title, .pcard-name { font-weight: 650; letter-spacing: -0.03em; }
.lede, .hero .lede { color: var(--muted); }
.read p { color: #2A2927; }
.read p b, .read p strong { color: var(--ink); }
.block-kick, .tile-num, .sys-label, .vrow .vtag, .dec-tag { color: var(--muted); }
.vrow .vtag.muted { color: var(--muted); }

/* Hero */
.hero { padding-top: 140px; }
.meta { border-top: 0; padding: 0; gap: 28px; margin-bottom: 56px; }
@media (min-width: 741px) { .meta { grid-template-columns: repeat(5, 1fr); } }   /* Client joins Role, Team, Platform, Impact */
.meta .k { font-size: 13px; color: var(--muted); }
.meta .v { font-weight: 600; }

/* Bands: white rounded panels on the paper, flat (no shadow), like the homepage media */
.overview, .phases, .impact {
  width: min(1236px, 100% - 2 * var(--edge)); margin-left: auto; margin-right: auto;
  background: var(--tint) var(--grain-soft) 0 0 / 220px; background-blend-mode: multiply; border-radius: clamp(20px, 2.4vw, 36px);
}
.overview { margin-top: 72px; padding: 100px 0; }
.phases, .impact { padding: 100px 0; }
.overview .lede, .phases .lede { color: var(--muted); }
.phases .tile, .overview .substat { background: transparent; box-shadow: none; padding-left: 0; padding-right: 0; }   /* no cards inside cards */

/* Figures: the homepage's figure voice, normal width, tabular */
.stat .n, .impact .n, .research-n, .substat .n, .impact-fig { font-weight: 650; letter-spacing: -0.04em; font-variation-settings: 'wdth' 100; }
.stat .n .now, .impact-fig .now, .owned-h { color: var(--ink); }   /* orange is for actions only */
.d-num { color: #8A887F; font-weight: 650; }   /* large numerals: just over 3:1 on paper */
.completion-bars .fill-layer rect, .stat .click-anim .bar, .ca-bar { fill: var(--accent); }

/* Cards: white on paper, no shadow, one radius family */
.tile, .principle, .outcome-card, .pcard, .research-card, .award, .reflect-pull, .impact-band, .measure, .status-banner, .mtable { border-radius: 24px; border: 0; }
.principle, .outcome-card, .pcard, .research-card, .award, .reflect-pull, .impact-band, .measure, .mtable { background: var(--tint) var(--grain-soft) 0 0 / 220px; background-blend-mode: multiply; box-shadow: none; }
.tile.future { background: transparent; border: 0; opacity: .72; }
.pcard-portrait { box-shadow: 0 0 0 6px var(--page); }
.pcard-touch, .own-h { border-color: transparent; }
.status-banner { background: rgba(180,69,31,0.08); }
.tile, .principle, .outcome-card, .pcard, .research-card { transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .principle:hover, .outcome-card:hover, .pcard:hover, .research-card:hover, .phases .tile:hover { transform: translateY(-4px); }
}

/* Media: rounded, flat, never cropped by an outline */
.figure, .dec-media, .vrow .vmedia, .proto-frame { --r: clamp(14px, 1.6vw, 24px); border-radius: var(--r); padding: 6px; background: var(--tint) var(--grain-soft) 0 0 / 220px; background-blend-mode: multiply; box-shadow: none; outline: 0; }
.figure > img, .figure > video, .figure > a, .figure > a > img, .dec-media > img, .dec-media > video, .vrow .vmedia > img, .vrow .vmedia > video, .proto-frame > iframe { border-radius: calc(var(--r) - 6px); overflow: hidden; }

/* No rule lines: space separates rows */
.d-row, .d-row:last-child, .dec, .vrow, .mcol, .mitem, .mtable-h, .tile-list li + li { border-color: transparent; }
.d-row { padding: 36px 0; }
.vrow { gap: 64px; }

/* Pull statements: the homepage quote voice, no accent bar */
.pull .big { font-weight: 450; font-style: italic; letter-spacing: -0.03em; padding-top: 0; }
.pull .big::before { display: none; }
.pull .big span { color: var(--muted); }

/* Reflection: same shape on every case study */
.reflection .h2 { margin-bottom: 28px; }
.reflection .pull-line { font-size: clamp(26px, 3.2vw, 38px); font-weight: 450; font-style: italic; letter-spacing: -0.03em; line-height: 1.18; color: var(--ink); margin: 44px 0; max-width: 820px; }
.reflection .award { margin-top: 56px; }

/* Prev / next: white cards, the title warms to orange on hover */
.proj-nav a { background: var(--tint) var(--grain-soft) 0 0 / 220px; background-blend-mode: multiply; box-shadow: none; border-radius: 24px; text-decoration: none; }
.proj-nav a:hover { background-color: var(--tint); }
.proj-nav .pn-label { color: var(--muted); }
.proj-nav a:hover .pn-title { color: var(--accent); }
.proj-nav .pn-client { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }

/* Footer: the homepage's rough orange card (edge drawn by ../rough-footer.js) */
.site-foot { margin: clamp(120px, 14vw, 200px) var(--edge) var(--edge); border-radius: clamp(20px, 2.4vw, 36px); color: #F7F4EF; overflow: hidden; display: flow-root;
  padding: clamp(48px, 5.5vw, 88px) clamp(24px, 3.4vw, 56px) 0; font-family: var(--sf);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 220px;
  background-blend-mode: multiply; }
.site-foot.rough { border-radius: 0; overflow: visible; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.site-foot ::selection { background: #F7F4EF; color: var(--accent); }
.site-foot :focus-visible { outline-color: #F7F4EF; }
.site-foot a { color: inherit; text-decoration: none; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-grid .mail { display: inline-block; position: relative; font-size: clamp(30px, 2.6vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.foot-grid .mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 0.07em; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.foot-grid .mail:hover::after, .foot-grid .mail:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.foot-grid .fine { margin-top: 14px; font-size: 15px; }
.fcol h2 { font-size: 14px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.fcol ul { list-style: none; display: grid; gap: 9px; font-size: 16px; }
.fcol a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.fcol a:hover, .fcol a:focus-visible { background-size: 100% 1px; }
.site-foot .word { margin: clamp(48px, 6vw, 96px) 0 0.02em -0.03em; font-size: 14.2vw; font-weight: 900; font-variation-settings: 'wdth' 112;
  letter-spacing: -0.055em; line-height: 0.78; white-space: nowrap; user-select: none; color: #F7F4EF; --wd0: 112; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .foot-grid > :first-child, .foot-grid > :last-child { grid-column: 1 / -1; }
  .site-foot .word { font-size: 12.4vw; line-height: 1; margin-bottom: 0.14em; }
}
@media (max-width: 740px) {
  .overview, .phases, .impact { padding: 64px 0; }
  .hero { padding-top: 110px; }
  .hero .figure { border-radius: 14px; margin-left: 0; margin-right: 0; width: 100%; }   /* rounded inside the margins, like the homepage */
}

/* Letters that breathe (type-breathe.js): titles and the footer name answer the cursor like the homepage headline */
.wd { display: inline-block; white-space: nowrap; }
.wd.inking { display: inline-flex; justify-content: space-between; }   /* while inking, thin letters spread to fill the word instead of leaving a gap */
.ch { display: inline-block; font-weight: var(--w); font-variation-settings: 'wdth' calc(var(--wd0, 100) + var(--dw, 0)); }

/* Paper grain over everything, on one fixed layer so scrolling never repaints it */
body::after { content: ""; position: fixed; inset: 0; z-index: 135; pointer-events: none; opacity: .2; mix-blend-mode: multiply; background: var(--grain) 0 0 / 220px; }

/* Page transitions: the homepage video grows into this hero (Chrome, Edge, Safari 18.2+) */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
.nav { view-transition-name: site-nav; }

/* Sequence lives inside the heading as a muted lead-in, never as a label above it */
.hn { display: inline-block; margin-right: 0.45em; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.sub-h { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 18px; }
.principle-name { color: var(--ink); }   /* orange is for actions only */
/* Headings keep more room above than below once their kickers are gone */
.sec .h2, .reflection > .wrap > .h2 { margin-bottom: 28px; }
/* Persona cards: name first, role beneath it */
.pcard-portrait { order: -1; } .pcard-name { order: 0; } .pcard-role { order: 1; margin: 6px 0 4px; } .pcard-type, .pcard-desc, .pcard-touch { order: 2; }

/* Reduced motion: the Zelle system explainer stacks, so keep it to a reading column instead of the full width */
@media (prefers-reduced-motion: reduce) {
  .sys-inner { max-width: 700px; margin: 0 auto; }
  .sys-callout, .sys-callout[data-i="0"], .sys-callout[data-i="1"] { text-align: center; }
}

/* Leftovers from the old design, retired so every case study reads the same:
   stat mini-graphics (click bars, gold stars, completion bars), brand-colour persona dots, the scroll fade-ups,
   and the white tile inside the award card */
.stat .viz, .stat .click-anim, .stat .completion-bars, .stat .star-wrap { display: none; }
.stat .stat-top { display: block; }
.persona-dot { display: none; }
.ft, .ft.vis { opacity: 1; transform: none; animation: none; }
.award-icon { background: transparent; box-shadow: none; }
.substat .n, .measure-tag { color: var(--ink); }      /* figures are ink; orange stays for actions */
.sys-line { stroke: var(--muted); } .sys-dot { fill: var(--muted); }
