/* CS42 home page (Version 2). Shared parts live in site.css; this is only what the home page adds. */

/* ── Hero ───────────────────────────────────────────────────────── */
.h-hero { padding-top: clamp(36px, 4vw, 52px); padding-bottom: clamp(24px, 4vw, 56px); overflow: clip; }
.h-hero .t-hero { margin-top: 4px; }
.h-hero .t-lead { margin-top: 18px; }
.h-nowrap { white-space: nowrap; }
.h-in { animation: h-rise 1.1s var(--ease-out) var(--d, 0s) both; }
@keyframes h-rise { from { opacity: 0; transform: translateY(24px); } }

/* ── At a glance: one tile for every part of CS42, under the headline ── */
.h-glance { padding-bottom: 0; }
.h-gl { min-height: clamp(380px, 32vw, 460px); padding-top: clamp(40px, 4.4vw, 56px); }
.h-gl--platform, .h-gl--stratum { min-height: clamp(540px, 46vw, 660px); }
.h-gl-kind { margin-top: 4px; font-size: 17px; color: var(--fg-3); }
.h-gl-text { margin: 10px auto 0; max-width: 36ch; color: var(--fg-2); text-wrap: balance; }
.h-gl .btns { margin-top: 20px; gap: 12px 22px; }
.h-gl > .more { margin-top: 10px; }
a.h-gl { color: var(--fg); }
a.h-gl:hover .more { text-decoration: underline; text-underline-offset: 3px; }
a.h-gl:hover .more::after { transform: translateX(2px) rotate(45deg); }
.h-gl .tile-media { margin-top: auto; }
/* pictures run off the bottom edge of their tile */
.h-gl-pf, .h-gl-chillpic { --sink: clamp(36px, 5vw, 80px); padding-top: clamp(28px, 3vw, 44px); margin-bottom: calc(-1 * var(--sink)); }

/* The Platform: the question on the big screen, a phone answering it (inside the tile; only the bottom runs off) */
.h-gl-pf { position: relative; width: min(84%, 740px); }
.h-gl-pf .screen { width: 100%; margin: 0; }
.h-gl-pf .phone { position: absolute; right: 3%; bottom: 0; width: 21%; --phone-w: 100%; margin: 0; padding: 6px; border-radius: 26px; }
.h-gl-pf .phone img { border-radius: 21px; }

/* Stratum: always the dark tile; its log plot runs off the right edge too */
.h-gl--stratum { background: var(--bg-2); }
/* the plot fills whatever height the row leaves, cut by the tile's right and bottom edges */
.h-gl-st { position: relative; flex: 1 0 clamp(220px, 22vw, 320px); }
.h-gl-st .screen { position: absolute; left: 9%; top: clamp(28px, 3vw, 44px); width: 150%; margin: 0; }
.h-gl-st .sc-zoom { transform-origin: 0 0; }

/* Split Lab: the finishes count over the race in order (runs teal, stations gold), the bars rising in a wave.
   The finish-time histogram stays the Split Lab section's own. */
