/* Editorial: cream paper, one cobalt ink, serif display.
   Each fold is a sticky "page" that the next one slides over (html.motion only). */
:root {
  --paper: #fdfaf1;
  --paper-2: #f6f1e3;
  --ink: #2c4fc4;
  --ink-deep: #1d3896;
  --ink-soft: rgba(44, 79, 196, .74);
  --ink-faint: rgba(44, 79, 196, .45);
  --rule: rgba(44, 79, 196, .2);
  --tint: rgba(44, 79, 196, .07);
  --sun: #f3cf55;
  --sun-deep: #e5b92c;
  --receipt-ink: #2a2620;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --hindi: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --script: "Mrs Saint Delafield", cursive;
  --nav-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
b { font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.label, .case-tag, .stamp-tag, .card-label, .viz-cap {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft);
}

/* LOADER — greetings, then the curtain lifts */
.loader { display: none; }
.js .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  transition: transform .9s cubic-bezier(.76, 0, .24, 1);
}
.loader-word {
  grid-area: 1 / 1; opacity: 0;
  font-family: var(--serif); font-size: 28px; color: var(--ink);
}
.loader-word[lang="hi"] { font-family: var(--hindi); font-size: 24px; }
.loader-word.is-on { opacity: 1; }
.loader.is-done { transform: translateY(-100%); }
.loader.is-gone { display: none; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  height: var(--nav-h); padding: 0 max(24px, calc((100vw - 1120px) / 2 + 24px));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: color .3s, background-color .3s, border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.logo { font-family: var(--serif); font-size: 34px; line-height: 1; }
.logo span { color: var(--sun-deep); }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.nav nav a { white-space: nowrap; transition: opacity .2s; }
.nav nav a:hover { opacity: .6; }
.nav-cta { background: var(--sun); color: var(--ink-deep); padding: 8px 14px; border-radius: 4px; box-shadow: 0 2px 0 var(--sun-deep); }
.nav-cta:hover { opacity: 1 !important; }
.nav.is-light { color: var(--paper); background: color-mix(in srgb, var(--ink-deep) 90%, transparent); border-bottom-color: rgba(253, 250, 241, .15); }
.nav.is-sky { background: color-mix(in srgb, #9cb6d8 92%, transparent); }
.nav.is-light .logo span { color: var(--sun); }
.nav.is-light .nav-cta { color: var(--ink-deep); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 4px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  transition: transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--ink-deep); box-shadow: 0 3px 0 var(--sun-deep); }
.btn-sun span { display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--paper); border-radius: 3px; }
.btn-line { border: 1px solid var(--ink); }

/* FOLDS */
.stack { position: relative; }
.fold { position: relative; z-index: 1; }
.anchor { display: block; height: 0; }
.section-head { margin-bottom: 48px; max-width: 780px; }
.section-head h2, .contact h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -0.015em; margin-top: 14px;
}
.section-sub { margin-top: 14px; font-size: 17px; color: var(--ink-soft); max-width: 58ch; }
.section-gap { margin-top: 120px; }

/* FOLD 1 — HERO */
.fold-hero { background: var(--paper); }
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: safe center; align-items: center; text-align: center; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 56px; transform-origin: 50% 30%; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, min(7.4vw, 10.5vh), 104px); line-height: .98; letter-spacing: -0.02em;
  max-width: 15ch; margin: clamp(16px, 3vh, 30px) auto clamp(16px, 3vh, 28px); text-wrap: balance;
}
.circled { position: relative; display: inline-block; }
.circled svg { position: absolute; left: -22%; top: -14%; width: 144%; height: 132%; overflow: visible; pointer-events: none; }
.circled path { fill: none; stroke: var(--sun-deep); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 640; stroke-dashoffset: 0; }
.js .circled path { stroke-dashoffset: 640; transition: stroke-dashoffset 1.2s cubic-bezier(.65, 0, .35, 1) .2s; }
.js .is-ready .circled path { stroke-dashoffset: 0; }
.lede { max-width: 58ch; margin: 0 auto; font-size: 17.5px; color: var(--ink-soft); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: clamp(20px, 3.5vh, 34px); }
.scroll-hint { margin-top: clamp(20px, 4vh, 48px); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }

