/* Plinth — a portfolio theme for visual creatives. One family, no colour of its own: the work brings the colour. */
:root {
  /* colour */
  --paper: #f5f3ef;
  --paper-2: #ece9e3;
  --ink: #151413;
  --ink-2: #3b3834;
  --muted: #6b6761;
  --line: rgba(21, 20, 19, 0.12);
  --line-strong: rgba(21, 20, 19, 0.24);
  --accent: #e5401a;
  --accent-ink: #b3310f;
  --night: #151413;
  --night-text: #f5f3ef;
  --night-muted: #a7a29a;
  --night-line: rgba(245, 243, 239, 0.16);

  /* type */
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-hero: clamp(44px, 7.25vw, 104px);
  --t-1: clamp(36px, 4.45vw, 64px);
  --t-2: clamp(28px, 2.8vw, 40px);
  --t-3: clamp(22px, 1.8vw, 26px);
  --t-4: 20px;
  --t-body: 17px;
  --t-small: 14px;
  --t-micro: 12px;
  --track-display: -0.045em;
  --track-head: -0.03em;

  /* space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;
  --section: clamp(96px, 11vw, 160px);
  --margin: clamp(20px, 2.8vw, 40px);
  --gap: clamp(16px, 1.7vw, 24px);
  --max: 1440px;

  /* shape and motion */
  --radius: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; animation-timing-function: var(--ease-in-out); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.55;
  font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--accent); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.num, time, .tab { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: var(--margin); top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); z-index: 50; font-size: var(--t-small); }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───── layout ───── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-top: var(--section); }
.c-1-6 { grid-column: 1 / span 6; } .c-7-12 { grid-column: 7 / span 6; } .c-1-12 { grid-column: 1 / -1; }
.c-1-4 { grid-column: 1 / span 4; } .c-1-5 { grid-column: 1 / span 5; } .c-7-11 { grid-column: 7 / span 5; }
@media (max-width: 860px) {
  .grid > * { grid-column: 1 / -1 !important; }
}

/* ───── type ───── */
.hero-title { font-size: var(--t-hero); line-height: 0.96; letter-spacing: var(--track-display); font-weight: 500; }
.h1 { font-size: var(--t-1); line-height: 1; letter-spacing: var(--track-display); font-weight: 500; }
.h2 { font-size: var(--t-2); line-height: 1.08; letter-spacing: var(--track-head); font-weight: 500; }
.h3 { font-size: var(--t-3); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.lede { font-size: var(--t-4); line-height: 1.5; color: var(--ink-2); max-width: 36ch; letter-spacing: -0.01em; }
.body { max-width: 62ch; color: var(--ink-2); }
.body + .body { margin-top: var(--s-4); }
.label { font-size: var(--t-small); color: var(--muted); letter-spacing: 0; }
.muted { color: var(--muted); }

/* ───── header ───── */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent; transition: border-color var(--dur) ease; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: var(--s-6); height: 64px; font-size: 15px; }
.brand { font-weight: 600; letter-spacing: -0.02em; display: flex; gap: 10px; align-items: baseline; white-space: nowrap; }
.brand small { font-weight: 400; font-size: 15px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; margin-left: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); flex: none; }
.nav { display: flex; gap: var(--s-5); align-items: center; }
.nav a { position: relative; padding: 6px 0; color: var(--ink-2); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 860px) {
  .status, .brand small { display: none; }
  .nav { margin-left: auto; gap: var(--s-4); }
  .nav .btn { display: none; }
}

/* ───── buttons and links ───── */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: var(--radius); font: inherit; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; border: 1px solid transparent; cursor: pointer; transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #000; }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 15px; }
.nav .btn-sm::after { display: none; }
.nav a.btn-solid { color: var(--paper); padding: 0 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color var(--dur-fast) ease; }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ───── hero ───── */
.hero { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(48px, 6vw, 88px); }
.hero .hero-title { grid-column: 1 / span 11; }
.hero-foot { margin-top: clamp(32px, 4vw, 56px); align-items: end; row-gap: var(--s-6); }
.hero-foot .lede { grid-column: 1 / span 5; }
.hero-actions { grid-column: 7 / span 6; display: flex; gap: var(--s-3); flex-wrap: wrap; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; }

/* ───── the plinth (a work frame) ───── */
.plinth { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--g, #ddd); aspect-ratio: 16 / 10; isolation: isolate; }
.plinth .art { width: 100%; height: 100%; }
.plinth .art text { font-family: var(--font); }
.plinth.tall { aspect-ratio: 4 / 5; }
.plinth.wide2 { aspect-ratio: 2 / 1; }
.plinth .art-in { transform-box: view-box; transform-origin: 50% 55%; }
a.work:hover .plinth .art-in, a.work:focus-visible .plinth .art-in { transform: scale(1.03); }
.plinth .art-in { transition: transform 900ms var(--ease-out); }
a.work { display: block; }
a.work:focus-visible { outline: none; }
a.work:focus-visible .plinth { outline: 2px solid var(--accent); outline-offset: 4px; }

.caption { display: grid; grid-template-columns: 2.5em 1fr auto; gap: var(--s-3); align-items: baseline; padding-top: var(--s-4); font-size: var(--t-small); line-height: 1.4; }
.caption .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.caption .t { color: var(--ink); font-weight: 500; }
.caption .t span { color: var(--muted); font-weight: 400; }
.caption .y { color: var(--muted); font-variant-numeric: tabular-nums; display: inline-flex; gap: 10px; align-items: center; }
.caption .y svg { width: 16px; height: 16px; color: var(--ink); opacity: 0; transform: translateX(-6px); transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out); }
a.work:hover .caption .y svg, a.work:focus-visible .caption .y svg { opacity: 1; transform: none; }

