/* Shared site styles: homepage, case studies, experiment pages.
   Layout: one centred 12-column frame with wide margins; text stays left-aligned
   inside it. Calm editorial base (Margin Notes) + hand-drawn diagrams in hero and AI Lab.
   Single light theme by choice, per brief. */
:root {
  color-scheme: light;
  --paper: #F7F5F1;
  --paper-2: #EFECE6;
  --card: #FBFAF7;         /* cards sit a touch lighter than the page */      /* placeholder fill, one step down from paper */
  --ink: #141414;
  --ink-2: #5C5A55;        /* secondary text, warm grey, passes AA on paper */
  --sage: #E2EEE4;
  --slate: #A6B4BD;        /* lines, dots, placeholders only - never text */
  --lilac: #E6E2EE;
  --logo-bg: #FFFFFF; /* company logos come on white */
  --lilac-2: #CDC5DF; /* a step darker, for outlines on lilac fills */
  --line: rgba(20, 20, 20, .12);
  --note: #4A5A66;         /* design-note text: slate pushed dark enough to read */

  --text: "Merriweather", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive; /* stand-in for your own handwriting */

  --t-display: clamp(1.875rem, 1.3rem + 1.9vw, 2.75rem);
  --t-h2: clamp(1.375rem, 1.15rem + .8vw, 1.75rem);
  --t-h3: clamp(1rem, .96rem + .2vw, 1.125rem);
  --t-body: .9375rem;
  --t-small: .8125rem;
  --t-label: .6875rem;

  --frame: 1000px;          /* about half of a wide screen, like your reference */
  --gutter: clamp(20px, 9vw, 180px);
  --section: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { background: var(--paper); }
/* laptop and up: the whole rem scale steps down about 6% (15px base instead of 16px) */
@media (min-width: 1024px) { html { font-size: 93.75%; } }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--lilac); }

.frame {
  max-width: calc(var(--frame) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); }
.grid > * { min-width: 0; }

.label {
  font-size: var(--t-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); margin: 0;
}
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-display); line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: var(--t-h2); line-height: 1.2; letter-spacing: -.015em; }
h3 { font-size: var(--t-h3); line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
.measure { max-width: 34em; }
.muted { color: var(--ink-2); }

/* highlighter: a soft swipe of colour behind a word, drawn left to right */
.hl { background: linear-gradient(var(--c, var(--sage)), var(--c, var(--sage))) no-repeat 0 82% / 100% .42em; padding: 0 .06em; }
.js .hl.draw { background-size: 0% .42em; transition: background-size 1.1s var(--ease) .35s; }
.js .hl.draw.on { background-size: 100% .42em; }

/* hand-drawn strokes */
.mark { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.js .mark.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); }
.js .mark.draw.on path { stroke-dashoffset: 0; }
.hand { font-family: var(--hand); font-size: 1.25rem; line-height: 1.1; color: var(--ink); font-weight: 500; }

/* small dotted traces: the hero route in miniature, drawn through a mask when they arrive */
.trace { display: block; width: 140px; height: 24px; overflow: visible; }
.trace path.dot { fill: none; stroke: var(--slate); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .1 7; }
.trace circle.end { fill: var(--ink); }
.js .mk { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .15s; }
.js .on .mk { stroke-dashoffset: 0; }
.js .trace circle.end { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .5s var(--ease) 1.25s, transform .6s var(--ease) 1.25s; }
.js .trace.on circle.end { opacity: 1; transform: none; }

/* placeholders: clean frames, never fake screenshots */
.ph {
  position: relative; display: grid; place-items: center; gap: 10px; align-content: center;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px;
  color: var(--ink-2); font-size: var(--t-small); text-align: center; padding: 16px; max-width: 100%;
}
.ph svg { width: 28px; height: 28px; stroke: var(--slate); fill: none; stroke-width: 1.5; }
.ph span { max-width: 22em; }

/* design notes: margin annotations explaining decisions */
.note {
  font-size: .8125rem; line-height: 1.5; color: var(--note);
  border-left: 1px solid var(--slate); padding: 2px 0 2px 12px; max-width: 26em;
}
.note b { display: block; font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 2px; }