.h-gl--split { --hx-run: #3FB8AA; --hx-sta: #E2B24E; }
:root[data-palette="snowy-owl"] .h-gl--split { --hx-run: #1E8C80; --hx-sta: #C48A1A; }
.h-gl-hx { flex-direction: column; align-items: center; padding-top: clamp(24px, 3vw, 36px); }
.h-gl-stat .stat-label { margin: 8px auto 0; }
.h-gl-race {
    display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); grid-template-rows: 100%; align-items: end; gap: 5px;
    width: min(100%, 440px); height: clamp(90px, 8vw, 120px); margin-top: clamp(34px, 3.4vw, 48px);
    opacity: 0.85;
}
.h-gl-race i {
    display: block; height: calc(var(--v) * 100%);
    border-radius: 5px 5px 0 0; background: var(--hx-run); transform-origin: 50% 100%;
    transform: scaleY(clamp(0, calc(var(--p, 1) * 1.9 - var(--i) * 0.056), 1));
}
.h-gl-race .h-gl-sta { background: var(--hx-sta); }

/* iOS apps: three phones that fan out as the tile arrives */
.h-gl-phones { position: relative; height: clamp(250px, 25vw, 340px); }
.h-gl-phones .phone {
    position: absolute; left: 50%; bottom: calc(-1 * clamp(64px, 7vw, 110px));
    width: clamp(122px, 12vw, 168px); --phone-w: 100%; margin: 0; padding: 5px; border-radius: 24px;
    transform-origin: 50% 100%;
    transform: translateX(calc(-50% + var(--x, 0%) * var(--p, 1))) rotate(calc(var(--r, 0deg) * var(--p, 1)));
}
.h-gl-phones .phone img { border-radius: 19px; }
.h-gl-phones .h-gl-ph1 { --x: -74%; --r: -7deg; }
.h-gl-phones .h-gl-ph3 { --x: 74%; --r: 7deg; }
.h-gl-phones .h-gl-ph2 { z-index: 2; bottom: calc(-1 * clamp(36px, 4vw, 64px)); }

/* Play: a quiz, a game and the piano, each on its own colour, dealt out like cards */
.h-gl-cards { position: relative; height: clamp(190px, 19vw, 260px); }
.h-gl-card {
    position: absolute; left: 50%; bottom: calc(-1 * clamp(24px, 3vw, 40px));
    width: clamp(210px, 26vw, 360px); padding: 10px; border-radius: 18px;
    box-shadow: var(--shadow);
    transform-origin: 50% 100%;
    transform: translateX(calc(-50% + var(--x, 0%) * var(--p, 1))) rotate(calc(var(--r, 0deg) * var(--p, 1)));
}
.h-gl-card img { display: block; width: 100%; border-radius: 10px; }
.h-gl-card--quiz  { --x: -62%; --r: -8deg; background: var(--tile-quiz); }
.h-gl-card--game  { z-index: 2; background: var(--tile-game); bottom: calc(-1 * clamp(8px, 1vw, 16px)); }
.h-gl-card--piano { --x: 62%; --r: 8deg; background: var(--tile-piano); }

/* Chill: Sukoon itself, on the sage tile */
.h-gl-chillpic { width: min(90%, 600px); }
.h-gl-chillpic .screen { display: block; width: 100%; }

/* Layout: two rows of wide-narrow pairs that swap sides, then the last pair */
@media (min-width: 900px) {
    .h-gl-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .h-gl-more { display: contents; }
    .h-gl--platform, .h-gl--apps, .h-gl--play { grid-column: span 7; }
    .h-gl--stratum, .h-gl--split, .h-gl--chill { grid-column: span 5; }
}
@media (min-width: 600px) and (max-width: 899px) {
    .h-gl-more { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}
/* phones: the two tools stacked, the other four in a row you swipe, running to the screen's edges */
@media (max-width: 599px) {
    .h-gl-more {
        display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
        margin-inline: -12px; padding-inline: 12px; scroll-padding-inline: 12px;
        scroll-snap-type: x mandatory; scrollbar-width: none;
    }
    .h-gl-more::-webkit-scrollbar { display: none; }
    .h-gl-more > .tile { flex: 0 0 84%; scroll-snap-align: start; min-height: 340px; }
    /* every tile in the row takes the tallest one's height: keep the pictures big enough to fill theirs */
    .h-gl-phones { height: 210px; }
    .h-gl-phones .phone { width: 106px; }
    .h-gl-cards { height: 190px; }
    .h-gl-card { width: min(62vw, 250px); }
    .h-gl-chillpic { width: 100%; }
    .h-gl--platform, .h-gl--stratum { min-height: 0; }
}

/* ── The Platform ───────────────────────────────────────────────── */
.h-platform { padding-top: clamp(120px, 14vw, 200px); }
.h-intro { margin-top: clamp(28px, 3vw, 40px); text-align: center; }
.h-intro .btns { justify-content: center; margin-top: 32px; }
.h-access {
    margin: 36px auto 0; max-width: 560px;
    padding-top: 22px; border-top: 1px solid var(--line);
    font-size: 15px; color: var(--fg-3);
}
.h-access p + p { margin-top: 6px; }
.h-access strong { color: var(--fg); }

.h-story { margin-top: clamp(72px, 9vw, 128px); --story-h: 520px; }
.h-story-stage { position: relative; padding-bottom: 6%; }
.h-story-screens .screen { width: 100%; }
.h-story-phones { position: absolute; right: -3%; bottom: 0; width: 23%; }
.h-story-phones .phone { --phone-w: 100%; }
.h-steps { list-style: none; }
.h-steps .t-1 { margin-top: 6px; }
.h-steps .t-lead { margin-top: 18px; }
.h-inline { position: relative; padding-bottom: 12%; margin: 0; }
.h-inline .phone { position: absolute; right: 4%; bottom: 0; width: 26%; --phone-w: 100%; }

.h-ppt {
    display: grid; gap: clamp(40px, 6vw, 88px); align-items: center;
    margin-top: clamp(96px, 12vw, 176px);
}
@media (min-width: 900px) { .h-ppt { grid-template-columns: 5fr 7fr; } }
.h-ppt .t-1 { margin-top: 4px; }
.h-ppt .t-lead { margin-top: 18px; }
.h-ppt .facts { margin-top: 28px; }
.h-ppt .btns { margin-top: 32px; }
.h-ppt-note { margin-top: 18px; }
.h-ppt-media { position: relative; padding-bottom: 8%; }
.h-ppt-media .screen { margin: 0; }
.h-ppt-phone { position: absolute; left: -4%; bottom: -2%; width: 22%; --phone-w: 100%; margin: 0; }

.h-more { margin-top: clamp(96px, 11vw, 160px); }
.h-foot { margin-top: 32px; font-size: 15px; color: var(--fg-3); }

/* ── Stratum ────────────────────────────────────────────────────── */
.h-stratum .head { max-width: 860px; }
.h-stratum-row {
    display: grid; gap: 32px; align-items: end;
    margin-top: clamp(40px, 5vw, 64px); padding-top: 28px;
    border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .h-stratum-row { grid-template-columns: 1fr 1fr; gap: 64px; } }
.h-stratum-cta .t-fine { margin-top: 14px; max-width: 44ch; }
.h-stratum-plot { margin-top: clamp(64px, 8vw, 112px); }
/* the plot opens out from the page width to the edges of the screen as it arrives */
.h-bleed {
    --gap: max(var(--gutter), calc((100vw - var(--w-wide)) / 2));
    margin: 0;
    clip-path: inset(calc((1 - var(--p, 1)) * 3%) calc((1 - var(--p, 1)) * var(--gap)) round calc((1 - var(--p, 1)) * var(--radius-lg)));
}
.h-bleed img { width: 100%; }
.h-stratum-pair { margin-top: 20px; }
.h-scard { display: flex; flex-direction: column; padding-bottom: 0; }
.h-scard .t-body { margin-top: 10px; color: var(--fg-2); max-width: 44ch; }
.h-scard .screen { margin: 32px -8% 0 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 0 0 1px var(--line); }

/* ── Draw AI ────────────────────────────────────────────────────── */
.h-draw-card {
    display: grid; gap: 40px; align-items: center; overflow: hidden;
    padding: clamp(36px, 5vw, 72px);
    border-radius: var(--radius-lg);
    background: var(--bg-2);
}
@media (min-width: 900px) { .h-draw-card { grid-template-columns: 5fr 6fr; } }
.h-draw-copy .t-lead { margin-top: 16px; }
.h-draw-copy .btns { margin-top: 28px; }
.h-draw-tag { margin: 28px 0 0; color: var(--fg-3); font-weight: 500; font-size: 15px; }
.h-draw-media .screen { margin: 0; }

/* ── Split Lab ──────────────────────────────────────────────────── */
.h-split {
    --hx-run: #3FB8AA;
    --hx-sta: #E2B24E;
    --hx-rox: color-mix(in srgb, var(--fg) 34%, transparent);
    --hx-fin: #EE8A72;
    --hx-grid: color-mix(in srgb, var(--fg) 8%, transparent);
}
:root[data-palette="snowy-owl"] .h-split { --hx-run: #1E8C80; --hx-sta: #C48A1A; --hx-fin: #D2654C; }
.hx-stats { --cols: 4; margin-top: clamp(48px, 6vw, 80px); }
.hx-board {
    position: relative;
    margin-top: clamp(48px, 6vw, 80px);
    padding: clamp(22px, 3.4vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--bg-2);
}
.hx-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.hx-toggle { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-3); }
.hx-toggle button {
    min-height: 34px; padding: 0 18px; border: 0; border-radius: 8px;
    background: transparent; color: var(--fg-2); font-size: 14px; font-weight: 500;
    transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.hx-toggle button:hover { color: var(--fg); }
.hx-toggle button[aria-pressed="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.hx-hint { color: var(--fg-3); font-size: 13px; }
.hx-hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .hx-hint-mouse { display: inline; } .hx-hint-touch { display: none; } }
.hx-grid { display: grid; gap: clamp(36px, 4vw, 64px); margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 1000px) { .hx-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.hx-chart { margin: 0; min-width: 0; }
.hx-chart figcaption p { margin-top: 6px; max-width: 36rem; color: var(--fg-3); font-size: 15px; line-height: 1.5; }
.hx-chart figcaption b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.hx-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin-top: 16px; color: var(--fg-2); font-size: 13px; }
.hx-legend li { display: inline-flex; align-items: center; gap: 8px; }
.hx-key { width: 10px; height: 10px; border-radius: 50%; background: var(--hx-run); }
.hx-key--sta { background: var(--hx-sta); }
.hx-key--rox { background: var(--hx-rox); }
.hx-segs { display: grid; gap: 5px; list-style: none; margin-top: 18px; }
.hx-seg, .hx-axis { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr) 3rem; align-items: center; gap: 12px; }
.hx-seg { --c: var(--hx-run); min-height: 24px; border-radius: 6px; }
.hx-seg--sta { --c: var(--hx-sta); }
.hx-seg--rox { --c: var(--hx-rox); margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); border-radius: 0; }
.hx-seg-name { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-2); font-size: 14px; }
.hx-seg-name small { display: inline-block; width: 1.5rem; margin-right: 6px; font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.hx-seg--sta .hx-seg-name { color: var(--fg); }
.hx-track { position: relative; height: 12px; background-image: repeating-linear-gradient(90deg, var(--hx-grid) 0 1px, transparent 1px 18.1818%); }
.hx-track i {
    position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%);
    border-radius: 0 6px 6px 0; background: var(--c); transform-origin: left center;
    transition: width .7s var(--ease), transform 1s var(--ease-out) calc(var(--i) * 45ms + .1s), opacity .2s;
}
.js .hx-board:not(.is-in) .hx-track i { transform: scaleX(0); }
.hx-seg b { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; color: var(--fg); }
.hx-seg.is-hot { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.hx-segs:has(.is-hot) .hx-seg:not(.is-hot) .hx-track i { opacity: 0.45; }
.hx-axis { margin-top: 8px; }
.hx-ticks { position: relative; height: 14px; }
.hx-ticks span, .hx-hticks span { position: absolute; left: calc(var(--x) * 100%); translate: -50% 0; font-size: 11px; color: var(--fg-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hx-ticks span:first-child { translate: 0 0; }
.hx-dist { display: flex; flex-direction: column; }
.hx-plot { position: relative; flex: 1 1 auto; min-height: clamp(220px, 26vw, 300px); margin-top: 64px; border-bottom: 1px solid var(--line); }
.hx-hist { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: 2px; touch-action: pan-y; }
.hx-hist span { display: flex; align-items: flex-end; height: 100%; }
.hx-hist span.hx-open { margin-left: 5px; }
.hx-hist i {
    flex: 1; height: calc(var(--v) * 100%); min-height: 1px;
    border-radius: 4px 4px 0 0; background: var(--hx-fin); transform-origin: bottom center;
    transition: height .7s var(--ease), transform 1s var(--ease-out) calc(var(--i) * 26ms + .2s), opacity .2s;
}
.js .hx-board:not(.is-in) .hx-hist i { transform: scaleY(0); }
.hx-hist .hx-open i { background: repeating-linear-gradient(135deg, var(--hx-fin) 0 3px, color-mix(in srgb, var(--hx-fin) 35%, transparent) 3px 6px); }
.hx-hist:has(span.is-hot) span:not(.is-hot) i { opacity: 0.45; }
.hx-mark { position: absolute; top: -50px; bottom: 0; left: calc(var(--x) * 100%); width: 0; border-left: 1.5px dashed var(--fg-3); transition: left .7s var(--ease), opacity .5s var(--ease) .9s; pointer-events: none; }
.hx-mark--med { top: -26px; border-left-color: var(--fg); }
.js .hx-board:not(.is-in) .hx-mark { opacity: 0; }
.hx-mark span { position: absolute; top: -2px; left: 7px; white-space: nowrap; font-size: 12px; color: var(--fg-3); }
.hx-mark span b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.hx-hticks { position: relative; height: 22px; margin-top: 8px; }
.hx-tip {
    position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 14px));
    padding: 9px 12px; border-radius: 10px;
    background: var(--fg); color: var(--bg);
    font-size: 13px; line-height: 1.35; pointer-events: none; white-space: nowrap;
}
.hx-tip b { display: block; font-weight: 600; }
.hx-table { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.hx-table summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: var(--accent); font-size: 15px; }
.hx-table summary::-webkit-details-marker { display: none; }
.hx-table summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease-out); }
.hx-table[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.hx-tables { display: grid; gap: 28px; margin-top: 20px; }
@media (min-width: 900px) { .hx-tables { grid-template-columns: 1fr 1fr; gap: 48px; } }
.hx-tables table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.hx-tables caption { text-align: left; color: var(--fg-3); padding-bottom: 10px; font-size: 13px; }
.hx-tables th, .hx-tables td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); text-align: left; }
.hx-tables td { text-align: right; }
.hx-tables thead th { color: var(--fg); font-weight: 600; }
.hx-tables thead th + th { text-align: right; }
.hx-tables th[scope="row"] { font-weight: 400; color: var(--fg-2); }
.h-split-cta { margin-top: 40px; }
.h-split-cta .t-fine { margin-top: 16px; max-width: 720px; }
@media (max-width: 734px) {
    .hx-stats { grid-template-columns: 1fr 1fr; }
    .hx-seg, .hx-axis { grid-template-columns: 7.6rem minmax(0, 1fr) 2.4rem; gap: 8px; }
    .hx-seg-name small { width: 1.25rem; margin-right: 4px; }
    .hx-ticks span:nth-child(even) { display: none; }
}

