/* Layout: one long airy scroll on white. A fixed canvas of soft nude and mint
   dots and rounded strokes sits behind the content and re-forms per section
   (name, side margins, a frame around the portrait, "hello"). Projects open on
   their own pages. Buttons tilt and fill with mint or nude; a small tag next to
   the cursor says what a click will do. */
:root {
  --white: #ffffff;
  --ink: #141414;
  --ink-soft: #6f6863;
  --line: #ece5df;
  --blush: #f7eee8;
  --nude: #ead6c8;
  --sand: #d3ae98;
  --mint: #c4e8d7;
  --mint-deep: #7fc5a7;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --accent: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 8px; /* screenshots read as screens */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.3, 1.6, .5, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 300; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
em, .serif { font-family: var(--accent); font-style: italic; font-weight: 400; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--mint); }

.skip { position: absolute; left: -999px; top: 10px; z-index: 50; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 10px; }

/* Shape canvas lives behind everything */
.shape-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.site-header, main, .site-footer { position: relative; z-index: 1; }

.inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.label { font: 500 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Pills: one hover language for every button ---------- */
.pill, .tabs a, .btn, .talk, .back {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 99px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: rotate .5s var(--spring), background-color .25s, color .25s, box-shadow .35s;
}
.pill.is-hover, .tabs a.is-hover, .btn.is-hover, .talk.is-hover, .back.is-hover,
.pill:focus-visible, .tabs a:focus-visible, .btn:focus-visible, .talk:focus-visible, .back:focus-visible {
  rotate: -3deg; background-color: var(--mint); color: var(--ink);
  box-shadow: 0 12px 22px -14px rgba(20, 20, 20, .45);
}
.pill.nude.is-hover, .tabs a:nth-of-type(even).is-hover, .back.is-hover,
.pill.nude:focus-visible, .tabs a:nth-of-type(even):focus-visible { background-color: var(--nude); rotate: 3deg; }
.pill { padding: 11px 20px; font-size: 15px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.pill .ico { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-deep); }
.pill.nude .ico { background: var(--sand); }
.btn { padding: 14px 24px; background: var(--ink); color: var(--white); font-size: 15px; font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px var(--gutter);
  transition: transform .5s var(--ease), background .4s;
}
.logo { justify-self: start; text-decoration: none; font: 600 clamp(22px, 1.8vw, 26px)/1 var(--display); letter-spacing: -.035em; white-space: nowrap; }
.back { justify-self: start; font-size: 14px; padding: 9px 16px 9px 12px; background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px var(--line); }
.tabs { display: flex; gap: 4px; justify-self: center; }
.tabs a { font-size: 14px; padding: 8px 15px; }
.talk-wrap { justify-self: end; }
.talk { padding: 11px 20px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 500; }
.talk[aria-expanded="true"] { background: var(--mint); color: var(--ink); rotate: -3deg; }

/* Floating bar */
.float-nav {
  position: fixed; z-index: 30; left: 50%; top: max(14px, env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 6px; padding: 6px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 99px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(20, 20, 20, .35);
  translate: -50% calc(-100% - 30px); opacity: 0;
  transition: translate .7s var(--spring), opacity .3s;
}
.float-nav.show { translate: -50% 0; opacity: 1; }
.float-logo { text-decoration: none; font: 600 18px/1 var(--display); letter-spacing: -.035em; padding: 0 12px 0 14px; white-space: nowrap; }
.float-nav .tabs { position: relative; gap: 2px; }
.float-nav .tabs a { position: relative; z-index: 1; }
.float-nav .talk { padding: 9px 16px; }
.tab-ind {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--blush);
  opacity: 0; transition: transform .6s var(--spring), width .6s var(--spring), opacity .3s;
}
.tab-ind.on { opacity: 1; }

.talk-panel {
  position: fixed; z-index: 40; right: 16px; top: 70px; width: min(320px, calc(100vw - 24px));
  background: var(--white); border-radius: 26px; padding: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(20, 20, 20, .35);
  display: grid; gap: 8px;
  transform-origin: top right; scale: .85; rotate: 3deg; opacity: 0; visibility: hidden;
  transition: scale .5s var(--spring), rotate .5s var(--spring), opacity .25s, visibility 0s .3s;
}
.talk-panel.open { scale: 1; rotate: 0deg; opacity: 1; visibility: visible; transition: scale .5s var(--spring), rotate .5s var(--spring), opacity .25s; }
.talk-panel p { margin: 2px 4px 8px; font-size: 14px; color: var(--ink-soft); }
.talk-panel .pill { justify-content: space-between; width: 100%; }
.talk-panel .pill span:last-child { color: var(--ink-soft); font-size: 13px; }

/* ---------- Cursor tag ---------- */
.cursor-tag {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  font: 500 12px/1 var(--body); color: var(--ink); white-space: nowrap;
  background: var(--mint); padding: 7px 12px; border-radius: 99px;
  box-shadow: 0 8px 18px -10px rgba(20, 20, 20, .4);
}
.cursor-tag::before { content: ""; } /* keeps an empty tag from collapsing */
.cursor-tag { scale: 0; opacity: 0; transition: scale .35s var(--spring), opacity .2s; }
.cursor-tag.on { scale: 1; opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-tag { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - clamp(80px, 11vw, 150px)); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding-block: clamp(130px, 19vh, 190px) clamp(90px, 13vh, 140px); }
.hero-stack { display: grid; }
.hero-title { font-size: clamp(46px, 9.4vw, 150px); line-height: .95; letter-spacing: -.045em; margin: 0; }
.title-line { position: relative; display: inline-block; }
/* Years tag: tilted like a hovered tab, perched on the end of "Senior Product" */
.years-tag {
  position: absolute; left: 100%; top: 100%; translate: -78% -20%; rotate: -5deg;
  font: 400 clamp(13px, 1.15vw, 16px)/1 var(--body); letter-spacing: 0; white-space: nowrap;
  background: var(--mint); color: var(--ink); padding: .7em 1.1em; border-radius: 99px;
  box-shadow: 0 12px 22px -14px rgba(20, 20, 20, .45);
}
.years-tag b { font-weight: 500; }
.js .years-tag { scale: 0; transition: scale .8s var(--spring) .7s; }
.js .split.in + .years-tag { scale: 1; }
.hero-word { width: 100%; aspect-ratio: 4.15 / 1; max-width: 100%; margin: clamp(26px, 3.4vw, 52px) 0 0; }
.tagline { margin: clamp(10px, 1.5vw, 20px) 0 0; font: 300 clamp(20px, 2.1vw, 28px)/1.3 var(--display); letter-spacing: -.015em; max-width: 34ch; }

/* Round badge: turns slowly, scrolls to the work */
.badge { position: absolute; right: var(--gutter); bottom: clamp(28px, 5vh, 56px); width: clamp(110px, 10vw, 140px); aspect-ratio: 1; display: grid; place-items: center; text-decoration: none; border-radius: 50%; }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge-ring text { font: 500 11.5px var(--body); letter-spacing: .14em; fill: var(--ink); }
.badge-core { width: 44%; aspect-ratio: 1; border-radius: 50%; background: var(--mint); display: grid; place-items: center; transition: scale .5s var(--spring), background .25s; }
.badge-core svg { width: 42%; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge.is-hover .badge-core, .badge:focus-visible .badge-core { scale: 1.12; background: var(--nude); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Section heads ---------- */
.section { padding-block: clamp(46px, 7vw, 90px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(40px, 7vw, 84px); }
.section-head h2 { font-size: clamp(44px, 8vw, 112px); }
/* Big section titles share one size; a tilted tag sits above each */
#work { padding-top: clamp(4px, 1vw, 16px); }
.big-head { position: relative; display: block; }
.big-head h2 { font-size: clamp(60px, 11.5vw, 180px); line-height: .9; letter-spacing: -.05em; }
/* The tag floats above the title without taking space, so the title itself peeks in first */
.head-tag { position: absolute; left: 0; top: 0; translate: 0 calc(-100% - clamp(10px, 1.4vw, 20px)); z-index: 2; display: inline-block; white-space: nowrap; font: 400 clamp(14px, 1.2vw, 17px)/1 var(--body); padding: .75em 1.2em; border-radius: 99px; margin-left: clamp(2px, .6vw, 8px); box-shadow: 0 12px 22px -14px rgba(20, 20, 20, .4); }
.head-tag.nude { background: var(--nude); --tilt: 4deg; }
.head-tag.mint { background: var(--mint); --tilt: -4deg; }
.head-tag { rotate: var(--tilt); }
/* Sticker motion: it lands once the title is well on screen */
.js .head-tag { opacity: 0; scale: .3; rotate: calc(var(--tilt) * -5); transition: scale .9s var(--spring), rotate .9s var(--spring), opacity .25s; }
.js .head-tag.in { opacity: 1; scale: 1; rotate: var(--tilt); }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3.5vw, 56px); row-gap: clamp(64px, 9vw, 120px); }
/* The lead case spans the row; the middle card of the next row sits lower */
.work-grid > .featured { grid-column: 1 / -1; }
/* Two lead cases side by side; healthcare sits a little lower */
.work-grid > :nth-child(2) { margin-top: clamp(0px, 8vw, 120px); }
.work-grid .project .media { aspect-ratio: 16 / 11; }
.project .media.is-screen img { object-position: top left; }
.work-grid > .featured .media { aspect-ratio: 16 / 8; }
.work-grid > .featured h3 { font-size: clamp(30px, 4vw, 52px); }
/* The third project follows the first in its column and starts beside the second one's text */
.work-grid > :nth-child(2) { grid-row: span 2; }
.work-grid > :nth-child(3) { grid-column: 1; margin-top: calc(-1 * clamp(64px, 9vw, 120px) + var(--third-offset, 0px)); }
.project { text-decoration: none; display: block; }
.project .media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tint, var(--blush)); aspect-ratio: 4 / 5; max-width: 100%; }
.project .media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.2s var(--ease); }
.project:hover .media img { transform: scale(1.045); }
.project .info { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; align-items: baseline; }
.project h3 { font-size: clamp(26px, 3vw, 38px); }
.project h3 em { font-size: 1.05em; }
.project p { margin: 6px 0 0; color: var(--ink-soft); max-width: 40ch; }
.project .year { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.about-text p { color: var(--ink-soft); max-width: 52ch; margin: 0 0 16px; }
.about-text .about-lead { font: 300 clamp(28px, 3.6vw, 48px)/1.18 var(--display); letter-spacing: -.025em; color: var(--ink); max-width: none; margin: 14px 0 28px; }
.portrait {
  aspect-ratio: 4 / 5; max-width: 100%; width: min(380px, 100%); justify-self: center;
  border-radius: 999px 999px 28px 28px; overflow: hidden;
  background: linear-gradient(160deg, var(--nude), var(--blush) 60%, var(--mint));
  display: grid; place-items: center; color: var(--ink-soft); font-size: 13px; text-align: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
/* About: particles cycle through the worlds Eilat designs for */
.worlds { margin: 0; justify-self: center; width: min(400px, 100%); display: grid; gap: 14px; justify-items: center; }
.worlds-stage { width: 100%; aspect-ratio: 1; max-width: 100%; }
.worlds figcaption { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.worlds-label { color: var(--ink-soft); }
.worlds [data-world-caption] { padding: 6px 12px; border-radius: 99px; background: var(--mint); rotate: -3deg; min-width: 92px; text-align: center; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.skills li { font-size: 14px; padding: 7px 15px; border-radius: 99px; background: var(--blush); }
.skills li:nth-child(3n+2) { background: var(--mint); }

/* ---------- CV ---------- */
.cv-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 6vw, 80px); }
.cv-side { display: grid; gap: 24px; align-content: start; justify-items: start; }
.cv-side p { margin: 0; color: var(--ink-soft); }
.cv-block + .cv-block { margin-top: 56px; }
.cv-block h3 { font-size: 15px; font-family: var(--body); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.cv-row {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 20px; align-items: baseline;
  padding-block: 22px; border-bottom: 1px solid var(--line);
}
.cv-row .when { font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cv-row .what { font: 300 clamp(22px, 2.4vw, 30px)/1.2 var(--display); letter-spacing: -.02em; }
.cv-row .what small { display: block; font: 400 15px/1.5 var(--body); letter-spacing: 0; color: var(--ink-soft); margin-top: 4px; }
.cv-row .where { font-size: 14px; color: var(--ink-soft); text-align: right; }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-bottom: clamp(60px, 9vw, 120px); }
.contact-word { height: clamp(200px, 32vw, 400px); }
.contact h2 { font-size: clamp(30px, 4vw, 52px); margin: 8px auto 28px; max-width: 18ch; }
.mail {
  border: 0; background: none; cursor: pointer; padding: 0 4px;
  font: 300 clamp(24px, 4.6vw, 60px)/1.1 var(--display); letter-spacing: -.03em; color: var(--ink);
  background: linear-gradient(var(--mint), var(--mint)) 0 92% / 100% 10px no-repeat;
  word-break: break-word; transition: background-size .6s var(--ease);
}
.mail:hover, .mail:focus-visible { background-size: 100% 42%; }
.mail { position: relative; }
.copied { position: absolute; left: 0; right: 0; top: calc(100% + 8px); font: 500 14px/1 var(--body); letter-spacing: 0; color: var(--mint-deep); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 44px 0 0; padding: 0; list-style: none; }

/* ---------- Footer ---------- */
.site-footer { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); padding-block: 28px; border-top: 1px solid var(--line); }
.site-footer a { text-decoration: none; }

/* ---------- Case study page ---------- */
.case-hero { padding-top: 120px; display: grid; gap: 28px; }
.case-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.case-text { display: grid; gap: 28px; align-content: center; }
.case-worlds { width: min(380px, 100%); aspect-ratio: 1; justify-self: center; }
.case-tag { justify-self: start; padding: 8px 14px; border-radius: 99px; background: var(--chip, var(--mint)); color: var(--ink); rotate: -3deg; letter-spacing: .1em; }
/* Inner pages read more than they perform: titles in the text face */
.case-hero h1, .case-body h2 { font-family: var(--body); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.case-hero h1 { font-size: clamp(36px, 4.6vw, 64px); }
@media (max-width: 860px) {
  .case-head { grid-template-columns: 1fr; }
  .case-worlds { order: -1; width: min(240px, 66%); }
}
.case-hero .intro { font: 300 clamp(20px, 2.2vw, 28px)/1.35 var(--display); letter-spacing: -.015em; color: var(--ink-soft); max-width: 36ch; margin: 0; }
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin: clamp(32px, 4vw, 48px) 0 0; padding: 26px 0; border-block: 1px solid var(--line); }
.case-meta dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.case-meta dd { margin: 6px 0 0; }
.case-cover { margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius); overflow: hidden; background: var(--tint, var(--blush)); aspect-ratio: 16 / 9; max-width: 100%; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
[data-zoom] { cursor: zoom-in; }
[data-zoom]:hover img { transform: scale(1.025); }
.case-body { max-width: 760px; margin: clamp(80px, 11vw, 140px) auto; }
.chapter + .chapter { margin-top: clamp(64px, 9vw, 110px); }
.chapter .label { display: block; margin-bottom: 14px; }
.chapter h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 18px; }
.chapter p, .chapter li { color: var(--ink-soft); }
.chapter ul { padding-left: 1.1em; }
.chapter figure { margin: 44px 0 0; }
.chapter figure .case-cover { margin: 0; aspect-ratio: 16 / 10; }
.chapter figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }
/* ---------- More work: a list, smaller images than the main projects ---------- */
.more-work { margin-top: clamp(100px, 14vw, 180px); }
.more-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.more-head h3 { font-size: clamp(34px, 4.6vw, 64px); }
.more-head p { margin: 12px 0 0; color: var(--ink-soft); max-width: 46ch; }
/* More work as a bento mosaic: every so often a large tile, the rest smaller */
.more-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 220px); grid-auto-flow: dense; gap: clamp(12px, 1.4vw, 18px); }
.more-item { position: relative; display: block; width: 100%; height: 100%; border: 4px solid var(--blush); box-shadow: 0 0 0 1px var(--line); padding: 0; background: var(--blush); cursor: pointer; color: inherit; font: inherit; text-align: left; border-radius: 14px; overflow: hidden; }
.more-list > :nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.more-list > :nth-child(6n+4) { grid-column: span 2; }
/* ten projects leave half a row on desktop: the last tile closes it at full width */
/* close the last row whatever the count */
@media (min-width: 861px) { .more-list > :last-child:nth-child(6n+4) { grid-column: 1 / -1; } .more-list > :last-child:nth-child(6n+5) { grid-column: span 2; } .more-list > :last-child:nth-child(6n+3) { grid-column: span 3; } }
.more-media { display: block; position: absolute; inset: 0; }
.more-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.more-item:hover .more-media img, .more-item:focus-visible .more-media img { transform: scale(1.04); }
.more-info { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .93); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); translate: 0 4px; transition: translate .4s var(--ease); }
.more-item:hover .more-info, .more-item:focus-visible .more-info { translate: 0 0; }
.more-info strong { font: 400 clamp(16px, 1.3vw, 19px)/1.2 var(--display); letter-spacing: -.02em; }
.more-info span { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } .more-list > :nth-child(6n+4) { grid-column: span 2; } }
@media (max-width: 480px) { .more-list { grid-auto-rows: 150px; } .more-info span { display: none; } }