/* entrance: only elements below the first screen are prepared; everything is visible without JS */
.js .rv.pre { opacity: 0; transform: translateY(18px); }
.js .rv { transition: opacity .9s var(--ease), transform 1.1s var(--ease); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav .frame { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.nav .name { font-weight: 700; font-size: var(--t-small); text-decoration: none; letter-spacing: -.01em; }
.nav ul { display: flex; gap: clamp(16px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; font-size: var(--t-small); }
.nav ul a { position: relative; text-decoration: none; color: var(--ink-2); padding: 6px 0; transition: color .4s var(--ease); }
.nav ul a:hover, .nav ul a[aria-current="true"] { color: var(--ink); }
/* the underline is revealed by a clip that sweeps left to right, so nothing of it shows at rest */
.nav ul a svg { position: absolute; left: -2px; right: -2px; bottom: -2px; width: calc(100% + 4px); height: 8px; overflow: visible;
  clip-path: inset(-4px 100% -4px -4px); opacity: 0; transition: clip-path .6s var(--ease), opacity .3s var(--ease) .3s; }
.nav ul a:hover svg { clip-path: inset(-4px -4px -4px -4px); opacity: .35; transition: clip-path .6s var(--ease), opacity .2s; }
.nav ul a[aria-current="true"] svg { clip-path: inset(-4px -4px -4px -4px); opacity: 1; transition: clip-path .6s var(--ease), opacity .2s; }
.menu-btn { display: none; font: inherit; font-size: var(--t-small); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 4px; background: var(--paper);
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); font-size: 1.25rem; }
  .nav.open ul { display: flex; }
  .nav ul a { display: inline-block; padding: 8px 0; color: var(--ink); }
}

section { scroll-margin-top: 72px; }
.sec { padding-block: var(--section) 0; }
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) 0; }
.hero h1 { grid-column: 1 / span 11; }
.journey { grid-column: 1 / -1; position: relative; margin: clamp(20px, 3vw, 32px) 0 clamp(4px, 1.5vw, 12px); }
.journey svg { width: 100%; height: auto; display: block; overflow: visible; }
.journey .route { fill: none; stroke: var(--slate); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0.1 9; }
.journey .stop { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.journey .traveller { fill: var(--ink); }
.journey .tag { font-family: var(--hand); font-size: 24px; fill: var(--ink); }
.js .journey .reveal-mask path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) .2s; }
.js .journey.on .reveal-mask path { stroke-dashoffset: 0; }
.hero-copy { grid-column: 1 / span 5; display: grid; gap: 1.1em; align-content: start; padding-top: 8px; }
.hero-copy p:first-child { font-size: 1.0625rem; }
.hero-art { grid-column: 7 / span 6; display: grid; align-content: start; margin-top: -8px; }
/* white paper of the scan disappears into the page colour */
.hero-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.js .hero-art img.draw { opacity: 0; transform: translateY(14px); transition: opacity 1.2s var(--ease) .6s, transform 1.4s var(--ease) .6s; }
.js .hero-art img.draw.on { opacity: 1; transform: none; }
/* handwritten hello: appears once the illustration has landed, then the arrow draws to her */
.hero-art { position: relative; }
/* the arrow stops short of her hair, pointing at her rather than touching the drawing */
.hello { position: absolute; left: 0; top: -2%; margin: 0; font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); transform: rotate(-5deg); transform-origin: left center; white-space: nowrap; }
.hello-arrow { position: absolute; left: 9%; top: 9%; width: 13%; height: auto; aspect-ratio: 90 / 60; overflow: visible; }
.js .hello.draw { opacity: 0; transform: rotate(-5deg) translateY(6px); transition: opacity .8s var(--ease) 1.5s, transform 1s var(--ease) 1.5s; }
.js .hello.draw.on { opacity: 1; transform: rotate(-5deg); }
.js .mark.draw.hello-arrow path { transition-delay: 1.9s; }
.js .mark.draw.hello-arrow path + path { transition-delay: 2.5s; }
.hero-notes { grid-column: 1 / span 6; margin-top: 28px; display: grid; gap: 16px; }
@media (max-width: 860px) {
  .hero h1, .hero-copy, .hero-art, .hero-notes { grid-column: 1 / -1; }
  .hero-art { margin-top: 56px; }
  .hello { top: -36px; }
  .hello-arrow { top: -4%; left: 14%; }
}

/* ---------- short version ---------- */
.nutshell { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); row-gap: 0; border-top: 1px solid var(--line); }
.nutshell > * { min-width: 0; }
/* four blocks, one pattern: a 12x2 field of squares, a headline, a line of copy.
   Each field has its own rest state and hover state; squares change in a left-to-right wave. */
.nb { grid-column: span 6; padding: clamp(22px, 3vw, 32px) 0; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--line); }
.nb:nth-child(odd) { padding-right: clamp(16px, 2.4vw, 32px); }
.nb:nth-child(even) { border-left: 1px solid var(--line); padding-left: clamp(16px, 2.4vw, 32px); }
.nb h3 { max-width: 16em; }
.nb p { max-width: 30em; color: var(--ink-2); }
.arr { transition: transform .5s var(--ease); display: inline-block; }
.tokens { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; max-width: 250px; margin-bottom: 6px; }
.tokens.groups { grid-template-columns: repeat(4, 1fr) 2px repeat(4, 1fr) 2px repeat(4, 1fr); }
.tokens i {
  --d: calc(var(--i, 0) * 35ms);
  aspect-ratio: 1; border-radius: 2px; background: var(--paper-2); border: 1px solid var(--line);
  transition: background-color .6s var(--ease) var(--d), border-color .6s var(--ease) var(--d), transform .8s var(--ease) var(--d), opacity .8s var(--ease) var(--d);
}
.tokens i.a { background: var(--ta); }
.tokens i.a2 { background: var(--ta2); }
.tokens i.d { background: transparent; border-style: dashed; border-color: var(--slate); }
.nb:hover .tokens i.b, .nb.on .tokens i.b { background: var(--tb); border-style: solid; border-color: var(--line); }
.nb.swap:hover .tokens i.a:not(.b), .nb.swap.on .tokens i.a:not(.b),
.nb.swap:hover .tokens i.a2:not(.b), .nb.swap.on .tokens i.a2:not(.b) { background: var(--paper-2); }
/* three-up variant, used on case study pages */
.nutshell.three .nb { grid-column: span 4; border-left: 0; padding-left: 0; padding-right: clamp(14px, 2vw, 28px); }
.nutshell.three .nb + .nb { border-left: 1px solid var(--line); padding-left: clamp(14px, 2vw, 28px); }
.nutshell.three .nb h3 { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); }
.nutshell.three .nb p { font-size: .875rem; }
@media (max-width: 760px) { .nutshell.three .nb, .nutshell.three .nb + .nb { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-right: 0; } }
.js .nb.pre .tokens i { opacity: 0; transform: scale(.5); }
@media (max-width: 760px) {
  .nb, .nb:nth-child(odd), .nb:nth-child(even) { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-right: 0; }
}