/* the opening plinth: grows from the content edge to full bleed on scroll */
.bleed { --p: 1; --side: max(var(--margin), calc((100vw - var(--max)) / 2 + var(--margin))); }
.bleed .plinth-wrap { clip-path: inset(0 calc((1 - var(--p)) * var(--side)) round calc((1 - var(--p)) * var(--radius))); }
.bleed .plinth { border-radius: 0; aspect-ratio: auto; height: min(100svh, 62.5vw); min-height: 420px; }
.bleed .caption-row { padding-top: 0; }
@media (max-width: 860px) {
  .bleed .plinth { height: auto; aspect-ratio: 16 / 10; min-height: 0; }
}

.pair { row-gap: var(--s-8); margin-top: clamp(56px, 7vw, 112px); }
.pair .a { grid-column: 1 / span 7; }
.pair .b { grid-column: 9 / span 4; margin-top: clamp(80px, 14vw, 220px); }

/* ───── lists (clients, services, credits) ───── */
.rows { border-top: 1px solid var(--line); }
.rows > li, .rows > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--gap); padding: 18px 0 19px; border-bottom: 1px solid var(--line); }
.rows dt, .rows .k { color: var(--muted); font-size: 15px; }
.rows dd, .rows .v { color: var(--ink); }
.rows.three > li { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 2fr); }
.rows .v small { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.rows .price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) {
  .rows > li, .rows > div, .rows.three > li { grid-template-columns: 1fr; gap: 2px; }
  .rows .price { text-align: left; color: var(--ink-2); }
}

