/* Comuna Production — shared styles for all pages (see STYLE.md). Page-specific rules live in each page. */
@font-face { font-family: 'Cygre'; src: url('assets/Cygre-Regular-BF63eeebf4df0b6-1.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cygre'; src: url('assets/Cygre-Bold-4.ttf') format('truetype'); font-weight: 700; font-display: swap; }
/* Martian Mono (SIL Open Font License), self-hosted: no request to Google */
@font-face { font-family: 'Martian Mono'; src: url('assets/fonts/martian-mono-latin-ext.woff2') format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Martian Mono'; src: url('assets/fonts/martian-mono-latin.woff2') format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Martian Mono'; src: url('assets/fonts/martian-mono-latin-ext.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Martian Mono'; src: url('assets/fonts/martian-mono-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Layout: the page is a camera viewfinder — frame marks, REC + Lisbon timecode in the header,
   viewfinder-centre cursor, 2.39:1 frames between sections, technical captions in mono, one accent: the REC dot. */
:root {
  color-scheme: dark;
  --ink: #141414;       /* page ground, a touch deeper than brand #1A1A1A */
  --ink-2: #1A1A1A;     /* brand dark, raised surfaces */
  --paper: #F2F2EF;     /* text */
  --grey: #BFBFBF;      /* brand light grey, secondary text */
  --line: rgba(242,242,239,.14);
  --line-2: rgba(242,242,239,.32);
  --rec: #EBFA01;       /* brand yellow, used only for REC */
  --f-display: 'Cygre', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Cygre', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: max(16px, env(safe-area-inset-left, 0px), clamp(16px, 4vw, 64px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px), clamp(16px, 4vw, 64px));
  --section: clamp(72px, 10vw, 160px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
.fade-in { opacity: 0; transition: opacity .6s ease; }
.fade-in.in { opacity: 1; }
html { background: var(--ink); scroll-behavior: smooth; }
body { background: var(--ink); color: var(--paper); font: 400 clamp(17px, 1.3vw, 21px)/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--paper); outline-offset: 4px; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* type roles */
.mono { font: 400 11px/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--grey); }
.h-xl { font: 700 clamp(44px, 8.4vw, 164px)/.9 var(--f-display); letter-spacing: -.04em; text-wrap: balance; }
.h-l  { font: 700 clamp(34px, 5vw, 84px)/.98 var(--f-display); letter-spacing: -.025em; text-wrap: balance; }
.h-m  { font: 700 clamp(22px, 2.1vw, 34px)/1.1 var(--f-display); letter-spacing: -.01em; }
.prose { max-width: 62ch; display: grid; gap: 1em; }

/* one button style for everything that can be clicked */
.cta { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border: 1px solid var(--paper); border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 400 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper); background: transparent; cursor: pointer; transition: background .25s, color .25s; }
/* arrow = the chevron from the Comuna logo, mirrored; always horizontal */
/* Comuna symbol after «Selected work»: the sun stays still, the chevron orbits it from the right (pointing right)
   to below (pointing down) as you scroll; it moves in 10° clicks, like a ratchet (--turn set in JS) */
/* gap sun→chevron = ¼ of the sun, as in the logo; centre sits at mid cap height of the heading */
.orb { position: relative; display: inline-block; width: 2.2em; height: 2.2em; margin: -.6em 0 -.6em -.38em; vertical-align: -.12em; }
.orb img { position: absolute; left: 50%; top: 50%; width: .86em; height: .86em; transform: translate(-50%, -50%); }
.orb-arm { position: absolute; inset: 0; transform: rotate(calc(var(--turn, 0) * 90deg)); transition: transform .14s cubic-bezier(.3,1.6,.5,1); }
.orb-chev { position: absolute; right: 0; top: 50%; width: .46em; height: .56em; transform: translateY(-50%); background: currentColor;
  -webkit-mask: url('assets/chev-white.png') center / contain no-repeat; mask: url('assets/chev-white.png') center / contain no-repeat; }
.ar { display: inline-block; width: .62em; height: .74em; flex: none; background: currentColor; vertical-align: -.05em;
  -webkit-mask: url('assets/chev-white.png') center / contain no-repeat; mask: url('assets/chev-white.png') center / contain no-repeat; transition: transform .25s; }
.cta .ar { width: 9px; height: 11px; }
.hd-right .ig { display: flex; }
.cta:hover, a:hover .cta, .cta.solid { background: var(--paper); color: var(--ink); }
.cta:hover .ar, a:hover .cta .ar { transform: translateX(4px); }
.cta.solid:hover { background: transparent; color: var(--paper); }

/* ---------- viewfinder frame (fixed) ---------- */
.vf { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
/* longer, same 1px line; the top pair drops below the header plate once it appears (--vf-top set in JS) */
.vf i { position: absolute; width: 40px; height: 40px; border: 0 solid var(--paper); opacity: .7; mix-blend-mode: difference; transition: top .35s; }
.vf i:nth-child(1) { top: calc(10px + var(--vf-top, 0px) + env(safe-area-inset-top, 0px)); left: calc(10px + env(safe-area-inset-left, 0px)); border-top-width: 1px; border-left-width: 1px; }
.vf i:nth-child(2) { top: calc(10px + var(--vf-top, 0px) + env(safe-area-inset-top, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); border-top-width: 1px; border-right-width: 1px; }
.vf i:nth-child(3) { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); left: calc(10px + env(safe-area-inset-left, 0px)); border-bottom-width: 1px; border-left-width: 1px; }
.vf i:nth-child(4) { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- header: invisible over the reel, gets a plate once you scroll past it ---------- */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) var(--gutter-r) 24px var(--gutter); color: #fff; mix-blend-mode: difference;
  transition: background .35s, padding .35s, border-color .35s; border-bottom: 1px solid transparent; }
.hd.plate { mix-blend-mode: normal; background: rgba(20,20,20,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line); padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: 16px; color: var(--paper); }
.hd-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* tight-cropped logo: at 16px the lowercase «comuna» matches the cap height of PRODUCTION */
.hd-logo img { height: 19px; width: auto; }
.hd-logo { gap: 12px; }
.hd nav { display: flex; gap: 32px; }
.hd nav a { text-decoration: none; }
.hd nav a:hover { text-decoration: underline; text-underline-offset: .4em; }
.hd-right { justify-self: end; display: flex; align-items: center; gap: 28px; }
.hd-right a { text-decoration: none; }
.tc { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: rec 1.2s steps(1) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.menu-btn { display: none; background: none; border: 0; color: inherit; cursor: pointer; }
.mnav { position: fixed; inset: 0; z-index: 60; background: var(--ink); display: grid; align-content: center; gap: 12px; padding: 0 var(--gutter-r) 0 var(--gutter); }
.mnav[hidden] { display: none; }
.mnav a { font: 700 14vw/1 var(--f-display); letter-spacing: -.03em; text-decoration: none; }
.mnav .mono { font-size: 12px; margin-top: 24px; }
.mnav button { position: absolute; top: calc(22px + env(safe-area-inset-top, 0px)); right: var(--gutter-r); background: none; border: 0; color: var(--paper); cursor: pointer; }

/* ---------- cursor: centre of a viewfinder; over the reel it becomes PLAY REEL ---------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cur { position: fixed; z-index: 95; left: 0; top: 0; pointer-events: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity .2s; mix-blend-mode: difference; }
.cur.on { opacity: 1; }
.cur .x { position: relative; width: 34px; height: 34px; transition: width .25s, height .25s; }
.cur .x::before, .cur .x::after { content: ''; position: absolute; background: #fff; }
.cur .x::before { left: 50%; top: 9px; bottom: 9px; width: 1px; transform: translateX(-.5px); }
.cur .x::after { top: 50%; left: 9px; right: 9px; height: 1px; transform: translateY(-.5px); }
.cur .x i { position: absolute; width: 7px; height: 7px; border: 0 solid #fff; }
.cur .x i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.cur .x i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.cur .x i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.cur .x i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.cur.link .x { width: 54px; height: 54px; }
.cur .pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; white-space: nowrap; padding: 14px 18px; border: 1px solid #fff; border-radius: 999px;
  font: 400 11px/1 var(--f-mono); letter-spacing: .08em; color: #fff; transition: opacity .2s, transform .2s; }
.cur.reel .x { opacity: 0; }
.cur.reel .pill { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- hero: reel plays right here ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* hero grain 5× finer than in the rest of the page (the video already carries its own texture) */
.hero .grain { background-size: 48px 48px; }
.hero .hv { opacity: 0; }
.hero .hv.on { opacity: 1; }
/* the cut: one frame of black with a grain burst between shots */
.cutflash { position: absolute; inset: 0; z-index: 1; background: #000; opacity: 0; pointer-events: none; }
.hero.cut .cutflash { animation: cut .26s steps(3) 1; }
@keyframes cut { 0% { opacity: 1; } 60% { opacity: .55; } 100% { opacity: 0; } }
.hero.cut .grain { opacity: .5; transition: none; }
.hero-right { display: flex; align-items: end; gap: 10px; }
.hero-right .playhead { margin-right: 14px; }
.ar.flip { transform: scaleX(-1); }
.ar.up { transform: rotate(-90deg); }
.to-top { text-decoration: none; }
.to-top .ar { width: 10px; height: 13px; transition: transform .25s; }
.to-top:hover .ar { transform: rotate(-90deg) translateX(3px); }
.ft-base { align-items: center; }
.ft-base a { color: var(--paper); text-decoration: none; }
.ft-base a:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-b .ar { width: 10px; height: 13px; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,0) 28%, rgba(0,0,0,0) 65%, rgba(0,0,0,.55)); transition: opacity .4s; }

.hero-hit { position: absolute; inset: 0; z-index: 2; background: none; border: 0; color: transparent; }
.hero-foot { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; align-items: end; gap: 24px; pointer-events: none; }
.hero-foot > * { pointer-events: auto; }
.hero-foot .mono { color: var(--paper); }
.hero-ctl { display: flex; gap: 10px; align-items: center; }
/* double chevron in the middle of the hero bottom: scrolls to the next section; drifts down gently */
.hero-down { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: grid; justify-items: center; gap: 0; padding: 8px 14px; color: var(--paper); text-decoration: none; }
.hero-down .ar { width: 18px; height: 22px; transform: rotate(90deg); margin: -3px 0; transition: none; }
.hero-down .ar + .ar { opacity: .55; }
.hero-down { animation: heroDown 2.4s ease-in-out infinite; }
.hero-down:hover { animation-play-state: paused; }
@keyframes heroDown { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .hero-down { animation: none; } }
/* transport controls: play/pause ▶ ❚❚, stop ■, sound 🔇/🔊 — icon buttons */
.ib { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(242,242,239,.6); background: rgba(20,20,20,.25); color: var(--paper);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.ib svg { width: 18px; height: 18px; fill: currentColor; grid-area: 1 / 1; }
.ib:hover, .ib[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ib .i-pause, .ib .i-sound { display: none; }
.player.running .ib .i-play { display: none; }
.player.running .ib .i-pause { display: block; }
.ib[aria-pressed="true"] .i-muted { display: none; }
.ib[aria-pressed="true"] .i-sound { display: block; }
.playhead { text-align: right; font-variant-numeric: tabular-nums; }
.bar { position: absolute; z-index: 3; left: 0; bottom: 0; height: 2px; width: 0; background: var(--paper); opacity: 0; transition: opacity .3s; }
.hero .bar { opacity: .8; }

/* ---------- full-screen player ---------- */
.player { position: fixed; inset: 0; z-index: 90; background: #000; display: grid; place-items: center; }
.player video { width: 100%; height: 100%; object-fit: contain; }
.pv-close { position: absolute; z-index: 2; top: calc(20px + env(safe-area-inset-top, 0px)); right: calc(20px + env(safe-area-inset-right, 0px)); }
.pv-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding-block: 60px calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,0)); transition: opacity .4s; }
.player.idle .pv-bar, .player.idle .pv-close { opacity: 0; }
.pv-ctl { display: flex; gap: 10px; }
.pv-seek { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
.pv-seek::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--paper) var(--p, 0%), rgba(242,242,239,.25) var(--p, 0%)); }
.pv-seek::-moz-range-track { height: 2px; background: rgba(242,242,239,.25); }
.pv-seek::-moz-range-progress { height: 2px; background: var(--paper); }
.pv-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: var(--rec); border: 0; }
.pv-seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--rec); border: 0; }
.pv-seek:focus-visible { outline: 1px solid var(--paper); outline-offset: 4px; }
.pv-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; }
html.pv-open, html.pv-open body { overflow: hidden; }