/* ---------- selected work ---------- */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 44px) clamp(16px, 2.2vw, 28px); }
.work { display: grid; gap: 14px; align-content: start; text-decoration: none; min-width: 0; }
.work .ph { aspect-ratio: 3 / 2; border-radius: 6px; transition: background-color .7s var(--ease), transform 1.1s var(--ease); }
/* a finished thumbnail: the image fills the frame; on hover the frame lifts and the image eases in slightly */
.work .ph.shot { padding: 0; border: 0; overflow: hidden; background: var(--paper-2); }
.work .ph.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work:hover .ph.shot, .work.on .ph.shot { background: var(--paper-2); }
.work:hover .ph.shot img, .work.on .ph.shot img { transform: scale(1.03); }
.work .ph svg { transition: transform 1.1s var(--ease); }
.work:hover .ph, .work.on .ph { background: color-mix(in srgb, var(--paper-2) 70%, var(--sage)); transform: translateY(-4px); }
.work:hover .ph svg, .work.on .ph svg { transform: scale(1.15); }
.work-text { display: grid; gap: 6px; }
.work-meta { font-size: var(--t-small); color: var(--ink-2); }
.work h3 { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.35; letter-spacing: -.01em; max-width: 22em; }
/* the title gets the same highlighter stroke as "evolving" in the hero */
@media (max-width: 720px) {
  .works { grid-template-columns: 1fr; }
}
.status { display: inline-block; font-size: var(--t-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border: 1px dashed var(--slate); border-radius: 999px; padding: 3px 10px; width: fit-content; }

/* ---------- AI Lab ---------- */
.lab-paper {
  position: relative; border-radius: 6px; border: 1px solid var(--line);
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--slate) 65%, transparent) 1px, transparent 0);
  background-size: 22px 22px;
  padding: clamp(20px, 3vw, 40px);
}
.lab-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); align-items: end; margin-bottom: clamp(24px, 3.5vw, 40px); }
.lab-head > * { min-width: 0; }
.lab-intro { grid-column: 1 / span 6; display: grid; gap: 14px; }
.lab-map { grid-column: 8 / span 5; }
.lab-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.lab-map .edge { stroke: var(--slate); stroke-width: 1.5; stroke-dasharray: .1 6; stroke-linecap: round; fill: none; }
.js .lab-map g, .js .lab-map .hub { opacity: 0; transition: opacity .7s var(--ease); }
.js .lab-map svg.on .hub { opacity: 1; transition-delay: .1s; }
.js .lab-map svg.on g { opacity: 1; transition-delay: 1.1s; }
.js .lab-map svg.on g + g { transition-delay: 1.25s; }
.js .lab-map svg.on g + g + g { transition-delay: 1.4s; }
.js .lab-map svg.on g + g + g + g { transition-delay: 1.55s; }
.lab-map .node { fill: var(--paper); stroke: var(--ink); stroke-width: 1.3; transition: fill .5s var(--ease); }
.lab-map .hub { fill: var(--ink); }
.lab-map text { font-family: var(--text); font-size: 10.5px; fill: var(--ink-2); letter-spacing: .04em; }
.lab-map g.on .node { fill: var(--lilac); }
.lab-map g.on text { fill: var(--ink); }
.lab-map .node.soon { stroke-dasharray: 2.5 3; }
.exps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.exp { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 16px; display: grid; gap: 10px; align-content: start; transition: border-color .5s var(--ease), transform .9s var(--ease); }
.exp:hover, .exp:focus-within { border-color: var(--ink); transform: translateY(-3px); }
.exp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.exp-id { font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; font-variant-numeric: tabular-nums; }
.exp h3 { font-size: 1.0625rem; }
.exp p { font-size: .875rem; color: var(--ink-2); }
.exp .ph { aspect-ratio: 4 / 3; }
.exp dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .8125rem; border-top: 1px solid var(--line); padding-top: 12px; }
.exp dt { color: var(--ink-2); }
.exp dd { margin: 0; }
/* featured experiment: a full-width card with the app's screens, linking to its case study */
.exp-feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3.5vw, 48px); align-items: center; padding: clamp(14px, 1.8vw, 20px); margin-bottom: clamp(16px, 2.2vw, 28px); text-decoration: none; color: inherit; }
.exp-body { display: grid; gap: 10px; align-content: start; min-width: 0; }
.exp-feature h3 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.625rem); line-height: 1.3; }
.exp .exp-more { color: var(--ink); font-size: var(--t-small); margin-top: 4px; }
.exp-more .arr { display: inline-block; transition: transform .6s var(--ease); }
.exp-feature:hover .exp-more .arr, .exp-feature:focus-visible .exp-more .arr { transform: translateX(6px); }

