/* ==========================================================================
   Version 4 — "Atelier"
   Warm, personal and confident. Deep forest green, cream and a coral accent,
   with a characterful grotesk display face. Projects are colour-banded like
   magazine spreads, the journey is a pinned timeline, and the
   capabilities are a bento of six habits around one question.
   ========================================================================== */
:root {
  --forest: #16302B;
  --forest-2: #1F3F38;
  --cream: #F4EDE0;
  --cream-2: #EADFCB;
  --paper: #FBF7F0;
  --ink: #16302B;
  --ink-2: #3C4F4A;       /* 8.4:1 on cream */
  --muted: #5E6B66;       /* 5.0:1 on cream */
  --coral: #FF7A59;       /* fills; forest text on coral 5.5:1 */
  --coral-text: #B4441F;  /* coral as text on cream 4.9:1 */
  --butter: #F2CF63;
  --sage: #B9D3C2;
  --blush: #F7C9B8;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --g: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --sy: clamp(96px, 12vw, 168px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--coral); color: var(--forest); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--forest); color: var(--cream); padding: 10px 14px; z-index: 99; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }

.display { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; font-variation-settings: "opsz" 96, "wdth" 90; }
.d1 { font-size: clamp(3rem, 8vw, 7.6rem); line-height: .92; }
.d2 { font-size: clamp(2.3rem, 5.4vw, 4.8rem); line-height: .96; }
.d3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.05; letter-spacing: -.03em; }
.hl { background: linear-gradient(transparent 58%, var(--butter) 58%, var(--butter) 92%, transparent 92%); padding: 0 .06em; }
.on-forest .hl { background: none; color: var(--coral); }
.tag { font-family: var(--mono); font-size: .76rem; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 8px; }
.tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.lead { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); }
.on-forest { background: var(--forest); color: var(--cream); }
.on-forest .lead { color: #D6DDD6; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 100px; background: var(--forest); color: var(--cream); font-weight: 600; text-decoration: none; transition: transform .35s var(--ease), background .25s; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); background: var(--coral); color: var(--forest); }
.btn.alt { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); }
.btn.alt:hover { background: var(--forest); color: var(--cream); }
.on-forest .btn { background: var(--coral); color: var(--forest); }
.on-forest .btn:hover { background: var(--cream); }
.on-forest .btn.alt { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
a:hover .arrow { transform: translateX(4px); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(244, 237, 224, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(22, 48, 43, .12); }
.nav .row { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; }
.logo i { width: 34px; height: 34px; border-radius: 50% 50% 50% 8px; background: var(--coral); display: grid; place-items: center; font-style: normal; font-size: .9rem; color: var(--forest); }
.menu { display: flex; gap: 4px; align-items: center; }
.menu a { text-decoration: none; padding: 10px 14px; border-radius: 100px; font-weight: 500; font-size: .95rem; transition: background .2s; }
.menu a:hover { background: var(--cream-2); }
.menu .btn { min-height: 44px; padding: 0 20px; margin-left: 8px; }
.menu .btn:hover { background: var(--coral); }
.burger { display: none; background: var(--forest); color: var(--cream); border: 0; border-radius: 100px; padding: 12px 18px; font: 600 .85rem var(--body); cursor: pointer; }
@media (max-width: 860px) {
  .burger { display: block; }
  .menu { position: fixed; top: 84px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; background: var(--forest); padding: 14px; border-radius: 24px; display: none; }
  .menu.open { display: flex; }
  .menu a { color: var(--cream); font-family: var(--display); font-weight: 700; font-size: 1.6rem; padding: 12px 14px; }
  .menu a:hover { background: var(--forest-2); }
  .menu .btn { margin: 10px 0 0; background: var(--coral); color: var(--forest); justify-content: center; font-family: var(--body); font-size: 1rem; }
}

/* Hero */
.hero { padding: clamp(116px, 13vw, 156px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 24px 0 28px; font-size: clamp(2.6rem, 6.3vw, 6rem); }
.hero .lead { max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.arch { position: relative; }
.arch-frame { border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--coral); aspect-ratio: 4 / 5; }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.sticker { position: absolute; display: grid; place-items: center; text-align: center; border-radius: 50%; font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -.03em; box-shadow: 0 14px 30px -14px rgba(22, 48, 43, .5); animation: bob 6s ease-in-out infinite; }
.sticker small { display: block; font-family: var(--body); font-weight: 500; font-size: .66rem; letter-spacing: .02em; margin-top: 4px; }
.s1 { width: 120px; height: 120px; background: var(--butter); left: -36px; top: 18%; font-size: 2.2rem; transform: rotate(-10deg); }
.s2 { width: 108px; height: 108px; background: var(--forest); color: var(--cream); right: -20px; top: 46%; font-size: 1.9rem; transform: rotate(8deg); animation-delay: -2s; }
.s3 { width: 128px; height: 128px; background: var(--sage); left: 6%; bottom: -34px; font-size: 1.05rem; padding: 14px; transform: rotate(-6deg); animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -8px; } }
/* Sticker micro-animations: pop in, count up, light up the path, spin on hover */
.sticker b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.js .sticker { scale: 0; transition: scale .75s cubic-bezier(.34, 1.56, .64, 1) var(--sd, .5s), rotate .5s var(--ease); }
.js .arch.in .sticker { scale: 1; }
.s1 { --sd: .55s; } .s2 { --sd: .75s; } .s3 { --sd: .95s; }
.js .arch.in .sticker:hover { scale: 1.08; rotate: 12deg; transition-delay: 0s; }
.sticker { cursor: default; }
.s3 .path em { font-style: normal; opacity: .45; transition: opacity .4s var(--ease), color .4s var(--ease); }
.s3 .path em.on { opacity: 1; }
.s3 .path em.done { opacity: 1; color: var(--coral-text); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .arch { max-width: 380px; margin: 24px auto 40px; }
  .s1 { left: 6px; } .s2 { right: 4px; }
}

/* Logos strip */
.strip { background: var(--forest); color: var(--cream); padding: 26px 0 30px; }
.strip .lbl { font-family: var(--mono); font-size: .74rem; color: var(--sage); margin-bottom: 14px; }
/* Career route: TCS → onsite (flight) → Presto Apps → Shell */
.route { display: flex; align-items: flex-end; }
.route li { display: flex; align-items: flex-end; flex: 1 1 auto; min-width: 0; }
.route li:first-child { flex: 0 0 auto; }
.route p { flex: none; }
.route small { display: block; font-family: var(--mono); font-size: .7rem; color: var(--sage); margin-bottom: 4px; }
.route b { display: inline-block; font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 1.7vw, 1.45rem); letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.route .us b { background: var(--coral); color: var(--forest); padding: 3px 12px; border-radius: 100px; font-size: clamp(.95rem, 1.3vw, 1.1rem); }
.route .us small { color: var(--coral); }
.leg { flex: 1 1 24px; min-width: 24px; height: 2px; margin: 0 16px 14px; background: rgba(244, 237, 224, .3); position: relative; }
.leg.fly { height: 38px; background: none; margin-bottom: 8px; }
.leg .arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leg .arc path { fill: none; stroke: var(--coral); stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.leg .plane { position: absolute; left: 50%; top: -12px; width: 26px; height: 26px; margin-left: -13px; fill: var(--coral); animation: fly 3.2s ease-in-out infinite; }
@keyframes fly { 0%, 100% { transform: translate(-6px, 2px) rotate(-6deg); } 50% { transform: translate(6px, -2px) rotate(4deg); } }
@media (max-width: 1180px) {
  .route { flex-direction: column; align-items: flex-start; }
  .route li { flex-direction: column; align-items: flex-start; }
  .leg, .leg.fly { flex: none; width: 2px; height: 22px; min-width: 0; margin: 8px 0 8px 14px; }
  .leg.fly { height: 46px; background: repeating-linear-gradient(var(--coral) 0 5px, transparent 5px 11px); }
  .leg .arc { display: none; }
  .leg .plane { left: -12px; top: 10px; margin: 0; transform: rotate(90deg); animation: none; background: var(--forest); border-radius: 50%; padding: 2px; }
}

/* Section head */
.shead { padding-top: var(--sy); padding-bottom: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.shead h2 { margin-top: 18px; }
@media (max-width: 860px) { .shead { grid-template-columns: 1fr; } }

/* Project bands */
.band { padding: clamp(56px, 8vw, 112px) 0; }
.band.b1 { background: var(--paper); }
.band.b2 { background: var(--sage); }
.band.b3 { background: var(--butter); }
.band.b4 { background: var(--blush); }
.spread { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.band:nth-child(odd) .spread { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } /* odd: the bands sit inside .bands (was :nth-child(even) when .shead was the first child) */
.band:nth-child(odd) .spread-media { order: -1; }
.bignum { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 10vw, 9rem); line-height: .8; letter-spacing: -.06em; color: var(--forest); opacity: .9; }
.spread h3 { margin: 18px 0 12px; }
.spread h3 a { text-decoration: none; }
.spread h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.chips li { font-size: .82rem; font-weight: 500; padding: 6px 12px; border-radius: 100px; background: rgba(22, 48, 43, .08); }
.chips li.proof { background: var(--forest); color: var(--cream); font-weight: 600; }
.solved { counter-reset: s; }
.solved li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 6px; padding: 12px 0; border-top: 2px solid rgba(22, 48, 43, .16); font-size: 1rem; line-height: 1.45; }
.solved li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--forest); color: var(--cream); display: grid; place-items: center; font-family: var(--mono); font-size: .72rem; }
.spread .go { display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 700; text-decoration: none; padding-bottom: 3px; border-bottom: 3px solid var(--forest); }
.spread-media { position: relative; }
.spread-media img { width: 100%; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(22, 48, 43, .45); transition: transform .8s var(--ease); }
.spread-media:hover img { transform: rotate(-1deg) scale(1.01); }
.spread-media .real { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: .7rem; background: var(--forest); color: var(--cream); padding: 5px 10px; border-radius: 100px; }
@media (max-width: 900px) {
  .spread, .band:nth-child(odd) .spread { grid-template-columns: 1fr; }
  .band:nth-child(odd) .spread-media { order: 0; }
}

/* Journey — horizontal contact sheet */
.journey { padding-bottom: var(--sy); }
/* Journey: a story in three acts, with an open fourth act as the hook */
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px); counter-reset: act; }
.act { position: relative; display: flex; flex-direction: column; border-radius: 28px; padding: clamp(24px, 2.6vw, 34px); color: var(--forest); }
.act.a1 { background: var(--coral); } .act.a2 { background: var(--butter); } .act.a3 { background: var(--sage); }
.act + .act::before { content: "→"; position: absolute; left: calc(-1 * clamp(28px, 3vw, 44px) / 2 - 17px); top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--forest); font-weight: 700; z-index: 1; }
.act-n { font-family: var(--mono); font-size: .76rem; display: flex; justify-content: space-between; gap: 10px; }
.act-n span { opacity: .75; }
.act h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 2.8vw, 2.6rem); letter-spacing: -.045em; line-height: 1; margin: 18px 0 10px; }
.act .where { font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.act p { font-size: .98rem; }
.act .badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 100px; background: var(--forest); color: var(--cream); }
.act .badge svg { width: 16px; height: 16px; fill: var(--coral); }
.act .unlock { margin-top: auto; padding-top: 22px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.2; }
.act .unlock::before { content: "★ Superpower unlocked"; display: block; font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: 0; margin-bottom: 6px; padding-top: 14px; border-top: 2px solid rgba(22, 48, 43, .2); }
.act4 { margin-top: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: clamp(26px, 3.4vw, 44px); border-radius: 28px; border: 2px dashed rgba(244, 237, 224, .45); }
.act4 .act-n { justify-content: flex-start; color: var(--coral); }
.act4 h3 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.05em; line-height: .95; margin: 14px 0 12px; }
.act4 p:not(.act-n) { color: rgba(244, 237, 224, .85); max-width: 52ch; }
.act4 .typing { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -.02em; color: var(--cream) !important; margin-bottom: 8px; }
.act4 .act-n span { opacity: 1; }
.turn { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; color: var(--coral); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px; }
.turn span { transition: transform .3s var(--ease); }
.turn:hover span { transform: translateY(4px); }
/* Act IV visual: three written chapters fanned behind a blank fourth page */
.pages { position: relative; width: 260px; height: 230px; margin-right: clamp(0px, 3vw, 40px); }
.pg { position: absolute; left: 50%; top: 50%; width: 150px; height: 196px; margin: -98px 0 0 -75px; border-radius: 18px; padding: 16px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--forest); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .55); transition: transform .6s var(--ease); }
.p1 { background: var(--coral); transform: translateX(-62px) rotate(-14deg); }
.p2 { background: var(--butter); transform: translateX(-24px) rotate(-5deg); }
.p3 { background: var(--sage); transform: translateX(14px) rotate(4deg); }
.p4 { display: flex; flex-direction: column; justify-content: space-between; background: var(--forest-2); border: 2px dashed var(--cream); color: var(--cream); transform: translateX(58px) rotate(11deg); animation: bob 6s ease-in-out infinite; }
.p4 b { color: var(--coral); }
.p4 i { font-style: normal; font-size: 4.4rem; line-height: .8; align-self: center; opacity: .9; }
.p4 em { align-self: flex-start; width: 2px; height: 22px; background: var(--coral); animation: blink 1s steps(1) infinite; }
.act4:hover .p1 { transform: translateX(-74px) rotate(-17deg); }
.act4:hover .p2 { transform: translateX(-30px) rotate(-7deg); }
.act4:hover .p3 { transform: translateX(16px) rotate(5deg); }
.act4-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cursor { display: inline-block; width: 2px; height: 1.05em; margin: 0 6px -3px 2px; background: var(--coral); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 960px) {
  .acts { grid-template-columns: 1fr; }
  .pages { order: -1; width: 220px; height: 180px; margin: 0 auto; transform: scale(.82); }
  .act + .act::before { content: "↓"; left: 50%; top: calc(-1 * clamp(28px, 3vw, 44px) / 2 - 17px); margin: 0 0 0 -17px; }
  .act4 { grid-template-columns: 1fr; }
}

