/* Parvaz · Isometric studio
   Design system: style-perspective (Poppins for text and titles / JetBrains Mono, primary #00BD7D, surface #FFFFFF, text #111827,
   type 12/14/16/20/24/32, spacing 4/8/12/16/24/32, radius 4/8). */

:root {
  /* colour tokens (skill) */
  --color-primary: #00BD7D;
  --color-secondary: #00BD7D;
  --color-success: #16A34A;
  --color-warning: #D97706;
  --color-danger: #DC2626;
  --color-surface: #FFFFFF;
  --color-text: #111827;
  /* derived, for contrast and depth */
  --color-primary-ink: #00754D;   /* green text on white: 5.75:1 */
  --color-primary-edge: #00885A;  /* extruded edge under green blocks */
  --color-primary-soft: #A6E9D1;
  --color-primary-tint: #E6F8F1;
  --color-muted: #4B5563;         /* 7.56:1 on white */
  --color-subtle: #6B7280;        /* 4.83:1, borders of inputs */
  --color-line: #E5E7EB;
  --color-line-strong: #D1D5DB;
  --color-surface-2: #F9FAFB;
  --color-surface-3: #F3F4F6;
  --color-glass: #EEF2F6;

  /* type */
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;

  /* spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-section: calc(var(--sp-6) * 3); /* 96 */

  --radius-sm: 4px;
  --radius-md: 8px;

  --stroke: 1.35px;
  --header-h: 64px;
  --wrap: 1760px;                  /* wide, like startupgarage.uz: the page grows with the screen */
  --gutter: clamp(16px, 5vw, 96px);
  --z-raised: 1;
  --z-header: 20;
  --z-skip: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--sp-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; border-radius: var(--radius-sm); }

.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; }
.skip { position: absolute; left: var(--sp-4); top: -60px; z-index: var(--z-skip); background: var(--color-text); color: #fff; padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-md); font-size: var(--fs-14); font-weight: 500; }
.skip:focus { top: var(--sp-3); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-primary-ink);
}
.lede { color: var(--color-muted); font-size: var(--fs-16); max-width: 60ch; }
.text-link { color: var(--color-text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--color-primary-ink); }
/* standalone links (not inside a sentence) get a 24px tall target */
.product-links .text-link, .pp-actions .text-link, .room-card .text-link, .apply-mail .text-link { display: inline-block; padding: 2px 0; }

/* ---------- buttons: small extruded blocks ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: 0 var(--sp-5);
  border: 0; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: var(--fs-14); font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease-out, box-shadow .15s ease-out, background-color .15s;
}
.btn-primary { background: var(--color-primary); color: var(--color-text); box-shadow: 0 4px 0 var(--color-primary-edge); }
.btn-primary:hover { background: #00C986; transform: translateY(-1px); box-shadow: 0 5px 0 var(--color-primary-edge); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--color-primary-edge); }
.btn-sm { min-height: 40px; padding: 0 var(--sp-4); }
/* the same block in white: an outline with a dark edge under it */
.btn-secondary { background: var(--color-surface); color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-text), 0 4px 0 var(--color-text); }
.btn-secondary:hover { background: var(--color-surface-2); transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--color-text), 0 5px 0 var(--color-text); }
.btn-secondary:active { transform: translateY(3px); box-shadow: inset 0 0 0 1px var(--color-text), 0 1px 0 var(--color-text); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-row { height: var(--header-h); display: flex; align-items: center; gap: var(--sp-6); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-20); line-height: 1; }
.logo-mark { display: block; width: 20px; height: 20px; flex: none; }
.site-header nav { margin-left: auto; }
.nav { display: flex; gap: var(--sp-1); }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-3); border-radius: var(--radius-md); font-size: var(--fs-14); font-weight: 500; color: var(--color-muted); text-decoration: none; }
.nav a:hover { color: var(--color-text); background: var(--color-surface-3); }

/* ---------- hero: the studio on top, the words under it, all centred ---------- */
.hero { padding: var(--sp-5) 0 calc(var(--sp-6) * 1.5); }
.hero-stack { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-art { width: 100%; min-width: 0; }
.hero-intro { max-width: 1120px; margin-top: 64px; display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.125rem, 2.6vw + 1rem, 4.25rem); /* 34px on phones, ~53px at 1440, 68px on wide screens */
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: var(--sp-3) 0 var(--sp-4);
  color: var(--color-text);
  max-width: 17em;
  text-wrap: balance;
}
.hero .lede { font-size: 1.125rem; line-height: 30px; color: var(--color-muted); max-width: 600px; }
@media (max-width: 479px) { .hero .br-wide { display: none; } }
.hero .lede strong { color: var(--color-text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-4); margin-top: var(--sp-5); }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-6); margin-top: var(--sp-6); font-size: var(--fs-14); color: var(--color-muted); }
.keys li { position: relative; padding-left: var(--sp-5); }
.keys li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; background: var(--color-primary); transform: rotate(45deg) scale(.85); border-radius: 1px; }
.keys strong { color: var(--color-text); font-weight: 600; }

