/* KS Media studio site (27 October 2026). One stylesheet for the studio pages: home,
   services, about, contact, the legal pages, /ai-info and the 404. The industrial pages
   that keep serving until the Constraint First site is live load css/main.css instead.

   Identity: a quiet frame for the work. Warm paper, near-black ink, one display face
   (Instrument Serif) and one text face (Instrument Sans). No accent colour: the work
   carries the colour. Motion is short and transform-only, and none of it runs under
   prefers-reduced-motion. Faces are declared in css/fonts.css. */

:root {
  --paper: #f4f2ed;
  --paper-2: #ebe8e1;
  --ink: #121212;
  --ink-2: #3b3a37;
  --muted: #66625b;
  --line: rgba(18, 18, 18, 0.14);
  --line-strong: rgba(18, 18, 18, 0.32);
  --on-ink: #f4f2ed;
  --on-ink-muted: #a9a59c;
  --serif: "Instrument Serif", "Instrument Serif Fallback", "Times New Roman", serif;
  --sans: "Instrument Sans", "Instrument Sans Fallback", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --measure: 38rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, .footer :focus-visible { outline-color: var(--on-ink); }

::selection { background: var(--ink); color: var(--paper); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
}

.section { padding-block: clamp(72px, 11vw, 160px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.rule { border-top: 1px solid var(--line); }

/* ---------- type ---------- */

.display,
.h1,
.h2,
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  font-feature-settings: "kern", "liga";
}

.display {
  font-size: clamp(3.1rem, 10.4vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.h1 { font-size: clamp(2.75rem, 7.2vw, 6.75rem); line-height: 0.96; letter-spacing: -0.018em; }
.h2 { font-size: clamp(2.1rem, 4.6vw, 4.25rem); line-height: 1; }
.h3 { font-size: clamp(1.6rem, 2.4vw, 2.25rem); line-height: 1.05; }

.display em, .h1 em, .h2 em, .h3 em { font-style: italic; }

.eyebrow {
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: clamp(1.1875rem, 1.6vw, 1.4375rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: var(--measure);
}

.small { font-size: 0.875rem; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 500 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.on-ink .btn { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.on-ink .btn:hover { background: transparent; color: var(--on-ink); }

.arrow { display: inline-block; transition: transform 0.3s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-block: 6px;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  text-decoration: none;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ---------- header ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { font-style: italic; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.nav-list a {
  position: relative;
  padding-block: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: inherit;
  font: 500 0.9375rem/1 var(--sans);
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    padding: 12px var(--gutter) 32px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-menu.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-list a { display: block; font-family: var(--serif); font-size: 2.25rem; font-weight: 400; padding-block: 6px; }
  .nav-list a::after { display: none; }
}
/* With no JavaScript the menu simply stays open under the bar (css/nojs.css). */

/* ---------- home hero ---------- */

.hero { padding-block: clamp(56px, 9vw, 128px) clamp(56px, 8vw, 112px); }
.hero .eyebrow { margin-bottom: clamp(24px, 3vw, 40px); }
.hero .display { max-width: 17ch; }
.hero-foot {
  margin-top: clamp(40px, 6vw, 88px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 32px;
  align-items: end;
}
.hero-foot .lead { grid-column: 1 / span 6; }
.hero-foot .actions { grid-column: 8 / span 5; justify-content: flex-end; }
@media (max-width: 900px) {
  .hero-foot .lead, .hero-foot .actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(18px, 2.4vw, 28px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1;
  white-space: nowrap;
}
.marquee-group span:nth-child(even) { font-style: italic; color: var(--muted); }
.marquee-group span[aria-hidden] { font-style: normal; color: var(--line-strong); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 20px;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.section-head .eyebrow { grid-column: 1 / span 3; padding-top: 0.9em; }
.section-head .h2 { grid-column: 4 / span 9; max-width: 16ch; }
.section-head .lead { grid-column: 4 / span 7; }
@media (max-width: 900px) {
  .section-head .eyebrow, .section-head .h2, .section-head .lead { grid-column: 1 / -1; padding-top: 0; }
}

/* ---------- disciplines (home) ---------- */

.disciplines { border-top: 1px solid var(--line); }
.discipline {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 12px;
  align-items: baseline;
  padding-block: clamp(28px, 3.6vw, 48px);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.discipline-no { grid-column: 1 / span 1; font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.discipline-name { grid-column: 2 / span 5; font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1; transition: transform 0.45s var(--ease); }
.discipline-text { grid-column: 7 / span 4; color: var(--ink-2); max-width: 30rem; }
.discipline-price { grid-column: 11 / span 2; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.discipline-price small { display: block; font-size: 0.8125rem; color: var(--muted); }
a.discipline:hover .discipline-name { transform: translateX(10px); }
@media (max-width: 900px) {
  .discipline-no { grid-column: 1 / -1; }
  .discipline-name { grid-column: 1 / -1; }
  .discipline-text { grid-column: 1 / span 8; }
  .discipline-price { grid-column: 9 / span 4; }
}
@media (max-width: 560px) {
  .discipline-text, .discipline-price { grid-column: 1 / -1; text-align: left; }
}

/* ---------- process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  counter-reset: step;
}
.step { border-top: 1px solid var(--ink); padding-top: 24px; }
.step-no { display: block; margin-bottom: 40px; font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.step .h3 { margin-bottom: 14px; }
.step p { color: var(--ink-2); max-width: 26rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step-no { margin-bottom: 20px; } }

/* ---------- founder ---------- */

.founder {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 32px;
}
.founder .eyebrow { grid-column: 1 / span 3; padding-top: 0.6em; }
.founder blockquote { grid-column: 4 / span 9; }
.founder blockquote p { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.015em; max-width: 18ch; }
.founder-meta { grid-column: 4 / span 6; display: grid; gap: 18px; color: var(--ink-2); }
@media (max-width: 900px) {
  .founder .eyebrow, .founder blockquote, .founder-meta { grid-column: 1 / -1; padding-top: 0; }
}

/* ---------- ink band (contact call) ---------- */

.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink .eyebrow, .on-ink .small { color: var(--on-ink-muted); }
.on-ink .lead { color: var(--on-ink); opacity: 0.86; }

.callout { padding-block: clamp(88px, 13vw, 200px); }
.callout .display { max-width: 11ch; }
.callout-mail {
  display: inline-block;
  margin-top: clamp(32px, 4vw, 56px);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4.2vw, 3.75rem);
  line-height: 1.1;
  font-style: italic;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.45s var(--ease);
  overflow-wrap: anywhere;
}
.callout-mail:hover { background-size: 0 1px; background-position: 100% 100%; }
.callout .actions { margin-top: 40px; }

/* ---------- page heads ---------- */

.page-head { padding-block: clamp(56px, 9vw, 136px) clamp(40px, 6vw, 88px); }
.page-head .eyebrow { margin-bottom: clamp(20px, 3vw, 36px); }
.page-head .h1 { max-width: 14ch; }
.page-head .lead { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- services ---------- */

.menu-group { padding-block: clamp(48px, 7vw, 104px); border-top: 1px solid var(--line); }
.menu-group > .grid { row-gap: 32px; }
.menu-group-head { grid-column: 1 / span 4; }
.menu-group-head .h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.menu-group-head p { margin-top: 16px; color: var(--ink-2); max-width: 22rem; }
.menu { grid-column: 5 / span 8; border-top: 1px solid var(--ink); }
@media (max-width: 900px) { .menu-group-head, .menu { grid-column: 1 / -1; } }

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  row-gap: 8px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.item-name { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; }
.item-price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 1.0625rem; font-weight: 500; }
.item-price small { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.item-text { grid-column: 1 / -1; color: var(--ink-2); max-width: 36rem; }
@media (max-width: 480px) {
  .item { grid-template-columns: 1fr; }
  .item-price { text-align: left; }
}

.vat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.terms-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.terms-strip dt { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.terms-strip dd { color: var(--ink-2); max-width: 24rem; }
@media (max-width: 900px) { .terms-strip { grid-template-columns: 1fr; } }

.aside-line { padding-block: 32px; border-top: 1px solid var(--line); color: var(--ink-2); }

/* ---------- about ---------- */

.facts-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding-block: 32px;
  border-block: 1px solid var(--line);
}
.facts-row dt { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts-row dd { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; }
@media (max-width: 720px) { .facts-row { grid-template-columns: 1fr; } }

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 24px;
  padding-block: clamp(48px, 7vw, 104px);
  border-top: 1px solid var(--line);
}
.split > .eyebrow { grid-column: 1 / span 3; padding-top: 0.5em; }
.split > .split-body { grid-column: 4 / span 7; display: grid; gap: 20px; }
.split .h3 { margin-bottom: 4px; }
.split p { color: var(--ink-2); max-width: var(--measure); }
@media (max-width: 900px) { .split > .eyebrow, .split > .split-body { grid-column: 1 / -1; padding-top: 0; } }

.plain-list { display: grid; gap: 14px; padding: 0; list-style: none; }
.plain-list li { padding-left: 28px; position: relative; color: var(--ink-2); max-width: var(--measure); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 14px; height: 1px; background: var(--ink); }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 56px;
  padding-bottom: clamp(72px, 10vw, 144px);
}
.contact-side { grid-column: 1 / span 4; display: grid; align-content: start; gap: 28px; }
.contact-form { grid-column: 6 / span 7; }
@media (max-width: 900px) { .contact-side, .contact-form { grid-column: 1 / -1; } }

.contact-side dt { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-side dd { font-size: 1.125rem; }
.contact-side dd a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-side dd a:hover { border-bottom-color: var(--ink); }

.field { display: grid; gap: 8px; margin-bottom: 28px; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.125rem/1.4 var(--sans);
  transition: border-color 0.2s var(--ease);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-bottom-color: var(--ink-2); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom: 2px solid var(--ink); padding-bottom: 11px; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: #a1281b; }
.field-hint { font-size: 0.875rem; color: var(--muted); }
.field-error { font-size: 0.875rem; color: #a1281b; }
.form-foot { display: grid; gap: 14px; margin-top: 8px; }
.form-foot p { font-size: 0.875rem; color: var(--muted); max-width: 32rem; }
.form-status { min-height: 1.5em; font-size: 1rem; color: var(--ink); max-width: 32rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- prose (legal, ai-info) ---------- */

.prose { max-width: 44rem; padding-bottom: clamp(72px, 10vw, 144px); }
.prose h2 {
  margin: 56px 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.1;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; font-size: 1.125rem; font-weight: 600; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0; padding-left: 1.25em; display: grid; gap: 8px; }
.prose dl.facts { margin: 20px 0; border-top: 1px solid var(--line); }
.prose dl.facts > div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 4px 24px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.prose dl.facts dt { font-weight: 600; }
.prose dl.facts dd { color: var(--ink-2); }
@media (max-width: 560px) { .prose dl.facts > div { grid-template-columns: 1fr; } }
.prose a { overflow-wrap: anywhere; }

/* ---------- footer ---------- */

.footer { background: var(--ink); color: var(--on-ink); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 48px;
  padding-block: clamp(64px, 8vw, 112px) clamp(48px, 6vw, 80px);
}
.footer-brand { grid-column: 1 / span 6; }
.footer-brand .wordmark { font-size: clamp(2.75rem, 6vw, 5rem); }
.footer-brand p { margin-top: 20px; max-width: 26rem; color: var(--on-ink-muted); }
.footer-col { grid-column: span 2; }
.footer-h { margin-bottom: 16px; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-ink-muted); }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-place { color: var(--on-ink-muted); }
@media (max-width: 900px) {
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { grid-column: span 4; }
}
@media (max-width: 560px) {
  .footer-col { grid-column: span 6; }
  .footer-col:nth-child(2) { grid-column: 1 / -1; }
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px 36px;
  border-top: 1px solid rgba(244, 242, 237, 0.16);
  font-size: 0.8125rem;
  color: var(--on-ink-muted);
}
.footer-base p { max-width: 52rem; }
.footer-base .legal-links { display: flex; gap: 20px; }

/* ---------- work (ready for the first permitted projects) ----------
   Tiles on the home page and one page per project under /work/<slug>. Markup lives in
   _drafts/work-tile.html and _drafts/work/_template/index.html until two projects are at
   P2 or above in growth/proof/register.yaml. Media is full-bleed; copy stays short. */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(56px, 8vw, 120px);
}
.tile { grid-column: span 6; text-decoration: none; }
.tile--wide { grid-column: 1 / -1; }
.tile:nth-child(4n + 2) { margin-top: clamp(0px, 10vw, 160px); }
.tile-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.tile--wide .tile-media { aspect-ratio: 16 / 9; }
.tile-media img,
.tile-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.1s var(--ease);
}
.tile:hover .tile-media img,
.tile:hover .tile-media video { transform: scale(1.04); }
.tile-caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; }
.tile-name { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.05; }
.tile-kind { font-size: 0.9375rem; color: var(--muted); text-align: right; }
@media (max-width: 720px) {
  .tile, .tile--wide { grid-column: 1 / -1; }
  .tile:nth-child(4n + 2) { margin-top: 0; }
}

.work-hero { padding-block: clamp(48px, 7vw, 104px) clamp(32px, 4vw, 56px); }
.work-hero .h1 { max-width: 16ch; }
.work-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.work-meta dt { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 720px) { .work-meta { grid-template-columns: 1fr 1fr; } }
.bleed { width: 100%; background: var(--paper-2); }
.bleed img, .bleed video { width: 100%; height: auto; }
.work-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 16px); }
@media (max-width: 720px) { .work-pair { grid-template-columns: 1fr; } }
.work-stack { display: grid; gap: clamp(8px, 1.2vw, 16px); }
.metric-headline, .delivered { padding-block: clamp(48px, 7vw, 104px); }
.metric-headline .h2, .delivered .h2 { max-width: 20ch; }
.metric-headline .small, .delivered .small { margin-top: 16px; }

/* ---------- 404 ---------- */

.lost { min-height: 62vh; display: grid; align-content: center; padding-block: 96px; }
.lost .actions { margin-top: 40px; }

/* ---------- motion ---------- */

/* Reveals are added by js/studio.js, which only marks elements when motion is allowed
   and IntersectionObserver exists, so nothing is ever hidden without JavaScript. */
.js-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; transform: none; }
  .js-reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .footer, .marquee, .callout { display: none; }
  body { background: #fff; }
}