/* phone screens: portrait app screenshots side by side on a soft panel, the middle one lifted */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.8vw, 24px); align-items: center; padding: clamp(22px, 3.6vw, 44px) clamp(18px, 4vw, 48px); background: var(--sage); border-radius: 4px; overflow: hidden; }
.phones img { display: block; width: 100%; height: auto; border-radius: clamp(10px, 1.4vw, 20px); border: 1px solid var(--line); box-shadow: 0 18px 36px -22px rgba(20, 20, 20, .35); transition: transform 1.1s var(--ease); }
.phones img:nth-child(2) { transform: translateY(-6%); }
.exp-feature:hover .phones img:nth-child(2), .exp-feature:focus-visible .phones img:nth-child(2) { transform: translateY(-9%); }
/* mirrored layout (.flip); coming soon (.soon): a dashed browser window that turns solid on hover; no link, so no lift */
.exp-feature.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.exp-feature.flip .exp-body { order: -1; }
.exp.soon:hover, .exp.soon:focus-within { transform: none; }
.soon-shot { display: grid; aspect-ratio: 16 / 10; padding: clamp(20px, 4vw, 44px); background: var(--lilac); border-radius: 4px; }
.soon-win { display: grid; align-content: start; gap: 9%; padding: 0 9% 9%; border: 1.5px dashed color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--paper) 55%, transparent); transition: border-color .6s var(--ease); }
.soon-win b { display: flex; gap: 6px; padding: 12px 0 0; margin-inline: -4%; }
.soon-win i { width: 7px; height: 7px; border-radius: 50%; border: 1.2px solid color-mix(in srgb, var(--ink) 35%, transparent); }
.soon-win span { height: 9px; border-radius: 999px; background: var(--lilac-2); }
.soon-win span:nth-of-type(1) { width: 52%; height: 14px; }
.soon-win span:nth-of-type(2) { width: 78%; }
.soon-win span:nth-of-type(3) { width: 40%; }
.exp.soon:hover .soon-win { border-style: solid; border-color: var(--ink); }
/* a website experiment: the browser frame and its backdrop are part of the image */
.web-shot { border-radius: 4px; overflow: hidden; }
.web-shot img { display: block; width: 100%; height: auto; transition: transform 1.1s var(--ease); }
.exp-feature:hover .web-shot img, .exp-feature:focus-visible .web-shot img { transform: scale(1.025); }
/* case study hero: the same screens with more room around them */
.hero-phones { padding: clamp(32px, 6vw, 72px) clamp(24px, 12vw, 160px); gap: clamp(12px, 3vw, 40px); border-radius: 6px; }
.phones.two { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: clamp(24px, 10vw, 120px); }
.phones.two img:nth-child(2) { transform: none; }
.fig.tall .ph.shot { max-width: 640px; margin-inline: auto; }
.decision .phones { background: var(--paper); }
/* a course, not an experiment: a compact card. The logo tile (on white, like the company logos)
   sits centred on the label, title and text; the link sits below the text */
.exp-course { grid-template-columns: clamp(112px, 14vw, 148px) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 36px); row-gap: 12px; align-items: center; padding: clamp(14px, 1.8vw, 20px); text-decoration: none; color: inherit; }
.exp-course h3 { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.3; }
.exp-course .exp-body > p { max-width: 40em; }
.exp-course .exp-more { grid-column: 2; margin-top: 0; }
.course-logo { display: grid; place-items: center; aspect-ratio: 1; background: var(--logo-bg); border: 1px solid var(--line); border-radius: 4px; }
.course-logo img { display: block; width: 56%; height: auto; transition: transform 1.1s var(--ease); }
.exp-course:hover .course-logo img, .exp-course:focus-visible .course-logo img { transform: scale(1.06); }
.exp-course:hover .exp-more .arr, .exp-course:focus-visible .exp-more .arr { transform: translate(3px, -3px); }
@media (max-width: 600px) {
  .exp-course { grid-template-columns: 1fr; }
  .exp-course .exp-more { grid-column: 1; }
  .course-logo { aspect-ratio: auto; height: 104px; }
  .course-logo img { width: 92px; }
}
.lab-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.lab-note { position: absolute; right: clamp(20px, 4vw, 56px); top: -20px; transform: rotate(-3deg); background: var(--paper); padding: 0 8px; }
@media (max-width: 960px) {
  .exps { grid-template-columns: 1fr; }
  .exp-feature, .exp-feature.flip { grid-template-columns: 1fr; }
  .exp-feature.flip .exp-body { order: 0; }
  .lab-intro, .lab-map { grid-column: 1 / -1; }
  .lab-map { margin-top: 28px; max-width: 420px; }
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); align-items: start; }
.about > * { min-width: 0; }
.about-copy { grid-column: 1 / span 5; display: grid; gap: 14px; }
.about-copy h2 { font-size: var(--t-h2); }
.interests { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; font-size: var(--t-small); }
.interests li { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); }
.interests li:nth-child(3n+1) { background: var(--sage); border-color: transparent; }
.interests li:nth-child(3n+2) { background: var(--lilac); border-color: transparent; }
.collage { grid-column: 7 / span 6; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 14px; }
.collage .ph { transition: transform 1s var(--ease); }
/* two portrait photos side by side, the padel one dropped lower with the note above it */
.collage { grid-template-rows: auto; }
.c3 { grid-column: 1 / span 3; grid-row: 1; aspect-ratio: 2 / 3; transform: rotate(-1.2deg); }
.c2 { grid-column: 4 / span 3; grid-row: 1; aspect-ratio: 2 / 3; margin-top: 132px; transform: rotate(1.4deg); }
.collage .ph.shot { padding: 0; border: 0; overflow: hidden; border-radius: 4px; }
.collage .ph.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.collage .ph:hover { transform: rotate(0deg) translateY(-4px); }
/* note and arrow sit in the empty corner above the padel photo; the arrow ends just above its frame */
.collage .hand.padel { grid-column: 4 / span 3; grid-row: 1; align-self: start; justify-self: center; margin: 4px 0 0 32px; transform: rotate(4deg); white-space: nowrap; }
.collage svg.arrow { grid-column: 4 / span 3; grid-row: 1; align-self: start; justify-self: center; width: 34px; height: auto; aspect-ratio: 44 / 96; margin: 34px 0 0 0; overflow: visible; }
@media (max-width: 860px) {
  .about-copy, .collage { grid-column: 1 / -1; }
  .collage { margin-top: 48px; }
}

/* ---------- contact ---------- */
.contact { padding-block: var(--section) clamp(40px, 6vw, 64px); }
/* split contact: the invitation on the left, two tiles on the right */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); row-gap: 36px; align-items: center; }
.contact-copy { grid-column: 1 / span 6; display: grid; gap: clamp(14px, 2vw, 20px); min-width: 0; }
.contact-copy h2 { font-size: var(--t-display); line-height: 1.1; }
.contact-tiles { grid-column: 8 / span 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { font: inherit; color: var(--ink); text-align: left; cursor: pointer; text-decoration: none; display: grid; align-content: space-between; gap: 28px; min-height: 172px; min-width: 0;
  padding: 18px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); transition: background-color .6s var(--ease), border-color .6s var(--ease), transform .8s var(--ease); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper); }