/* the studio and its room card */
.stage { position: relative; display: flex; justify-content: center; }
.studio { display: block; width: auto; max-width: 100%; height: clamp(252px, 40.5vh, 504px); aspect-ratio: 445.55 / 388; }
.scene.studio { overflow: hidden; }
.room-card {
  position: absolute; z-index: var(--z-raised); left: 0; top: 0; width: 248px;
  padding: var(--sp-4);
  background: var(--color-surface);
  border: 1px solid var(--color-text);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 0 var(--color-text);
  --caret-y: 50%;
  pointer-events: none; /* a tooltip: it never blocks the windows beneath it */
  text-align: left;
}
/* the small pointer on the side that faces the window */
.room-card::before, .room-card::after { content: ""; position: absolute; top: var(--caret-y); width: 0; height: 0; border: 8px solid transparent; transform: translateY(-50%); }
.room-card.is-left::before { right: -17px; border-left-color: var(--color-text); }
.room-card.is-left::after { right: -15px; border-left-color: var(--color-surface); }
.room-card.is-right::before { left: -17px; border-right-color: var(--color-text); }
.room-card.is-right::after { left: -15px; border-right-color: var(--color-surface); }
.room-card.is-above::before, .room-card.is-above::after, .room-card.is-below::before, .room-card.is-below::after { top: auto; left: var(--caret-x, 50%); transform: translateX(-50%); }
.room-card.is-above::before { bottom: -17px; border-top-color: var(--color-text); }
.room-card.is-above::after { bottom: -15px; border-top-color: var(--color-surface); }
.room-card.is-below::before { top: -17px; border-bottom-color: var(--color-text); }
.room-card.is-below::after { top: -15px; border-bottom-color: var(--color-surface); }
.room-kicker { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; text-transform: uppercase; color: var(--color-primary-ink); }
.room-title { font-family: var(--font-display); font-size: var(--fs-20); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin: var(--sp-1) 0 var(--sp-2); }
.room-body { font-size: var(--fs-14); color: var(--color-muted); }
.room-card .text-link { display: inline-block; margin-top: var(--sp-3); font-size: var(--fs-14); }
.win { cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .room-card.is-entering { animation: card-in .18s ease-out; }
}
@keyframes card-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.stage-hint { display: none; align-items: center; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-12); color: var(--color-muted); }
.js .stage-hint { display: flex; }
.stage-hint { flex-wrap: wrap; row-gap: var(--sp-1); }
.stage-hint > * { white-space: nowrap; }
.hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-pointer { display: none; } }

/* without JS the rooms are a plain list under the drawing */
.rooms { margin-top: var(--sp-5); text-align: left; }
.rooms ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-3); }
.rooms li { border-top: 1px solid var(--color-line); padding-top: var(--sp-3); }
.rooms .room-title { font-size: var(--fs-20); }
.js .rooms { display: none; }