/* ── Apps ───────────────────────────────────────────────────────── */
.h-apps .head { margin-bottom: clamp(36px, 4vw, 56px); }
.h-gallery .gallery-item { --item-w: min(78vw, 320px); }
.h-app {
    display: flex; flex-direction: column; height: 100%;
    border-radius: var(--radius-lg); background: var(--bg-2); color: var(--fg);
    overflow: hidden; transition: transform .5s var(--ease-out);
}
.h-app:hover { text-decoration: none; transform: scale(1.015); }
.h-app-shot { display: flex; justify-content: center; padding: 34px 0 0; height: 380px; overflow: hidden; }
.h-app-shot .phone { --phone-w: 210px; aspect-ratio: auto; height: 455px; padding: 7px; border-radius: 38px; transition: transform .7s var(--ease-out); }
.h-app-shot .phone img { border-radius: 31px; object-position: top; }
.h-app:hover .h-app-shot .phone { transform: translateY(-8px); }
.h-app-text { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 22px 26px 28px; border-top: 1px solid var(--line); }
.h-app-text .app-icon { grid-row: span 2; width: 44px; height: 44px; }
.h-app-name { font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.h-app-st { font-size: 13px; color: var(--fg-3); }
.h-app-desc { grid-column: 1 / -1; margin-top: 14px; font-size: 15px; line-height: 1.42; color: var(--fg-2); }
.h-app--soon .h-app-text { grid-template-columns: 1fr; }
.h-app-icons { align-items: center; gap: 18px; padding: 0; }
.h-app-icons .app-icon { width: 92px; height: 92px; }
.h-app-icons .app-icon:last-child { transform: translateY(24px); }
.h-apps-links { margin-top: 28px; }

/* ── Play and Chill ─────────────────────────────────────────────── */
.h-play-tiles { margin-top: clamp(44px, 5vw, 72px); }
.h-ptile { min-height: clamp(520px, 44vw, 600px); padding-bottom: 0; }
.h-ptile-kind { font-size: 17px; font-weight: 600; opacity: 0.72; margin-bottom: 8px; }
.h-ptile .t-2 { max-width: 13ch; }
.h-ptile-text { margin-top: 12px; max-width: 32ch; font-size: 17px; color: var(--fg-2); }
.h-ptile .more { margin-top: 18px; color: var(--fg); }
.h-ptile-media { position: relative; margin-top: auto; padding-top: 36px; }
.h-ptile-media img {
    width: 88%; border-radius: 14px 14px 0 0;
    box-shadow: 0 -10px 40px -18px rgba(0,0,0,0.35);
    transform: translateY(10px); transition: transform .7s var(--ease-out);
}
.h-ptile:hover .h-ptile-media img { transform: translateY(0); }
.h-ptile-stack { height: 250px; }
.h-ptile-stack img { position: absolute; bottom: 0; width: 70%; }
.h-ptile-stack img:nth-child(1) { left: 2%; transform: rotate(-5deg) translateY(28px); }
.h-ptile-stack img:nth-child(2) { left: 15%; transform: translateY(14px); z-index: 1; }
.h-ptile-stack img:nth-child(3) { right: 2%; transform: rotate(5deg) translateY(30px); }
.h-ptile:hover .h-ptile-stack img:nth-child(1) { transform: rotate(-7deg) translateY(18px); }
.h-ptile:hover .h-ptile-stack img:nth-child(2) { transform: translateY(2px); }
.h-ptile:hover .h-ptile-stack img:nth-child(3) { transform: rotate(7deg) translateY(20px); }
.h-play-all { margin-top: 28px; }

.h-chill { margin-top: 12px; }
.h-chill-tile {
    display: grid; align-items: center; gap: 32px;
    min-height: clamp(520px, 46vw, 640px); padding-bottom: 0;
}
@media (min-width: 900px) { .h-chill-tile { grid-template-columns: 4fr 6fr; padding: 0 0 0 clamp(36px, 5vw, 80px); } }
.h-chill-copy .t-1 { max-width: 12ch; }
.h-chill-copy .more { margin-top: 20px; color: var(--fg); }
.h-chill-media { position: relative; align-self: stretch; min-height: 340px; }
.h-chill-media img { position: absolute; border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.45); }
.h-chill-a { right: -6%; top: 12%; width: 96%; }
.h-chill-b { left: -2%; bottom: 8%; width: 44%; }
@media (max-width: 899px) { .h-chill-media { min-height: 300px; } .h-chill-a { top: 0; right: -14%; } .h-chill-b { bottom: 14%; } }
@media (max-width: 734px) {
    .h-ptile { min-height: auto; }
    .h-ptile-media { padding-top: 28px; }
}

