/* Studio Clay — site styles (2026 rebuild)
   Swiss-grid layout: hairline rules, small meta labels, Belleza display, Inter text. */

:root {
  --ink: #2B2A28;
  --mute: #6B6A66;
  --rule: #CFCFCB;
  --paper: #FFFFFF;
  --stone: #E7E7E4;
  --dark: #2B2A28;
  --moss: #565E4F;
  --pad: 64px;
  --gap: 24px;
  --display: "Belleza", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 14px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .65; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
p { margin: 0; }
strong { font-weight: 500; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ——— Colour contexts ——— */
.inv { background: var(--dark); color: #F2F1EE; --mute: #A9A8A3; --rule: #4A4946; }
.moss { background: var(--moss); color: #FFFFFF; --mute: rgba(255,255,255,.82); --rule: rgba(255,255,255,.28); }
body.dark, html.theme-dark body { background: var(--dark); color: #F2F1EE; --mute: #A9A8A3; --rule: #4A4946; }
html.theme-dark { color-scheme: dark; background: var(--dark); }
html.theme-dark .inv { background: #1F1E1C; }
html.theme-dark .field input:focus, html.theme-dark .field textarea:focus { border-bottom-color: currentColor; }

/* ——— Layout ——— */
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.sec { padding: 120px var(--pad); }
.sec.tight-top { padding-top: 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
}
.c3 { grid-column: auto / span 3; } .c4 { grid-column: auto / span 4; } .c5 { grid-column: auto / span 5; }
.c6 { grid-column: auto / span 6; } .c7 { grid-column: auto / span 7; } .c8 { grid-column: auto / span 8; } .c12 { grid-column: auto / span 12; }
.at1 { grid-column-start: 1; } .at5 { grid-column-start: 5; } .at6 { grid-column-start: 6; } .at8 { grid-column-start: 8; }
.end { align-self: end; }
.cols3, .cols4, .cols5 { display: grid; gap: var(--gap); }
.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }

/* ——— Ruled meta cells ——— */
.meta { font-size: 12px; line-height: 1.4; }
.cell { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cell.top { border-top: 1px solid currentColor; }
.strong { font-weight: 500; }
.mute { color: var(--mute); }
.right { text-align: right; }
.upper { text-transform: uppercase; letter-spacing: .04em; }
.eyebrow { font-size: 12px; color: var(--mute); border-top: 1px solid currentColor; padding-top: 10px; margin-bottom: 40px; }
.eyebrow { border-top-color: var(--ink); }
.inv .eyebrow, .moss .eyebrow, body.dark .eyebrow, html.theme-dark .eyebrow { border-top-color: currentColor; }

/* ——— Type ——— */
.display { font-family: var(--display); font-weight: 400; line-height: 1.06; letter-spacing: -.005em; margin: 0; }
.d72 { font-size: clamp(40px, 5vw, 72px); }
.d64 { font-size: clamp(40px, 4.4vw, 64px); }
.d56 { font-size: clamp(36px, 3.9vw, 56px); }
.d40 { font-size: clamp(30px, 2.8vw, 40px); margin-bottom: 20px; }
.lede { max-width: 36ch; }
.lede + .lede { margin-top: 16px; }
.lede + .btn, .lede + .specs { margin-top: 32px; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border: 1px solid currentColor; background: none; color: inherit;
  font: 500 12px/1 var(--text); letter-spacing: .02em; cursor: pointer;
}
.btn.light { color: #FFFFFF; border-color: rgba(255,255,255,.85); }

/* ——— Header / footer ——— */
.site-head { padding-top: 40px; }
.site-head .grid, .site-foot .grid { row-gap: 0; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; font-weight: 500; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-foot { padding-top: 0; padding-bottom: 48px; }
.menu { display: contents; }
.menu-toggle { all: unset; cursor: pointer; display: none; color: inherit; }
.menu-toggle svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; transition: transform .3s ease; }
.site-head.open .menu-toggle svg { transform: rotate(45deg); }
.menu-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.theme-toggle { all: unset; cursor: pointer; color: inherit; display: inline-flex; vertical-align: top; padding: 0 0 0 8px; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle svg { display: none; }
html[data-theme="auto"] .theme-toggle .auto, html:not([data-theme]) .theme-toggle .auto,
html[data-theme="light"] .theme-toggle .sun, html[data-theme="dark"] .theme-toggle .moon { display: block; }
.theme-toggle:hover { opacity: .65; }
.theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ——— Home hero ——— */
.hero-wrap { padding-top: 40px; }
.hero { position: relative; height: min(78vh, 760px); min-height: 520px; overflow: hidden; background: var(--dark); }
.hero img, .hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero video { opacity: 0; transition: opacity .6s ease; }
.hero video.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0)); pointer-events: none; }
.hero .cap { z-index: 1; }
.hero iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: 100%; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%);
}
.hero .cap {
  position: absolute; left: 48px; right: 48px; bottom: 48px; color: #FFFFFF;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}

/* ——— Index list ——— */
.index { font-size: 13px; }
.index .row {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr) minmax(70px, max-content); gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.index .row.head { border-top: 1px solid currentColor; font-size: 12px; font-weight: 500; padding: 10px 0; }
.index .row .n, .index .row .w, .index .row .y { color: var(--mute); }
.index .row .y { text-align: right; white-space: nowrap; }

/* ——— Slabs (full-width colour sections) ——— */
.slab { padding: 40px var(--pad) 64px; }
.slab .grid { min-height: 456px; grid-template-rows: auto 1fr; }
.slab .r1 { grid-row: 1; }
.slab .r12 { grid-row: 1 / span 2; }
.slab .r2 { grid-row: 2; align-self: end; }

/* ——— Image mosaic ——— */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, 220px); gap: 16px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .m1 { grid-column: 1; grid-row: 1; }
.mosaic .m2 { grid-column: 2; grid-row: 1; }
.mosaic .m3 { grid-column: 3; grid-row: 1 / span 2; }
.mosaic .m4 { grid-column: 1 / span 2; grid-row: 2 / span 2; }
.mosaic .m5 { grid-column: 3; grid-row: 3; }

/* ——— Framed cards ——— */
.card { background: #FFFFFF; color: var(--ink); padding: 6px 6px 10px; }
.card img { width: 100%; height: 150px; object-fit: cover; }
.card .t { font-size: 12px; font-weight: 500; margin-top: 8px; }
.card .s { font-size: 11px; color: #6B6A66; }

/* ——— Spec rows (label / value) ——— */
.specs { font-size: 12px; }
.specs .row { display: grid; grid-template-columns: 110px minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--rule); }
.specs .row:first-child { border-top: 1px solid currentColor; }
.specs .row > :first-child { font-weight: 500; }

/* ——— Item lists (services) ——— */
.items .item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.items .item:first-child { border-top: 1px solid currentColor; }
.items .item h3 { margin: 0; font-size: 13px; font-weight: 500; }
.items .item p { color: var(--mute); }

/* ——— Media ——— */
.ratio { position: relative; aspect-ratio: 16 / 9; background: var(--dark); overflow: hidden; }
.ratio iframe, .ratio img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.wide-img { width: 100%; height: 560px; object-fit: cover; }
.loop { position: relative; overflow: hidden; }
.loop video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.loop video.on { opacity: 1; }

/* ——— Pictures ——— */
.pic { width: 100%; height: 320px; object-fit: cover; }
.pic.tall { height: 480px; }
.split-imgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.split-imgs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 16px; }
.bts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bts img { width: 100%; height: 300px; object-fit: cover; }

/* ——— Forms ——— */
.form { display: grid; gap: 28px; }
.field label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--rule); background: transparent;
  padding: 10px 0; font: 300 15px/1.5 var(--text); color: inherit; border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { border: 1px solid currentColor; padding: 16px 18px; font-size: 13px; }

/* ——— Reel dialog ——— */
.reel-dialog { padding: 0; border: 0; background: #000; width: min(1200px, 92vw); max-width: none; }
.reel-dialog::backdrop { background: rgba(20, 20, 18, .88); }
.reel-dialog .close { position: absolute; top: -52px; right: 0; color: #FFFFFF; }
.reel-dialog.portrait { width: min(92vw, calc(80vh * 4 / 5)); }
.reel-dialog.portrait .ratio { aspect-ratio: 4 / 5; }

/* ——— Phone ——— */
@media (max-width: 800px) {
  :root { --pad: 24px; }
  .sec { padding-top: 80px; padding-bottom: 80px; }
  .grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .grid > * { grid-column: auto !important; grid-row: auto !important; }
  .cols3, .cols4 { grid-template-columns: minmax(0, 1fr); }
  .cols5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-sm { display: none; }
  .hero { min-height: 480px; height: 80vh; }
  .hero .cap { left: 24px; right: 24px; bottom: 24px; }
  .slab .grid { min-height: 0; }
  .index .row { grid-template-columns: 40px minmax(0, 1fr) max-content; }
  .index .row .w { display: none; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .mosaic > * { grid-column: auto !important; grid-row: auto !important; height: 200px; }
  .items .item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .wide-img { height: 320px; }
  .site-foot .right { text-align: left; }
  .site-head { padding-top: 12px; }
  .hero-wrap { padding-top: 16px; }
  .brand { display: flex; justify-content: space-between; align-items: center; }
  .menu-toggle { display: block; }
  .site-head .menu { display: flex; max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s ease, visibility 0s .35s; }
  .site-head.open .menu { max-height: 80px; visibility: visible; transition: max-height .35s ease; }
  .site-head .menu .c5 { flex: 1; min-width: 0; }
  .site-head .menu .cell.top { border-top: 0; }
  .site-head .menu .nav { gap: 22px; }
  .site-head .menu .c3 .cell { padding-left: 16px; }
  .split-imgs { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split-imgs img { aspect-ratio: 3 / 2; }
  .mosaic .m5 { grid-column: 1 / -1 !important; }
  .bts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bts img { height: 220px; }
  .pic { height: 260px; }
}

.specs.delivered .row { grid-template-columns: 1fr; font-size: 14px; }
.film-loop img { opacity: 1; }
.film-loop .film-play { position: absolute; right: 24px; bottom: 24px; z-index: 1; background: rgba(20, 20, 18, .28); }
.film-loop .film-play:hover { opacity: 1; background: rgba(20, 20, 18, .5); }
.social-still { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
@media (max-width: 800px) { .social-loop, .social-still { max-width: 360px; } }
.wide-loop { display: block; }
.wide-loop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* ——— Film player (dialog) ——— */
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pc { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 36px 18px 14px; color: #FFFFFF; font: 400 12px/1 var(--text); background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); transition: opacity .3s ease; }
.player.idle .pc { opacity: 0; }
.player.idle { cursor: none; }
.pc-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.pc-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pc-btn:hover { opacity: .65; }
.pc-play .i-play, .player.paused .pc-play .i-pause, .pc-mute .i-muted, .player.muted .pc-mute .i-vol { display: none; }
.player.paused .pc-play .i-play, .player.muted .pc-mute .i-muted { display: block; }
.pc-time { font-variant-numeric: tabular-nums; min-width: 34px; }
.pc-dur { text-align: right; opacity: .7; }
.pc-bar { position: relative; flex: 1; height: 16px; cursor: pointer; touch-action: none; }
.pc-bar::before, .pc-buf, .pc-fill { content: ""; position: absolute; left: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.pc-bar::before { right: 0; background: rgba(255, 255, 255, .28); }
.pc-buf { width: 0; background: rgba(255, 255, 255, .5); }
.pc-fill { width: 0; height: 2px; background: #FFFFFF; }
.pc-btn:focus-visible, .pc-bar:focus-visible { outline: 1px solid #FFFFFF; outline-offset: 3px; }
.player:fullscreen { aspect-ratio: auto !important; width: 100%; height: 100%; }
@media (max-width: 800px) { .pc { gap: 10px; padding: 28px 12px 10px; } .pc-dur { display: none; } }
.draft-flag { display: inline-block; font-size: 12px; padding: 4px 10px; border: 1px solid currentColor; margin-bottom: 24px; }
.sec.project-head { padding-top: 56px; }
.project-head .film-loop { max-height: calc(100vh - 190px); max-height: calc(100svh - 190px); }
/* Let videos and their cover stills bleed a pixel past the frame so no dark hairline shows on light shots. */
.loop > video, .loop > img, .hero > video, .hero picture img { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; }