/* ---------- isometric drawing primitives ---------- */
.scene { overflow: visible; }
.scene * { vector-effect: non-scaling-stroke; }
.scene polygon, .scene rect, .scene circle, .scene ellipse, .scene path { stroke: var(--color-text); stroke-width: var(--stroke); stroke-linejoin: round; }
.scene .t { fill: #FFFFFF; }
.scene .l { fill: #FFFFFF; }
.scene .r { fill: #EDEFF2; }
.scene .ln { fill: none; stroke: var(--color-text); stroke-width: var(--stroke); stroke-linecap: round; }
.scene .thin { stroke: #6B7280; stroke-width: calc(var(--stroke) * .75); }
.scene .glass { fill: var(--color-glass); }
.scene .paper { fill: #FFFFFF; }
.scene .ink { fill: var(--color-text); stroke: none; }
.scene .mute { fill: var(--color-line-strong); stroke: none; }
.scene .door, .scene .accent { fill: var(--color-primary); }
.scene .accent-soft { fill: var(--color-primary-soft); }
.scene .accent-tint { fill: var(--color-primary-tint); }
.scene .skin { fill: var(--color-text); stroke: none; }
.scene .leaf { fill: var(--color-primary-soft); }
.scene .tree { fill: var(--color-primary-tint); }
.scene .trunk { stroke-width: calc(var(--stroke) * 1.6); }
.scene .sign { font-family: var(--font-mono); font-size: 5.6px; font-weight: 600; fill: var(--color-text); stroke: none; }
.scene .code { font-family: var(--font-mono); font-size: 7px; font-weight: 600; fill: var(--color-primary-ink); stroke: none; }
.scene .base .l, .scene .base .r { fill: var(--color-surface-3); }
.scene .base .r { fill: #E5E7EB; }
.scene .road { fill: var(--color-surface-3); stroke: none; }
.scene .zebra { fill: #FFFFFF; stroke: var(--color-line-strong); stroke-width: 1px; }
.scene .lane { stroke: #9CA3AF; stroke-width: 2px; stroke-linecap: round; }
.scene .pit { fill: var(--color-surface-3); }
.scene .awning { fill: #FFFFFF; }
.scene .stripe { fill: var(--color-line); stroke: none; }
.scene .unit .r { fill: var(--color-line); }
.scene .lamp .t { fill: var(--color-primary-soft); }
.scene .wire .dash { stroke: #6B7280; stroke-width: 1.2px; stroke-dasharray: 3 3; fill: none; }
.scene .lane-dark { stroke: var(--color-text); stroke-width: 1.5px; stroke-linecap: round; opacity: .55; }
.scene .trail { fill: none; stroke: #9CA3AF; stroke-width: 1.5px; stroke-dasharray: 5 5; }
.scene .pl-a { fill: var(--color-primary); }
.scene .pl-b { fill: var(--color-primary-edge); }
.scene .pivot { fill: var(--color-text); stroke: none; }
.scene .step-num { font-family: var(--font-display); font-size: 17px; font-weight: 600; fill: var(--color-text); stroke: none; }
.scene .badge-text { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; fill: var(--color-text); stroke: none; }
/* people are sign-style silhouettes: a round head over rounded shoulders */
.scene .person .hair, .scene .person .shirt { fill: var(--color-text); stroke: none; }

/* windows you can look into */
.win { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.win .glass { transition: fill .2s, stroke .2s; }
.win .ink { transition: fill .2s; }
.win:hover .glass, .win.is-hover .glass { fill: var(--color-primary-tint); }
.win.is-active .glass { fill: #CDEFE1; stroke: var(--color-primary-ink); }
/* people: dimmed while their room is dark, drawn in full when it lights up */
.win .person .shirt, .win .person .hair { fill: #9CA3AF; transition: fill .2s; }
.win:hover .person .shirt, .win:hover .person .hair, .win.is-active .person .shirt, .win.is-active .person .hair { fill: var(--color-text); }
.win:focus-visible .glass { stroke: var(--color-text); stroke-width: 2.5px; }
.win.roof-room:hover .board .l, .win.is-active .board .l, .win:focus-visible .board .l { fill: var(--color-primary-tint); }
.win[data-room="name"]:focus-visible .board polygon { stroke-width: 2.5px; }
.scene .side { fill: var(--color-glass); }
.scene .screen { stroke-width: 1px; }
.scene .accent-ink { fill: var(--color-primary-ink); stroke: none; }
.scene .path, .scene .kerb { fill: var(--color-surface-3); stroke: none; }
.scene .board .r { fill: var(--color-line); }
.scene .roof-text { font-family: var(--font-display); font-size: 17px; font-weight: 600; fill: var(--color-text); stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .win.is-idle .glass { animation: glow 2.4s ease-in-out infinite; }
}
@keyframes glow { 0%, 100% { fill: var(--color-glass); } 50% { fill: var(--color-primary-tint); } }

/* the street: a road that keeps moving and a light that stays green */
.scene .road { fill: var(--color-surface-3); stroke: none; }
.scene .lane.flow { stroke: #9CA3AF; stroke-width: 2px; stroke-linecap: round; stroke-dasharray: 10 12; fill: none; }
.scene .pole { stroke-width: calc(var(--stroke) * 1.4); }
.scene .signal .l, .scene .signal .t { fill: var(--color-text); }
.scene .signal .r { fill: #374151; }
.scene .lamp-off { fill: #4B5563; stroke: none; }
.scene .go-lamp { fill: #34E3A6; stroke: none; }
.scene .go-halo { fill: var(--color-primary); stroke: none; opacity: .28; }
.win[data-room="go"]:hover .go-halo, .win[data-room="go"].is-active .go-halo { opacity: .5; }
.win[data-room="go"]:focus-visible .signal .l { stroke: var(--color-primary); stroke-width: 2.5px; }
@media (prefers-reduced-motion: no-preference) {
  .scene .lane.flow { animation: flow 1.6s linear infinite; }
  .scene .go-halo { animation: halo 2.6s ease-in-out infinite; }
}
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes halo { 0%, 100% { opacity: .18; } 50% { opacity: .45; } }

/* the road: a startup's path painted on the asphalt, always moving forward */
.scene .ticker { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 1.8px; stroke: none; }
.scene .tk-word { fill: #374151; }
.scene .tk-sep { fill: var(--color-primary); }
@media (prefers-reduced-motion: no-preference) {
  .scene .ticker-move { animation: ticker var(--T, 60s) linear infinite; }
}
@keyframes ticker { to { transform: translateX(var(--L)); } }

/* the replay control under the drawing */
.replay { margin-left: var(--sp-3); padding: 0 0 1px; border: 0; border-bottom: 1px solid var(--color-line-strong); background: none; font: inherit; color: var(--color-muted); cursor: pointer; }
.replay:hover { color: var(--color-text); border-bottom-color: var(--color-text); }
.replay:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; border-radius: 2px; }
.replay::before { content: "\21BB"; margin-right: 6px; }

/* ---------- the studio assembles: seed, slab, three floors, roof, sign, weathervane, light ----------
   Everything below only runs while the drawing has the class "build". Without motion (or once it ends)
   every piece sits in its place, so the finished studio is the default state. */
.scene .seed .l { fill: #FFFFFF; }
.scene .seed .r { fill: #EDEFF2; }
.scene .ripple { fill: none; stroke: var(--color-primary); stroke-width: 2px; opacity: 0; }
.studio .piece { transform-box: fill-box; }
.studio .seed-pop { transform-box: fill-box; transform-origin: 50% 100%; }
.studio .go-halo, .studio .fly { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .build .seed-pop { animation: seed-pop .5s cubic-bezier(.34, 1.56, .64, 1) .2s both; }
  .build .seed-ride { animation: seed-ride 3s linear both; }
  .build .ripple-in { opacity: 0; transform-origin: 50% 50%; animation: ripple .9s ease-out .55s forwards; }
  .build .ripple-in .ripple { opacity: 1; }
  .build .slab-in { transform-origin: 50% 50%; animation: spread .6s cubic-bezier(.2, .8, .3, 1) .6s both; }
  .build .street-in { animation: fade-in .7s ease-out .8s both; }
  .build .rise { animation: rise .45s cubic-bezier(.45, 0, .25, 1) both; }
  .build .f1 .rise { animation-delay: 1s; }
  .build .f2 .rise { animation-delay: 1.45s; }
  .build .f3 .rise { animation-delay: 1.9s; }
  .build .f1 .person { animation: person-in .35s ease-out 1.35s both; }
  .build .f2 .person { animation: person-in .35s ease-out 1.8s both; }
  .build .f3 .person { animation: person-in .35s ease-out 2.25s both; }
  .build .cornice-in { animation: drop-in .25s cubic-bezier(.3, 0, .4, 1) 2.33s both; }
  .build .board-rise { --h: 36px; animation: rise .45s cubic-bezier(.34, 1.4, .64, 1) 2.8s both; }
  .build .grow-up { transform-origin: 50% 100%; animation: grow-up .4s cubic-bezier(.34, 1.4, .64, 1) both; }
  .build .light-pole { animation-delay: 2.7s; }
  .build .tree-in { animation-delay: 2.9s; }
  .build .vane-pole { animation-delay: 3.05s; animation-duration: .3s; }
  .build .light-head { animation: drop-in .3s cubic-bezier(.34, 1.4, .64, 1) 2.95s both; }
  .build .go-lamp { animation: lamp-on .5s steps(1, end) 3.35s both; }
  .build .go-halo { animation: lamp-halo .5s ease-out 3.35s both, halo 2.6s ease-in-out 3.85s infinite; }
  .build .fly { animation: fly .75s cubic-bezier(.2, .7, .3, 1) 3.15s both; }
  .build .pivot-in { animation: fade-in .2s 3.85s both; }
}
@keyframes seed-pop { 0% { transform: scale(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1); } }
/* the seed waits on the slab, then rides the top of each floor as it rises (1.0–2.35s), the cornice (to 2.55s), and slides to its seat */
@keyframes seed-ride {
  0%, 33.3% { transform: translate(var(--sx), calc(var(--sy) + 150px)); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  48.3% { transform: translate(var(--sx), calc(var(--sy) + 102px)); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  63.3% { transform: translate(var(--sx), calc(var(--sy) + 54px)); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  78.3% { transform: translate(var(--sx), calc(var(--sy) + 6px)); animation-timing-function: ease-out; }
  85%, 88% { transform: translate(var(--sx), var(--sy)); animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  100% { transform: none; }
}
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(5); opacity: 0; } }
@keyframes spread { from { transform: scale(.06); opacity: 0; } 30% { opacity: 1; } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(var(--h, 48px)); opacity: 0; } 12% { opacity: 1; } to { transform: none; } }
@keyframes person-in { from { opacity: 0; transform: translateY(3px); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-18px); } }
@keyframes grow-up { from { transform: scaleY(0); } }
@keyframes lamp-on { from { fill: #4B5563; } }
@keyframes lamp-halo { from { opacity: 0; transform: scale(.4); } 60% { opacity: .6; } to { opacity: .28; } }
@keyframes fly { from { opacity: 0; transform: translate(-190px, 70px) rotate(-8deg); } 20% { opacity: 1; } 65% { transform: translate(-46px, -16px) rotate(4deg); } to { transform: none; } }

/* ---------- sections ---------- */
.section { padding: var(--sp-section) 0; }
.section-rule { border-top: 1px solid var(--color-line); }
.section-head { max-width: 640px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: var(--fs-32); line-height: 1.2; margin: var(--sp-3) 0 var(--sp-3); }
.section-head .lede { margin-top: var(--sp-2); }

/* ventures: one card each, its block on top */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-6); }
.product { display: flex; flex-direction: column; padding-bottom: var(--sp-5); border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; }
.product > :not(.product-shot) { margin-left: var(--sp-5); margin-right: var(--sp-5); }
/* the product's own home page, framed in a small browser window */
.product-shot { display: block; text-decoration: none; margin: var(--sp-4) var(--sp-4) var(--sp-5); border: 1px solid var(--color-line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface); transition: transform .2s ease-out, box-shadow .2s ease-out; }
.product-shot:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(17, 24, 39, .08); }
.browser-bar { display: flex; align-items: center; gap: var(--sp-3); height: 28px; padding: 0 var(--sp-3); border-bottom: 1px solid var(--color-line); background: var(--color-surface-2); }
.browser-dots { width: 36px; height: 8px; flex: none; background: radial-gradient(circle, var(--color-line-strong) 3.5px, transparent 4px) 0 50% / 12px 8px repeat-x; }
.browser-url { flex: 1; min-width: 0; margin-right: 48px; text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; }
.product h3 { display: flex; align-items: center; min-height: 28px; }
.product-logo { display: block; height: 22px; width: auto; }
.product dl { margin-bottom: var(--sp-4); }
.product-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: auto; font-size: var(--fs-14); }
.product-links .product-link { color: var(--color-muted); }
.product h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-24); line-height: 1.2; }
.product > p { color: var(--color-muted); font-size: var(--fs-14); margin-top: var(--sp-3); line-height: 1.6; min-height: 4.8em; } /* three lines, so every card's table starts at the same height */
.product dl { margin-top: var(--sp-4); border-top: 1px solid var(--color-line); }
.product dl div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-2) 0; border-bottom: 1px solid var(--color-line); font-size: var(--fs-14); }
.product dt { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--color-muted); text-transform: uppercase; padding-top: 2px; }
.product dd { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; display: inline-flex; align-items: center; gap: var(--sp-2); }
.dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.dot-live { background: var(--color-primary); }
.dot-pilot { background: var(--color-warning); }
.dot-building { border: 1.5px dashed var(--color-subtle); }

/* how it works: five steps in columns, what each side does in rows */
.flow { display: grid; grid-template-columns: 112px repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); margin-top: calc(var(--sp-6) * 1.5); }
.flow-labels { grid-column: 1; grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; }
.phases { grid-column: 2 / -1; grid-row: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; }
.phase { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; }
.flow-labels span { display: flex; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-4) var(--sp-3) var(--sp-4) 0; font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; color: var(--color-muted); }
.flow-labels .fl-p, .flow-labels .fl-y, .flow-labels .fl-l, .lane, .lead { border-top: 1px solid var(--color-line); }
.flow-labels .fl-l, .lead { border-bottom: 1px solid var(--color-line); }
.fl-mark { flex: none; width: 10px; height: 10px; margin-top: 3px; }
.fl-p .fl-mark { background: var(--color-text); border-radius: 2px; }
.fl-y .fl-mark { background: var(--color-primary); border-radius: 50%; }
.phase-art { position: relative; padding: 0 var(--sp-3) var(--sp-3); }
.flow-svg { display: block; width: 100%; height: auto; }
/* an arrow from one tile to the next */
.phase:not(:last-child) .phase-art::after { content: ""; position: absolute; right: -9px; top: 70%; width: 18px; height: 10px; background: linear-gradient(var(--color-line-strong), var(--color-line-strong)) 0 50% / 12px 1.5px no-repeat; }
.phase:not(:last-child) .phase-art::before { content: ""; position: absolute; right: -8px; top: calc(70% + 1px); width: 6px; height: 6px; border-top: 1.5px solid var(--color-subtle); border-right: 1.5px solid var(--color-subtle); transform: rotate(45deg); }
.phase-name { display: flex; align-items: baseline; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4) var(--sp-4); font-family: var(--font-display); font-size: var(--fs-20); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.phase-n { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; color: var(--color-primary-ink); }
.lane { padding: var(--sp-4); font-size: var(--fs-14); line-height: 1.55; color: var(--color-muted); transition: background-color .15s; }
.lane-y { color: var(--color-text); }
.phase:hover .lane { background: var(--color-surface-2); }
.lead { padding: var(--sp-3) 1px; }
.lead-bar { display: block; padding: 6px var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; text-align: center; }
.lead-p .lead-bar { background: var(--color-text); color: #FFFFFF; }
.lead-t .lead-bar { background: linear-gradient(90deg, var(--color-text), var(--color-primary)); color: #FFFFFF; }
.lead-y .lead-bar { background: var(--color-primary); color: var(--color-text); }
.phase:first-child .lead-bar { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.phase:last-child .lead-bar { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
/* on wide screens the row labels on the left name each row, so the per-cell tags are for screen readers */
.lane-tag { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scene .glass.lit { fill: var(--color-primary-tint); }
.scene .seed .r { fill: #EDEFF2; }
/* the steps grow in, left to right, when the section comes into view */
@media (prefers-reduced-motion: no-preference) {
  .js .flow:not(.is-in) .obj { opacity: 0; }
  .js .flow:not(.is-in) .lead-bar { clip-path: inset(0 100% 0 0); }
  .flow.is-in .obj { animation: obj-in .55s cubic-bezier(.34, 1.4, .64, 1) both; animation-delay: calc(var(--i) * 170ms + var(--o, 0) * 200ms); }
  .flow.is-in .lead-bar { animation: lead-in .35s ease-out both; animation-delay: calc(900ms + var(--i) * 120ms); }
}
@keyframes obj-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes lead-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* what founders get */
.perk-svg { width: calc(var(--vw, 100) * .9px); height: auto; max-width: 100%; max-height: 100%; }

.scene .accent-edge { fill: var(--color-primary-edge); }
.scene .dash-up { stroke: #6B7280; stroke-width: 1.2px; stroke-dasharray: 3 3; }
.scene .lid { fill: var(--color-text); }
.scene .lid-glow { fill: var(--color-primary-soft); stroke: none; }
.scene .mug .l, .scene .mug .r, .scene .mug .t { fill: #FFFFFF; }
.scene .pot .l, .scene .pot .t { fill: var(--color-primary-soft); }
.scene .pot .r { fill: var(--color-primary); }
.scene .shadow { fill: rgba(17, 24, 39, .12); stroke: none; }

/* ways in: a list of paths on the left, the open one on the right */
.paths { margin-top: calc(var(--sp-6) * 1.5); }
.path-h { margin: 0; }
.path-btn { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: var(--sp-3); row-gap: 2px; width: 100%; padding: var(--sp-5) var(--sp-4); border: 0; border-top: 1px solid var(--color-line); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background-color .15s; }
.path-btn:hover { background: var(--color-surface-2); }
.path-btn:focus-visible { outline: 2px solid var(--color-text); outline-offset: -2px; border-radius: var(--radius-sm); }
.path-n { grid-row: 1 / span 2; font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; color: var(--color-muted); padding-top: 3px; }
.path-who { font-family: var(--font-display); font-size: var(--fs-20); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.path-t { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; text-transform: uppercase; color: var(--color-muted); }
.path-btn[aria-expanded="true"] { background: var(--color-surface-2); box-shadow: inset 3px 0 0 var(--color-primary); }
.path-btn[aria-expanded="true"] .path-n, .path-btn[aria-expanded="true"] .path-t { color: var(--color-primary-ink); }
.path-panel { padding: var(--sp-6); border: 1px solid var(--color-text); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: 4px 4px 0 0 var(--color-text); }
.pp-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-5); align-items: start; }
.pp-kicker { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; color: var(--color-primary-ink); }
.pp-for { margin-top: var(--sp-2); font-family: var(--font-display); font-size: var(--fs-24); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; max-width: 22ch; }
.pp-art { width: 128px; height: 104px; display: flex; align-items: flex-end; justify-content: center; }
.pp-art .perk-svg { width: calc(var(--vw, 100) * 1.1px); max-width: 100%; max-height: 100%; height: auto; }
#pp-build .pp-art .perk-svg { width: calc(var(--vw) * .85px); } /* the block is the one solid object; draw it a little smaller */
.pp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-6); counter-reset: none; }
.pp-steps li { position: relative; display: grid; align-content: start; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1.5px solid var(--color-text); font-size: var(--fs-14); font-weight: 500; line-height: 1.45; }
.pp-n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid var(--color-text); border-radius: 50%; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.pp-steps li:first-child .pp-n { background: var(--color-primary); border-color: var(--color-primary-edge); }
.pp-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-6); }
.pp-terms div { padding: var(--sp-4); border-radius: var(--radius-sm); background: var(--color-surface-2); }
.pp-terms dt { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; color: var(--color-muted); }
.pp-terms dd { margin-top: var(--sp-1); font-size: var(--fs-14); line-height: 1.5; }
.pp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-6); }
.pp-actions .text-link { font-size: var(--fs-14); }
/* without JS every path is open, one after another */
.path-panel { margin: var(--sp-3) 0 var(--sp-5); }
@media (min-width: 900px) {
  .js .paths { display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); grid-template-rows: repeat(4, min-content) 1fr; column-gap: calc(var(--sp-6) * 1.5); }
  .js .route { display: contents; }
  .js .path-h { grid-column: 1; }
  .js .route:last-child .path-btn { border-bottom: 1px solid var(--color-line); }
  .js .path-panel { grid-column: 2; grid-row: 1 / span 5; margin: 0; align-self: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .path-panel.is-opening { animation: panel-in .22s ease-out; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }

/* ventures waiting for a founder */
.badge-open { display: inline-flex; align-items: center; vertical-align: middle; margin-left: var(--sp-3); padding: 2px var(--sp-2); border: 1.5px dashed var(--color-primary-ink); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; color: var(--color-primary-ink); line-height: 1.5; }
.product-open .text-link { align-self: flex-start; margin-top: var(--sp-4); font-size: var(--fs-14); }

/* mentors: who they are on the left, where they work on the right */
.mentors-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: calc(var(--sp-6) * 2); align-items: center; }
.mentor-areas { display: flex; flex-wrap: wrap; gap: var(--sp-1) 0; margin: var(--sp-5) 0 var(--sp-6); font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; color: var(--color-primary-ink); }
.mentor-areas li + li::before { content: "·"; margin: 0 var(--sp-3); color: var(--color-line-strong); }
.mentor-cos-label { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; text-transform: uppercase; color: var(--color-muted); }
.mentor-cos-list { margin-top: var(--sp-4); }
.mentor-cos-list li { font-family: var(--font-display); font-size: clamp(2.5rem, 3vw + 1rem, 4.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; color: #868D9A; transition: color .2s; } /* 3.3:1 on white, enough for text this large */
.mentor-cos-list li:hover { color: var(--color-text); }

/* partners: their own logos, in one ink until you point at them */
.partner-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-6); }
.partner-list li { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-5); border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); }
.partner-logo-link, .partner-logo-slot { display: flex; align-items: center; height: 56px; margin-bottom: var(--sp-4); }
.partner-logo-link { align-self: flex-start; border-radius: var(--radius-sm); }
.partner-logo { display: block; height: var(--h, 32px); width: auto; max-width: 100%; filter: grayscale(1) contrast(1.15); opacity: .7; transition: filter .2s, opacity .2s; }
.partner-list li:hover .partner-logo, .partner-logo-link:focus-visible .partner-logo { filter: none; opacity: 1; }
.partner-logo-slot { font-family: var(--font-display); font-size: var(--fs-20); font-weight: 600; color: var(--color-muted); }
.partner-kind { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; text-transform: uppercase; color: var(--color-primary-ink); }
.partner-where { font-size: var(--fs-14); color: var(--color-muted); }
.partner-soon { border-style: dashed !important; }
.partner-soon .partner-kind { color: var(--color-muted); }

/* the path, picked from four cards written the way people describe themselves */
.tracks { border: 0; padding: 0; margin: 0; min-width: 0; }
.tracks legend { font-size: var(--fs-14); font-weight: 600; padding: 0; margin-bottom: var(--sp-2); }
.track-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.track { position: relative; display: block; }
.track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.track-card { display: flex; align-items: center; gap: var(--sp-3); height: 100%; min-height: 44px; padding: var(--sp-2) var(--sp-3); border: 1.5px solid var(--color-line-strong); border-radius: var(--radius-md); transition: border-color .15s, background-color .15s; }
.track-dot { flex: none; width: 16px; height: 16px; border: 1.5px solid var(--color-subtle); border-radius: 50%; transition: border-color .15s, box-shadow .15s; }
.track-who { font-size: var(--fs-14); font-weight: 600; line-height: 1.3; }
.nowrap { white-space: nowrap; }
.track:hover .track-card { border-color: var(--color-subtle); }
.track input:checked + .track-card { border-color: var(--color-text); background: var(--color-primary-tint); }
.track input:checked + .track-card .track-dot { border-color: var(--color-text); box-shadow: inset 0 0 0 3px var(--color-surface), inset 0 0 0 8px var(--color-primary); }
.track input:focus-visible + .track-card { outline: 2px solid var(--color-text); outline-offset: 3px; }

/* apply */
.apply-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: calc(var(--sp-6) * 2); align-items: start; }
#apply:focus { outline: none; }
.next-steps { margin-top: var(--sp-5); border-top: 1px solid var(--color-line); }
.next-steps li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--color-line); font-size: var(--fs-14); font-weight: 500; }
.next-steps span { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border: 1.5px solid var(--color-text); border-radius: 50%; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.next-steps li:first-child span { background: var(--color-primary); border-color: var(--color-primary-edge); }
.apply-mail { margin-top: var(--sp-5); font-size: var(--fs-14); color: var(--color-muted); }
/* the form sits in the same frame as the open path in "Ways in": the last thing to do on the page */
.apply-form { display: grid; gap: var(--sp-4); padding: var(--sp-6); border: 1px solid var(--color-text); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: 4px 4px 0 0 var(--color-text); }
.field label { font-size: var(--fs-14); font-weight: 600; padding: 0; margin-bottom: var(--sp-2); }
/* the chosen path's own fields share a row; the optional ones sit under a small "Optional" caption */
.apply-form [hidden] { display: none !important; }
.path-fields { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.path-fields > .field { flex: 1 1 0; min-width: 0; }
.path-fields > .field-wide { flex-grow: 2; }
.path-optional { padding-top: var(--sp-3); border-top: 1px dashed var(--color-line-strong); }
.optional-row { flex-basis: 100%; font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--color-muted); }
.path-optional label { font-weight: 500; color: var(--color-muted); }
.path-optional input { min-height: 40px; }
.field select { width: 100%; min-height: 44px; padding: var(--sp-2) 36px var(--sp-2) var(--sp-3); border: 1.5px solid var(--color-subtle); border-radius: var(--radius-md); font: inherit; font-size: var(--fs-16); color: var(--color-text); cursor: pointer; appearance: none; -webkit-appearance: none;
  background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111827' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field select:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; border-color: var(--color-text); }
@media (prefers-reduced-motion: no-preference) {
  .path-fields > .field.is-showing { animation: field-in .22s ease-out; }
}
@keyframes field-in { from { opacity: 0; transform: translateY(4px); } }
.field input::placeholder { color: var(--color-subtle); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: grid; gap: 0; }
.field input, .field textarea {
  width: 100%; min-height: 44px; padding: var(--sp-2) var(--sp-3);
  border: 1.5px solid var(--color-subtle); border-radius: var(--radius-md); background: var(--color-surface);
  font-size: var(--fs-16);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; border-color: var(--color-text); }
.field [aria-invalid="true"] { border-color: var(--color-danger); }
.field-hint { font-size: var(--fs-12); color: var(--color-muted); margin: -4px 0 var(--sp-2); }
.field-error { font-size: var(--fs-12); font-weight: 500; color: var(--color-danger); margin-top: var(--sp-1); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--color-line); }
.form-small { flex: 1 1 220px; font-size: var(--fs-12); color: var(--color-muted); }
.form-status { font-size: var(--fs-14); color: var(--color-muted); }
.form-status:empty { display: none; }

/* footer: four columns, a thin bottom line, and the name set large as a quiet sign-off */
.site-footer { border-top: 1px solid var(--color-line); padding-top: calc(var(--sp-6) * 2); background: var(--color-surface-2); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--sp-6); }
.footer-brand p { max-width: 34ch; margin-top: var(--sp-4); font-size: var(--fs-14); line-height: 1.6; color: var(--color-muted); }
.footer-name { display: block; margin-top: var(--sp-2); }
.footer-h { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; color: var(--color-text); margin-bottom: var(--sp-3); }
.footer-col ul { display: grid; gap: var(--sp-1); font-size: var(--fs-14); }
.footer-col a { display: inline-flex; align-items: center; min-height: 32px; color: var(--color-muted); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; }
.footer-text { padding: 6px 0; line-height: 1.5; color: var(--color-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-2) var(--sp-5); margin-top: calc(var(--sp-6) * 1.5); padding: var(--sp-4) 0; border-top: 1px solid var(--color-line); font-size: var(--fs-12); color: var(--color-muted); }
.footer-top { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: 32px; color: var(--color-muted); text-decoration: none; font-family: var(--font-mono); font-size: var(--fs-12); text-transform: uppercase; }
.footer-top:hover { color: var(--color-text); }
.footer-mark { margin: -0.16em 0 -0.42em; padding: 0 var(--gutter); /* the page edge cuts the word through the middle */ /* the word has no ascenders, so its line box carries empty space on top */ font-family: var(--font-display); font-weight: 600; font-size: clamp(5rem, 21vw, 26rem); line-height: 1; letter-spacing: -0.06em; text-align: center; color: var(--color-line); user-select: none; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .apply-grid, .mentors-grid { gap: var(--sp-6); }
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  /* one step per row: the picture on the left, what happens on the right */
  .flow { display: block; margin-top: var(--sp-6); }
  .flow-labels { display: none; }
  .phases { display: block; }
  .phase { display: grid; grid-template-columns: 128px minmax(0, 1fr); grid-template-rows: none; column-gap: var(--sp-5); padding: var(--sp-5) 0; border-top: 1px solid var(--color-line); }
  .phase:last-child { border-bottom: 1px solid var(--color-line); }
  .phase-art { grid-row: 1 / span 4; padding: 0; }
  .phase:not(:last-child) .phase-art::after, .phase:not(:last-child) .phase-art::before { display: none; }
  .phase-name { padding: 0 0 var(--sp-2); }
  .lane, .lead { border: 0; padding: var(--sp-1) 0; }
  .phase:hover .lane { background: none; }
  .lane { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--sp-2); }
  .lane-tag { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; color: var(--color-muted); padding-top: 2px; }
  .lead { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); }
  .lead .lane-tag { flex: none; width: 64px; }
  .lead-bar, .phase:first-child .lead-bar, .phase:last-child .lead-bar { display: inline-block; border-radius: var(--radius-sm); padding: 3px var(--sp-2); }
}
@media (max-width: 900px) {
  :root { --gutter: var(--sp-5); }
  /* narrow screens: the drawing fills the width and a tapped room opens its note under it */
  .stage { flex-direction: column; align-items: center; gap: var(--sp-4); }
  .studio { width: 90%; height: auto; max-width: 504px; }
  .room-card { position: static; width: 100%; max-width: 560px; text-align: left; box-shadow: none; border-color: var(--color-line-strong); pointer-events: auto; }
  .room-card::before, .room-card::after { display: none; }
  .apply-grid, .mentors-grid { grid-template-columns: minmax(0, 1fr); }
  .products { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 767px) {
  :root { --gutter: var(--sp-4); --stroke: 1px; --sp-section: calc(var(--sp-6) * 2); --header-h: 56px; }
  .site-header nav { display: none; }
  .header-row { justify-content: space-between; }
  .hero { padding: var(--sp-5) 0 var(--sp-6); }
  .hero-intro { margin-top: 40px; }
  .phase { grid-template-columns: 88px minmax(0, 1fr); column-gap: var(--sp-4); }
  .lane { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lead .lane-tag { width: auto; }
  .path-panel { padding: var(--sp-5); box-shadow: none; border-color: var(--color-line-strong); }
  .pp-art { width: 88px; height: 72px; }
  .pp-for { font-size: var(--fs-20); }
  .pp-steps, .pp-terms { grid-template-columns: minmax(0, 1fr); }
  .pp-steps li { grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: var(--sp-3); padding-top: var(--sp-3); border-top-width: 1px; border-top-color: var(--color-line); }
  .pp-actions .btn { width: 100%; }

  .rooms ul { grid-template-columns: minmax(0, 1fr); }
  .section-head h2 { font-size: var(--fs-24); }
  .products { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .product > p { min-height: 0; }
  .apply-form { padding: var(--sp-4); box-shadow: none; border-color: var(--color-line-strong); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .path-fields { flex-direction: column; flex-wrap: nowrap; }
  .path-fields > .field, .optional-row { flex: none; }
  .partner-list { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .form-foot .btn { width: 100%; white-space: normal; text-align: center; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding-top: calc(var(--sp-6) * 1.5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .btn:hover, .btn:active { transform: none; }
}