.sec-head { align-items: baseline; row-gap: var(--s-5); margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head .h2 { grid-column: 1 / span 6; }
.sec-head .aside { grid-column: 7 / span 6; color: var(--muted); max-width: 48ch; }

/* ───── about teaser and photos ───── */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: #d9d4cc; }
.photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.photo.portrait { aspect-ratio: 4 / 5; }
.photo.portrait img { object-position: 45% 30%; }
.photo.land { aspect-ratio: 3 / 2; }
.photo.square { aspect-ratio: 1; }
.photo-caption { font-size: var(--t-small); color: var(--muted); padding-top: var(--s-3); }
.teaser { align-items: end; row-gap: var(--s-7); }
.teaser .photo-col { grid-column: 1 / span 5; }
.teaser .text-col { grid-column: 7 / span 5; display: grid; gap: var(--s-5); padding-bottom: var(--s-3); }

/* full-bleed studio band with the headline on the bare wall */
.wall { position: relative; margin-top: var(--section); }
.wall img { width: 100%; height: clamp(420px, 56vw, 860px); object-fit: cover; object-position: 70% 50%; }
.wall .wall-text { position: absolute; inset: 0; display: flex; align-items: center; }
.wall .wall-text .wrap { width: 100%; }
.wall .wall-text p { max-width: 15ch; font-size: var(--t-1); line-height: 1; letter-spacing: var(--track-display); font-weight: 500; color: var(--ink); }
@media (max-width: 860px) {
  .wall img { height: auto; aspect-ratio: 3 / 2; object-position: 70% 50%; }
  .wall .wall-text { position: static; padding-top: var(--s-5); }
  .wall .wall-text p { font-size: var(--t-2); max-width: none; }
}

/* ───── closing band ───── */
.closing { background: var(--night); color: var(--night-text); margin-top: var(--section); padding: var(--section) 0 var(--s-9); }
.closing .label { color: var(--night-muted); }
.closing .big-mail { display: inline-flex; align-items: center; gap: 0.2em; font-size: min(var(--t-hero), 8.4vw); line-height: 1; letter-spacing: var(--track-display); font-weight: 500; margin-top: var(--s-5); background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 0.06em; transition: background-size 600ms var(--ease-out); white-space: nowrap; }
.closing .big-mail:hover { background-size: 100% 2px; }
.closing-foot { margin-top: clamp(48px, 6vw, 88px); row-gap: var(--s-6); align-items: start; }
.closing-foot p { color: var(--night-muted); max-width: 40ch; }
.closing-foot p strong { color: var(--night-text); font-weight: 500; }
.closing .btn-solid { background: var(--night-text); color: var(--night); }
.closing .btn-solid:hover { background: #fff; }
.closing .btn-line { color: var(--night-text); border-color: var(--night-line); }
.closing .btn-line:hover { border-color: var(--night-text); }
.closing .btns { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.closing :focus-visible { outline-color: #ff7a59; }

.site-foot { background: var(--night); color: var(--night-muted); font-size: var(--t-small); }
.site-foot .row { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); justify-content: space-between; border-top: 1px solid var(--night-line); padding-top: var(--s-6); padding-bottom: var(--s-7); }
.site-foot a { color: var(--night-text); }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-foot ul { display: flex; gap: var(--s-5); flex-wrap: wrap; }

/* ───── work index ───── */
.filters { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.chip { font: inherit; font-size: 15px; height: 38px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease; }
.chip .count { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] .count { color: var(--night-muted); }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) var(--gap); margin-top: clamp(40px, 4vw, 56px); }
.work-grid > li { grid-column: span 6; }
.work-grid > li.wide { grid-column: span 7; }
.work-grid > li.narrow { grid-column: span 5; }
.work-grid > li.narrow .plinth { aspect-ratio: auto; height: var(--row-h, auto); }
.work-grid > li[hidden] { display: none; }
@media (max-width: 860px) {
  .work-grid > li, .work-grid > li.wide, .work-grid > li.narrow { grid-column: 1 / -1; }
  .work-grid > li.narrow .plinth { aspect-ratio: 16 / 10; height: auto; }
}
.empty-note { margin-top: var(--s-7); color: var(--muted); }

/* ───── case study ───── */
.back { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: var(--muted); }
.back svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.back:hover { color: var(--ink); }
.back:hover svg { transform: translateX(-3px); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.facts dt { font-size: var(--t-small); color: var(--muted); }
.facts dd { font-size: 16px; margin-top: 4px; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr 1fr; row-gap: var(--s-5); } }
.block { row-gap: var(--s-5); }
.block .k { grid-column: 1 / span 4; }
.block .v { grid-column: 7 / span 5; display: grid; gap: var(--s-4); }
.did { counter-reset: did; border-top: 1px solid var(--line); }
.did li { counter-increment: did; display: grid; grid-template-columns: 2.5em 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.did li::before { content: counter(did, decimal-leading-zero); color: var(--muted); font-size: var(--t-small); font-variant-numeric: tabular-nums; padding-top: 3px; }
.figure-pair { row-gap: var(--s-8); }
.figure-pair .a { grid-column: 1 / span 7; }
.figure-pair .b { grid-column: 9 / span 4; }
.figure-pair .b.low { margin-top: clamp(64px, 10vw, 160px); }
figure { margin: 0; }
figcaption { font-size: var(--t-small); color: var(--muted); padding-top: var(--s-3); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid var(--line); }
.stats > div { padding-top: var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
.stats .fig { font-size: var(--t-1); line-height: 1; letter-spacing: var(--track-display); font-weight: 500; font-variant-numeric: tabular-nums; }
.stats p { color: var(--ink-2); max-width: 26ch; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.next { display: block; margin-top: var(--section); border-top: 1px solid var(--line); padding-top: var(--s-6); }
.next .label { display: flex; justify-content: space-between; }
.next .h1 { margin: var(--s-4) 0 var(--s-7); display: inline-flex; gap: 0.25em; align-items: center; }
.next .h1 svg { width: 0.7em; height: 0.7em; transition: transform var(--dur) var(--ease-out); }
.next:hover .h1 svg { transform: translate(4px, -4px); }
.next .plinth { aspect-ratio: 16 / 6; }
.next:hover .art-in { transform: scale(1.03); }

/* ───── about ───── */
.steps { counter-reset: st; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: st; display: grid; grid-template-columns: 3em 1fr; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(st, decimal-leading-zero); color: var(--muted); font-size: var(--t-small); padding-top: 4px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--t-4); letter-spacing: -0.015em; font-weight: 500; }
.steps p { color: var(--ink-2); margin-top: 4px; max-width: 52ch; }

form.contact { display: grid; gap: var(--s-5); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.field .hint { font-size: 14px; color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { font: inherit; font-size: 17px; color: var(--ink); background: #fbfaf7; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px 14px; width: 100%; transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23151413' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-2); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.field [aria-invalid="true"] { border-color: var(--accent-ink); }
.field .err { font-size: 14px; color: var(--accent-ink); min-height: 0; }
.field .err:empty { display: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.sent { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); display: grid; gap: var(--s-3); background: #fbfaf7; }
.sent[hidden] { display: none; }

/* ───── motion (JS adds .js; content shows without it) ───── */
.js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js h1 .w > span { transform: translateY(105%); }
.js [data-plinth] .art, .js [data-photo] img { transform: scale(1.06); }
.js [data-plinth], .js [data-photo] { opacity: 0; }
.ll-boarding { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-plinth], .js [data-photo] { opacity: 1; transform: none; }
  .js h1 .w > span, .js [data-plinth] .art, .js [data-photo] img { transform: none; }
  .plinth .art-in, .btn svg, .link-arrow svg, .caption .y svg { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 120ms; }
}