.tile .ic svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile-arr { font-size: var(--t-small); color: var(--ink-2); transition: transform .6s var(--ease), color .4s var(--ease); }
.tile-text { display: grid; gap: 4px; min-width: 0; }
.tile-label { font-size: 1rem; }
.tile-sub { font-size: var(--t-small); color: var(--ink-2); overflow-wrap: anywhere; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px); border-color: transparent; }
.tile-sage:hover, .tile-sage:focus-visible { background: var(--sage); }
.tile-lilac:hover, .tile-lilac:focus-visible { background: var(--lilac); }
.tile:hover .tile-arr { color: var(--ink); transform: translate(2px, -2px); }
@media (max-width: 860px) {
  .contact-copy, .contact-tiles { grid-column: 1 / -1; }
}
.tbd { color: var(--ink-2); border-bottom: 2px dashed var(--slate); }
.foot { margin-top: clamp(56px, 7vw, 88px); padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--t-small); color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto !important; }
}

/* image reference tags: name your file after this ref (e.g. MOC-02.png) to replace the placeholder */
.ph .ref {
  position: absolute; top: 10px; left: 10px;
  font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}

/* ================= case study pages ================= */
.cs-hero { padding-block: clamp(32px, 5vw, 64px) 0; }
.back { display: inline-flex; gap: 8px; align-items: center; font-size: var(--t-small); color: var(--ink-2); text-decoration: none; transition: color .4s var(--ease); }
.back:hover { color: var(--ink); }
.back:hover .arr { transform: translateX(-4px); }
.cs-title { display: grid; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
.cs-lead { max-width: 34em; font-size: 1.0625rem; color: var(--ink-2); }
.cs-hero .fig { margin-top: clamp(28px, 4vw, 44px); }

/* each section stacks on one left edge: heading, reading column, then cards or figures */
.cs-sec { display: grid; gap: clamp(20px, 2.6vw, 28px); padding-block: clamp(44px, 5.5vw, 72px); scroll-margin-top: 72px; }
.cs-sec:first-child { margin-top: clamp(48px, 6vw, 80px); }
.cs-sec > * { min-width: 0; }
.cs-head { display: grid; gap: 10px; }
.cs-head h2 { font-size: var(--t-h2); line-height: 1.2; }
.cs-body { display: grid; gap: 1.1em; }
.cs-body > p, .cs-body > ul { max-width: 38em; }
.cs-body ul { margin: 0; padding-left: 1.1em; display: grid; gap: .5em; }
.cs-sec > .fig { margin-top: 4px; }
/* split variant: heading in the left margin, content on the right, images still full width */
.cs-sec.split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); }
.cs-sec.split > .cs-head { grid-column: 1 / span 4; align-self: start; }
.cs-sec.split > .cs-head h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.3; }
.cs-sec.split > :not(.cs-head) { grid-column: 5 / -1; }
.cs-sec.split > .fig { grid-column: 1 / -1; }
.cs-main { display: grid; gap: clamp(20px, 2.6vw, 28px); align-content: start; }

.fig { margin: 0; display: grid; gap: 10px; }
.fig .ph { aspect-ratio: 16 / 10; border-radius: 6px; }
.fig.tall .ph { aspect-ratio: 4 / 3; }
.fig.pano .ph { aspect-ratio: 2 / 1; }
/* a placed image: shown whole at its own proportions, no placeholder frame */
.fig .ph.shot { aspect-ratio: auto; padding: 0; border: 0; background: none; overflow: hidden; }
.fig .ph.shot img { display: block; width: 100%; height: auto; }
/* diagrams on white paper melt into the page colour */
.fig .ph.shot.blend img { mix-blend-mode: multiply; }
/* a simple diagram reads better at about text width than full width */
.fig .ph.shot.blend { max-width: 40rem; width: 100%; justify-self: center; }

.statement { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); line-height: 1.4; letter-spacing: -.015em; max-width: 24em; padding-bottom: .4em; }

/* information items: icon, title, short content, side by side */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.split .cards { gap: clamp(18px, 2.2vw, 28px); }
/* no box: the icon alone marks each item */
.card { display: grid; gap: 10px; align-content: start; }
.card .ic { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; margin-bottom: 4px; }
.card .ic svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.card p, .card li { font-size: .875rem; line-height: 1.6; color: var(--ink-2); }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.card ul li { display: flex; gap: 10px; }
.card ul li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: .62em; border-radius: 50%; background: var(--slate); }
.cards .card:nth-child(2) { transition-delay: .08s; }
.cards .card:nth-child(3) { transition-delay: .16s; }

/* key decisions: tinted panels so they read as the heart of the story */
.decisions { display: grid; gap: clamp(20px, 3vw, 32px); }
.decision { --tint: var(--sage); background: color-mix(in srgb, var(--tint) 60%, var(--paper)); border-radius: 6px; padding: clamp(22px, 4vw, 48px); display: grid; gap: clamp(20px, 3vw, 32px); }
.decision.alt { --tint: var(--lilac); }
.decision h3 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.625rem); line-height: 1.3; max-width: 22em; }
.step { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); border-top: 1px solid var(--line); padding-top: 16px; }
.step > * { min-width: 0; }
.step h4 { grid-column: 1 / span 3; margin: 0; font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); padding-top: .3em; }
.step > div { grid-column: 4 / -1; display: grid; gap: .9em; }
.step p, .step ul { max-width: 34em; }
.step ul { margin: 0; padding-left: 1.1em; display: grid; gap: .5em; }
.outcome { display: flex; gap: 12px; align-items: flex-start; font-style: italic; }
.outcome svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.decision .fig .ph:not(.shot) { background: var(--paper); }