/* ---------- statement ---------- */
.statement { padding-block: var(--section) calc(var(--section) * .8); display: grid; gap: clamp(40px, 5vw, 80px); }
.h-xl .sym { display: inline-block; height: .86em; width: auto; vertical-align: -.1em; margin-left: .16em; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.statement-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.log { border-top: 1px solid var(--line-2); }
.statement-row > .log { grid-column: 1 / 5; }
.log div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.log dt { color: var(--grey); }
.log dd { text-align: right; }
.log .fmt { display: grid; gap: 2px; text-align: right; }
.statement-row .prose { grid-column: 6 / 13; }

/* ---------- 2.39:1 frame ---------- */
.frame { position: relative; aspect-ratio: 2.39 / 1; max-width: 100%; overflow: hidden; background: #000; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame figcaption { position: absolute; left: var(--gutter); right: var(--gutter-r); bottom: 18px; display: flex; justify-content: space-between; gap: 16px; color: var(--paper); z-index: 2; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.frame::before, .frame::after { content: ''; position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); z-index: 3; transition: transform 1.1s cubic-bezier(.7,0,.2,1); }
.frame::before { top: 0; transform: translateY(-100%); }
.frame::after { bottom: 0; transform: translateY(100%); }
.frame.shut::before, .frame.shut::after { transform: translateY(0); }

/* film grain overlay */
/* film grain: the layer stays put, only the grain pattern changes (18 fps, random frames), soft like stock */
.grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .2; mix-blend-mode: overlay; background-image: var(--grain); background-size: 240px 240px; background-position: var(--grain-pos, 0 0); }

/* ---------- sections ---------- */
.sec { padding-block: var(--section); border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 28px); }
.witem { text-decoration: none; display: grid; gap: 12px; align-content: start; }
.witem .th { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); max-width: 100%; }
.witem .th img, .witem .th video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.witem .th video { opacity: 0; }
.witem.playing .th video { opacity: 1; }
.witem:hover .th img, .witem:hover .th video { transform: scale(1.04); }

