@import url("/fonts/fonts.css");

/* ---------- tokens: light ---------- */
:root {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --surface-2: #e6e6e6;
  --ink: #0a0a0a;
  --muted: #5c5c5c;
  --accent: #d92b21;
  --accent-ink: #ffffff;
  --panel: #0a0a0a;          /* the tone opposite the ground */
  --panel-ink: #ffffff;
  --panel-muted: #c9c9c9;
  --dark-1: #111111;
  --dark-2: #1a1a1a;
  --dark-ink: #f5f5f5;
  --dark-muted: #bdbdbd;

  --small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --display: clamp(2.6rem, 1.2rem + 5.4vw, 6.2rem);

  --m: clamp(20px, 2.4vw, 32px);
  --gap: 8px;
  --sec: clamp(96px, 12vw, 180px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  font-family: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
/* ---------- tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --surface: #171717;
    --surface-2: #222222;
    --ink: #f3f3f3;
    --muted: #a8a8a8;
    --accent: #e5392f;
    --panel: #f3f3f3;
    --panel-ink: #0b0b0b;
    --panel-muted: #3d3d3d;
    --dark-1: #161616;
    --dark-2: #1f1f1f;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1.02; margin: 0; }
h2 { font-size: var(--head); }
h3 { font-size: var(--lead); letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { padding-inline: var(--m); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: 10px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; background: var(--accent); color: var(--accent-ink); font: 600 var(--body)/1 inherit; text-decoration: none; border: 0; cursor: pointer; transition: transform .14s var(--ease), filter .18s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: var(--small); }
.btn.inv { background: var(--accent-ink); color: var(--accent); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); transition: color .18s ease; }
.link:hover { color: var(--accent); }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* ---------- top bar (inner pages) ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; flex-wrap: wrap; }
.bar nav { display: flex; gap: clamp(14px, 2vw, 28px); flex-wrap: wrap; }
.bar nav a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .18s ease; }
.bar nav a:hover { color: var(--ink); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.5rem; letter-spacing: -.03em; text-decoration: none; }
.mark .dot { width: .62em; height: .62em; background: var(--accent); }
.mark.big { font-size: clamp(3rem, 1rem + 5.6vw, 7.5rem); letter-spacing: -.05em; line-height: .9; gap: .14em; }
.mark.big .dot { width: .5em; height: .5em; }
@media (max-width: 700px) { .bar nav { order: 3; width: 100%; } }

/* ---------- hero: a sheet of pictures with one text cell ---------- */
.hero { position: relative; height: max(720px, 100svh); overflow: clip; background: var(--bg); }
.sheet { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 0 var(--m); }
.col { display: grid; gap: 12px; align-content: start; }
.col.c0 { margin-top: 0; } .col.c1 { margin-top: -90px; } .col.c2 { margin-top: -40px; }
.col.c3 { margin-top: -130px; } .col.c4 { margin-top: -20px; } .col.c5 { margin-top: -70px; }
.frame { margin: 0; display: grid; }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.col:nth-child(odd) .frame:nth-child(2) img { aspect-ratio: 4 / 3; }
.col:nth-child(even) .frame:nth-child(3) img { aspect-ratio: 1; }
.frame figcaption { height: 28px; display: flex; align-items: center; padding: 0 10px; font-size: var(--small); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s0 figcaption { background: var(--accent); color: var(--accent-ink); }
.s1 figcaption { background: var(--panel); color: var(--panel-ink); }
.s2 figcaption { background: var(--surface-2); color: var(--ink); }
.s3 figcaption { background: var(--surface); color: var(--ink); }
.panel { position: absolute; left: calc(var(--m) + (100% - 2 * var(--m) - 60px) / 6 + 12px); width: calc((100% - 2 * var(--m) - 60px) / 6 * 3 + 24px); top: 22%; min-height: 410px;
  background: var(--panel); color: var(--panel-ink); padding: 28px 28px 22px; display: flex; flex-direction: column; gap: 18px; z-index: 2; }
.panel h1 { font-size: clamp(1.75rem, 1rem + 1.8vw, 2.75rem); letter-spacing: -.035em; line-height: 1.05; max-width: 20ch; }
.panel p { color: var(--panel-muted); font-size: var(--body); }
.panel .link { color: var(--panel-ink); }
.panel-links { margin-top: auto; display: flex; gap: 18px; flex-wrap: wrap; padding-top: 6px; }
.panel-links a { color: var(--panel-muted); text-decoration: none; font-size: var(--small); font-weight: 500; }
.panel-links a:hover { color: var(--panel-ink); }
@media (max-width: 1100px) { .panel { left: var(--m); width: min(600px, calc(100% - 2 * var(--m))); } .col.c0 figcaption, .col.c1 figcaption { display: none; } }
@media (max-width: 760px) {
  .hero { height: auto; overflow: visible; display: flex; flex-direction: column; }
  .panel { order: -1; }
  .panel { position: relative; left: auto; top: auto; width: auto; margin: 12px var(--m); min-height: 40svh; }
  .panel .mark.big { font-size: 14vw; }
  .sheet { position: relative; inset: auto; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 var(--m); max-height: 120svh; overflow: hidden; }
  .col.c2, .col.c3, .col.c4, .col.c5 { display: none; }
  .col.c0 { margin-top: 0; } .col.c1 { margin-top: -60px; }
  .actions .btn { width: 100%; }
}

/* ---------- mosaic: one photograph cut across tiles ---------- */
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--sec); }
.t { aspect-ratio: 1; overflow: clip; }
.tp { background-image: url("/img/poultry-house-1400.jpg"); background-size: 600% 400%; transition: transform .5s var(--ease); }
.tp:hover { transform: scale(1.08); }
.tc { padding: 16px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.tc h2 { font-size: clamp(1.4rem, 2.6vw, 2.6rem); }
.tc p { font-size: var(--body); font-weight: 500; line-height: 1.3; }
.red { background: var(--accent); color: var(--accent-ink); }
.grey { background: var(--surface); }
.ink { background: var(--panel); color: var(--panel-ink); font-weight: 600; font-size: var(--lead); transition: background-color .2s ease; }
.ink:hover { background: var(--accent); color: var(--accent-ink); }
.ink:active { transform: scale(.98); }
.p00{background-position:0% 0%}.p10{background-position:20% 0%}.p20{background-position:40% 0%}.p30{background-position:60% 0%}.p40{background-position:80% 0%}.p50{background-position:100% 0%}
.p01{background-position:0% 33.33%}.p11{background-position:20% 33.33%}.p21{background-position:40% 33.33%}.p31{background-position:60% 33.33%}.p41{background-position:80% 33.33%}.p51{background-position:100% 33.33%}
.p02{background-position:0% 66.67%}.p12{background-position:20% 66.67%}.p22{background-position:40% 66.67%}.p32{background-position:60% 66.67%}.p42{background-position:80% 66.67%}.p52{background-position:100% 66.67%}
.p03{background-position:0% 100%}.p13{background-position:20% 100%}.p23{background-position:40% 100%}.p33{background-position:60% 100%}.p43{background-position:80% 100%}.p53{background-position:100% 100%}
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tp { background-size: 300% 800%; }
  .tc.red { grid-column: span 2; aspect-ratio: auto; }
  .tc h2 { font-size: 6vw; }
  .tc p { font-size: var(--small); }
}

/* ---------- work: a shelf of spines ---------- */
.work { margin-top: var(--sec); }
.work-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 48px; align-items: end; margin-bottom: 28px; }
.work-head p { color: var(--muted); max-width: 56ch; }
.shelf { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 560px; }
.spine { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 18px 0; writing-mode: vertical-rl; background: var(--surface); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.spine .st { font-size: clamp(1rem, .85rem + .45vw, 1.25rem); font-weight: 600; letter-spacing: -.01em; padding-inline: 10px; }
.spine .sd { font-size: var(--small); font-weight: 600; padding: 10px 8px; align-self: center; }
.d-documents .sd { background: var(--accent); color: var(--accent-ink); }
.d-images .sd { background: var(--panel); color: var(--panel-ink); }
.d-conversations .sd { background: var(--surface-2); color: var(--ink); }
.d-machine .sd { background: var(--bg); color: var(--ink); }
.spine:hover, .spine:focus-visible { background: var(--panel); color: var(--panel-ink); }
.spine:active { transform: scale(.99); }
@media (max-width: 900px) {
  .work-head { grid-template-columns: 1fr; }
  .shelf { display: flex; flex-wrap: wrap; height: auto; gap: 10px; }
  .spine { writing-mode: horizontal-tb; flex-direction: row; align-items: center; padding: 12px 14px; }
  .spine .st { padding: 0; font-size: 1.05rem; }
  .spine .sd { padding: 4px 8px; }
}

/* ---------- picker (the live thing) ---------- */
.picker { margin-top: var(--sec); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(24px, 4vw, 64px); align-items: start; }
.pick-q h2 { margin-bottom: 18px; }
.pick-q > p { color: var(--muted); margin-bottom: 24px; max-width: 44ch; }
.opts { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.opt { position: relative; display: grid; gap: 6px; padding: 18px; background: var(--surface); cursor: pointer; min-height: 120px; align-content: start; transition: background-color .2s ease, color .2s ease; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .ol { font-size: var(--lead); font-weight: 600; letter-spacing: -.02em; }
.opt .oh { font-size: var(--small); color: var(--muted); }
.opt:hover { background: var(--surface-2); }
.opt:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
.opt:has(input:checked) .oh { color: var(--accent-ink); }
.opt:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.opt:active { transform: scale(.98); }
.answer h3 { margin-bottom: 18px; }
.answer + .answer { margin-top: 48px; }
.matches { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.match { display: grid; gap: 10px; text-decoration: none; background: var(--surface); padding-bottom: 14px; }
.match img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.match span { padding-inline: 14px; font-weight: 600; font-size: var(--body); }
.match .sec { font-weight: 400; color: var(--muted); font-size: var(--small); }
.match:hover span:first-of-type { color: var(--accent); }
.first { margin-top: 18px; padding: 18px; background: var(--surface); max-width: 70ch; }
@supports selector(:has(*)) {
  .answer { display: none; }
  .answer + .answer { margin-top: 0; }
  .picker:has(#in-documents:checked) .a-documents, .picker:has(#in-images:checked) .a-images,
  .picker:has(#in-conversations:checked) .a-conversations, .picker:has(#in-machine:checked) .a-machine { display: block; animation: in .45s var(--ease) both; }
}
@keyframes in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .picker { grid-template-columns: 1fr; } }

/* ---------- services: statement cell and dark rows ---------- */
.services { margin-top: var(--sec); display: grid; grid-template-columns: 1fr 1fr; }
.scell { background: var(--surface); padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; height: 100svh; position: sticky; top: 0; }
.scell h2 { font-size: clamp(2.2rem, 4.2vw, 4.25rem); display: grid; }
.scell h2 .r { text-align: right; }
.sfoot { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sfoot p { max-width: 30ch; color: var(--muted); }
.srows { display: grid; grid-template-rows: repeat(6, 1fr); }
.srow { display: grid; grid-template-columns: 5fr 5fr 4fr; gap: 20px; padding: clamp(20px, 2.4vw, 32px); background: var(--dark-1); color: var(--dark-ink); align-items: start; }
.srow:nth-child(even) { background: var(--dark-2); }
.srow h3 { font-size: clamp(1.2rem, .9rem + .8vw, 1.6rem); }
.srow p { font-size: var(--body); color: var(--dark-muted); }
.srow ul { font-size: var(--body); display: grid; gap: 4px; color: var(--dark-ink); }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .scell { height: auto; min-height: 70svh; position: static; }
  .scell h2 { font-size: 10vw; }
  .srow { grid-template-columns: 1fr; gap: 10px; }
  .srow ul { display: block; } .srow li { display: inline; } .srow li + li::before { content: ", "; }
}

/* ---------- how we work: tiles that grow ---------- */
.how { margin-top: var(--sec); }
.how-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 48px; align-items: end; margin-bottom: 32px; }
.how-head p { color: var(--muted); max-width: 52ch; }
@media (max-width: 900px) { .how-head { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: 3fr 4fr 5fr; gap: 10px; align-items: end; }
.step .tile { overflow: clip; background: var(--surface); }
.step.s0 .tile { height: 28vh; } .step.s1 .tile { height: 38vh; } .step.s2 .tile { height: 50vh; }
.step img { width: 100%; height: 100%; object-fit: cover; }
.step h3 { margin-top: 16px; font-size: 1.25rem; }
.step p { margin-top: 6px; color: var(--muted); max-width: 40ch; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step.s0 .tile { height: 34vw; } .step.s1 .tile { height: 46vw; } .step.s2 .tile { height: 62vw; }
}

/* ---------- about ---------- */
.about { margin-top: var(--sec); }
.about h2 { font-size: clamp(2.5rem, 4vw, 3.75rem); }
.about .lead { margin-top: 24px; font-size: var(--lead); line-height: 1.35; max-width: 46ch; }
.about-tiles { display: grid; grid-template-columns: 8fr 4fr; gap: 16px; margin-top: 64px; align-items: start; }
.evidence { margin: 0; background: #ffffff; padding: 16px; }
.evidence img { width: 100%; }
.evidence figcaption { margin-top: 12px; font-size: var(--small); color: #3d3d3d; }
.evidence.wide { margin-top: 48px; }
.facts { margin: 0; background: var(--accent); color: var(--accent-ink); padding: 24px; display: grid; gap: 18px; align-self: stretch; }
.facts dt { font-size: var(--small); opacity: .85; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: var(--lead); line-height: 1.25; }
@media (max-width: 900px) { .about-tiles { grid-template-columns: 1fr; } }

/* ---------- the action tile ---------- */
.cta { margin-top: var(--sec); display: grid; grid-template-columns: 2fr 8fr 2fr; gap: 10px; height: 360px; }
.cta .side { overflow: clip; background: var(--surface); }
.cta .side img { width: 100%; height: 100%; object-fit: cover; }
.cta .main { background: var(--accent); color: var(--accent-ink); padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.cta .main h2 { font-size: clamp(2rem, 3vw, 2.75rem); }
.cta .main p { max-width: 52ch; }
.cta .main .btn { align-self: start; }
@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr 1fr; height: auto; }
  .cta .main { grid-column: 1 / -1; order: -1; padding: 28px; }
  .cta .side { height: 120px; }
}

/* ---------- footer: the name built from blocks ---------- */
.foot { margin-top: var(--sec); background: var(--surface); padding-block: 24px 28px; }
body:has(.cta) .foot { margin-top: 10px; }
.blocks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; align-items: end; height: 34svh; min-height: 200px; text-decoration: none; }
.b { display: grid; place-items: center; font-weight: 600; font-size: clamp(3rem, 11vw, 11rem); line-height: 1; letter-spacing: -.04em; color: var(--surface); transition: height .4s var(--ease); }
.b0 { height: 100%; background: var(--ink); } .b1 { height: 72%; background: var(--accent); } .b2 { height: 88%; background: var(--ink); }
.b3 { height: 64%; background: var(--accent); } .b4 { height: 94%; background: var(--ink); } .b5 { height: 78%; background: var(--accent); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.foot-cols h2 { font-size: var(--small); letter-spacing: 0; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.foot-cols a:not(.btn) { display: block; text-decoration: none; padding: 4px 0; font-size: var(--body); }
.foot-cols a:not(.btn):hover { color: var(--accent); }
.foot-cols p { font-size: var(--body); margin-bottom: 14px; }
.fine { margin-top: 40px; font-size: var(--small); color: var(--muted); max-width: 96ch; }
@media (max-width: 760px) {
  .blocks { height: 22svh; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- case pages ---------- */
.case { padding-top: 32px; }
.case-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; }
.case-head h1 { font-size: var(--display); line-height: .98; letter-spacing: -.04em; }
.case-meta { margin: 0; display: grid; gap: var(--gap); }
.case-meta div { background: var(--surface); padding: 12px 16px; }
.case-meta dt { font-size: var(--small); color: var(--muted); }
.case-meta dd { margin: 0; font-weight: 600; }
.case-photo { margin: 32px 0 0; overflow: clip; }
.case-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.case-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.case-body section { background: var(--surface); padding: clamp(20px, 2.4vw, 32px); }
.case-body h2 { font-size: var(--lead); margin-bottom: 14px; }
.case-body .changes { background: var(--accent); color: var(--accent-ink); }
.changes ul { display: grid; gap: 8px; font-weight: 600; }
.case-next { margin-top: 56px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) { .case-head, .case-body { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { padding-top: 32px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(24px, 5vw, 80px); align-items: start; }
.contact h1 { font-size: clamp(2.6rem, 1rem + 3.6vw, 4.5rem); line-height: 1; letter-spacing: -.04em; margin-bottom: 24px; }
.c-intro > p { font-size: var(--lead); line-height: 1.35; }
.c-points { margin-top: 28px; display: grid; gap: var(--gap); }
.c-points li { background: var(--surface); padding: 14px 16px; font-weight: 500; }
.c-form { background: var(--surface); padding: clamp(20px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.f { display: grid; gap: 8px; }
.wide { grid-column: 1 / -1; }
.f label { font-weight: 600; font-size: var(--small); }
.f input, .f select, .f textarea { font: inherit; font-size: var(--body); color: var(--ink); background: var(--bg); border: 2px solid var(--surface-2); padding: 12px 14px; width: 100%; transition: border-color .18s ease; } /* taste-skill-ignore: real form fields */
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: hidden spam trap */
.fineprint { font-size: var(--small); color: var(--muted); }
.c-work { grid-column: 1 / -1; margin-top: 32px; }
.c-work h2 { font-size: var(--lead); margin-bottom: 18px; }
.more { margin-top: 72px; }
.more h2 { font-size: var(--lead); margin-bottom: 18px; }
.credit-list { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: var(--gap); }
.credit-list li { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 16px; align-items: center; background: var(--surface); padding: 10px; }
.credit-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.credit-list p { font-size: var(--body); }
@media (max-width: 760px) { .credit-list li { grid-template-columns: 1fr; } }
.credit-list a { font-weight: 600; }
@media (max-width: 900px) { .contact, .c-form { grid-template-columns: 1fr; } }
.simple { padding-block: clamp(48px, 10vw, 160px); }
.simple h1 { font-size: var(--display); margin-bottom: 20px; }
.simple .actions { margin-top: 28px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .panel > * { animation: rise .8s var(--ease-expo) both; }
  .js .panel > :nth-child(2) { animation-delay: .08s; } .js .panel > :nth-child(3) { animation-delay: .16s; }
  .js .panel > :nth-child(4) { animation-delay: .24s; } .js .panel > :nth-child(5) { animation-delay: .32s; }
  .js .sheet .col { animation: drift-in 1.2s var(--ease-expo) both; }
  .js .sheet .col.c1 { animation-delay: .06s; } .js .sheet .col.c2 { animation-delay: .12s; } .js .sheet .col.c3 { animation-delay: .18s; }
  .js .sheet .col.c4 { animation-delay: .24s; } .js .sheet .col.c5 { animation-delay: .3s; }
  .js .case-photo { animation: shutter 1.1s var(--ease-io) .1s both; }
  .js .c-intro > *, .js .c-form > *, .js .case-head > *, .js .simple > * { animation: rise .8s var(--ease-expo) both; }
  .js .c-intro > :nth-child(2), .js .c-form > :nth-child(2), .js .case-head > :nth-child(2) { animation-delay: .08s; }
  .js .c-intro > :nth-child(3), .js .c-form > :nth-child(3) { animation-delay: .16s; }
  .js .c-form > :nth-child(4) { animation-delay: .22s; } .js .c-form > :nth-child(5) { animation-delay: .28s; }
  .js .case-photo img { animation: settle 1.4s var(--ease-expo) .1s both; }
  .js .pre { opacity: 0; transform: translateY(24px); }
  .js .rise { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); }
  .js .pre-open { clip-path: inset(0 0 100% 0); }
  .js .opened { clip-path: inset(0); transition: clip-path 1.1s var(--ease-io); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sheet .col.c1, .sheet .col.c3, .sheet .col.c5 { animation: sheet-up linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .sheet .col.c0, .sheet .col.c2, .sheet .col.c4 { animation: sheet-down linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drift-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { to { transform: translateY(-14vh); } }
@keyframes sheet-down { to { transform: translateY(6vh); } }
@keyframes shutter { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