.status-chip { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: var(--t-small); background: var(--sage); border-radius: 999px; padding: 4px 12px; }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.store-link { font-size: var(--t-small); }
.store-link a { text-decoration: none; }
.store-link .arr, .thanks a .arr { display: inline-block; transition: transform .3s var(--ease); }
.store-link a:hover .arr, .thanks a:hover .arr { transform: translate(2px, -2px); }
.cs-title .store-link { margin-top: 4px; }
.fig-note { margin-top: 10px; font-size: 1.375rem; color: var(--ink-2); }
/* a thank-you note: lilac card with a handwritten label */
.thanks { display: grid; gap: 6px; max-width: 38em; margin-top: 8px; padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.8vw, 30px); background: var(--lilac); border: 1px solid var(--lilac-2); border-radius: 6px; }
.thanks .hand { font-size: 1.5rem; }
.thanks p:not(.hand) { margin: 0; }
.thanks a { text-decoration: none; white-space: nowrap; }

.next { display: grid; gap: 8px; margin-top: clamp(72px, 9vw, 120px); padding-top: 24px; border-top: 1px solid var(--line); text-decoration: none; }
.next h2 { font-size: var(--t-h2); }
.next:hover .arr { transform: translateX(6px); }

@media (max-width: 860px) {
  .cs-sec.split > .cs-head, .cs-sec.split > :not(.cs-head) { grid-column: 1 / -1; }
  .step h4, .step > div { grid-column: 1 / -1; }
  .step h4 { margin-bottom: 10px; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; gap: 28px; }
}

/* icon-item variants: a 2x2 set, and a compact strip of outcomes */
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .cards.two { grid-template-columns: 1fr; } }

/* process strip: steps joined by dotted arrows. Steps start greyed out and light up
   one by one as the strip scrolls up the screen, like the dot travelling the hero route. */
.process { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: flex; align-items: flex-start; }
.process .card { flex: 1 1 0; min-width: 0; opacity: .38; filter: grayscale(1); transition: opacity .7s var(--ease), filter .7s var(--ease); }
.process .card h3 { font-size: .8125rem; font-weight: 400; line-height: 1.45; display: grid; gap: 4px; }
.process .no { font-size: var(--t-label); letter-spacing: .08em; font-weight: 700; color: var(--ink-2); }
.process .card .ic { transition: background-color .7s var(--ease), border-color .7s var(--ease); }
.process .card.lit { opacity: 1; filter: none; }
.process .card.lit .ic { background: var(--sage); border-color: transparent; }
.process .card.now .ic { box-shadow: 0 0 0 5px color-mix(in srgb, var(--sage) 55%, transparent); }
.process .link { flex: 0 0 clamp(26px, 3.4vw, 44px); position: relative; height: 12px; margin-top: 11px; }
.process .link svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.process .link path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.process .link .track { stroke: var(--slate); stroke-width: 1.8; stroke-dasharray: .1 5; }
.process .link .tip { stroke: var(--slate); stroke-width: 1.4; }
.process .link .ink { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease); }
.process .link .ink .track, .process .link .ink .tip { stroke: var(--ink); }
.process .link.lit .ink { clip-path: inset(0 0 0 0); }
@media (max-width: 640px) {
  .process { flex-direction: column; }
  .process .card { flex: none; width: 100%; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: center; }
  .process .card .ic { margin-bottom: 0; }
  .process .link { flex: none; width: 34px; height: 30px; margin: 4px 0; }
  /* turn the arrow once: the inked copy sits inside .ink, so only the outer pieces rotate */
  .process .link > svg, .process .link > .ink { transform: rotate(90deg); transform-origin: center; }
  .process .link .ink { clip-path: none; opacity: 0; transition: opacity .6s var(--ease); }
  .process .link.lit .ink { opacity: 1; }
}

/* project facts ("in a nutshell,"): one compact row between two hairlines, one column per fact.
   The same template on every case study; the column count follows the number of facts. */