.sec.tight { padding-block: clamp(48px, 6vw, 96px); }
.sec.tight + .sec.tight { border-top: 0; padding-top: 0; }

/* ---------- services: same grammar as the statement — big type, mono log, body ---------- */
.svc-title { margin-bottom: clamp(32px, 4vw, 64px); }
.svc-list { display: grid; gap: 16px; }
/* each service is a framed shot: viewfinder corners, darkened photo underneath, photo lifts on hover */
.svc { position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px;
  padding: clamp(28px, 3vw, 48px) clamp(22px, 3vw, 48px); background: var(--ink-2); text-decoration: none; align-items: start; isolation: isolate; }
.svc > .log, .svc-main { position: relative; z-index: 2; }
.svc-bg { position: absolute; inset: 0; z-index: 0; }
.svc-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.3) saturate(.7); transform: scale(1.02); transition: filter .6s, transform .9s cubic-bezier(.2,.7,.2,1); }
.svc::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(20,20,20,.55), rgba(20,20,20,.15) 55%, rgba(20,20,20,.45)); }
.svc:hover .svc-bg img { filter: brightness(.55) saturate(1); transform: scale(1.06); }
.svc .grain { z-index: 1; }
.vfc i { position: absolute; z-index: 3; width: 16px; height: 16px; border: 0 solid var(--paper); opacity: .75; pointer-events: none; }
.vfc i:nth-child(1) { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.vfc i:nth-child(2) { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.vfc i:nth-child(3) { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.vfc i:nth-child(4) { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.svc .log dt { color: rgba(242,242,239,.62); }
.svc .log { grid-column: 1 / 5; border-top: 0; }
.svc .log div:first-child { padding-top: 0; }
.svc-main { grid-column: 6 / 13; display: grid; gap: 14px; justify-items: start; }
.svc-name { font: 700 clamp(28px, 3.3vw, 56px)/.98 var(--f-display); letter-spacing: -.03em; text-wrap: balance; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.svc:hover .svc-name { transform: translateX(10px); }
.svc-main p { color: rgba(242,242,239,.78); max-width: 68ch; }
.svc-main .cta { margin-top: 4px; }

/* ---------- studios + rental: same grammar as the statement ---------- */
.who-sec { padding-block: clamp(48px, 5vw, 80px); display: grid; gap: clamp(24px, 2.6vw, 40px); }
.who-lead { max-width: none; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { text-decoration: none; display: grid; gap: 14px; align-content: start; }
.card .th { position: relative; height: min(32vh, 24vw); min-height: 200px; overflow: hidden; background: var(--ink-2); }
.card .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .th img { transform: scale(1.04); }
.card-name { font: 700 clamp(28px, 3.3vw, 56px)/.98 var(--f-display); letter-spacing: -.03em; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-name { transform: translateX(10px); }
.card .log { border-top: 1px solid var(--line-2); }
.card .grain { opacity: .1; }   /* studio + rental photos: half the grain of the rest of the page */
.card p { color: var(--grey); max-width: 56ch; }
.card .cta { justify-self: start; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; align-items: start; }
/* contact block: full-bleed band over a darkened set photo, edge to edge like the 2.39:1 frames */
.contact-sec { padding-block: 0; }
.ccard { position: relative; overflow: hidden; isolation: isolate; background: var(--ink-2);
  margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter-r));
  padding: clamp(72px, 9vw, 140px) var(--gutter-r) clamp(72px, 9vw, 140px) var(--gutter); }
.ccard > .contact-side, .ccard > .form { position: relative; z-index: 2; }
.ccard .svc-bg img { filter: brightness(.38) saturate(.8); }
.ccard .grain { z-index: 1; }
.ccard::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(20,20,20,.35), rgba(20,20,20,.55) 55%, rgba(20,20,20,.7)); }
.ccard .form input, .ccard .form textarea { background: rgba(20,20,20,.55); }
.contact-side { grid-column: 1 / 6; display: grid; gap: 24px; align-content: start; }
.contact-side .h-l { font-size: clamp(34px, 4.2vw, 72px); }
.contact-side .info { margin-top: 8px; grid-column: auto; }
.info a { text-decoration: none; }
.contact .form { grid-column: 7 / 13; display: grid; gap: 22px; scroll-margin-top: 96px; }
.form .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 10px; border: 0; min-width: 0; }
.field legend { margin-bottom: 14px; }
.form input, .form textarea { font: inherit; color: var(--paper); background: rgba(242,242,239,.03); border: 1px solid var(--line-2); padding: 14px 16px; border-radius: 0; outline: none; width: 100%; transition: border-color .2s, background .2s; }
.form input::placeholder, .form textarea::placeholder { color: rgba(191,191,191,.6); }
.form input:hover, .form textarea:hover { border-color: rgba(242,242,239,.5); }
.form input:focus, .form textarea:focus { border-color: var(--paper); background: rgba(242,242,239,.06); }
.form textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; }
.chips span { display: inline-block; padding: 11px 16px; border: 1px solid var(--line-2); border-radius: 999px; font: 400 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; transition: border-color .2s; }
.chips label:hover span { border-color: var(--paper); }
.chips input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chips input:focus-visible + span { outline: 1px solid var(--paper); outline-offset: 3px; }
.form .cta { justify-self: start; padding: 18px 26px; }
.form-note { min-height: 1.5em; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: 10px; } .form-consent a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.ft { border-top: 1px solid var(--line); padding-block: clamp(40px, 4.5vw, 72px) calc(24px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.ft-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px 24px; }
.ft-cols div { display: grid; gap: 8px; align-content: start; }
.ft-cols a { text-decoration: none; }
.ft-cols a:hover { text-decoration: underline; text-underline-offset: .3em; }
.ft-cols dt { margin-bottom: 6px; }
@media (max-width: 600px) { .ft-cols .ft-contact { display: none; } }   /* phones: contacts are already in the form block above */
.wordmark { display: block; text-decoration: none; font: 700 10vw/.82 var(--f-display); letter-spacing: -.055em; white-space: nowrap; margin: clamp(36px, 4.5vw, 72px) 0 .3em -.04em; }
/* yellow Comuna symbol (chevron + sun) in front of the wordmark, letter height */
.wm-in { display: inline-block; }
.wm-sym { display: inline-block; height: .6em; width: 1.233em; /* 869×423 symbol, fixed so the fit works before it loads */ vertical-align: 0; margin-right: .16em; }
.wordmark sup { font-size: .22em; letter-spacing: 0; vertical-align: top; position: relative; top: .35em; margin-left: .1em; }
.ft-base { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- preloader: the sun spins while the page loads, then the chevron and «comuna production» assemble the logo ---------- */
.pl { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; transition: transform .9s cubic-bezier(.7,0,.2,1);
  animation: pl-failsafe .01s 9s forwards; }               /* never blocks the site, even if the script fails */
@keyframes pl-failsafe { to { visibility: hidden; } }
.pl.gone { transform: translateY(-100%); }
.pl-mark { display: flex; align-items: center; font: 700 clamp(30px, 5vw, 68px)/1 var(--f-display); letter-spacing: -.035em; color: var(--paper); }
.pl-chev, .pl-sun { flex: none; background: var(--rec);
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.pl-chev { width: 0; height: .94em; margin-right: 0; opacity: 0; -webkit-mask-image: url('assets/chev-white.png'); mask-image: url('assets/chev-white.png');
  transform: scaleX(-1); transition: width .7s cubic-bezier(.7,0,.2,1), margin .7s cubic-bezier(.7,0,.2,1), opacity .35s .35s; }
.pl-sun { width: .98em; height: .98em; -webkit-mask-image: url('assets/sun-white.png'); mask-image: url('assets/sun-white.png'); animation: spin 1.1s linear infinite; }
.pl-text { position: relative; top: -.12em; /* cap height centred on the symbol */ max-width: 0; overflow: hidden; white-space: nowrap; padding-block: .1em .24em; margin-block: -.1em -.24em; transition: max-width 1s cubic-bezier(.7,0,.2,1) .15s; }
.pl-text span { display: inline-block; padding-left: .32em; transform: translateX(-30%); opacity: 0; transition: transform 1s cubic-bezier(.2,.7,.2,1) .2s, opacity .6s .25s; }
.pl.assemble .pl-chev { width: .78em; margin-right: .3em; opacity: 1; }
.pl.assemble .pl-text { max-width: 12em; }
.pl.assemble .pl-text span { transform: none; opacity: 1; }
.pl-status { position: absolute; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--grey); font-variant-numeric: tabular-nums; }
html.pl-lock, html.pl-lock body { overflow: hidden; }
.note { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--grey); color: var(--ink); padding: 7px 11px; }

@media (max-width: 1100px) {
  .hd nav { gap: 22px; }
  .hd-right { gap: 18px; }
  .hd .tc-place { display: none; }
}
@media (max-width: 900px) {
  .hd { grid-template-columns: 1fr auto auto; gap: 16px; }
  .hd nav, .hd-right .ig { display: none; }
  .menu-btn { display: block; }
  .statement-row > .log, .statement-row .prose, .contact .form { grid-column: 1 / 13; }
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc .log, .svc-main { grid-column: 1 / 13; }
  .svc-main { order: -1; }
  .contact-side, .contact .form { grid-column: 1 / 13; }
  /* phones: heading and intro, then the form, then our contact details */
  .contact { row-gap: 24px; }
  .ccard > .contact-side { display: contents; }
  .contact-side > * { position: relative; z-index: 2; grid-column: 1 / 13; }
  .contact .form { order: 1; }
  .contact-side .info { order: 2; margin-top: 32px; grid-column: 1 / 13; }
  .form .pair { grid-template-columns: minmax(0, 1fr); }
  .frame { aspect-ratio: 16 / 10; }
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card .th { height: 46vw; }
}
@media (max-width: 560px) {
  .work, .cards { grid-template-columns: minmax(0, 1fr); }
  .card .th { height: 56vw; }
  .hero-foot { align-items: end; }
  .hero-right .playhead { display: none; }
  .pv-bar { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pv-bar .playhead { text-align: left; }
  .hd .tc { display: none; }
  .vf i { width: 24px; height: 24px; }
  .vf i:nth-child(1), .vf i:nth-child(2) { top: calc(7px + var(--vf-top, 0px) + env(safe-area-inset-top, 0px)); }
  .vf i:nth-child(1), .vf i:nth-child(3) { left: calc(7px + env(safe-area-inset-left, 0px)); }
  .vf i:nth-child(2), .vf i:nth-child(4) { right: calc(7px + env(safe-area-inset-right, 0px)); }
  .vf i:nth-child(3), .vf i:nth-child(4) { bottom: calc(7px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h-xl .sym, .grain, .rec { animation: none; }
  .frame::before, .frame::after { display: none; }
}