/* Recipe */
/* How I work: bento of six habits around one question */
.habits { padding-bottom: var(--sy); }
/* shared line icons: draw on reveal */
.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.draw .ico * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) calc(var(--d, 0s) + .25s); }
.draw.in .ico * { stroke-dashoffset: 0; }

@keyframes spin { to { transform: rotate(360deg); } }
/* B */
.rb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 14px; }
.rb-method { grid-row: span 3; background: var(--forest); color: var(--cream); border-radius: 28px; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; }
.rb-orbit { position: relative; width: 120px; height: 120px; margin-bottom: auto; }
.rb-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(244,237,224,.35); }
.rb-dot { position: absolute; inset: 0; animation: spin 6s linear infinite; }
.rb-dot::after { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--coral); }
.rb-loop { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; color: var(--coral); }
.rb-k { font-family: var(--mono); font-size: .74rem; color: var(--coral); margin-top: 40px; }
.rb-q { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.03em; line-height: 1.08; margin: 8px 0 14px; }
.rb-p { color: #D6DDD6; font-size: .96rem; }
.rb-tile { position: relative; background: var(--paper); border-radius: 24px; padding: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; overflow: hidden; transition: background .35s var(--ease); }
.rb-tile > .ico { width: 30px; height: 30px; color: var(--coral-text); }
.rb-tile h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 4px; }
.rb-tile p { color: var(--ink-2); font-size: .94rem; }
.rb-tile:has(.rb-stat) { padding-bottom: 50px; } /* room for the faint corner mark so it never sits under text */
.rb-stat { position: absolute; right: 18px; bottom: 10px; font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.05em; color: rgba(22,48,43,.08); transition: color .35s var(--ease), transform .45s var(--ease); }
/* "Real users": a faded crowd instead of a number */
.rb-crowd { display: flex; bottom: 16px; }
.rb-crowd i { position: relative; width: 22px; height: 28px; margin-left: -2px; transition: margin .45s var(--ease), color .35s var(--ease); color: rgba(22,48,43,.08); }
.rb-crowd i::before { content: ""; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: currentColor; }
.rb-crowd i::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 13px; border-radius: 11px 11px 3px 3px; background: currentColor; }
.rb-crowd i:nth-child(odd) { transform: translateY(-3px); }
.rb-tile:hover .rb-crowd i { color: var(--coral); margin-left: 3px; }
.rb-tile:hover .rb-crowd i:nth-child(even) { color: var(--butter); }
.rb-tile:hover { background: #FFF; }
.rb-tile:hover .rb-stat { color: var(--coral); transform: translateY(-4px); }
@media (max-width: 960px) { .rb-grid { grid-template-columns: 1fr 1fr; } .rb-method { grid-row: auto; grid-column: 1 / -1; } .rb-orbit { width: 90px; height: 90px; } }
@media (max-width: 600px) { .rb-grid { grid-template-columns: 1fr; } }


/* Section ribbons: scrolling, tilted bands that mark a new chapter */
.ribbon { position: relative; z-index: 3; width: 110%; margin: -28px 0 -28px -5%; padding: 13px 0; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 18px 30px -20px rgba(22, 48, 43, .45); }
.ribbon.r-coral { background: var(--coral); color: var(--forest); }
.ribbon.r-butter { background: var(--butter); color: var(--forest); transform: rotate(1.6deg); }
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.r-butter .ribbon-track { animation-direction: reverse; animation-duration: 44s; }
.ribbon-track > div { display: flex; align-items: center; flex: none; }
.ribbon span { font-family: var(--display); font-weight: 800; font-size: clamp(1rem, 1.7vw, 1.4rem); letter-spacing: -.025em; white-space: nowrap; padding: 0 18px; }
.ribbon i { font-style: normal; font-size: clamp(.8rem, 1.2vw, 1rem); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }
.about-sec { background: #F6E4D7; padding-top: 12px; }
.about-sec .rb-tile { background: var(--paper); }

/* About: a polaroid deck that shuffles */
.deck .deck-cards { position: relative; aspect-ratio: 4 / 5.1; margin: 10px 14px 0; }
.pc { position: absolute; inset: 0; margin: 0; padding: 12px 12px 58px; background: #FFFEFB; border-radius: 6px; box-shadow: 0 22px 40px -24px rgba(22, 48, 43, .55); transition: transform .7s var(--ease), opacity .5s var(--ease); cursor: pointer; }
.pc img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.pc figcaption { position: absolute; left: 12px; right: 12px; bottom: 18px; text-align: center; font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: -.01em; color: var(--forest); }
.pc[data-i="0"] { z-index: 5; transform: rotate(-2.5deg); }
.pc[data-i="1"] { z-index: 4; transform: translate(14px, 6px) rotate(4deg); }
.pc[data-i="2"] { z-index: 3; transform: translate(-14px, 10px) rotate(-6deg); }
.pc[data-i="3"] { z-index: 2; transform: translate(8px, 14px) rotate(7deg); }
.pc[data-i="4"] { z-index: 1; transform: translate(-6px, 16px) rotate(-9deg); }
.pc[data-i="1"] figcaption, .pc[data-i="2"] figcaption, .pc[data-i="3"] figcaption, .pc[data-i="4"] figcaption { opacity: 0; }
.pc.fling { z-index: 6; transform: translate(-70%, -6%) rotate(-16deg); }
.deck .spin-badge { z-index: 7; }
.deck-next { display: inline-flex; align-items: center; gap: 8px; margin: 34px auto 0; position: relative; left: 50%; transform: translateX(-50%); padding: 10px 18px; border: 0; border-radius: 100px; background: var(--forest); color: var(--cream); font: 600 .9rem var(--body); cursor: pointer; transition: background .3s; }
.deck-next:hover { background: var(--forest-2); }
.deck-next span { display: inline-block; transition: transform .5s var(--ease); }
.deck-next:hover span { transform: rotate(180deg); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: var(--sy); }
.about-photo { position: sticky; top: 110px; }
.about-hi { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.3; letter-spacing: -.02em; max-width: 34ch; }
.about-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.about-vals .rb-tile { min-height: 0; }
.about-vals .rb-tile:hover { background: #FFF; }
.beyond { margin-top: clamp(28px, 4vw, 44px); }
.beyond ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.beyond li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 100px; background: var(--paper); font-size: .94rem; font-weight: 500; }
.beyond .ico { width: 20px; height: 20px; color: var(--coral-text); }
/* Playful touches (About) */
.fun .rb-tile { position: relative; overflow: visible; transform: rotate(var(--tilt, -1deg)); transition: transform .45s var(--ease), box-shadow .45s var(--ease); box-shadow: 0 16px 30px -24px rgba(22, 48, 43, .45); }
.fun .rb-tile:nth-child(2) { --tilt: 1.2deg; } .fun .rb-tile:nth-child(3) { --tilt: .8deg; } .fun .rb-tile:nth-child(4) { --tilt: -1.4deg; }
.fun .rb-tile:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 24px 40px -24px rgba(22, 48, 43, .5); }
.fun .rb-tile::before { content: ""; position: absolute; top: -10px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 3px; background: rgba(242, 207, 99, .75); transform: rotate(-3deg); }
.fun .rb-tile:nth-child(2)::before { background: rgba(185, 211, 194, .85); transform: rotate(4deg); }
.fun .rb-tile:nth-child(3)::before { background: rgba(247, 201, 184, .9); transform: rotate(-5deg); }
.fun .rb-tile:nth-child(4)::before { background: rgba(255, 122, 89, .55); transform: rotate(2deg); }
.fun .rb-tile > .ico { width: 46px; height: 46px; padding: 10px; border-radius: 50%; color: var(--forest); background: var(--butter); }
.fun .rb-tile:nth-child(2) > .ico { background: var(--sage); } .fun .rb-tile:nth-child(3) > .ico { background: var(--blush); } .fun .rb-tile:nth-child(4) > .ico { background: var(--coral); }
.fun .rb-tile:hover > .ico { animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }
.about-vals.fun { gap: 22px 18px; margin-top: clamp(36px, 4vw, 52px); }
.spin-badge { position: absolute; right: -18px; top: 18px; width: 118px; height: 118px; border-radius: 50%; background: var(--forest); color: var(--cream); display: grid; place-items: center; box-shadow: 0 14px 30px -14px rgba(22, 48, 43, .6); }
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.spin-badge text { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; fill: var(--cream); text-transform: uppercase; }
.spin-badge span { font-size: 1.6rem; color: var(--coral); }
.beyond li { transition: transform .35s var(--ease); }
.beyond li:nth-child(1) { background: var(--blush); } .beyond li:nth-child(2) { background: var(--sage); } .beyond li:nth-child(3) { background: var(--butter); }
.beyond li:hover { transform: translateY(-3px) rotate(-2deg); }
@media (max-width: 900px) { .spin-badge { right: 10px; top: 10px; width: 96px; height: 96px; } .about { grid-template-columns: 1fr; } .about-photo { position: relative; top: 0; max-width: 360px; } }
@media (max-width: 600px) { .about-vals { grid-template-columns: 1fr; } }

/* Contact */
.contact { padding: var(--sy) 0 40px; text-align: left; }
.contact h2 { margin: 22px 0 26px; max-width: 12ch; }
.contact .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(80px, 10vw, 140px); padding-top: 20px; border-top: 1px solid rgba(244, 237, 224, .2); font-family: var(--mono); font-size: .74rem; color: var(--sage); }
.foot a { text-decoration: none; }

/* ---------- Case study ---------- */
.cs-top { padding: clamp(116px, 13vw, 150px) 0 0; }
.cs-top h1 { margin: 20px 0 24px; max-width: 15ch; }
.cs-top .lead { max-width: 56ch; }
.facts-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.facts-row span { font-size: .86rem; padding: 8px 14px; border-radius: 100px; background: var(--paper); }
.facts-row b { font-weight: 600; margin-right: 6px; color: var(--coral-text); }
.cover { margin-top: clamp(40px, 6vw, 72px); background: var(--sage); border-radius: 32px; padding: clamp(18px, 4vw, 56px); }
.cover img { border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(22, 48, 43, .5); }
/* Case study: severity chart + personas (rebuilt in the site theme) */
.sev, .personas { margin-top: 32px; padding: clamp(22px, 3.4vw, 40px); border-radius: 28px; background: var(--paper); }
.sev-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.sev-head h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.04em; line-height: 1.05; margin: 10px 0 6px; }
.sev-sub { font-size: .95rem; color: var(--ink-2); max-width: 54ch; }
.sev-scale { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.sev-scale i { width: 70px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--sage), var(--butter), var(--coral)); }
.sev-rows li { display: grid; grid-template-columns: 26px minmax(0, 15rem) minmax(0, 1fr) 3rem; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(22, 48, 43, .1); }
.sev-rows .ico { width: 24px; height: 24px; color: var(--coral-text); }
.sev-label { font-weight: 600; font-size: .96rem; line-height: 1.3; }
.sev-label small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.sev-bar { position: relative; height: 14px; border-radius: 14px; background: var(--cream-2); overflow: hidden; }
.sev-bar b { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: 14px; background: var(--butter); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) .2s; }
.sev.in .sev-bar b { transform: scaleX(1); }
.sev-row.hi .sev-bar b { background: var(--coral); } .sev-row.lo .sev-bar b { background: var(--forest); }
.sev-rows li:nth-child(2) .sev-bar b { transition-delay: .3s; } .sev-rows li:nth-child(3) .sev-bar b { transition-delay: .4s; } .sev-rows li:nth-child(4) .sev-bar b { transition-delay: .5s; } .sev-rows li:nth-child(5) .sev-bar b { transition-delay: .6s; } .sev-rows li:nth-child(6) .sev-bar b { transition-delay: .7s; }
.sev-val { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.04em; text-align: right; }
.sev-row.hi .sev-val { color: var(--coral-text); }
.sev-foot { margin-top: 18px; padding: 14px 18px; border-radius: 16px; background: var(--forest); color: var(--cream); font-size: .95rem; }
.sev-foot b { color: var(--coral); }
@media (max-width: 700px) { .sev-head { flex-direction: column; align-items: flex-start; } .sev-rows li { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px 12px; } .sev-bar { grid-column: 2 / -1; grid-row: 2; } }
.per-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.per { display: flex; flex-direction: column; border-radius: 22px; padding: 22px; background: var(--cream); }
.per-top { display: flex; align-items: center; gap: 12px; }
.per-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--forest); flex: none; }
.per.pr .per-av { background: var(--coral); } .per.da .per-av { background: var(--butter); } .per.fa .per-av { background: var(--sage); }
.per h4 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; line-height: 1; }
.per-role { font-family: var(--mono); font-size: .72rem; color: var(--coral-text); margin-top: 4px; }
.per-ctx { margin-top: 16px; font-size: .95rem; color: var(--ink-2); }
.per-ctx b { color: var(--ink); }
.per blockquote { position: relative; margin: 16px 0 0; padding: 14px 16px 14px 40px; border-radius: 16px; background: var(--paper); font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.35; letter-spacing: -.01em; }
.per blockquote::before { content: "“"; position: absolute; left: 12px; top: 2px; font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--coral); }
.per ul { margin-top: auto; padding-top: 16px; }
.per li { position: relative; padding: 7px 0 7px 18px; border-top: 1px solid rgba(22, 48, 43, .1); font-size: .9rem; }
.per li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.per.da li::before { background: #C9A227; } .per.fa li::before { background: #5E8C77; }
.per-foot { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px 32px; align-items: center; padding: 20px 24px; border-radius: 18px; background: var(--forest); color: #D6DDD6; font-size: .95rem; }
.per-punch { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.2; color: var(--cream); }
.per-punch span { color: var(--coral); }
@media (max-width: 900px) { .per-grid { grid-template-columns: 1fr; } .per-foot { grid-template-columns: 1fr; } }


/* Severity chart: extra motion (count-up via JS, shine, hover focus, summary reveal) */
.sev-bar b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); }
.sev.in .sev-bar b::after { animation: shine 1.1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * .1s + 1.2s); }
@keyframes shine { to { transform: translateX(120%); } }
.sev-rows li { --i: 0; transition: opacity .3s var(--ease); }
.sev-rows li:nth-child(2) { --i: 1; } .sev-rows li:nth-child(3) { --i: 2; } .sev-rows li:nth-child(4) { --i: 3; } .sev-rows li:nth-child(5) { --i: 4; } .sev-rows li:nth-child(6) { --i: 5; }
.sev-bar { transition: height .3s var(--ease); }
@media (hover: hover) { .sev-rows:hover li { opacity: .4; } .sev-rows li:hover { opacity: 1; } .sev-rows li:hover .sev-bar { height: 20px; } }
.sev-val { font-variant-numeric: tabular-nums; }
.js .sev .sev-foot { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease) 1.6s, transform .6s var(--ease) 1.6s; }
.js .sev.in .sev-foot { opacity: 1; transform: none; }