.facts { margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.fact { position: relative; display: grid; gap: 6px; align-content: start; padding: 4px clamp(14px, 1.8vw, 22px); }
.fact:first-child { padding-left: 0; }
.fact:last-child { padding-right: 0; }
/* short separators: a light tick beside the label and first line, not a full-height rule */
.fact + .fact::before { content: ""; position: absolute; left: 0; top: 6px; width: 1px; height: 30px; background: var(--line); }
.fact dt { display: flex; align-items: center; gap: 8px; font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.fact dt svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fact dd { margin: 0; font-size: .875rem; line-height: 1.55; }
.cs-sec.compact { gap: clamp(16px, 2vw, 20px); }
@media (max-width: 760px) {
  .facts { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { row-gap: 18px; }
  .fact, .fact:first-child, .fact:last-child { padding: 4px 0; }
  .fact + .fact::before { display: none; }
  .fact:nth-child(even) { padding-left: 16px; }
  .fact:nth-child(even)::before { display: block; }
  .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* parked sections and links (AI Lab) stay out of the page until "hidden" is removed */
[hidden] { display: none !important; }

/* vertical steps: a text-only sequence joined by a dotted rail. Only the first step is ink at rest;
   the rail fills with ink as you scroll and each step turns black when the fill reaches it. */
.vsteps { list-style: none; margin: 0; padding: 0; display: grid; max-width: 40rem; }
.vstep { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: clamp(16px, 2vw, 24px); padding-bottom: clamp(28px, 3.6vw, 40px); }
.vstep:last-child { padding-bottom: 0; }
.vic { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--paper);
  transition: background-color .6s var(--ease), border-color .6s var(--ease); position: relative; z-index: 1; }
.vic svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vtext { display: grid; gap: 6px; padding-top: 6px; }
.vtext h3 { font-size: var(--t-h3); font-weight: 400; line-height: 1.4; }
.vtext p { color: var(--ink); max-width: 36em; }
/* rail between this step's icon and the next: dotted track plus an ink overlay scaled by --f (0 to 1) */
.vstep:not(:last-child)::before, .vstep:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: 6px; width: 0; }
.vstep:not(:last-child)::before { border-left: 2px dotted var(--slate); }
.vstep:not(:last-child)::after { border-left: 2px solid var(--ink); transform-origin: top; transform: scaleY(var(--f, 0)); }
.js .vstep:not(.lit) .vic, .js .vstep:not(.lit) .vtext { opacity: .32; filter: grayscale(1); }
.vic, .vtext { transition: opacity .6s var(--ease), filter .6s var(--ease), background-color .6s var(--ease); }
.vstep.lit .vic { background: var(--sage); border-color: transparent; }

/* stages and roles: three columns, each an icon, a title, a subtitle and its roles as lilac chips
   with a slightly darker outline. Static on purpose. */
.stages { display: grid; gap: clamp(20px, 2.6vw, 28px); }
/* columns size to their content and share the leftover space as equal gaps, so a stage with one chip
   doesn't leave a wide empty column next to a crowded one */
.stage-row { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: clamp(32px, 4vw, 56px); }
.stage { display: grid; gap: 8px; align-content: start; min-width: 0; flex: 0 1 auto; max-width: 21rem; }
.stage .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); margin-bottom: 4px; }
.stage .ic svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stage h3 { font-size: var(--t-h3); font-weight: 400; line-height: 1.35; }
.stage-no { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stage-sub { font-size: var(--t-small); color: var(--ink-2); }
.roles { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { font-size: var(--t-small); line-height: 1.3; padding: 6px 12px; border-radius: 999px; background: var(--lilac); border: 1px solid var(--lilac-2); }
@media (max-width: 760px) {
  .stage-row { flex-direction: column; gap: 28px; }
  .stage { max-width: none; }
}

/* issue bento: four numbered issues on a 12-column grid, wide and narrow swapping each row.
   Wide tiles carry the sage highlight, narrow ones a hairline, so the grid reads as one asymmetric block. */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 16px); }
.bento-item { grid-column: span 5; display: grid; gap: 8px; align-content: start; min-width: 0;
  padding: clamp(20px, 2.4vw, 28px); border-radius: 6px; border: 1px solid var(--line); }