/* ── Early access ───────────────────────────────────────────────── */
.h-form { margin-top: 44px; }
.h-form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .h-form-row { grid-template-columns: 1fr 1fr; } }
.h-form-row .field + .field { margin-top: 0; }
.h-req { color: var(--rose); }
.h-opt { font-weight: 400; color: var(--fg-3); }
.h-interest { margin: 26px 0 22px; padding: 0; border: 0; }
.h-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.h-chips label { position: relative; }
.h-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.h-chips span {
    display: inline-block; padding: 9px 16px; border-radius: 980px;
    border: 1px solid var(--line-2); font-size: 15px; color: var(--fg-2);
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.h-chips input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.h-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.h-count { text-align: right; }
.h-submit { width: 100%; margin-top: 22px; }
.h-form-note { margin-top: 14px; }
.h-done { margin-top: 36px; text-align: center; }
.h-done .t-lead { margin-top: 12px; }

/* ── Everything ─────────────────────────────────────────────────── */
.h-index { display: grid; list-style: none; margin-top: 44px; border-top: 1px solid var(--line); }
@media (min-width: 735px) { .h-index { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1000px) { .h-index { grid-template-columns: repeat(3, 1fr); } }
.h-index li { border-bottom: 1px solid var(--line); }
.h-index a { display: block; height: 100%; padding: 22px 0 24px; color: var(--fg); }
.h-index a:hover { text-decoration: none; }
.h-index a:hover .h-index-name { color: var(--accent); }
.h-index-name { display: flex; align-items: baseline; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.012em; transition: color .2s var(--ease); }
.h-index-name .st, .h-index-name .st--new { font-size: 13px; font-weight: 500; }
.h-index-desc { display: block; margin-top: 6px; font-size: 15px; line-height: 1.42; color: var(--fg-3); }

/* ── The studio note ────────────────────────────────────────────── */
.h-note .wrap { text-align: center; }
.h-motto { margin-top: 10px; }
.h-note-text { margin: 26px auto 0; max-width: 560px; }
.h-note .btns { justify-content: center; margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
    .h-in { animation: none; }
    .js .hx-board .hx-track i, .js .hx-board .hx-hist i { transform: none; }
    .js .hx-board .hx-mark { opacity: 1; }
    .h-bleed { clip-path: none; }
}

/* Status words that stand alone keep their dot, even inside a link */
.h-index-name .st, .h-index-name .st--new, .h-app-st.st { color: var(--fg-3); font-weight: 500; }
.h-index-name .st::before, .h-index-name .st--new::before, .h-app-st.st::before { display: inline-block; }
@media (max-width: 734px) {
    .h-ptile-stack { height: 190px; }
    .h-draw-tag { padding-top: 18px; border-top: 1px solid var(--line); }
}