/* Systems thinking: before / after */
.ba { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba-card { border-radius: 26px; padding: clamp(22px, 3vw, 34px); }
.ba-card.before { background: var(--paper); }
.ba-card.after { background: var(--forest); color: var(--cream); }
.ba-k { font-family: var(--mono); font-size: .74rem; color: var(--coral-text); }
.after .ba-k { color: var(--coral); }
.ba-card h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -.035em; line-height: 1.1; margin: 8px 0 22px; }
.ba-card .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ba-hub { display: grid; gap: 14px; }
.ba-src { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-src li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--cream); font-size: .88rem; font-weight: 500; }
.ba-src li .ico { color: var(--coral-text); }
.ba-src li:last-child { background: var(--blush); }
.ba-who { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 2px dashed var(--coral); }
.ba-who::before { content: "↓ ↓ ↓"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 0 8px; background: var(--paper); color: var(--coral-text); font-size: .8rem; letter-spacing: .4em; }
.ba-who .ico { grid-row: span 2; width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--coral); color: var(--forest); }
.ba-who b { font-family: var(--display); font-size: 1.05rem; }
.ba-who small { font-size: .85rem; color: var(--ink-2); }
.ba-out { margin-top: 16px; font-size: .9rem; color: var(--ink-2); }
.ba-flow { counter-reset: f; }
.ba-flow li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-bottom: 18px; }
.ba-flow li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 2px; border-left: 2px dashed rgba(244, 237, 224, .3); }
.ba-flow .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--forest-2); color: var(--sage); }
.ba-flow li.gate .ico { background: var(--coral); color: var(--forest); }
.ba-flow b { display: block; font-family: var(--display); font-size: 1.05rem; padding-top: 2px; }
.ba-flow li.gate b { color: var(--coral); }
.ba-flow span { font-size: .9rem; color: #D6DDD6; }
.ba figcaption { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--muted); }
.ba figcaption .t { font-family: var(--mono); font-size: .7rem; color: var(--coral-text); }
@media (max-width: 860px) { .ba { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .ba-src { grid-template-columns: 1fr; } }

/* Number cards with an icon */
.nums.with-ico > div { position: relative; }
.nico { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; fill: none; stroke: var(--coral-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* User flows + IA (rebuilt minimal) */
.flows, .ia { margin-top: 32px; padding: clamp(22px, 3.4vw, 40px); border-radius: 28px; background: var(--paper); }
.fl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.fl-head h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.04em; }
.fl-head p { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.fl-key { width: 14px; height: 14px; border-radius: 4px; background: var(--coral); flex: none; }
.fl-row { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(22, 48, 43, .1); }
.fl-name { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.fl-name span { grid-row: span 2; font-family: var(--mono); font-size: .72rem; color: var(--coral-text); padding-top: 4px; }
.fl-name b { font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em; }
.fl-name small { font-size: .82rem; color: var(--muted); }
.fl-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.fl-steps li { position: relative; font-size: .86rem; font-weight: 500; padding: 6px 12px; border-radius: 100px; background: var(--cream); white-space: nowrap; }
.fl-steps li + li::before { content: "→"; position: absolute; left: -19px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.fl-steps li.g { background: var(--coral); font-weight: 700; color: var(--forest); }
.ia-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ia-m { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 18px; background: var(--cream); }
.ia-m b { font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.05em; line-height: 1; color: var(--coral-text); }
.ia-n { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.02em; margin-top: 8px; }
.ia-s { font-size: .8rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.flows figcaption, .ia figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: .86rem; color: var(--muted); }
.flows figcaption .t, .ia figcaption .t { font-family: var(--mono); font-size: .7rem; color: var(--coral-text); white-space: nowrap; }
@media (max-width: 900px) { .fl-row { grid-template-columns: 1fr; gap: 10px; } .ia-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ia-grid { grid-template-columns: 1fr; } .flows figcaption, .ia figcaption { flex-direction: column; } }

/* Shared site footer */
.site-foot { padding: var(--sy) 0 32px; }
.site-foot h2 { margin: 22px 0 26px; max-width: 20ch; }
.site-foot .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sf-bar { margin-top: clamp(80px, 10vw, 130px); padding-top: 22px; border-top: 1px solid rgba(244, 237, 224, .2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.sf-bar nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.sf-bar a { color: var(--cream); text-decoration: none; font-size: .95rem; }
.sf-bar nav a:hover { color: var(--coral); }
.sf-bar p { display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--mono); font-size: .74rem; color: var(--sage); align-items: center; }
.sf-bar p a { font-family: var(--mono); font-size: .74rem; color: var(--sage); }

/* Case studies: more case studies strip */
.more-cs { padding: var(--sy) 0; }
.mc-head { margin-bottom: clamp(28px, 4vw, 44px); }
.mc-head h2 { margin-top: 16px; }
.mc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mc { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.mc-img { position: relative; display: block; border-radius: 20px; overflow: hidden; background: var(--paper); }
.mc-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.mc:hover .mc-img img { transform: scale(1.04); }
.mc-next { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: .7rem; padding: 5px 11px; border-radius: 100px; background: var(--coral); color: var(--forest); }
.mc-meta { font-family: var(--mono); font-size: .72rem; color: var(--coral-text); margin-top: 16px; }
.mc-t { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -.025em; line-height: 1.2; margin-top: 6px; }
.mc:hover .mc-t { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 900px) { .mc-grid { grid-template-columns: 1fr; gap: 28px; } }

/* In-page prototype media (image or video) */
.media-fig { margin-top: 32px; }
.media-card { position: relative; padding: clamp(14px, 3vw, 36px); border-radius: 28px; background: var(--paper); }
.media-card > img, .media-card video { display: block; width: 100%; height: auto; border-radius: 16px; }
.media-card .vid-tag { left: clamp(22px, 3.6vw, 46px); top: clamp(22px, 3.6vw, 46px); }
.media-card .vid-toggle { right: clamp(22px, 3.6vw, 46px); bottom: clamp(22px, 3.6vw, 46px); }
.media-fig figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.media-fig figcaption b { color: var(--ink); }
.media-fig figcaption .t { font-family: var(--mono); font-size: .7rem; color: var(--coral-text); white-space: nowrap; padding-top: 3px; }
@media (max-width: 600px) { .media-fig figcaption { flex-direction: column; gap: 4px; } }

/* Prototype filmstrip */
.film { margin-top: 28px; }
.film-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 18px; scrollbar-width: none; }
.film-track::-webkit-scrollbar { display: none; }
.film-track:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; }
.film-c { flex: 0 0 clamp(250px, 26vw, 340px); scroll-snap-align: start; margin: 0; }
.film-g { display: inline-block; font-family: var(--mono); font-size: .7rem; padding: 4px 10px; border-radius: 100px; background: var(--paper); color: var(--coral-text); margin-bottom: 10px; }
.film-sh { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #FFF; cursor: zoom-in; box-shadow: 0 14px 30px -22px rgba(22, 48, 43, .55); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.film-sh:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(22, 48, 43, .6); }
.film-sh img { display: block; width: 100%; aspect-ratio: 1400 / 910; object-fit: cover; object-position: top; }
.film-c figcaption { margin-top: 10px; }
.film-c figcaption b { display: block; font-family: var(--display); font-weight: 700; font-size: .98rem; letter-spacing: -.02em; }
.film-c figcaption span { display: block; margin-top: 2px; font-size: .84rem; line-height: 1.45; color: var(--ink-2); }
.film-bar { display: block; height: 3px; border-radius: 3px; background: var(--cream-2); overflow: hidden; }
.film-bar i { display: block; height: 100%; width: 20%; border-radius: 3px; background: var(--coral); transition: width .15s linear; }
.film-hint { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: 12px; }
dialog.lightbox { padding: 0; border: 0; border-radius: 16px; max-width: min(1200px, 94vw); background: #FFF; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
dialog.lightbox::backdrop { background: rgba(22, 48, 43, .72); }
dialog.lightbox img { display: block; width: 100%; height: auto; max-height: 84vh; object-fit: contain; }
dialog.lightbox p { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-weight: 600; font-size: .92rem; }
dialog.lightbox button { border: 0; background: none; font: inherit; cursor: pointer; color: var(--coral-text); }

/* Smaller cover image, centred in its colour band */
.cover-sm { padding-block: clamp(18px, 3vw, 40px); }
.cover-sm img { width: min(100%, 720px); margin: 0 auto; }

/* Cover: three phone recordings side by side */
.cover.phones { position: relative; padding-block: clamp(22px, 3.4vw, 44px); }
.ph-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 40px); max-width: 860px; margin: 0 auto; }
.ph { margin: 0; text-align: center; }
.ph-frame { padding: 7px; border-radius: 34px; background: var(--forest); box-shadow: 0 26px 50px -28px rgba(22, 48, 43, .6); }
.ph { cursor: pointer; transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1); opacity: .5; }
.ph.is-on { opacity: 1; transform: translateY(-8px); }
.ph-frame { transition: box-shadow .45s ease; }
.ph.is-on .ph-frame { box-shadow: 0 0 0 3px var(--coral), 0 30px 56px -26px rgba(22, 48, 43, .7); }
.ph figcaption { transition: color .3s ease; }
.ph.is-on figcaption { color: var(--coral-text); }
.ph.is-on figcaption::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--coral); vertical-align: .1em; }
.ph:hover { opacity: .85; }
.ph.is-on:hover { opacity: 1; }
.ph:focus-visible { outline: 2px solid var(--forest); outline-offset: 6px; border-radius: 36px; }
@media (prefers-reduced-motion: reduce) { .ph, .ph.is-on { transition: none; transform: none; } }
.ph-frame video { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 27px; background: #FFF; }
.ph figcaption { margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.02em; color: var(--forest); }
.ph-toggle { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border: 0; border-radius: 100px; background: var(--forest); color: var(--cream); font: 600 .82rem var(--body); cursor: pointer; }
.ph-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.ph-toggle[data-state="playing"] .i-play, .ph-toggle[data-state="paused"] .i-pause { display: none; }
@media (max-width: 700px) {
  .ph-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px; padding: 12px 12% 4px; }
  .ph-row::-webkit-scrollbar { display: none; }
  .ph { flex: 0 0 72%; scroll-snap-align: center; }
  .ph-toggle { right: 10px; bottom: 10px; }
}
/* Filmstrip: portrait phone screens */
.film.sketches .film-sh img { aspect-ratio: 4 / 3; object-fit: contain; object-position: center; background: #FFF; }
.film.portrait .film-c { flex-basis: clamp(150px, 15vw, 190px); }
.film.portrait .film-sh { border-radius: 18px; }
.film.portrait .film-sh img { aspect-ratio: 360 / 779; }
dialog.lightbox.tall { width: min(430px, 94vw); max-height: 92vh; overflow-y: auto; }
dialog.lightbox.tall img { max-height: none; }
dialog.lightbox.tall p { position: sticky; bottom: 0; background: #FFF; box-shadow: 0 -1px 0 rgba(22, 48, 43, .1); }

/* Cover: two-video carousel */
.cv-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.cv-track::-webkit-scrollbar { display: none; }
.cv-slide { flex: 0 0 100%; scroll-snap-align: start; }
.cv-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.cv-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: rgba(22, 48, 43, .25); cursor: pointer; transition: width .35s var(--ease), background .3s; }
.cv-dots button[aria-current="true"] { width: 28px; background: var(--forest); }

/* Theme-matched rebuilds of old artifacts and diagrams (other case studies) */
.viz { margin-top: 32px; }
.viz > div, .viz > ol { padding: clamp(20px, 3.2vw, 36px); border-radius: 28px; background: var(--paper); }
.viz figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: .86rem; color: var(--muted); }
.viz figcaption .t { font-family: var(--mono); font-size: .7rem; color: var(--coral-text); white-space: nowrap; }
.viz .ico, .cards .ico, .chain-notes .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* paths: three ways in -> one checkout */
.paths { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .8fr); gap: 20px; align-items: center; }
.paths-in { display: grid; gap: 10px; }
.paths-in li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--cream); }
.paths-in .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--sage); color: var(--forest); }
.paths-in li.warn .ico { background: var(--blush); }
.paths-in b { display: block; font-family: var(--display); font-size: 1rem; letter-spacing: -.02em; }
.paths-in span { display: block; font-size: .86rem; color: var(--ink-2); }
.paths-in em { display: block; margin-top: 4px; font-style: normal; font-family: var(--mono); font-size: .66rem; color: var(--coral-text); }
.paths-arrow { font-size: 1.8rem; color: var(--coral-text); }
.paths-out { display: grid; justify-items: start; gap: 6px; padding: 24px; border-radius: 20px; background: var(--forest); color: var(--cream); }
.paths-out .ico { width: 30px; height: 30px; color: var(--coral); }
.paths-out b { font-family: var(--display); font-size: 1.5rem; letter-spacing: -.03em; }
.paths-out span { font-size: .9rem; color: var(--sage); }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } .paths-arrow { transform: rotate(90deg); justify-self: center; } }
/* chain: dependencies */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; }
.chain li { position: relative; padding: 10px 16px; border-radius: 100px; background: var(--cream); font-weight: 600; font-size: .95rem; }
.chain li + li::before { content: "→"; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.chain li.key { background: var(--forest); color: var(--cream); }
.chain-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.chain-notes li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed rgba(180, 68, 31, .35); font-size: .9rem; color: var(--ink-2); }
.chain-notes .ico { color: var(--coral-text); margin-top: 1px; }
.chain-notes b { color: var(--ink); }
@media (max-width: 760px) { .chain-notes { grid-template-columns: 1fr; } }
/* challenges */
/* Merchant and consumer challenges: one shared system. Chip style carries meaning: dashed = lacked, butter = wanted, tilted = fragmented */
.chal-key { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.chal-key span { display: inline-flex; align-items: center; gap: 7px; }
.chal-key i { width: 22px; height: 12px; border-radius: 100px; }
.chal-key .k-m { border: 1.5px dashed rgba(22, 48, 43, .45); }
.chal-key .k-w { background: var(--butter); }
.chal-key .k-f { background: var(--paper); box-shadow: 0 0 0 1px rgba(22, 48, 43, .15); rotate: -6deg; }
.chal { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chal-r { display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.chal-c { padding: 24px; border-radius: 22px; background: var(--cream); }
.chal-c.cons { background: #FCE3D9; }
.chal-k { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.chal-k .ico { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--butter); color: var(--forest); flex: none; }
.chal-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid rgba(22, 48, 43, .12); }
.chal-row:first-of-type { margin-top: 16px; }
.chal-l { font-family: var(--mono); font-size: .72rem; color: var(--coral-text); padding-top: 7px; }
.chal-l small { display: block; font-size: 1em; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.chal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chal-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 100px; font-size: .88rem; line-height: 1.3; border: 1.5px solid transparent; }
.chal-chips .ico { width: 16px; height: 16px; flex: none; color: var(--coral-text); }
.chal-chips.miss li { border: 1.5px dashed rgba(22, 48, 43, .45); }
.chal-chips.want li { background: var(--butter); }
.chal-chips.want .ico { color: var(--forest); }
.chal-chips.frag { gap: 12px 14px; padding: 2px 0; }
.chal-chips.frag li { background: var(--paper); box-shadow: 0 8px 14px -12px rgba(22, 48, 43, .6); rotate: var(--r, 0deg); }
.chal-foot { display: flex; align-items: center; padding: 20px 22px; border-radius: 22px; background: var(--forest); color: #D6DDD6; font-size: .95rem; }
.chal-foot b { color: var(--coral); }
@media (max-width: 860px) { .chal { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .chal-row { grid-template-columns: 1fr; gap: 8px; } .chal-l { padding-top: 0; } .chal-c { padding: 20px 18px; } }
/* hub */
.hub { display: grid; grid-template-columns: 1fr 1.1fr 1fr; grid-template-rows: auto auto; gap: 12px; align-items: stretch; }
.hub-core { grid-column: 2; grid-row: 1 / 3; display: grid; place-content: center; text-align: center; gap: 6px; padding: 24px; border-radius: 22px; background: var(--forest); color: var(--cream); }
.hub-core b { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.03em; }
.hub-core span { font-size: .9rem; color: var(--sage); }
.hub-c { display: grid; align-content: start; gap: 4px; padding: 18px; border-radius: 18px; background: var(--cream); }
.hub-c .ico { width: 26px; height: 26px; color: var(--coral-text); margin-bottom: 6px; }
.hub-c b { font-family: var(--display); font-size: 1.1rem; letter-spacing: -.02em; }
.hub-c span { font-size: .88rem; color: var(--ink-2); }
.hub-c em { font-style: normal; font-family: var(--mono); font-size: .68rem; color: var(--coral-text); margin-top: 6px; }
.hub-c.key { background: var(--blush); }
.hub > .hub-c:nth-child(1) { grid-column: 1; grid-row: 1; } .hub > .hub-c:nth-child(2) { grid-column: 3; grid-row: 1; }
.hub > .hub-c:nth-child(4) { grid-column: 1; grid-row: 2; } .hub > .hub-c:nth-child(5) { grid-column: 3; grid-row: 2; }
.hub-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; border: 1.5px dashed rgba(180, 68, 31, .35); font-size: .9rem; color: var(--ink-2); }
.hub-note .ico { color: var(--coral-text); }
@media (max-width: 760px) { .hub { grid-template-columns: 1fr 1fr; } .hub-core { grid-column: 1 / -1; grid-row: auto; order: -1; } .hub > .hub-c:nth-child(n) { grid-column: auto; grid-row: auto; } }
/* lanes: booking lifecycle */
/* Validation (chef): a three-step story, tested -> looked for -> changed, worded from the Framer page (2026-11-25) */
.vf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 28px; }
.vf-c { position: relative; display: grid; align-content: start; gap: 14px; padding: 24px; border-radius: 24px; background: var(--paper); }
.vf-c:not(:last-child)::after { content: "→"; position: absolute; right: -27px; top: 50%; translate: 0 -50%; font-family: var(--display); font-size: 1.4rem; color: var(--coral-text); }
.vf-h { display: flex; align-items: center; gap: 12px; }
.vf-h .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--butter); color: var(--forest); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vf-c:nth-child(2) .vf-h .ico { background: var(--blush); }
.vf-h small { display: block; font-family: var(--mono); font-size: .7rem; color: var(--coral-text); }
.vf-h b { font-family: var(--display); font-size: 1.2rem; letter-spacing: -.025em; }
.vf-c ul { display: grid; gap: 0; }
.vf-c li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid rgba(22, 48, 43, .1); font-size: .93rem; line-height: 1.35; }
.vf-c li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.vf-c.out { background: var(--forest); color: var(--cream); }
.vf-c.out .vf-h .ico { background: var(--coral); color: var(--forest); }
.vf-c.out .vf-h small { color: var(--coral); }
.vf-c.out li { border-color: rgba(244, 237, 224, .15); font-weight: 600; }
.vf-c.out li::before { content: "✓"; width: auto; height: auto; background: none; top: 8px; left: 0; color: var(--coral); font-weight: 700; }
@media (max-width: 860px) {
  .vf { grid-template-columns: 1fr; gap: 30px; }
  .vf-c:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -32px; translate: -50% 0; }
}
/* Shared booking lifecycle (chef): an auto-playing, steppable state track with three role cards that share one status (chosen option A, 2026-11-25) */
.bk { padding: clamp(20px, 3.2vw, 36px); border-radius: 28px; background: var(--paper); }
.bk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 22px; }
.bk-now { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.bk-now b { font-family: var(--display); font-size: 1.5rem; letter-spacing: -.03em; color: var(--forest); margin-left: 6px; vertical-align: -2px; }
.bk-ctl { display: flex; gap: 6px; }
.bk-ctl button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 100px; background: var(--forest); color: var(--cream); font: 600 .82rem var(--body); cursor: pointer; }
.bk-ctl button.ghost { background: var(--cream); color: var(--forest); padding: 0 12px; }
.bk-ctl svg { width: 14px; height: 14px; fill: currentColor; }
.bk-ctl [data-state="playing"] .i-play, .bk-ctl [data-state="paused"] .i-pause { display: none; }
/* track */
.bk-track { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-track::before, .bk-fill { content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 21px; height: 4px; border-radius: 4px; background: var(--cream-2); }
.bk-fill { right: auto; width: calc((100% - 100% / 7) * var(--p, 0)); background: var(--coral); transition: width .6s var(--ease); z-index: 0; }
.bk-st { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink-2); }
.bk-st i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--cream); border: 3px solid var(--paper); font-style: normal; font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--forest); transition: background .35s, transform .35s var(--ease), box-shadow .35s; }
.bk-st span { font-size: .82rem; font-weight: 600; text-align: center; line-height: 1.2; }
.bk-st.done i { background: var(--sage); }
.bk-st.on i { background: var(--coral); transform: scale(1.14); box-shadow: 0 0 0 6px rgba(255, 122, 89, .22); }
.bk-st.on span { color: var(--coral-text); }
.bk-st:focus-visible i { outline: 2px solid var(--forest); outline-offset: 3px; }
/* roles */
.bk-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.bk-r { position: relative; display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 20px; background: var(--cream); transition: background .35s, transform .35s var(--ease), box-shadow .35s; }
.bk-r-h { display: flex; align-items: center; gap: 10px; }
.bk .bk-r-h .ico { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--paper); color: var(--forest); }
.bk-r-h b { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.02em; }
.bk-tag { margin-left: auto; font-family: var(--mono); font-size: .7rem; padding: 4px 9px; border-radius: 100px; background: var(--paper); color: var(--muted); }
.bk-pill { justify-self: start; font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 100px; background: var(--paper); color: var(--forest); }
.bk-pill::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--coral); vertical-align: 1px; }
.bk-do { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; min-height: 1.3em; }
.bk-do.idle { font-family: var(--body); font-weight: 400; font-size: .9rem; color: var(--muted); letter-spacing: 0; }
.bk-r.is-acting { background: var(--butter); transform: translateY(-4px); box-shadow: 0 16px 30px -22px rgba(22, 48, 43, .6); }
.bk-r.is-acting .bk-tag { background: var(--forest); color: var(--cream); }
.bk-r.admin.acts { background: var(--sage); }
.bk-swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bk-note { margin-top: 16px; font-size: .86rem; color: var(--ink-2); }
@media (max-width: 760px) {
  .bk-roles { grid-template-columns: 1fr; }
  .bk-st span { display: none; }
  .bk-st i { width: 36px; height: 36px; font-size: .86rem; }
  .bk-track::before, .bk-fill { top: 16px; }
}
@media (max-width: 360px) { .bk-st i { width: 32px; height: 32px; border-width: 2px; } .bk-track { gap: 2px; } }
.lanes { overflow-x: auto; }
.lanes-grid { display: grid; grid-template-columns: 6.5rem repeat(7, minmax(84px, 1fr)); gap: 10px 8px; align-items: center; min-width: 720px; }
.ln-k { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.ln-a { text-align: center; font-size: .8rem; color: var(--coral-text); font-weight: 600; }
.ln-s { text-align: center; padding: 9px 6px; border-radius: 100px; background: var(--cream); font-weight: 600; font-size: .86rem; }
.ln-s.key { background: var(--coral); color: var(--forest); } .ln-s.end { background: var(--forest); color: var(--cream); }
.ln-note { margin-top: 14px; font-size: .86rem; color: var(--ink-2); }
/* cards (findings, decisions, features) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 0; }
.viz > .cards { margin-top: 0; }
.cards li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; background: var(--paper); }
.viz .cards li { background: var(--cream); }
.cards .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--butter); color: var(--forest); margin-bottom: 6px; }
.cards li:nth-child(3n+2) .ico { background: var(--sage); } .cards li:nth-child(3n+3) .ico { background: var(--blush); }
.cd-n { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: .7rem; color: var(--coral-text); }
.cards h3 { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.2; }
.cards p { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 1000px) { .cards.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards.c2, .cards.c5 { grid-template-columns: 1fr; } }
/* journey strip */
.jstrip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: j; }
.jstrip li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border-radius: 18px; background: var(--cream); }
.jstrip li:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 32px; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: .75rem; color: var(--coral-text); }
.jstrip .ico { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--butter); color: var(--forest); }
.jstrip .cd-n { top: 14px; right: 14px; }
.jstrip b { font-family: var(--display); font-size: 1rem; letter-spacing: -.02em; line-height: 1.2; margin-top: 4px; }
.jstrip span:not(.cd-n) { font-size: .84rem; color: var(--ink-2); }
@media (max-width: 1000px) { .jstrip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .jstrip li::after { display: none; } }
@media (max-width: 560px) { .jstrip { grid-template-columns: 1fr 1fr; } }
/* filmstrip placeholder */
.film-ph { display: grid; place-items: center; aspect-ratio: 1400 / 910; border-radius: 10px; border: 2px dashed rgba(22, 48, 43, .2); background: repeating-linear-gradient(135deg, var(--paper) 0 12px, var(--cream) 12px 24px); }
.film-ph span { font-family: var(--mono); font-size: .74rem; color: var(--muted); padding: 4px 10px; border-radius: 100px; background: var(--paper); }