/* Screens on the home page keep their own proportions */
.project .media.is-screen { aspect-ratio: auto; }
.project .media.is-screen img { display: block; width: 100%; height: auto; }
button.project { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%; }

/* ---------- Project popup: split on desktop, a sheet from below on mobile ---------- */
.peek { border: 0; padding: 0; color: var(--ink); background: #fff; }
.peek::backdrop { background: rgba(20, 20, 20, .34); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.peek-close { width: 42px; height: 42px; display: grid; place-items: center; border: 0; padding: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; transition: rotate .5s var(--spring); }
.peek-close:hover, .peek-close:focus-visible { rotate: 90deg; }
.peek-close svg { width: 16px; height: 16px; }
.peek-tag { display: inline-block; justify-self: start; font-size: 13px; padding: 6px 12px; border-radius: 99px; background: var(--mint); rotate: -3deg; }
.peek-title { font: 500 clamp(26px, 2.6vw, 38px)/1.1 var(--body); letter-spacing: -.03em; margin: 0; }
.peek-role { margin: 0; color: var(--ink-soft); font-size: 15px; }
.peek-points { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: 15px; }
.peek-live { justify-self: start; }
.peek-shot { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -36px rgba(40, 25, 15, .45); }
.phones .peek-shot { width: min(360px, 100%); }

/* Desktop: the text stays on the side, the screens scroll */
.peek-split { width: min(1240px, calc(100% - 48px)); max-width: none; height: 88vh; max-height: 88vh; overflow: visible; border-radius: 18px; opacity: 0; scale: .97; transition: opacity .3s var(--ease), scale .4s var(--ease); box-shadow: 0 40px 80px -30px rgba(20, 20, 20, .45); }
.peek-split.open { opacity: 1; scale: 1; }
.peek-split > .peek-close { position: absolute; top: -14px; right: -14px; z-index: 3; box-shadow: 0 8px 20px -8px rgba(20, 20, 20, .5); }
.peek-cols { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.3fr); height: 100%; }
.peek-side { padding: 40px 32px; display: grid; gap: 16px; align-content: start; border-right: 1px solid var(--line); overflow-y: auto; }
.peek-count { font: 300 44px/1 var(--display); letter-spacing: -.03em; margin-top: 12px; }
.peek-count small { font-size: 18px; color: var(--ink-soft); }
.peek-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.peek-thumbs button { border: 0; padding: 0; background: var(--blush); border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; opacity: .55; outline: 2px solid transparent; outline-offset: 1px; transition: opacity .2s; }
.peek-thumbs button.on { opacity: 1; outline-color: var(--ink); }
.peek-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.peek-main { overflow-y: auto; overscroll-behavior: contain; padding: 32px; display: grid; gap: 32px; align-content: start; background: #faf8f6; border-radius: 0 18px 18px 0; }
.peek-main.phones { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Mobile: a short case page that slides up from below */
.peek-sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; height: 92vh; max-height: 92vh; border-radius: 22px 22px 0 0; translate: 0 100%; transition: translate .55s var(--ease); box-shadow: 0 -30px 60px -40px rgba(20, 20, 20, .5); }
.peek-sheet.open { translate: 0 0; }
.peek-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.peek-grip { position: sticky; top: 0; z-index: 2; display: flex; justify-content: center; align-items: center; padding: 12px 16px; background: linear-gradient(#fff 70%, rgba(255, 255, 255, 0)); }
.peek-grip i { width: 44px; height: 5px; border-radius: 99px; background: var(--line); }
.peek-grip .peek-close { position: absolute; right: 14px; top: 8px; width: 38px; height: 38px; }
.peek-body { padding: 4px var(--gutter) 64px; }
.peek-intro { display: grid; gap: 14px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.peek-shots { display: grid; gap: 28px; }
.peek-shots.phones { justify-items: center; }
@media (prefers-reduced-motion: reduce) { .peek-split, .peek-sheet { transition: none; } }
html.sheet-open { overflow: hidden; }

/* Insight and decision cards on case pages */
.case-cards { list-style: none; padding: 0 !important; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.case-cards li { background: var(--blush); border-radius: 22px; padding: 20px; color: var(--ink) !important; font-size: 15px; line-height: 1.5; }
.case-cards li:nth-child(3n+2) { background: var(--mint); }
.case-cards strong { display: block; font: 400 20px/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
/* Before / after pair */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.before-after figure { margin: 0; position: relative; }
.before-after .case-cover { margin: 0; aspect-ratio: 16 / 10; }
.before-after .case-cover img { object-fit: contain; }
.before-after + .before-after { margin-top: 28px; }
.ba-tag { position: absolute; z-index: 2; top: 14px; left: 14px; font: 500 13px/1 var(--body); padding: 7px 12px; border-radius: 99px; background: var(--white); rotate: -4deg; box-shadow: 0 10px 20px -12px rgba(20,20,20,.4); }
.ba-tag.after { background: var(--mint); rotate: 4deg; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0 !important; margin: 28px 0 0; }
.results li { background: var(--blush); border-radius: 22px; padding: 22px; color: var(--ink) !important; }
.results li:nth-child(2) { background: var(--mint); }
.results strong { display: block; font: 300 44px/1 var(--display); letter-spacing: -.03em; margin-bottom: 8px; }
.next { display: block; text-align: center; text-decoration: none; padding-block: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.next .label { display: block; margin-bottom: 16px; }
.next strong { font: 300 clamp(44px, 8vw, 110px)/1 var(--display); letter-spacing: -.04em; transition: letter-spacing .8s var(--ease); }
.next:hover strong { letter-spacing: -.01em; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 4vh 4vw;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(20,20,20,.35); scale: .94; transition: scale .6s var(--spring); }
.lightbox.open img { scale: 1; }
.lightbox-close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: var(--gutter); border: 0; background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 99px; cursor: pointer; font-size: 14px; }

/* ---------- Scroll reveals (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .unveil { clip-path: inset(18% 0 0 0 round var(--radius)); transition: clip-path 1.4s var(--ease); }
.js .unveil img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.js .unveil.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .unveil.in img { transform: scale(1.001); }
.js .project:hover .unveil.in img { transform: scale(1.045); }
.js [data-zoom].unveil.in:hover img { transform: scale(1.025); }
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js .split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.js .split.in .w > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .work-grid, .about-grid, .cv-grid { grid-template-columns: 1fr; }
  .work-grid > :nth-child(2), .work-grid > :nth-child(3) { margin-top: 0; }
  .work-grid > .featured .media { aspect-ratio: 4 / 3; }
  .portrait { order: -1; width: min(300px, 80%); }
  .worlds { order: -1; width: min(300px, 80%); }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .results { grid-template-columns: 1fr; }
  .case-cards, .before-after { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; row-gap: 10px; padding-block: 14px; }
  .float-logo, .float-nav .back { display: none; }
  .badge { width: 100px; bottom: 20px; }
  .years-tag { left: auto; right: 0; top: 100%; translate: 0 -10%; }
  .hero-word { margin-top: 58px; }
  .badge-ring text { font-size: 12.5px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; }
  .talk-wrap { grid-column: 2; grid-row: 1; }
  .hero { padding-block: 150px 150px; min-height: 0; }
  .case-hero { padding-top: 140px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .tabs a { font-size: 13px; padding: 7px 11px; }
  .talk { padding: 9px 16px; }
  .cv-row { grid-template-columns: 1fr; gap: 4px; }
  .cv-row .where { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal, .js .split .w > span { opacity: 1; transform: none; }
  .js .unveil { clip-path: none; }
}

/* ---------- Inner pages: one text face, no display font ---------- */
.case-page { --display: var(--body); --accent: #a5654f; --accent-text: #955843; --accent-soft: #eacdbc; --band: #f8f2eb; --rule: #e3c9b9; --rail: var(--sand); }
.theme-care { --accent: #2b47c9; --accent-text: #2b47c9; --accent-soft: #dfe6ff; --band: #f1f4ff; --rule: #cbd5f5; --rail: #aebcf0; }
.theme-mend { --accent: #1b3d8f; --accent-text: #1b3d8f; --accent-soft: #dfe5f3; --band: #f2f5fb; --rule: #c9d4ec; --rail: #a9b9de; }
.case-page .next strong { font-weight: 400; font-size: clamp(34px, 6vw, 80px); letter-spacing: -.035em; }
.case-hero h1.title-xl { font-size: clamp(64px, 10vw, 148px); letter-spacing: -.045em; line-height: .95; }

/* Details: a full-width band, the table centred in it */
.meta-band { background: var(--band); scroll-margin-top: 0; }
/* Design decisions: a name on the left, the reasoning beside it */
.decisions { margin: 28px 0 0; border-top: 1px solid var(--line); }
.decisions > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 8px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.decisions dt { font-weight: 500; color: var(--ink); }
.decisions dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 620px) { .decisions > div { grid-template-columns: 1fr; } }

/* Before and after: full width. Tags, images and captions each share a row, so
   images line up at the top and captions start on one line whatever the image sizes. */
.case-page .chapter.chapter-wide > * { max-width: none; }
.ba-row { margin-top: clamp(36px, 5vw, 60px); }
.ba-row h3 { font: 500 18px/1.3 var(--body); letter-spacing: -.01em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ba-row .before-after { grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 0 clamp(16px, 2.4vw, 32px); margin-top: 20px; }
.ba-row .before-after figure { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.ba-row .ba-tag { position: static; justify-self: start; margin: 0 0 12px 4px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.ba-row .ba-tag.after { background: var(--nude); box-shadow: none; }
.chapter .ba-row figure .case-cover { align-self: start; aspect-ratio: auto; background: none; box-shadow: 0 0 0 1px var(--line); }
.chapter .ba-row figure .case-cover img { width: 100%; height: auto; object-fit: contain; }
.ba-row figcaption { align-self: start; }
@media (max-width: 760px) {
  .ba-row .before-after { grid-template-columns: 1fr; }
  .ba-row .before-after figure { display: block; }
  .ba-row .before-after figure + figure { margin-top: 24px; }
}

/* Client quotes */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.quote { margin: 0 !important; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(22px, 2.6vw, 36px); border-radius: var(--radius); background: var(--band); }
.quote blockquote { margin: 0; font: 400 clamp(18px, 1.7vw, 23px)/1.45 var(--body); letter-spacing: -.01em; color: var(--ink); }
.quote blockquote::before { content: "“"; display: block; font: 500 56px/.7 var(--body); color: var(--accent); margin-bottom: 14px; }
.quote figcaption { display: grid; gap: 2px; margin: 0; font-size: 15px; }
.quote figcaption strong { font-weight: 500; color: var(--ink); }
.quote.is-placeholder { background: none; box-shadow: inset 0 0 0 1px var(--sand); }
.quote.is-placeholder blockquote { color: var(--ink-soft); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Screen tour, scroll scrubbed (js/flow.js) ----------
   A tall track; everything inside pins to the viewport while you scroll it. */
.flow { height: calc(100vh + var(--flow-len, 300) * 1vh); margin-top: clamp(8px, 2vw, 28px); }
.flow-pin { overflow: hidden; position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; padding-top: 70px; padding-bottom: 16px; }
.flow-inner { width: min(var(--max) - 2 * var(--gutter), 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); align-items: center; gap: clamp(28px, 4vw, 72px); }
.flow-stage { width: min(100%, (100vh - 190px) * var(--flow-ratio, 1.5385)); min-width: 0; }
.flow-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
.flow-skip { font: 500 14px/1 var(--body); color: var(--ink-soft); text-underline-offset: 4px; white-space: nowrap; }
.flow-skip:hover { color: var(--ink); }
.flow-frame { padding: clamp(6px, .8vw, 10px); border-radius: calc(var(--radius) + 6px); background: #1d1b1a; box-shadow: 0 34px 60px -34px rgba(40, 25, 15, .55); }
.flow-view { position: relative; overflow: hidden; border-radius: var(--radius); background: #fff; }
.flow-shot { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s var(--ease); }
.flow-shot.is-on { opacity: 1; z-index: 1; }
.flow-cursor { position: absolute; z-index: 3; margin: -4px 0 0 -7px; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.flow-cursor svg { display: block; width: clamp(24px, 2.8vw, 38px); height: auto; }
.flow-cursor::before { content: ""; position: absolute; left: 7px; top: 4px; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: rgba(255, 210, 63, .6); scale: 0; opacity: 0; }
.flow-cursor.is-click::before { animation: flow-click .6s var(--ease); }
@keyframes flow-click { from { scale: .2; opacity: 1; } to { scale: 1; opacity: 0; } }

.flow-rail { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 8px; }
.flow-rail li { display: flex; align-items: center; gap: 8px; }
.flow-rail li + li::before { content: ""; width: clamp(12px, 2.4vw, 36px); height: 1px; background: var(--rail); }
.flow-dot { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0; cursor: pointer; font: 500 14px/1 var(--body); color: var(--ink-soft); white-space: nowrap; }
.flow-dot b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 500; font-size: 13px; box-shadow: inset 0 0 0 1px var(--rail); transition: background-color .3s, color .3s, box-shadow .3s; }
.flow-dot.is-done b { background: var(--accent-soft); box-shadow: none; color: var(--ink); }
.flow-dot[aria-current] { color: var(--ink); }
.flow-dot[aria-current] b { background: var(--ink); color: #fff; box-shadow: none; }
.flow-dot:hover { color: var(--ink); }

.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.flow-step { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: 0; translate: 0 14px; visibility: hidden; transition: opacity .35s, translate .45s var(--ease), visibility 0s .35s; }
.flow-step.is-active { opacity: 1; translate: 0 0; visibility: visible; transition-delay: 0s; }
.flow-step h2 { font: 500 clamp(26px, 2.6vw, 38px)/1.1 var(--body); letter-spacing: -.03em; }
.flow-step p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) {
  .flow-pin { padding-top: 78px; }
  .flow-inner { grid-template-columns: 1fr; gap: 22px; }
  .flow-stage { width: min(100%, max(220px, (100svh - 270px) * var(--flow-ratio, 1.5385))); margin-inline: auto; }

  .flow-step { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .flow-shot, .flow-step { transition: none; } }
.flow-skip i { font-style: normal; }

/* ---------- BullsEye page: wider container, shared left and right edges ---------- */
.case-wide { --max: 1608px; }
.case-wide .case-worlds { width: min(500px, 100%); }
.case-wide .case-hero { padding-top: 96px; gap: 0; }

/* Details: a full-width band; columns ruled apart, labels in the product's brown */
.meta-band .case-meta { margin: 0 auto; padding: clamp(60px, 6vw, 80px) var(--gutter); padding-top: clamp(84px, 7vw, 96px); border: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.meta-band .case-meta > div { padding: 4px clamp(14px, 1.8vw, 28px) 6px; border-left: 1px solid var(--rule); }
.meta-band .case-meta > div:first-child { padding-left: 0; border-left: 0; }
.meta-band .case-meta dt { color: var(--accent-text); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.meta-band .case-meta dt::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.meta-band .case-meta dd { margin-top: 14px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
@media (min-width: 561px) and (max-width: 1000px) {
  .meta-band .case-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .meta-band .case-meta > div:nth-child(3n+1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .meta-band .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .meta-band .case-meta > div { padding-left: 14px; border-left: 1px solid var(--rule); }
  .meta-band .case-meta > div:nth-child(2n+1) { padding-left: 0; border-left: 0; }
}

/* Chapters share the details' left edge. One particle formation stays pinned
   to the right and takes a new shape for each chapter (shapes.js, data-follow). */
.case-page .case-body { max-width: none; margin-block: clamp(72px, 9vw, 120px) clamp(80px, 11vw, 140px); }
.case-page .chapter > * { max-width: 760px; }
.case-cols { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); margin-bottom: clamp(64px, 9vw, 110px); }
.case-art { position: sticky; top: calc(50vh - 170px); align-self: start; justify-self: center; width: min(340px, 100%); aspect-ratio: 1; }
@media (max-width: 1000px) { .case-cols { display: block; } .case-art { display: none; } }

/* Screens in the page wear the same dark frame as the tour */
.chapter .ba-row figure .case-cover.is-framed { padding: clamp(5px, .6vw, 8px); background: #1d1b1a; border-radius: calc(var(--radius) + 4px); box-shadow: 0 24px 44px -28px rgba(40, 25, 15, .5); }
.chapter .ba-row figure .case-cover.is-framed img { border-radius: calc(var(--radius) - 2px); }

/* Outcome: what the interface gives (outlined, icon on top), then what happened */
.outcome-now { list-style: none; padding: 0 !important; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.outcome-now li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; min-height: clamp(220px, 22vw, 300px); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--sand); color: var(--ink) !important; font: 500 clamp(18px, 1.6vw, 22px)/1.3 var(--body); letter-spacing: -.01em; }
.outcome-now svg { width: clamp(56px, 6vw, 84px); height: auto; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.outcome-now span { max-width: 24ch; }
.outcome { list-style: none; padding: 0 !important; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.outcome li { display: grid; gap: 8px; align-content: start; padding: clamp(18px, 2vw, 26px); border-radius: var(--radius); background: var(--band); color: var(--ink) !important; }
.outcome strong { font: 500 clamp(19px, 1.7vw, 23px)/1.2 var(--body); letter-spacing: -.02em; }
.outcome span { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 760px) { .outcome, .outcome-now { grid-template-columns: 1fr; } .outcome-now li { min-height: 0; } }

/* Next project, with a look at it */
.next-shot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px); text-align: left; }
.next-shot .next-text { display: block; }
.case-page .next-shot strong { display: block; font-size: clamp(32px, 4.6vw, 68px); line-height: 1.05; }
.next-img { display: block; padding: clamp(5px, .6vw, 8px); border-radius: calc(var(--radius) + 4px); background: var(--chip, var(--blush)); overflow: hidden; transition: rotate .6s var(--spring), translate .6s var(--ease); }
.next-img img { width: 100%; height: auto; border-radius: calc(var(--radius) - 2px); }
.next-shot:hover .next-img { rotate: -1.5deg; translate: 0 -6px; }
@media (max-width: 760px) { .next-shot { grid-template-columns: 1fr; } }

/* Outcome opens with the goal it answers */
.outcome-goal { margin: 28px 0 40px; padding-left: clamp(16px, 2vw, 26px); border-left: 3px solid var(--accent); max-width: 34ch !important; font: 500 clamp(20px, 2.1vw, 30px)/1.3 var(--body); letter-spacing: -.02em; color: var(--ink) !important; }
.outcome-goal .label { display: block; margin-bottom: 12px; color: var(--accent-text); }

/* Longer case titles */
.case-hero h1.title-lg { font-size: clamp(40px, 5.6vw, 84px); letter-spacing: -.04em; line-height: 1; max-width: 14ch; }
/* Details with four entries: the first gets the room */
.meta-band .case-meta.cols-4 { grid-template-columns: 1.6fr 1fr 1.4fr 1fr; }
@media (max-width: 1000px) { .meta-band .case-meta.cols-4 { grid-template-columns: 1fr 1fr; row-gap: 28px; } .meta-band .case-meta.cols-4 > div:nth-child(odd) { padding-left: 0; border-left: 0; } .meta-band .case-meta.cols-4 > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule); } }
/* A screen inside a chapter, in the tour's dark frame */
.chapter .shot { margin: 36px 0 0; }
.chapter .shot .case-cover { margin: 0; aspect-ratio: auto; padding: clamp(5px, .6vw, 8px); background: #1d1b1a; border-radius: calc(var(--radius) + 4px); box-shadow: 0 24px 44px -28px rgba(20, 25, 60, .5); }
.chapter .shot .case-cover img { width: 100%; height: auto; border-radius: calc(var(--radius) - 2px); }
.chapter h3.sub { font: 500 19px/1.3 var(--body); letter-spacing: -.01em; margin: 30px 0 8px; }
.outcome-lead { margin: 8px 0 20px !important; padding-left: clamp(16px, 2vw, 26px); border-left: 3px solid var(--accent); font: 500 clamp(20px, 2.1vw, 28px)/1.3 var(--body); letter-spacing: -.02em; color: var(--ink) !important; }

/* ---------- Review fixes ---------- */
/* The reveal clip would cut an outside focus ring, so zoomable images draw it inside */
[data-zoom] { position: relative; }
[data-zoom]:focus-visible { outline: 0; }
[data-zoom]:focus-visible::after { content: ""; position: absolute; inset: 0; z-index: 2; border: 3px solid var(--ink); border-radius: inherit; box-shadow: inset 0 0 0 2px #fff; pointer-events: none; }
/* One real quote: let it sit at a comfortable reading width */
.quotes:has(.quote:only-child) { grid-template-columns: minmax(0, 760px); }
/* Rail labels: below 1100px only the current step keeps its name on screen; the
   others stay in the accessibility tree */
@media (max-width: 1100px) {
  .flow-dot:not([aria-current]) span, .flow-skip i { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Short landscape screens (a phone on its side): screen and text side by side */
@media (max-height: 540px) and (min-width: 600px) {
  .flow-pin { padding-top: 66px; padding-bottom: 10px; }
  .flow-inner { grid-template-columns: auto minmax(0, 1fr); gap: 24px; }
  .flow-stage { width: max(220px, (100svh - 126px) * var(--flow-ratio, 1.5385)); margin-inline: 0; }
  .flow-bar { margin-bottom: 8px; }
  .flow-step h2 { font-size: 22px; }
  .flow-step p { font-size: 15px; line-height: 1.5; }
  .flow-cursor svg { width: 18px; }
  .case-worlds { display: none; }
}
/* Too short to pin anything (heavy zoom): the tour becomes a plain block with every step listed */
@media (max-height: 340px) {
  .flow { height: auto; }
  .flow-pin { position: static; height: auto; overflow: visible; padding-top: 16px; }
  .flow-inner { grid-template-columns: 1fr; }
  .flow-stage { width: 100%; }
  .flow-steps { gap: 20px; }
  .flow-step { grid-area: auto; opacity: 1; translate: none; visibility: visible; }
  .flow-cursor { display: none; }
}

/* One line under the intro: what the designer did, and with whom */
.hero-role { margin: 0; max-width: 46ch; font: 500 clamp(15px, 1.2vw, 17px)/1.5 var(--body); color: var(--ink); padding-left: 14px; border-left: 2px solid var(--accent); }

/* Tours with two tracks (doctor / patient): a small track name opens each group on
   the rail and sits above each step's text. Long rails show only the current label. */
.flow-rail li.flow-track { font: 500 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--accent-soft); padding: 6px 10px; border-radius: 99px; }
.flow-rail li.flow-track::before { content: none; }
.flow-rail li.flow-track:not(:first-child) { margin-left: clamp(10px, 2vw, 28px); }
.flow-rail li.flow-track + li::before { content: none; }
.flow-who { display: inline-block; margin-bottom: 10px; font: 500 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.flow-compact .flow-rail li + li::before { width: clamp(8px, 1.2vw, 18px); }
.flow-compact .flow-dot:not([aria-current]) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Live concept embedded in a case study */
.concept-demo { margin-bottom: clamp(64px, 9vw, 110px); }
.concept-demo p { max-width: 760px; }
.demo-frame { margin-top: 28px; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -40px rgba(20, 23, 31, .35); }
.demo-frame iframe { display: block; width: 100%; height: 1240px; border: 0; }
.demo-link { margin-top: 16px; }
.demo-link a { color: var(--accent-text); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 1000px) { .demo-frame iframe { height: 1900px; } }

/* Lead screen under a case title */
.hero-shot { margin-top: clamp(32px, 5vw, 64px); margin-bottom: clamp(48px, 7vw, 88px); }
.hero-shot .case-cover { margin: 0; aspect-ratio: auto; padding: clamp(6px, .7vw, 10px); background: #1d1b1a; border-radius: calc(var(--radius) + 6px); box-shadow: 0 34px 60px -36px rgba(20, 25, 60, .55); }
.hero-shot .case-cover img { width: 100%; height: auto; border-radius: calc(var(--radius) - 2px); display: block; }

/* Framed screens keep their frame: no scale on the image inside */
.js .chapter .shot .unveil img, .js .chapter .shot .unveil.in img, .chapter .shot [data-zoom]:hover img, .js .chapter .shot [data-zoom].unveil.in:hover img { transform: none; }

/* Mend: outcome boxes in one row */
.theme-mend .outcome { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.theme-mend .outcome li { padding: clamp(16px, 1.6vw, 20px); }
.theme-mend .outcome strong { font-size: clamp(16px, 1.3vw, 18px); }
.theme-mend .outcome span { font-size: 13px; }
@media (max-width: 1000px) { .theme-mend .outcome { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .theme-mend .outcome { grid-template-columns: 1fr; } }

/* Two CV downloads side by side */
.cv-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Websites: a generic tile that spans to the end of its row */
.more-media.generic { display: grid; place-items: start center; padding-top: clamp(14px, 3vw, 34px); background: linear-gradient(140deg, #eef2fb, #f8f2eb); }
.more-media.generic svg { width: min(30%, 170px); height: auto; fill: #fff; stroke: #8e9bb8; stroke-width: 1.6; stroke-linecap: round; transition: transform 1s var(--ease); }
.more-media.generic .front { fill: #fff; stroke: #1b3d8f; }
.more-media.generic .front-line { stroke: #7fa3ec; }
.more-item:hover .more-media.generic svg { transform: scale(1.05) rotate(-1deg); }
@media (min-width: 861px) { .more-list > :last-child:nth-child(6n) { grid-column: span 3; } }
.peek-links { display: flex; flex-wrap: wrap; gap: 10px; }
/* Phone screens stay phone-sized */
.phones .peek-shot { width: min(260px, 100%); }
.peek-main.phones { grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); justify-content: center; }

/* More work: a 1px frame on every item */
.more-item { border: 1px solid #d8d4cc; box-shadow: none; }
/* Websites: an illustration across the whole tile */
.more-media.generic { display: block; padding: 0; }
.more-media.generic svg { width: 100%; height: 100%; transform-origin: center; }
.more-media.generic .site rect, .more-media.generic .site path { fill: #fff; stroke: #c9d1e3; stroke-width: 1.4; }
.more-media.generic .site path { fill: none; }
.more-media.generic .ink { fill: #1d2433 !important; stroke: none !important; }
.more-media.generic .soft { fill: #e6ebf5 !important; stroke: none !important; }
.more-media.generic .light { fill: rgba(255,255,255,.85) !important; stroke: none !important; }
.more-media.generic .pic { fill: #b9c9ee !important; stroke: none !important; }
.more-media.generic .accent { fill: #1b3d8f !important; stroke: none !important; }
.more-media.generic .dots circle { fill: #c9d1e3; }
.more-media.generic .s1 { transform: rotate(-3deg); transform-origin: 116px 100px; }
.more-media.generic .s3 { transform: rotate(3deg); transform-origin: 536px 110px; }
.more-item:hover .more-media.generic svg { transform: scale(1.03); }
/* Phone screens keep their size wherever they appear */
.peek-shot.is-phone { width: min(260px, 100%); justify-self: center; margin-inline: auto; }
.peek-video { position: relative; width: 100%; height: 0; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); align-self: start; }
.peek-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.peek-main.phones .peek-video { grid-column: 1 / -1; width: min(640px, 100%); justify-self: center; }