/* split-flap board */
.flap-row { display: flex; gap: 3px; justify-content: center; }
.flap-tile {
  position: relative; display: grid; place-items: center;
  width: 22px; height: 30px; border-radius: 3px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 14px; font-weight: 500;
}
.flap-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .35); }
.flap-tile b { display: block; font-weight: 500; }
.flap-tile.tick b { animation: tick .09s ease; }
@keyframes tick { 50% { transform: scaleY(.1); } }

/* FOLD 2 — SELECTED WORK */
.fold-work { background: linear-gradient(180deg, #9cb6d8 0%, #bccde3 45%, #e3e8ee 100%); padding: calc(var(--nav-h) + 72px) 0 120px; }
.fold-work .label, .fold-work .section-sub { color: var(--ink-deep); }
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case {
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  padding: 28px; border-radius: 4px; box-shadow: 0 24px 40px -30px rgba(29, 56, 150, .55);
  transform: rotate(var(--r, 0deg)); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.case:nth-child(2) { --r: -.6deg; }
.case:nth-child(3) { --r: .7deg; }
.case:nth-child(4) { --r: .5deg; }
.case:nth-child(5) { --r: -.7deg; }
.case::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 78px; height: 20px;
  transform: translateX(-50%) rotate(-3deg); background: rgba(255, 255, 255, .62); box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.case:hover, .case:focus-visible { transform: rotate(0) translateY(-6px); box-shadow: 0 34px 50px -30px rgba(29, 56, 150, .7); z-index: 2; }
.case-lead { grid-column: span 2; }
.case h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.05; margin: 12px 0 10px; max-width: 22ch; }
.case-lead h3 { font-size: clamp(36px, 4.4vw, 56px); }
.case-did { font-size: 15.5px; color: var(--ink-soft); max-width: 62ch; flex: 1; }
.case-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.case-num strong { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 5.6vw, 72px); line-height: .9; }
.case-lead .case-num strong { font-size: clamp(68px, 8vw, 104px); }
.case-num span { font-size: 14px; color: var(--ink-soft); max-width: 32ch; }
.case-open { margin-top: 18px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

/* FOLD 3 — STAMPS */
.fold-stamps {
  background: radial-gradient(1200px 500px at 50% 0%, #3a5fd0, transparent 70%), var(--ink-deep);
  color: var(--paper); padding: calc(var(--nav-h) + 72px) 0 120px;
}
.fold-stamps .label { color: rgba(253, 250, 241, .75); }
.fold-stamps::before, .fold-work::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1.2px);
  background-size: 4px 4px; mix-blend-mode: soft-light;
}
.stamps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 72px 56px; }
.stamp-item { display: grid; justify-items: center; gap: 22px; }
.stamp {
  --r: 6px; --gap: 16px;
  display: block; width: min(100%, 400px); padding: 14px; background: var(--paper); color: var(--ink);
  -webkit-mask:
    radial-gradient(circle var(--r) at 50% 0, #0000 98%, #000) 50% 0 / var(--gap) 100% repeat-x,
    radial-gradient(circle var(--r) at 50% 100%, #0000 98%, #000) 50% 0 / var(--gap) 100% repeat-x,
    radial-gradient(circle var(--r) at 0 50%, #0000 98%, #000) 0 50% / 100% var(--gap) repeat-y,
    radial-gradient(circle var(--r) at 100% 50%, #0000 98%, #000) 0 50% / 100% var(--gap) repeat-y;
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle var(--r) at 50% 0, #0000 98%, #000) 50% 0 / var(--gap) 100% repeat-x,
    radial-gradient(circle var(--r) at 50% 100%, #0000 98%, #000) 50% 0 / var(--gap) 100% repeat-x,
    radial-gradient(circle var(--r) at 0 50%, #0000 98%, #000) 0 50% / 100% var(--gap) repeat-y,
    radial-gradient(circle var(--r) at 100% 50%, #0000 98%, #000) 0 50% / 100% var(--gap) repeat-y;
  mask-composite: intersect;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.stamp-item:nth-child(odd) .stamp { transform: rotate(-1.5deg); }
.stamp-item:nth-child(even) .stamp { transform: rotate(1.2deg); }
.stamp:hover, .stamp:focus-visible { transform: rotate(0) translateY(-6px) scale(1.02); }
.stamp-img { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--ink); }
.stamp-img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.08); mix-blend-mode: screen; transition: filter .4s, opacity .4s; }
.stamp-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity .4s;
  background-image: radial-gradient(rgba(29, 56, 150, .55) .8px, transparent 1.1px); background-size: 3px 3px; mix-blend-mode: multiply; opacity: .55;
}
.stamp:hover .stamp-img img, .stamp:focus-visible .stamp-img img { filter: none; mix-blend-mode: normal; }
.stamp:hover .stamp-img::after, .stamp:focus-visible .stamp-img::after { opacity: 0; }
.stamp-type { display: grid; place-items: center; }
.stamp-type span { font-family: var(--serif); font-style: italic; font-size: 84px; color: var(--paper); }
.stamp-meta { position: relative; padding: 14px 2px 2px; }
.stamp-meta h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; padding-right: 60px; }
.stamp-tag { margin-top: 8px; font-size: 10.5px; }
.stamp-hi { font-family: var(--hindi); font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.stamp-val { position: absolute; right: 2px; bottom: 2px; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.stamp-item figcaption { max-width: 44ch; text-align: center; font-size: 15px; color: rgba(253, 250, 241, .85); }
.stamp-item figcaption a, .stamp-caption a { display: inline-block; margin-top: 6px; color: var(--sun); font-weight: 500; white-space: nowrap; }
.stamp-caption { display: none; }

/* FOLD 4 — EXPERIENCE */
.fold-exp { background: var(--paper); padding: 120px 0 140px; box-shadow: 0 -30px 60px -40px rgba(10, 20, 60, .5); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 120px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats > div { padding: 26px 12px; }
.stats > div + div { border-left: 1px solid var(--rule); }
.stats dt { font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.stats dd { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.principle { padding: 26px 22px 10px 0; }
.principle + .principle { padding-left: 22px; border-left: 1px solid var(--rule); }
.p-num { font-family: var(--serif); font-style: italic; font-size: 30px; }
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.1; margin: 10px 0; }
.principle p { font-size: 15px; color: var(--ink-soft); }
.job { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--ink); }
.job:last-child { border-bottom: 1px solid var(--ink); }
.job-name { font-family: var(--serif); font-style: italic; font-size: 54px; line-height: 1; }
.job-dates { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.job h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; }
.job-co { font-size: .55em; color: var(--ink-faint); }
.job-sub { margin: 12px 0 4px; color: var(--ink-soft); max-width: 66ch; }
.role { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--rule); }
.role-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.role-head h4 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.role-head span { font-size: 13px; color: var(--ink-soft); }
.role-link { display: inline-block; margin-top: 16px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--rule); }
.role-link:hover { border-color: var(--ink); }
.points { list-style: none; display: grid; gap: 9px; }
.points li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 15.5px; }
.points li::before { content: "✦"; position: absolute; left: 0; top: 1px; font-size: 11px; color: var(--sun-deep); }
.points b { color: var(--ink); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 12.5px; padding: 4px 11px; border: 1px solid var(--rule); border-radius: 99px; color: var(--ink-soft); }
.bg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { padding: 30px; background: var(--paper-2); border-radius: 4px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.card > p:not(.card-label) { margin-top: 4px; color: var(--ink-soft); }
.card-label { margin: 28px 0 12px; }
.card-label:first-child { margin-top: 0; }

/* FOLD 5 — SAY HI */
.fold-contact { background: var(--paper); box-shadow: 0 -30px 60px -40px rgba(10, 20, 60, .5); }
.contact { min-height: calc(100svh - 110px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 40px; }
.contact h2 { font-size: clamp(64px, 10vw, 150px); line-height: .9; margin-top: 18px; }
.contact-lede { max-width: 30ch; margin-top: 22px; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.contact-email {
  display: inline-block; margin-top: 28px; padding-bottom: 4px;
  font-size: clamp(20px, 2.2vw, 28px); font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .35s;
}
.contact-email:hover { background-size: 0 1.5px; }
.contact-links { display: flex; gap: 28px; margin-top: 26px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.contact-links a { border-bottom: 1px solid var(--rule); }
.contact-links a:hover { border-color: var(--ink); }

/* receipt */
.rcpt { justify-self: center; width: min(100%, 380px); transform: rotate(-2deg); color: var(--receipt-ink); perspective: 900px; }
.rcpt-slot { position: relative; height: 22px; margin: 0 -20px; border: 3px solid #5b2a0e; border-radius: 99px; background: var(--paper); z-index: 2; }
.rcpt-slot::after { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: #5b2a0e; }
.rcpt-clip { margin-top: -8px; clip-path: inset(0 -60px -80px -60px); }
.rcpt-paper {
  padding: 30px 26px 40px; background: #fbf8f0; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .35);
  font-family: var(--mono); font-size: 12.5px; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 10px repeat-x;
}
.js .rcpt-paper { transform: translateY(-101%); }
.js .rcpt.is-printed .rcpt-paper { transform: translateY(0) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform 1.6s steps(22); }
.js .rcpt.is-printed.is-settled .rcpt-paper { transition: transform .15s linear; }
.rcpt-shop { text-align: center; font-size: 16px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }
.rcpt-sub { text-align: center; margin-top: 4px; opacity: .75; }
.rcpt-modes { display: flex; justify-content: center; gap: 8px; margin: 18px 0 18px; }
.rcpt-mode { padding: 4px 12px; border: 1.5px solid var(--receipt-ink); border-radius: 99px; font-family: var(--mono); font-size: 12px; }
.rcpt-mode.is-on { background: var(--receipt-ink); color: #fbf8f0; }
.rcpt-body { border-top: 1.5px dashed rgba(42, 38, 32, .45); border-bottom: 1.5px dashed rgba(42, 38, 32, .45); padding: 18px 0; transition: transform .38s, opacity .38s; }
.rcpt-body.is-tearing { transform: translate(10px, 46px) rotate(5deg); opacity: 0; }
.rcpt-head { font-family: var(--sans); font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.rcpt-items { list-style: none; display: grid; gap: 6px; }
.rcpt-items li { display: flex; align-items: baseline; gap: 6px; }
.rcpt-items i { flex: 1; border-bottom: 1.5px dotted rgba(42, 38, 32, .5); transform: translateY(-3px); }
.rcpt-total { display: flex; justify-content: space-between; margin-top: 12px; font-weight: 500; font-size: 14px; }
.rcpt-thanks { text-align: center; margin-top: 16px; opacity: .8; }
.rcpt-barcode { height: 46px; margin: 14px 18px 0; background: repeating-linear-gradient(90deg, var(--receipt-ink) 0 2px, transparent 2px 4px, var(--receipt-ink) 4px 5px, transparent 5px 8px, var(--receipt-ink) 8px 11px, transparent 11px 12px); }

/* FOOTER */
.footer { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 32px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-soft); }
.signature { font-family: var(--script); font-size: 44px; line-height: 1; color: var(--ink); }

/* CURSOR (mouse + motion only) */
.cursor { display: none; }
.motion .cursor {
  display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--sun);
  font-family: var(--mono); font-size: 12px; color: var(--ink-deep);
  transition: width .2s, height .2s, margin .2s, opacity .2s; opacity: 0;
}
.motion .cursor.is-on { opacity: 1; }
.motion .cursor.is-link { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.motion .cursor.is-badge { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor span { opacity: 0; transition: opacity .15s; }
.cursor.is-badge span { opacity: 1; }
.motion, .motion a, .motion button, .motion .stamp { cursor: none; }

/* REVEAL (non-pinned content) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- MOTION MODE: sticky pages + stamp unfold (desktop, mouse, motion allowed) ---------- */
.motion .fold { position: sticky; }
.motion .fold-hero .fold-inner { will-change: transform, opacity; }
.motion .fold-stamps { top: 0; height: 100vh; padding: calc(var(--nav-h) + 24px) 0 24px; overflow: hidden; }
.motion .fold-stamps .fold-inner { height: 100%; display: flex; flex-direction: column; }
.motion .fold-stamps .section-head { margin-bottom: 8px; }
.motion .fold-stamps .section-head h2 { font-size: clamp(32px, 3.6vw, 48px); }
.motion .stage { position: relative; flex: 1; min-height: 0; }
.motion .stamps { display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: scale(var(--s, 1)); }
.motion .stamp-item { position: absolute; left: 0; top: 0; width: 230px; display: block; transform: translate(-50%, -50%); will-change: transform; }
.motion .stamp-item .stamp { width: 230px; padding: 11px; transform: none; }
.motion .stamp-item .stamp:hover, .motion .stamp-item .stamp:focus-visible { transform: translateY(-6px) scale(1.04); }
.motion .stamp-item figcaption { display: none; }
.motion .stamp-meta h3 { font-size: 24px; padding-right: 48px; }
.motion .stamp-hi { font-size: 11.5px; }
.motion .stamp-val { font-size: 16px; }
.motion .stamp-type span { font-size: 60px; }
.motion .stamp-caption { display: block; min-height: 3.4em; max-width: 72ch; margin: 8px auto 0; text-align: center; font-size: 15px; color: rgba(253, 250, 241, .88); transition: opacity .25s; }
.motion .stamps-spacer { height: 130vh; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .loader { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .js .circled path { stroke-dashoffset: 0; transition: none; }
  .js .rcpt-paper { transform: none; }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .cases { grid-template-columns: 1fr; }
  .case-lead { grid-column: auto; }
  .bg-grid, .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 0 16px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .flap-tile { width: 18px; height: 26px; font-size: 12px; }
  .fold-work, .fold-stamps { padding: calc(var(--nav-h) + 40px) 0 88px; }
  .fold-exp { padding: 88px 0 100px; }
  .stats { margin-bottom: 88px; }
  .section-gap { margin-top: 88px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 22px 0 10px; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--rule); }
  .case { padding: 22px 18px; }
  .job { grid-template-columns: 1fr; gap: 12px; padding: 34px 0; }
  .job-meta { display: flex; align-items: baseline; gap: 14px; }
  .job-name { font-size: 40px; }
  .job-dates { margin-top: 0; }
  .job h3 { font-size: 32px; }
  .stamps { grid-template-columns: 1fr; gap: 64px; }
  .card { padding: 24px 20px; }
  .contact { padding-top: calc(var(--nav-h) + 32px); }
  .rcpt { width: calc(100% - 24px); }
  .rcpt-slot { margin: 0 -8px; }
  .footer { flex-direction: column; gap: 8px; }
}

/* ---------- CASE STUDY PAGES ---------- */
.case-page .nav { background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cs { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 100px; }
.cs-back { font-size: 13px; color: var(--ink-soft); }
.cs-back:hover { color: var(--ink); }
.cs h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.015em; margin-top: 28px; max-width: 18ch; }
.cs-sub { margin-top: 18px; font-size: 19px; color: var(--ink-soft); max-width: 56ch; }
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--rule); }
.cs-facts dt { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.cs-facts dd { margin-top: 6px; font-weight: 500; }
.cs-tldr { margin-top: 40px; padding: 30px; background: var(--paper-2); border-radius: 6px; }
.cs-tldr .cs-role { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.cs-tldr .cs-role b { font-family: var(--sans); color: var(--ink); }
.cs-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 22px; }
.cs-nums strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 6vw, 72px); line-height: 1; }
.cs-nums span { display: block; margin-top: 8px; color: var(--ink-soft); }
.cs-section { margin-top: 64px; max-width: 760px; }
.cs-section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; margin-bottom: 18px; }
.cs-section h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin: 28px 0 12px; }
.cs-section p { color: var(--ink-soft); font-size: 17px; }
.cs-section .viz { max-width: 640px; }
.cs-note { margin-top: 12px; font-size: 13px; color: var(--ink-faint); }
.cs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 90px; padding-top: 26px; border-top: 1px solid var(--ink); }
.cs-pager a { display: grid; gap: 4px; max-width: 46%; }
.cs-pager a:last-child { text-align: right; justify-items: end; }
.cs-pager small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.cs-pager span { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; }
@media (max-width: 680px) {
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .cs-tldr { padding: 22px 18px; }
}

/* concept diagrams (case pages) */
.viz { position: relative; margin-top: 22px; padding: 18px 16px 32px; border: 1px dashed var(--rule); border-radius: 4px; background: var(--tint); font-size: 13px; }
.viz-cap { position: absolute; right: 12px; bottom: 9px; font-size: 10px; color: var(--ink-faint); }
.vf-arrow { align-self: center; color: var(--ink-faint); font-size: 16px; }
.viz-flow { display: flex; gap: 10px; align-items: stretch; }
.vf-step { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.vf-step small { font-family: var(--sans); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.vf-step em { font-family: var(--sans); font-style: normal; font-size: 12px; color: var(--ink-soft); }
.vf-goal { background: var(--sun); border-color: var(--sun-deep); color: var(--ink-deep); }
.vf-goal em, .vf-goal small { color: var(--ink-deep); }
.viz-funnel { display: grid; gap: 6px; justify-items: center; }
.vfn { width: var(--w); padding: 6px 12px; text-align: center; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-soft); }
.vfn-hot { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.viz-bars { display: grid; gap: 10px; }
.vb-row { display: grid; grid-template-columns: 52px 1fr 30px; gap: 10px; align-items: center; }
.vb-lbl, .vb-val { font-size: 11.5px; color: var(--ink-soft); }
.vb-track { height: 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: 99px; overflow: hidden; }
.vb-bar { width: var(--w); height: 100%; background: var(--ink-faint); }
.vb-hot { background: var(--ink); }
.vb-split { display: flex; margin-top: 4px; border-radius: 3px; overflow: hidden; font-size: 11.5px; }
.vb-auto { width: var(--w); padding: 6px 10px; background: var(--sun); color: var(--ink-deep); }
.vb-rest { flex: 1; padding: 6px 10px; background: var(--paper); color: var(--ink-faint); }
.viz-search { display: grid; gap: 8px; }
.vs-box { padding: 8px 14px; background: var(--paper); border: 1px solid var(--ink); border-radius: 99px; }
.vs-icon { margin-right: 8px; color: var(--ink-faint); }
.vs-res { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-soft); }
.vs-res span { font-size: 11.5px; color: var(--ink-faint); }
.vs-top { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.vs-top span { color: rgba(253, 250, 241, .75); }
.viz-engine { display: flex; gap: 10px; align-items: center; }
.ve-col { flex: 1; display: grid; gap: 8px; }
.ve-node { display: grid; gap: 2px; padding: 10px 12px; text-align: center; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; }
.ve-node em { font-style: normal; font-size: 11px; color: var(--ink-faint); }
.ve-core { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ve-core em { color: rgba(253, 250, 241, .75); }
.ve-yes { background: var(--sun); border-color: var(--sun-deep); color: var(--ink-deep); }
.ve-no { color: var(--ink-faint); }
@media (max-width: 680px) {
  .viz-flow, .viz-engine { flex-direction: column; align-items: stretch; }
  .viz-flow .vf-arrow, .viz-engine .vf-arrow { transform: rotate(90deg); }
}