/* Scroll effects (option A): reading progress, words rise, visuals unfold */
.fx-progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; background: var(--coral); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.fx-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.fx-w > span { display: inline-block; transform: translateY(105%); transition: transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 45ms); }
.in .fx-w > span, .fx-w.in > span { transform: none; }
.fx-media[data-reveal] { transform: translateY(60px) scale(.94); clip-path: inset(10% 4% 0 4% round 28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), clip-path 1.1s var(--ease); }
.fx-media[data-reveal].in { transform: none; clip-path: inset(0 0 0 0 round 0); }

/* Case study cover video */
.vid-wrap { position: relative; }
.cover-video video { display: block; width: 100%; height: auto; border-radius: 18px; background: #EDEEF0; box-shadow: 0 30px 60px -30px rgba(22, 48, 43, .5); }
.vid-tag { position: absolute; left: 14px; top: 14px; font-family: var(--mono); font-size: .7rem; padding: 6px 12px; border-radius: 100px; background: var(--forest); color: var(--cream); }
.vid-toggle { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--cream); cursor: pointer; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5); transition: transform .3s var(--ease), background .3s; }
.vid-toggle:hover { transform: scale(1.08); background: var(--coral); color: var(--forest); }
.vid-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.vid-toggle[data-state="playing"] .i-play, .vid-toggle[data-state="paused"] .i-pause { display: none; }
@media (max-width: 600px) { .vid-tag { left: 8px; top: 8px; font-size: .66rem; padding: 4px 9px; } .vid-toggle { right: 8px; bottom: 8px; width: 36px; height: 36px; } .vid-toggle svg { width: 15px; height: 15px; } .cover-video video { border-radius: 10px; } }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { border-radius: 26px; padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; color: var(--forest); }
.tile:nth-child(1) { background: var(--coral); }
.tile:nth-child(2) { background: var(--butter); }
.tile:nth-child(3) { background: var(--sage); }
.tile .n { font-family: var(--display); font-weight: 800; font-size: 4.6rem; line-height: .8; letter-spacing: -.06em; }
.tile h3 { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1.1; margin: 22px 0 10px; }
.tile p { font-size: .96rem; }
.tile .stat { align-self: flex-start; margin: 14px 0; font-family: var(--mono); font-size: .72rem; padding: 6px 10px; border-radius: 100px; background: var(--forest); color: var(--cream); }
.tile .did { margin-top: auto; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .45); }
.tile .did::before { content: "What I did"; display: block; font-family: var(--mono); font-size: .7rem; margin-bottom: 6px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }
.chapter { padding: var(--sy) 0 0; }
.chapter h2 { margin: 16px 0 20px; max-width: 22ch; }
.chapter > p { color: var(--ink-2); max-width: 68ch; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 32px 0; }
.nums div { padding: 18px; border-radius: 20px; background: var(--paper); }
.nums b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.05em; line-height: 1; color: var(--coral-text); }
.nums span { display: block; margin-top: 6px; font-size: .84rem; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 700px) { .nums { grid-template-columns: 1fr 1fr; } }
.pic { margin-top: 32px; }
.pic img { border-radius: 20px; box-shadow: 0 24px 50px -30px rgba(22, 48, 43, .45); }
.pic figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: .86rem; color: var(--muted); }
.pic figcaption .t { font-family: var(--mono); font-size: .7rem; color: var(--coral-text); white-space: nowrap; }
.quote { margin: clamp(48px, 7vw, 88px) 0; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--forest); color: var(--cream); font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -.035em; }
.quote span { display: block; font-family: var(--mono); font-weight: 400; font-size: .74rem; letter-spacing: 0; color: var(--coral); margin-top: 16px; }
.steps { counter-reset: st; margin-top: 24px; max-width: 900px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 18px 0; border-top: 2px solid rgba(22, 48, 43, .12); }
.steps li::before { content: counter(st); width: 40px; height: 40px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.steps p { color: var(--ink-2); font-size: .97rem; }
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.impact > div { padding: 24px; border-radius: 24px; background: var(--paper); }
.impact .v { background: var(--forest); color: var(--cream); }
.impact h3 { font-family: var(--mono); font-weight: 400; font-size: .74rem; margin-bottom: 12px; color: var(--coral-text); }
.impact .v h3 { color: var(--coral); }
.impact li { padding: 9px 0; border-top: 1px solid rgba(127,127,127,.25); font-size: .95rem; }
.impact .v b { font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin-right: 6px; }
@media (max-width: 900px) { .impact { grid-template-columns: 1fr; } }
.next { display: block; text-decoration: none; padding: var(--sy) 0; }
.next:hover .d2 { color: var(--coral); }
.diagram text { font-family: var(--mono); font-size: 12px; fill: var(--forest); }
.diagram .node rect { fill: var(--paper); stroke: var(--forest); stroke-width: 1.5; }
.diagram .core rect { fill: var(--forest); } .diagram .core text { fill: var(--cream); }
.diagram .risk rect { fill: var(--blush); }
.diagram .edge { stroke: var(--forest); stroke-width: 1.5; fill: none; }
.diagram .edge.c { stroke: var(--coral-text); stroke-width: 2.5; }

/* Motion */
[data-reveal] { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .leg .plane { animation: none; }
  .fx-w > span { transform: none !important; transition: none; }
  .fx-media[data-reveal] { clip-path: none !important; }
  .fx-progress { display: none; }
  .sev-bar b { transform: none !important; transition: none; }
  .sev-bar b::after { display: none; }
  .js .sev .sev-foot { opacity: 1; transform: none; transition: none; }
  .js .sticker { scale: 1; transition: none; }
  .s3 .path em { opacity: 1; }
  .cursor, .p4, .p4 em, .rb-dot, .spin-badge svg, .ribbon-track { animation: none; }
    .ico * { stroke-dashoffset: 0 !important; transition: none; }
  .sticker { animation: none; }
}

/* ---------- Full site: diagram labels, trade-offs, Q&A, résumé ---------- */
.diagram .lbl { font-size: 10px; fill: var(--muted); }
.diagram .core .lbl { fill: var(--sage); }
.diagram-box { background: var(--paper); border-radius: 20px; padding: clamp(16px, 3vw, 36px); }
.nums.n3 { grid-template-columns: repeat(3, 1fr); }
/* ho: hand-off steps (POS) */
.ho { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; counter-reset: none; }
.ho li { position: relative; display: grid; align-content: start; gap: 10px; padding: 22px; border-radius: 22px; background: var(--paper); }
.ho li:last-child { background: var(--forest); color: var(--cream); }
.ho-top { display: flex; align-items: center; justify-content: space-between; }
.ho-n { font-family: var(--mono); font-size: .75rem; color: var(--coral-text); }
.ho li:last-child .ho-n { color: var(--coral); }
.ho .ico { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--sage); color: var(--forest); }
.ho li:last-child .ico { background: var(--coral); }
.ho h3 { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.2; }
.ho p { font-size: .92rem; color: var(--ink-2); }
.ho li:last-child p { color: var(--cream); opacity: .9; }
.ho .ho-why { margin-top: auto; padding-top: 10px; border-top: 1px dashed rgba(22, 48, 43, .2); font-size: .86rem; }
.ho li:last-child .ho-why { border-color: rgba(244, 237, 224, .25); }
.ho-why b { display: block; font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--coral-text); margin-bottom: 2px; }
.ho li:last-child .ho-why b { color: var(--coral); }
@media (max-width: 1000px) { .ho { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ho { grid-template-columns: 1fr; } }
.trade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.trade > div { padding: 22px; border-radius: 22px; background: var(--paper); }
.trade h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; }
.trade h3 i { margin: 0 .25em; font-style: normal; font-family: var(--mono); font-weight: 400; font-size: .8rem; color: var(--coral-text); }
.trade p { font-size: .95rem; color: var(--ink-2); }
.trade small { display: inline-block; font-family: var(--mono); font-size: .7rem; padding: 3px 9px; border-radius: 100px; background: var(--sage); margin-bottom: 10px; }
@media (max-width: 900px) { .trade { grid-template-columns: 1fr; } }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.qa li { padding: 20px; border-radius: 20px; background: var(--paper); }
.qa .q { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.2; }
.qa .q b { display: block; font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: 0; color: var(--coral-text); margin-bottom: 6px; }
.qa .a { margin-top: 8px; font-size: .95rem; color: var(--ink-2); }
.qa .a::before { content: "→ "; color: var(--coral-text); }
@media (max-width: 700px) { .qa { grid-template-columns: 1fr; } }
/* Questions: each card lands with a "?" badge, the answer wipes in, then the "?" flips to a tick (chosen option A).
   The hidden state has no transition, so cards hide instantly on load; all timing lives on .play (added by site.js when in view). */
