/* Hallmark · shape: Labelled Rows · genre: editorial · theme: Atelier (by request) · redesign: restyle
 * hero: the mission in the row grid, a film clip framed under it · nav: a wordmark bar over a hairline · footer: colophon block · imagery: the product, the studio's own renders, screenshots and one muted film clip, natural colour · signature: the owner's mission sentence set large over a framed Hellbound clip
 * axes: light/roman-serif/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0
 * hero-review: not run · finish-review: not run · gap: Atelier's moving air, grain and card stock are left out; pictures keep their own colour */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: R, the two full excerpts make the Work row the one long read */
/* Hallmark · waive 49b · one link, the studio's email address, breaking once at the @ sign · the address is a single 34-character string and cannot shorten on a narrow screen */
/* Hallmark · waive 26b · the page's one button is the clip's play and pause toggle · nothing on the page ever disables it */
/* Hallmark · waive 78 · each section's h2 is its left-column label at body size, beside a statement set at --text-section · the labels are the page's index, the structure the owner chose */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-h: 72px;
  --text-mail: clamp(1.25rem, 4.6vw, 4rem);
  --edge: color-mix(in oklab, var(--color-ink) 14%, transparent);
}

h3 { font-weight: var(--serif-small); }

/* Product pictures keep their own colour: the renders are the proof. */
[data-slot][data-kind="product"] > img { filter: none; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Controls: an ink outline that fills with ink on hover */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: none; color: var(--color-ink); line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink); color: var(--color-paper); }
.btn:active { transform: translateY(1px); }
.btn--nav { min-height: 44px; padding: 0 var(--space-md); }
.link, .reel__toggle { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.link:hover, .reel__toggle:hover { text-decoration-thickness: 2px; }

/* Nav */
.nav { border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-h); }
.wordmark { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); text-decoration: none; white-space: nowrap; }
.nav__end { display: flex; align-items: center; gap: var(--space-xl); }
.nav__links { display: flex; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.nav__links a { display: inline-block; padding-block: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; white-space: nowrap; }
.nav__links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }

/* Rows: a label in the left column, the section in the right */
.row { margin-top: var(--section-gap-s); }
.row__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); column-gap: var(--gap-columns); padding-top: var(--space-lg); border-top: var(--rule-head) solid var(--color-ink); }
.row__head { position: sticky; top: var(--space-lg); align-self: start; max-width: none; font-family: var(--font-body); font-size: var(--text-md); font-weight: 400; letter-spacing: normal; line-height: 1.55; color: var(--color-ink); }
.row__body { min-width: 0; }
.row .row__body > * + * { margin-top: var(--space-xl); }
.row .row__body > .lead { margin-top: var(--space-lg); color: var(--color-ink-2); }
.statement { max-width: 24ch; font-family: var(--font-display); font-size: var(--text-section); font-weight: var(--statement-weight); letter-spacing: var(--tracking-statement); line-height: 1.05; text-wrap: balance; }

/* Mission */
.row--first { margin-top: var(--space-2xl); }
.row--first .row__grid { padding-top: 0; border-top: 0; }
.row--first .row__body { grid-column: -2 / -1; }
/* Capped so the mission and the clip share one 1920 x 1080 screen. */
.row--first .shot { max-width: 52rem; }
.mission .lead { margin-top: var(--space-lg); color: var(--color-ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-xl); margin-top: var(--space-xl); }

/* Frames */
.shot { display: grid; gap: var(--space-sm); margin: 0; }
.shot figcaption { font-size: var(--text-sm); color: var(--color-muted); }
.shot__frame { aspect-ratio: 16 / 9; outline: var(--rule-hair) solid var(--edge); }
.reel { background: var(--color-ink); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-lg); }
.reel__toggle { min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-ink); font-size: var(--text-sm); cursor: pointer; }

/* Products: one card per line of research, in a row that scrolls sideways and runs off the right edge */
.products { display: grid; grid-auto-flow: column; grid-auto-columns: max(16rem, 36%); gap: var(--gap-columns); margin: 0 calc(-1 * var(--gutter)) 0 0; padding: 0 var(--gutter) var(--space-lg) 0; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-color: var(--color-muted) transparent; }
.product { display: grid; align-content: start; gap: var(--space-lg); scroll-snap-align: start; }
.product .shot__frame { aspect-ratio: 16 / 10; }
.product__text > * + * { margin-top: var(--space-sm); }
.product__text > p { font-size: var(--text-lead); color: var(--color-ink-2); }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2xs) var(--space-lg); margin-bottom: 0; font-size: var(--text-sm); }
.facts dt { color: var(--color-muted); }
.facts dd { margin: 0; }

/* Work: the writing and the frames */
.block { padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.block > h3 { margin-bottom: var(--space-lg); }
.pages, .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.page { display: grid; gap: var(--space-md); margin: 0; padding: var(--space-xl); background: var(--color-card); border: var(--rule-hair) solid var(--color-card-edge); line-height: 1.6; }
.page b { display: block; font-weight: 400; font-size: var(--text-sm); color: var(--color-muted); }

/* Research: the claim, then the measurements */
.measures { width: 100%; border-collapse: collapse; }
.measures th, .measures td { padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); font-weight: 400; text-align: left; vertical-align: baseline; }
.measures thead th { font-size: var(--text-sm); color: var(--color-muted); }
.measures tbody th { width: 55%; padding-right: var(--gap-columns); }
.measures td { color: var(--color-ink-2); }
.next { color: var(--color-ink-2); }

/* Founder */
.record { margin: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.record > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); column-gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.record dt { color: var(--color-muted); }
.record dd { margin: 0; font-size: var(--text-lead); }

/* Contact and footer */
.mail { font-family: var(--font-display); font-size: var(--text-mail); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.15; overflow-wrap: anywhere; }
.footer { margin-top: var(--section-gap); padding-block: var(--space-3xl); background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--gap-columns); align-items: baseline; }
.footer p { max-width: 52ch; color: var(--color-ink-2); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-sm) var(--space-lg); margin: 0; padding: 0; list-style: none; }
.footer__links a { display: inline-block; padding-block: var(--space-sm); white-space: nowrap; }
.footer small { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-muted); }

@media (max-width: 60rem) {
  .row__grid, .footer__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); }
  .row__head { position: static; }
  .footer__links { justify-content: flex-start; }
}
@media (max-width: 48rem) {
  .nav__links { display: none; }
  .pages { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .row--first { margin-top: var(--space-2xl); }
  .pair, .record > div { grid-template-columns: minmax(0, 1fr); }
  .record > div { row-gap: var(--space-2xs); }
  .page { padding: var(--space-lg); }
  .measures thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .measures tr { display: block; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .measures tbody th, .measures td { display: block; width: auto; padding: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