.bento-item.wide { grid-column: span 7; background: var(--sage); border-color: transparent; }
.bento-no { font-size: var(--t-h2); line-height: 1.1; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.bento-item h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.bento-item p { font-size: .875rem; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
@media (max-width: 760px) {
  .bento-item, .bento-item.wide { grid-column: 1 / -1; }
}

/* link underline: the same hand-drawn stroke as the nav, swept in from the left on hover.
   Any .u inside a link or button gets it; site.js adds the stroke. */
.u { position: relative; display: inline; }
.u > .u-mark { position: absolute; left: -2px; bottom: -5px; width: calc(100% + 4px); height: 8px; overflow: visible; pointer-events: none;
  clip-path: inset(-4px 100% -4px -4px); transition: clip-path .6s var(--ease); }
.u > .u-mark path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
a:hover .u > .u-mark, a:focus-visible .u > .u-mark, button:hover .u > .u-mark, button:focus-visible .u > .u-mark, .work.on .u > .u-mark { clip-path: inset(-4px -4px -4px -4px); }
.next h2 .u { display: inline-block; }

/* experience: the vertical fill steps with a company logo in place of the icon and the dates on the right */
.vsteps.jobs { max-width: none; }
.vsteps.jobs .vstep { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; padding-bottom: clamp(64px, 8vw, 104px); }
.vsteps.jobs .vstep:last-child { padding-bottom: 0; }
.vsteps.jobs .vic.logo { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: var(--logo-bg); }
.vsteps.jobs .vic.logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* employer logo with the client's logo as a small badge on its corner */
.vsteps.jobs .vic.logo.pair { overflow: visible; }
.vsteps.jobs .vic.logo.pair > img { border-radius: 9px; padding: 4px; }
.vsteps.jobs .badge { position: absolute; right: -8px; bottom: -8px; width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
  background: var(--logo-bg); border: 1px solid var(--line); box-shadow: 0 0 0 2px var(--paper); }
.vsteps.jobs .badge img { width: 100%; height: 100%; object-fit: contain; }
.vsteps.jobs .vstep:not(:last-child)::before, .vsteps.jobs .vstep:not(:last-child)::after { left: 21px; top: 56px; bottom: 12px; }
.vsteps.jobs .vstep.lit .vic.logo { background: var(--logo-bg); }
.vsteps.jobs .vtext { padding-top: 2px; gap: 2px; }
.vsteps.jobs .vtext p { color: var(--ink-2); }
.vdate { margin: 0; padding-top: 4px; font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity .6s var(--ease); }
.js .vsteps.jobs .vstep:not(.lit) .vdate { opacity: .32; }
@media (max-width: 560px) {
  .vsteps.jobs .vstep { grid-template-columns: 44px minmax(0, 1fr); }
  .vdate { grid-column: 2; padding-top: 6px; }
}

/* ---------- password lock ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* the visitor sees the project titles over blurred stand-ins for the thumbnails, with the form floating over them */
.lock-panel { position: relative; display: grid; }
.lock-panel { --g: clamp(16px, 2.2vw, 28px); }
.lock-preview { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 44px) var(--g); }
.lock-card { display: grid; gap: 14px; align-content: start; min-width: 0; }
.lock-card .work-meta { color: var(--ink-2); }
.lock-card h3 { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.35; color: var(--ink-2); }
/* a blurred, made-up screen: soft colour fields and a few bars, nothing taken from the real work */
.lock-shot { position: relative; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.lock-shot::before { content: ""; position: absolute; inset: -20%; filter: blur(28px);
  background: radial-gradient(40% 45% at 30% 40%, var(--sage), transparent 70%), radial-gradient(35% 40% at 72% 62%, var(--lilac), transparent 70%); }
.lock-shot.v1::before { background: radial-gradient(40% 45% at 65% 35%, var(--lilac), transparent 70%), radial-gradient(35% 40% at 28% 68%, var(--slate), transparent 72%); }
.lock-shot span { position: absolute; left: 18%; height: 7%; border-radius: 999px; background: color-mix(in srgb, var(--paper) 75%, transparent); filter: blur(5px); }
.lock-shot span:nth-child(1) { top: 26%; width: 46%; }
.lock-shot span:nth-child(2) { top: 44%; width: 62%; }
.lock-shot span:nth-child(3) { top: 62%; width: 34%; }
/* centred on the preview images: a 3:2 image in a half-width column is a sixth of the row width tall at its middle */
.lock-form { grid-area: 1 / 1; align-self: start; justify-self: center; margin-top: calc((100% - var(--g)) / 6); transform: translateY(-50%); z-index: 1;
  width: min(100%, 25rem); display: grid; gap: 12px; justify-items: center; text-align: center;
  padding: clamp(20px, 2.4vw, 26px) clamp(20px, 2.6vw, 30px); border-radius: 8px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -30px color-mix(in srgb, var(--ink) 45%, transparent); }
.lock-form .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); margin-bottom: 4px; }
.lock-form .ic svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lock-form h3 { font-size: var(--t-h3); font-weight: 400; line-height: 1.4; text-wrap: balance; }
.lock-form p { font-size: var(--t-small); color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.lock-form a { color: var(--ink); text-decoration: none; }
.lock-field { width: 100%; display: flex; gap: 8px; margin-top: 6px; }
.lock-field input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: var(--t-small); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); transition: border-color .4s var(--ease); }
.lock-field input::placeholder { color: var(--ink-2); }
.lock-field input:focus { outline: none; border-color: var(--ink); }
.lock-field button { flex: none; font: inherit; font-size: var(--t-small); background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: transform .5s var(--ease), opacity .3s; }
.lock-field button:hover { transform: translateY(-2px); }
.lock-field button:disabled { opacity: .6; cursor: default; transform: none; }
.lock-field button:focus-visible, .lock-form a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lock-msg { min-height: 1.6em; margin: 0; }
.lock-form.wrong .lock-field input { border-color: var(--note); }
.lock-form.wrong .lock-field { animation: lock-nudge .4s var(--ease); }
@keyframes lock-nudge { 25% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .lock-form.wrong .lock-field { animation: none; } }
/* case pages: one wide stand-in under the title */
.lock-panel.solo .lock-preview { grid-template-columns: 1fr; }
.lock-panel.solo .lock-shot { aspect-ratio: 16 / 8; }
.lock-panel.solo .lock-form { margin-top: 25%; }
@media (max-width: 720px) {
  /* phones: the form sits above the previews instead of over them */
  .lock-preview { grid-template-columns: 1fr; grid-area: 2 / 1; }
  .lock-form, .lock-panel.solo .lock-form { grid-area: 1 / 1; margin: 0 0 24px; transform: none; }
  .lock-panel.solo .lock-shot { aspect-ratio: 16 / 9; }
}

/* unlock transition: the panel and the stand-ins fade away, the page returns, then the real cards fade and settle in */
.lock-card .work-meta, .lock-card h3 { filter: blur(2.5px); user-select: none; }
.lock-form, .lock-preview { transition: opacity .5s var(--ease), scale .5s var(--ease), filter .5s var(--ease); }
.lock-panel.leaving .lock-form { opacity: 0; scale: .96; }
.lock-panel.leaving .lock-preview { opacity: 0; filter: blur(6px); }
html.lock-pending body { opacity: 0; }
html.just-unlocked body { transition: opacity .45s var(--ease); }
html.just-unlocked .works .work { animation: work-in 1s var(--ease) both; animation-delay: .15s; }
html.just-unlocked .works .work:nth-child(2) { animation-delay: .27s; }
html.just-unlocked .cs-hero .fig, html.just-unlocked main > .frame { animation: work-in 1s var(--ease) both; animation-delay: .1s; }
@keyframes work-in { from { opacity: 0; transform: scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- responsive refinements: tablet and phone ---------- */
@media (max-width: 860px) {
  /* the route labels scale with the drawing; keep them readable when it gets narrow */
  .journey .tag { font-size: 38px; }
  /* full-width art gets too big on tablets: cap it and keep it centred */
  .hero-art { max-width: 520px; width: 100%; justify-self: center; }
  .collage { max-width: 560px; width: 100%; justify-self: center; }
}
@media (max-width: 560px) {
  .journey .tag { font-size: 54px; }
  /* facts read better one per row than squeezed into two columns */
  .facts { grid-template-columns: 1fr; row-gap: 16px; }
  .fact:nth-child(even) { padding-left: 0; }
  .fact:nth-child(even)::before { display: none; }
  /* contact tiles stack so the email address fits on one line */
  .contact-tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; gap: 22px; }
}