.qa li { --t: calc(var(--i, 0) * .32s + .25s); position: relative; padding-right: 58px; transition: box-shadow .3s; }
.qa li:hover { box-shadow: 0 14px 30px -20px rgba(22, 48, 43, .5); }
.qa-bdg { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--forest); }
.qa-bdg span { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.qa-bdg .qm { opacity: 0; transform: rotateY(90deg); }
.js .qa li { opacity: 0; transform: translateY(16px); }
.js .qa .qa-bdg { background: var(--butter); }
.js .qa .qa-bdg .qm { opacity: 1; transform: none; }
.js .qa .qa-bdg .ck { opacity: 0; transform: rotateY(90deg); }
.js .qa .a { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); }
.js .qa.play li { opacity: 1; transform: none; transition: opacity .5s var(--ease) var(--t), transform .6s var(--ease) var(--t), box-shadow .3s; }
.js .qa.play .qa-bdg { background: var(--sage); transition: background .4s var(--ease) calc(var(--t) + .9s); }
.js .qa.play .qa-bdg .qm { opacity: 0; transform: rotateY(90deg); transition: opacity .25s calc(var(--t) + .8s), transform .45s var(--ease) calc(var(--t) + .8s); }
.js .qa.play .qa-bdg .ck { opacity: 1; transform: none; transition: opacity .25s calc(var(--t) + 1s), transform .45s var(--ease) calc(var(--t) + 1s); }
.js .qa.play .a { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); transition: -webkit-clip-path .8s var(--ease) calc(var(--t) + .45s), clip-path .8s var(--ease) calc(var(--t) + .45s); }
@media (prefers-reduced-motion: reduce) { .js .qa.play li, .js .qa.play .a, .js .qa.play .qa-bdg, .js .qa.play .qa-bdg span { transition: none !important; } }
.cv-top { padding: clamp(116px, 13vw, 150px) 0 clamp(40px, 6vw, 64px); }
.cv-top h1 { margin: 20px 0 18px; }
.cv-top .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cv-top button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.cv-glance { margin-top: clamp(36px, 5vw, 56px); }
.cv { display: grid; gap: 14px; padding-bottom: var(--sy); }
.cv-sec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; background: var(--paper); }
.cv-sec > h2 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; line-height: 1.1; }
.cv-profile { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 60ch; }
.job + .job { margin-top: 28px; padding-top: 28px; border-top: 2px solid rgba(22, 48, 43, .1); }
.job .when { font-family: var(--mono); font-size: .76rem; color: var(--coral-text); }
.job h3 { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1.15; margin-top: 6px; }
.job .org { color: var(--muted); font-size: .95rem; }
.job ul { margin-top: 12px; }
.job li { position: relative; padding-left: 20px; margin-top: 7px; color: var(--ink-2); }
.job li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.job li a { color: var(--ink); font-weight: 600; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 8px 14px; border-radius: 100px; background: var(--cream); font-size: .92rem; }
.cert li + li { margin-top: 14px; }
.cert b { display: block; font-weight: 600; }
.cert span { color: var(--muted); font-size: .92rem; }
@media (max-width: 800px) { .cv-sec { grid-template-columns: 1fr; } }
@media print {
  .nav, .skip, .cv-top .row, .on-forest { display: none !important; }
  body { background: #fff; font-size: 10pt; }
  .cv-top { padding: 0 0 12px; }
  .cv { padding: 0; gap: 0; }
  .cv-sec { background: none; border-radius: 0; padding: 14px 0; border-top: 1px solid #ccc; break-inside: avoid; }
  .nums div, .pills li { background: #f3f3f3; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
.next + .foot { margin: 0 0 40px; }
@media (max-width: 520px) {
  .nums.n3 { grid-template-columns: 1fr; }
  .nums.n3 div { display: flex; align-items: baseline; gap: 12px; }
  .nums.n3 b { flex: none; }
}
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* long email address in buttons: never wider than the screen */
.btn[href^="mailto"] { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 420px) { .btn[href^="mailto"] { padding: 10px 18px; font-size: .92rem; } }

/* sq: POS Discovery, "same steps, different order" (option E, 2026-11-26). Replaced .paths, whose CSS is still here but unused */
.sq { background: var(--paper); border-radius: 24px; padding: clamp(18px, 3vw, 32px); display: grid; gap: 14px; }
.sq-row { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed rgba(22, 48, 43, .18); }
.sq-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.sq-who b { display: block; font-family: var(--display); font-size: 1.02rem; letter-spacing: -.02em; }
.sq-who span { font-size: .82rem; color: var(--muted); }
.sq-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sq-steps li { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 100px; font-size: .86rem; font-weight: 600; background: var(--cream); color: var(--ink-2); }
.sq-steps li.log { background: var(--coral); color: var(--forest); }
.sq-steps li.pay { background: var(--forest); color: var(--cream); }
.sq-steps li.none { background: transparent; border: 1.5px dashed rgba(22, 48, 43, .3); color: var(--muted); font-weight: 500; }
.sq-steps li.sq-pair { background: none; padding: 0; gap: 8px; }
.sq-steps .ar { color: var(--muted); font-weight: 400; }
.sq-steps .sq-pill { padding: 8px 14px; border-radius: 100px; background: var(--cream); }
.sq-steps .sq-pill.log { background: var(--coral); color: var(--forest); }
.sq-steps .sq-pill.pay { background: var(--forest); color: var(--cream); }
.sq-key { display: flex; flex-wrap: wrap; gap: 16px; font-size: .8rem; color: var(--ink-2); padding-top: 6px; }
.sq-key i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.js .sq-steps li { opacity: 0; transform: translateX(-10px); }
.js .in .sq-steps li { opacity: 1; transform: none; transition: opacity .35s var(--ease) calc(var(--t) + .4s), transform .45s var(--ease) calc(var(--t) + .4s); }
@media (max-width: 640px) { .sq-row { grid-template-columns: 1fr; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .js .sq-steps li { opacity: 1; transform: none; transition: none; } }

/* Act I "Read more" panel on the homepage journey (QA projects + leadership). PLACEHOLDER content for now */
.act .act-more, .a1-less { display: none; }
.js .act .act-more, .js .a1-less { display: inline-flex; }
.act a.act-more { display: inline-flex; text-decoration: none; } /* Act III "View projects" link works without JS too */
.act .act-more, .a1-less { align-self: flex-start; gap: 8px; align-items: center; margin-top: 14px; padding: 8px 14px; border-radius: 100px; border: 2px solid var(--forest); background: transparent; color: var(--forest); font: 600 .84rem var(--body); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.act .act-more:hover, .act .act-more[aria-expanded="true"], .a1-less:hover { background: var(--forest); color: var(--cream); }
.act-more span, .a1-less span { display: inline-block; transition: transform .3s var(--ease); }
.act .act-more[aria-expanded="true"] span { transform: rotate(180deg); }
.a1-more { margin-top: clamp(24px, 3vw, 36px); padding: clamp(22px, 3.4vw, 44px); border-radius: 28px; background: var(--cream); color: var(--forest); }
.js .a1-more:not(.open) { display: none; }
.a1-more.open { animation: a1In .55s var(--ease); }
@keyframes a1In { from { opacity: 0; transform: translateY(-12px); } }
.a1-tag { font-family: var(--mono); font-size: .72rem; color: var(--coral-text); }
.a1-h { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.035em; line-height: 1.1; margin: 14px 0 18px; }
.a1-less { margin-top: clamp(24px, 3vw, 32px); }
/* Act I "Superpowers unlocked" path: QA on the left, leadership on the right, each with its own dashed line */
.a1-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.a1-col-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--forest); }
.a1-col-h span { font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: 0; color: var(--coral-text); }
.a1-pp li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-bottom: 26px; }
.a1-pp li::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--coral) 0 6px, transparent 6px 12px); }
.a1-pp li:last-child { padding-bottom: 0; } .a1-pp li:last-child::before { display: none; }
.a1-pp-dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--forest); }
.a1-col-lead .a1-pp-dot { background: var(--forest); color: var(--cream); }
.a1-pp-r { font-family: var(--mono); font-size: .7rem; color: var(--coral-text); }
.a1-pp b { display: block; font-family: var(--display); font-size: 1.12rem; letter-spacing: -.02em; margin: 2px 0 4px; }
.a1-pp p { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.a1-pp .a1-pp-u { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 100px; background: var(--butter); font-family: var(--display); font-weight: 700; font-size: .88rem; color: var(--forest); }
.a1-col-lead .a1-pp-u { background: var(--coral); }
@media (max-width: 860px) { .a1-cols { grid-template-columns: 1fr; } }
.a1-quote { margin: clamp(24px, 3vw, 32px) 0 0; padding-left: 18px; border-left: 4px solid var(--coral); max-width: 760px; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.2; letter-spacing: -.03em; color: var(--forest); }
@media (prefers-reduced-motion: reduce) { .a1-more.open { animation: none; } }

/* mkf: marketplace systems diagram, option B "How an order moves" (2026-11-26). Replaced .hub, whose CSS is still here but unused */
.mkf-nd { position: relative; z-index: 1; display: grid; align-content: start; gap: 4px; padding: 18px; border-radius: 18px; background: var(--cream); }
.mkf-nd .ico { width: 26px; height: 26px; color: var(--coral-text); margin-bottom: 6px; }
.mkf-nd b { font-family: var(--display); font-size: 1.1rem; letter-spacing: -.02em; }
.mkf-nd span { font-size: .88rem; color: var(--ink-2); }
.mkf-nd em { font-style: normal; font-family: var(--mono); font-size: .68rem; color: var(--coral-text); margin-top: 6px; }
.mkf-core { position: relative; z-index: 1; display: grid; place-content: center; text-align: center; gap: 6px; padding: 24px; border-radius: 22px; background: var(--forest); color: var(--cream); }
.mkf-core b { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.03em; }
.mkf-core span { font-size: .9rem; color: var(--sage); }
.mkf-ways { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.mkf-ways i { font-style: normal; font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 100px; background: var(--paper); }

.mkf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.mkf > .mkf-nd, .mkf > .mkf-core { grid-row: 1; }
.mkf > .mkf-nd::after, .mkf > .mkf-core::after { content: "→"; position: absolute; right: -30px; top: 50%; translate: 0 -50%; font-family: var(--display); font-size: 1.4rem; color: var(--coral-text); }
.mkf .mkf-core { padding: 18px; } .mkf .mkf-core b { font-size: 1.3rem; }
.mkf > .mkf-nd.end::after { display: none; }
.mkf-band { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 16px 20px; border-radius: 18px; }
.mkf-band.f { margin-top: 30px; background: var(--blush); }
.mkf-band.p { margin-top: 12px; background: #DCE9E0; }
.mkf-band.f::before, .mkf-band.f::after { content: ""; position: absolute; top: -30px; height: 30px; border-left: 2px solid rgba(22, 48, 43, .3); }
.mkf-band.f::before { left: 16.6%; } .mkf-band.f::after { right: 16.6%; }
.mkf-band .ico { width: 26px; height: 26px; color: var(--coral-text); }
.mkf-band b { font-family: var(--display); font-size: 1.1rem; letter-spacing: -.02em; }
.mkf-band b span { font-family: var(--body); font-weight: 400; font-size: .88rem; letter-spacing: 0; color: var(--ink-2); margin-left: 8px; }
.mkf-band .mkf-ways { margin-top: 0; }
.mkf-band em { font-style: normal; font-family: var(--mono); font-size: .68rem; color: var(--coral-text); text-align: right; }
.mkf-band .mkf-tx { display: grid; gap: 6px; }
@media (max-width: 860px) {
  .mkf { grid-template-columns: 1fr; gap: 0; }
  .mkf > * { grid-column: 1 !important; grid-row: auto !important; }
  .mkf > .mkf-nd, .mkf > .mkf-core { margin-bottom: 30px; }
  .mkf > .mkf-nd::after, .mkf > .mkf-core::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -32px; translate: -50% 0; }
  .mkf > .mkf-nd.end { margin-bottom: 0; }
  .mkf-band { grid-template-columns: auto minmax(0, 1fr); }
  .mkf-band b span { display: block; margin: 4px 0 0; }
  .mkf-band em { grid-column: 2; text-align: left; }
  .mkf-band.f { margin-top: 16px; } .mkf-band.f::before, .mkf-band.f::after { display: none; }
}

/* Phone trailer (homepage, ≤600px, once per visit): "best on a laptop or tablet, here's the trailer". Auto-closes after ~5s; skippable */
.tr { display: none; }
.trailer .tr { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 28px 22px; background: var(--forest); color: var(--cream); }
.trailer body { overflow: hidden; animation: tr-unlock 0s 7s forwards; }
.trailer .tr { animation: tr-gone .4s 7s forwards; } /* safety net: never trap the page if the script fails */
@keyframes tr-gone { to { opacity: 0; visibility: hidden; } }
@keyframes tr-unlock { to { overflow: visible; } }
.tr.out { opacity: 0; transform: scale(1.04); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.tr-in { width: 100%; max-width: 420px; display: grid; gap: 14px; }
.tr-clap { display: flex; width: 74px; height: 22px; border-radius: 4px 4px 0 0; overflow: hidden; transform-origin: 0 100%; animation: tr-clap .7s .2s var(--ease) both; margin-bottom: 4px; }
.tr-clap span { flex: 1; background: var(--cream); transform: skewX(-24deg); margin-right: 6px; }
.tr-clap span:nth-child(odd) { background: var(--coral); }
@keyframes tr-clap { 0% { transform: rotate(-28deg); } 60% { transform: rotate(4deg); } 100% { transform: rotate(0); } }
.tr-tag { font-family: var(--mono); font-size: .72rem; color: var(--coral); }
.tr-title { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.08; letter-spacing: -.035em; }
.tr-big { font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; letter-spacing: -.03em; color: var(--cream); }
.tr .hl { background: none; color: var(--coral); }
.tr-in > p:not(.tr-tag):not(.tr-big) { color: #D6DDD6; font-size: 1rem; }
.tr-rate { font-family: var(--mono); font-size: .74rem !important; }
.tr-rate b { display: inline-block; padding: 2px 8px; margin-right: 4px; border: 1.5px solid var(--sage); border-radius: 4px; font-weight: 400; color: var(--cream); }
.tr-l { display: block; opacity: 0; transform: translateY(14px); animation: tr-up .6s calc(.35s + var(--i) * .75s) var(--ease) forwards; }
@keyframes tr-up { to { opacity: 1; transform: none; } }
.tr-skip { justify-self: start; margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 100px; background: var(--coral); color: var(--forest); font: 600 1rem var(--body); cursor: pointer; }
.tr-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(244, 237, 224, .15); }
.tr-bar i { display: block; height: 100%; width: 100%; background: var(--coral); transform-origin: 0 50%; animation: tr-run 5.5s linear forwards; }
@keyframes tr-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .tr-l, .tr-clap { animation: none; opacity: 1; transform: none; } }

/* ===== Phone version (≤600px), 2026-11-26 =====
   "Same content, fewer screens": sets of similar cards become swipe rows (data-swipe + counter/dots from site.js),
   one phone type scale for every page. Wrappers in the HTML: .bands (homepage work), .rb-row (habits). */
.bands, .rb-row { display: contents; }
.sw-nav, .hero-facts, .route li.rt-clone, .route .leg-loop { display: none; } /* .route li.rt-clone must beat ".route li { display: flex }" */

@media (max-width: 600px) {
  /* ---- Shared swipe row ---- */
  [data-swipe] {
    display: flex !important; gap: 12px; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--g); overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--g)); padding: 4px var(--g) 8px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  [data-swipe]::-webkit-scrollbar { display: none; }
  [data-swipe] > * { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }
  [data-swipe]::after { content: ""; flex: 0 0 1px; } /* lets the last card snap fully into view */

  .sw-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
  .sw-count { font-family: var(--mono); font-size: .74rem; color: var(--ink-2); }
  .sw-count b { font-weight: 400; color: var(--forest); }
  .sw-dots { display: flex; gap: 6px; }
  .sw-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 100px; background: rgba(22, 48, 43, .22); cursor: pointer; transition: width .35s var(--ease), background .35s var(--ease); }
  .sw-dots button[aria-current="true"] { width: 22px; background: var(--forest); }
  .on-forest .sw-count, .on-forest .sw-count b { color: rgba(244, 237, 224, .75); }
  .on-forest .sw-dots button { background: rgba(244, 237, 224, .3); }
  .on-forest .sw-dots button[aria-current="true"] { background: var(--coral); }

  /* ---- Hero: smaller portrait; the round stickers become small pills below it ---- */
  .arch { max-width: 260px; margin: 8px auto 0; }
  .arch .sticker { display: none; }
  .hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -12px 0 8px; }
  .hero-facts li { font-size: .84rem; font-weight: 500; padding: 7px 13px; border-radius: 100px; line-height: 1.2; }
  .hero-facts b { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
  .hero-facts .f1 { background: var(--butter); color: var(--forest); }
  .hero-facts .f2 { background: var(--forest); color: var(--cream); }
  .hero-facts .f3 { background: var(--sage); color: var(--forest); }
  .hero-facts .f3 b { color: var(--coral-text); }

  /* ---- Where I've worked: one horizontal line (plane arc + lines kept) that scrolls itself, looping ---- */
  .route-vp { overflow: hidden; margin: 0 calc(-1 * var(--g)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .route { flex-direction: row; align-items: flex-end; width: max-content; animation: route-loop 26s linear infinite; }
  .route li, .route li:first-child { flex-direction: row; align-items: flex-end; flex: none; }
  .route li.rt-clone { display: flex; }
  .route b { white-space: nowrap; font-size: 1.1rem; }
  .route .us b { font-size: .92rem; }
  .route .leg, .route .leg.fly { flex: none; width: 56px; min-width: 0; height: 2px; margin: 0 14px 14px; background: rgba(244, 237, 224, .3); }
  .route .leg.fly { width: 96px; height: 38px; background: none; margin-bottom: 8px; }
  .route .leg .arc { display: block; }
  .route .leg .plane { left: 50%; top: -12px; margin: 0 0 0 -13px; transform: none; background: none; padding: 0; animation: fly 3.2s ease-in-out infinite; }
  .route .leg-loop { display: block; flex: none; width: 52px; height: 6px; margin: 0 0 22px; background: radial-gradient(circle, var(--coral) 3px, transparent 3.5px); }
  @keyframes route-loop { to { transform: translateX(-50%); } }

  /* ---- Work: one project per card, image on top ---- */
  #work .shead { padding-bottom: 28px; }
  #work .bands { margin: 0; padding-bottom: 10px; }
  #work .sw-nav { padding: 0 var(--g) 56px; margin-top: 6px; }
  .band { padding: 18px 18px 22px; border-radius: 26px; }
  .band.b1 { box-shadow: inset 0 0 0 1px rgba(22, 48, 43, .1); }
  .band > .wrap { padding: 0; }
  .band .spread { gap: 16px; align-items: start; }
  .band .spread-media { order: -1 !important; }
  .band .spread-media img { border-radius: 16px; box-shadow: 0 16px 30px -22px rgba(22, 48, 43, .5); }
  .band .bignum { font-size: 2.6rem; }
  .band .spread h3 { margin: 8px 0 10px; font-size: 1.35rem; }
  .band .chips { margin-bottom: 12px; }
  .band .chips li { font-size: .76rem; padding: 5px 10px; }
  .band .solved li { padding: 9px 0; font-size: .92rem; grid-template-columns: 34px 1fr; }
  .band .spread .go { margin-top: 14px; }

  /* ---- Journey: Acts I–III swipe, Act IV stays as the closer ---- */
  .acts { gap: 12px; }
  .act + .act::before { display: none; }
  .act .act-more[data-act-more], .a1-more { display: none !important; }
  .journey .sw-nav { margin-bottom: 4px; }
  .act4 { padding: 22px; gap: 4px; }
  .pages { height: 130px; transform: scale(.62); margin: -14px auto -10px; }

  /* ---- How I work: the question card, then the six habits swipe ---- */
  .rb-method { padding: 24px; }
  .rb-orbit { width: 64px; height: 64px; }
  .rb-loop { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
  .rb-k { margin-top: 22px; }
  .rb-grid { grid-auto-rows: auto; }
  .rb-row { padding-top: 2px; }
  .rb-row > .rb-tile { flex-basis: 76%; }

  /* ---- About: smaller photo deck, value cards swipe ---- */
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-main { min-width: 0; }
  .about-photo { width: 100%; max-width: 270px; margin: 0 auto; }
  .spin-badge { width: 78px; height: 78px; right: -8px; top: 0; }
  .spin-badge text { font-size: 13px; }
  .deck-next { margin-top: 26px; }
  .pc { padding: 10px 10px 46px; }
  .pc figcaption { font-size: .8rem; bottom: 15px; left: 8px; right: 8px; }
  .about-vals.fun { padding-top: 16px; padding-bottom: 22px; gap: 14px; }
  .about-vals.fun > .rb-tile { flex-basis: 76%; }
  .about .sw-nav { margin-top: 0; }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  .route { animation: none; }
  .route-vp { overflow-x: auto; scrollbar-width: none; }
}
/* Work cards: the 3 problems rotate one at a time (class .rot is added by JS, so without JS all 3 still show) */
@media (max-width: 600px) {
  .band .solved.rot { display: grid; border-bottom: 2px solid rgba(22, 48, 43, .16); }
  .band .solved.rot li { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateX(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; padding: 12px 0; border-top: 2px solid rgba(22, 48, 43, .16); }
  .band .solved.rot li.on { opacity: 1; transform: none; pointer-events: auto; }
  .band .pr-dots { margin-top: 10px; }
}

/* Case studies: "The 3 problems I solved" tiles swipe on phones */
@media (max-width: 600px) {
  .tiles[data-swipe] { margin: 0; gap: 12px; }
  .tiles[data-swipe] > .tile { flex-basis: 86%; }
  .tile .n { font-size: 3.4rem; }
  .tile h3 { margin: 16px 0 8px; }
  .tiles + .sw-nav { padding: 0 var(--g); }
}

/* NurseRelay: pain points chart tightened, personas swipe (phones) */
@media (max-width: 600px) {
  .sev, .personas { padding: 18px; border-radius: 22px; }
  .sev-head { gap: 10px; margin-bottom: 12px; }
  .sev-head h3 { font-size: 1.35rem; margin: 8px 0 4px; }
  .sev-sub { font-size: .86rem; line-height: 1.45; }
  .sev-rows li { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 0; }
  .sev-rows .ico { width: 20px; height: 20px; }
  .sev-label { font-size: .86rem; }
  .sev-label small { font-size: .72rem; }
  .sev-val { font-size: 1.15rem; }
  .sev-bar { height: 8px; }
  .sev-foot { margin-top: 12px; padding: 12px 14px; font-size: .86rem; border-radius: 14px; }

  .per-grid[data-swipe] { margin: 0 -18px; padding: 2px 18px 6px; scroll-padding: 0 18px; gap: 10px; }
  .per-grid[data-swipe] > .per { flex-basis: 86%; }
  .per { padding: 16px; border-radius: 18px; }
  .per-top { gap: 10px; }
  .per-top > div { display: flex; flex-direction: column; gap: 4px; }
  .per-av { width: 42px; height: 42px; font-size: .9rem; }
  .per h4 { font-size: 1.2rem; }
  .per-role { margin-top: 0; line-height: 1.2; }
  .per-ctx { margin-top: 12px; font-size: .88rem; line-height: 1.45; }
  .per blockquote { margin-top: 12px; padding: 10px 12px 10px 32px; font-size: .9rem; }
  .per blockquote::before { left: 9px; font-size: 2.1rem; }
  .per ul { padding-top: 12px; }
  .per li { padding: 5px 0 5px 16px; font-size: .84rem; }
  .per li::before { top: 11px; width: 6px; height: 6px; }
  .personas .sw-nav { margin-top: 10px; }
  .per-foot { padding: 16px; font-size: .86rem; border-radius: 16px; gap: 10px; }
  .per-punch { font-size: 1.05rem; }
}
/* Personas on phones: the bullet list repeats the context line and quote (Namita, 2026-11-26), so it is hidden on phones only */
@media (max-width: 600px) { .per ul { display: none; } }

/* NurseRelay "Five core flows" (swipe, one flow per card, steps top to bottom) and "36 screens, 11 sections" (compact list), phones only */
@media (max-width: 600px) {
  .flows, .ia { padding: 18px; border-radius: 22px; }
  .fl-head { margin-bottom: 14px; gap: 8px; }
  .fl-head h3 { font-size: 1.35rem; }
  .fl-head p { font-size: .82rem; line-height: 1.4; }
  .flows figcaption, .ia figcaption { margin-top: 14px; font-size: .8rem; gap: 4px; }

  .fl-list[data-swipe] { margin: 0 -18px; padding: 2px 18px 6px; scroll-padding: 0 18px; gap: 10px; }
  .fl-list[data-swipe] > .fl-row { flex-basis: 80%; display: block; padding: 16px; border: 0; border-radius: 18px; background: var(--cream); }
  .fl-row .fl-name { margin-bottom: 14px; }
  .fl-row .fl-steps { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 18px; }
  .fl-row .fl-steps li { font-size: .8rem; padding: 5px 11px; background: var(--paper); white-space: normal; }
  .fl-row .fl-steps li.g { background: var(--coral); }
  .fl-row .fl-steps li + li::before { content: "↓"; left: 12px; top: -17px; transform: none; font-size: .8rem; line-height: 1; }
  .flows .sw-nav { margin-top: 10px; }

  .ia-grid { gap: 0; }
  .ia-m { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; padding: 10px 0; border-radius: 0; background: none; border-top: 1px solid rgba(22, 48, 43, .1); }
  .ia-m b { grid-row: span 2; font-size: 1.35rem; }
  .ia-n { margin-top: 0; font-size: .92rem; }
  .ia-s { grid-column: 2; margin-top: 2px; font-size: .76rem; line-height: 1.4; }
}

/* Case study pull quotes (green), smaller on phones (Namita, 2026-11-26: "looks very big") */
@media (max-width: 600px) {
  .quote { margin: 40px 0; padding: 22px; border-radius: 22px; font-size: 1.3rem; line-height: 1.18; letter-spacing: -.025em; }
  .quote span { margin-top: 12px; font-size: .7rem; }
}

/* POS and shared case-study components, phones only (Namita, 2026-11-26: POS was missing the mobile treatment) */
@media (max-width: 600px) {
  /* Discovery: same steps, different order */
  .sq { padding: 16px; gap: 12px; border-radius: 20px; }
  .sq-row { gap: 8px; padding-bottom: 12px; }
  .sq-who b { font-size: .95rem; }
  .sq-who span { font-size: .76rem; }
  .sq-steps { gap: 5px; }
  .sq-steps li, .sq-steps .sq-pill { padding: 6px 10px; font-size: .78rem; }
  .sq-steps li.sq-pair { padding: 0; gap: 5px; }
  .sq-key { font-size: .74rem; gap: 12px; }

  /* "3 · 3 · 3" number cards: one row of three */
  .nums.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .nums.n3 div { display: block; padding: 14px 12px; border-radius: 16px; }
  .nums.n3 b { font-size: 1.8rem; }
  .nums.n3 span { font-size: .76rem; }
  .nums.n3.with-ico .nico { top: 12px; right: 10px; width: 18px; height: 18px; }

  /* Numbered lists (Decisions, Learnings) */
  .steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 0; }
  .steps li::before { width: 28px; height: 28px; font-size: .85rem; }
  .steps h3 { font-size: 1rem; line-height: 1.25; }
  .steps p { font-size: .88rem; line-height: 1.45; margin-top: 2px; }

  /* Hand-off: four steps swipe */
  .ho[data-swipe] { margin-top: 20px; }
  .ho[data-swipe] > li { flex-basis: 82%; padding: 18px; border-radius: 18px; }
  .ho h3 { font-size: 1.02rem; }
  .ho p { font-size: .86rem; }
  .ho .ho-why { font-size: .8rem; }
  .ho .ico { width: 32px; height: 32px; padding: 6px; }

  /* Outcome & impact */
  .impact { gap: 10px; }
  .impact > div { padding: 18px; border-radius: 18px; }
  .impact li { padding: 7px 0; font-size: .88rem; }
  .impact .v b { font-size: 1.2rem; }

  /* More case studies: swipe */
  .mc-grid[data-swipe] > * { flex-basis: 78%; }
  .mc-t { font-size: 1.02rem; }
  .mc-meta { margin-top: 10px; }
}

/* Marketplace + Chef components, phones only (Namita, 2026-11-26) */
@media (max-width: 600px) {
  /* Card sets that swipe: research findings, decisions, design fixes (marketplace), the chef's side (chef) */
  .cards[data-swipe], .trade[data-swipe] { margin-top: 20px; }
  .cards[data-swipe] > li, .trade[data-swipe] > div { flex-basis: 78%; padding: 18px; border-radius: 18px; }
  .viz > .sw-nav { padding: 0; background: none; border-radius: 0; margin-top: 10px; }
  .viz > .cards[data-swipe] { margin: 0; padding: 16px; scroll-padding: 0 16px; border-radius: 22px; }
  .cards h3, .trade h3 { font-size: 1.02rem; }
  .cards p, .trade p { font-size: .86rem; line-height: 1.45; }
  .cards .ico { width: 34px; height: 34px; padding: 7px; }

  /* Marketplace: merchant and consumer challenges */
  .chal-c { padding: 16px; border-radius: 18px; }
  .chal-k { font-size: 1.05rem; }
  .chal-k .ico { width: 30px; height: 30px; padding: 6px; }
  .chal-row { padding: 12px 0; gap: 8px; }
  .chal-row:first-of-type { margin-top: 12px; }
  .chal-chips { gap: 6px; }
  .chal-chips li { padding: 4px 10px; font-size: .78rem; gap: 6px; }
  .chal-chips .ico { width: 14px; height: 14px; }
  .chal-chips.frag { gap: 8px 8px; }
  .chal-foot { padding: 14px 16px; font-size: .86rem; border-radius: 16px; }
  .chal-key { font-size: .68rem; }

  /* Marketplace: system diagram */
  .viz > div { padding: 16px; border-radius: 22px; }
  .mkf-nd { padding: 14px; border-radius: 14px; }
  .mkf-nd b, .mkf-band b { font-size: 1rem; }
  .mkf-nd span, .mkf-band b span, .mkf-core span { font-size: .8rem; }
  .mkf .mkf-core { padding: 14px; } .mkf .mkf-core b { font-size: 1.1rem; }
  .mkf > .mkf-nd, .mkf > .mkf-core { margin-bottom: 26px; }
  .mkf > .mkf-nd::after, .mkf > .mkf-core::after { bottom: -26px; font-size: 1.1rem; }
  .mkf-band { padding: 12px 14px; border-radius: 14px; }
  .mkf-band.f { margin-top: 12px; }
  .mkf-band.f::before, .mkf-band.f::after { display: none; }
  .mkf-ways i { font-size: .7rem; padding: 2px 8px; }

  /* Chef: the six questions, a tighter list */
  .qa { gap: 8px; margin-top: 20px; }
  .qa li { padding: 14px 50px 14px 16px; border-radius: 16px; }
  .qa .q { font-size: .98rem; }
  .qa .q b { margin-bottom: 4px; font-size: .68rem; }
  .qa .a { margin-top: 4px; font-size: .86rem; line-height: 1.45; }
  .qa-bdg { top: 14px; right: 14px; width: 26px; height: 26px; font-size: .85rem; }

  /* Chef: six-stage journey */
  .viz > ol.jstrip { padding: 14px; gap: 8px; border-radius: 22px; }
  .jstrip li { padding: 12px; gap: 4px; border-radius: 14px; }
  .jstrip .ico { width: 30px; height: 30px; padding: 6px; }
  .jstrip b { font-size: .9rem; }
  .jstrip span:not(.cd-n) { font-size: .76rem; line-height: 1.4; }
  .jstrip .cd-n { top: 12px; right: 12px; }

  /* Chef: validation story (stays stacked so the arrows keep their meaning) */
  .vf { gap: 26px; margin-top: 20px; }
  .vf-c { padding: 16px; gap: 10px; border-radius: 18px; }
  .vf-h .ico { width: 34px; height: 34px; padding: 7px; }
  .vf-h b { font-size: 1.05rem; }
  .vf-c li { padding: 7px 0 7px 20px; font-size: .86rem; }
  .vf-c li::before { top: 13px; width: 7px; height: 7px; }
  .vf-c.out li::before { top: 6px; }
  .vf-c:not(:last-child)::after { bottom: -25px; font-size: 1.1rem; }
}

/* ===== Phone type scale: one set of sizes across every page (Namita, 2026-11-26: "consistent fonts and typography") =====
   Page title 40 · Section heading 36 · Panel title 22 · Card title 16.8 · Card text 14.4 / 1.5 · Small note 12.8 · Pill 12.5 */
@media (max-width: 600px) {
  /* Page title (h1) */
  main h1.display, .hero h1, main.nf h1.display { font-size: 2.5rem; line-height: .95; }
  /* Section heading (h2), including the closing "Let's write Act IV" / "Let's make something" heading */
  h2.display, h2.display.d1, h2.display.d2 { font-size: 2.25rem; line-height: .97; }
  .act4 h3.display { font-size: 2.25rem; }

  /* Panel title */
  .tile h3, .sev-head h3, .fl-head h3, .ba-card h3, main.nf .nf-tk h2, .cv-sec h2 { font-size: 1.375rem; line-height: 1.12; }
  .rb-q, .band .spread h3 { font-size: 1.375rem; line-height: 1.15; }
  .act h3 { font-size: 1.75rem; }

  /* Card title */
  .cards h3, .steps h3, .ho h3, .trade h3, .mc-t, .rb-tile h3, .vf-h b, .per h4, .chal-k, .fl-name b, .qa .q,
  .sq-who b, .mkf-nd b, .mkf-band b, .bk-r-h b, .ia-n, .jstrip b, .film-c figcaption b, .job h3 {
    font-size: 1.05rem; line-height: 1.25;
  }
  .job h3 { font-size: 1.15rem; }

  /* Card text */
  .tile p, .tile .did, .rb-tile p, .rb-p, .act p:not(.act-n):not(.where):not(.unlock), .cards p, .steps p, .ho p, .trade p,
  .per-ctx, .qa .a, .vf-c li, .impact li, .sev-sub, .sev-foot, .per-foot, .chal-foot, .fl-head p, .ba-out, .bk-do, .bk-note,
  .solved li, .about-vals .rb-tile p, .act4 p:not(.act-n):not(.typing), .nf-tk dd, .mkf-band .mkf-tx > span {
    font-size: .9rem; line-height: 1.5;
  }
  .per blockquote { font-size: .9rem; line-height: 1.4; }

  /* Small note */
  .film-c figcaption span, .ia-s, .flows figcaption, .ia figcaption, .viz figcaption, .media-fig figcaption,
  .sq-who span, .mkf-nd span, .mkf-core span, .mkf-band b span, .fl-name small, .sev-label small, .ho .ho-why { font-size: .8rem; line-height: 1.45; }

  /* Pills */
  .chips li, .chal-chips li, .sq-steps li, .sq-steps .sq-pill, .fl-row .fl-steps li, .hero-facts li, .bk-pill, .act .badge, .mkf-ways i, .beyond li {
    font-size: .78rem;
  }

  .band .solved li, .ba-src li { font-size: .9rem; line-height: 1.5; }
  .nums span, .nums.n3 span { font-size: .8rem; line-height: 1.4; }
  .sq-key { font-size: .8rem; }

  /* Mono labels */
  .act-n, .act4 .act-n { font-size: .8rem; }
  .chal-key { font-size: .7rem; }

  /* 404: room between the big code, the label and the headline */
  main.nf { padding-top: 92px; }
  main.nf .nf-code { margin-bottom: 18px; font-size: 5.5rem; }
  main.nf h1.display { margin: 12px 0 14px; }
}
