/* Marbox Creatives — site styles
   Layout idea: a black editorial canvas. Full-bleed reel, oversized grotesk headlines,
   hairline meta bars between sections, staggered project grid. Strictly black and white: emphasis comes from an italic serif, never colour. */
/* fonts are self-hosted (latin + latin-ext only); the browser downloads a file only when a page uses its characters */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/archivo-normal-latin-ext.woff2) format('woff2'); 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: 'Archivo'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/archivo-normal-latin.woff2) format('woff2'); 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: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-italic-latin-ext.woff2) format('woff2'); 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: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-italic-latin.woff2) format('woff2'); 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: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-normal-latin-ext.woff2) format('woff2'); 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: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-normal-latin.woff2) format('woff2'); 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: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter-normal-latin-ext.woff2) format('woff2'); 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: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter-normal-latin.woff2) format('woff2'); 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; }
:root {
  --bg: #050505;
  --bg-2: #101010;
  --fg: #f4f4f4;
  --muted: #8c8c8c;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ffffff;
  --accent-ink: #050505;
  --f-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --pad: clamp(16px, 2.4vw, 36px);
  --gap: clamp(16px, 2vw, 32px);   /* the one column gutter used by every grid */
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.label { font-family: var(--f-body); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.wrap { padding-inline: var(--pad); }

/* ---------- header ---------- */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto 0; padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--pad) 18px; display: flex; align-items: center; justify-content: space-between; mix-blend-mode: difference; transition: transform .5s var(--ease); }
.site-header.hide { transform: translateY(-110%); }
.brand { display: block; width: 118px; color: #fff; }
.brand svg { width: 100%; height: auto; }
.nav { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav a { font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: #fff; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: currentColor; transition: right .4s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.menu-btn { display: none; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 88px var(--pad) 32px; display: flex; flex-direction: column; justify-content: space-between; transform: translateY(-100%); transition: transform .6s var(--ease); }
.mobile-menu.open { transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { font-family: var(--f-display); font-size: clamp(44px, 13vw, 84px); font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: -.03em; }
.mobile-menu .close { position: absolute; top: 22px; right: var(--pad); font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 760px) { .nav { display: none; } .menu-btn { display: block; } .brand { width: 100px; } }

/* ---------- buttons ---------- */
.sq-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.sq-link::before { content: ""; width: 9px; height: 9px; background: var(--accent); transition: transform .4s var(--ease); }
.sq-link:hover::before { transform: rotate(45deg) scale(1.15); }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; transition: transform .4s var(--ease), background .3s; }
.btn:hover { transform: translateY(-2px); background: #d6d6d6; }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; 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::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 48%, rgba(0,0,0,.82) 100%); pointer-events: none; }
.hero-content { position: absolute; z-index: 2; inset: auto 0 0 0; padding: 0 var(--pad) calc(env(safe-area-inset-bottom, 0px) + clamp(14px, 2vw, 26px)); display: flex; flex-direction: column; gap: clamp(14px, 2.4vw, 30px); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero-row p { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; max-width: 46ch; }
.mega { font-family: var(--f-display); font-weight: 760; font-stretch: 100%; text-transform: uppercase; letter-spacing: -.035em; line-height: .84; margin: 0; font-size: clamp(52px, 10.6vw, 208px); text-wrap: balance; }
.hero .mega { white-space: nowrap; font-size: clamp(40px, 7.6vw, 176px); }
.y { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; }
.reel-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.reel-btn .dot { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; display: grid; place-items: center; }
.reel-btn .dot svg { width: 11px; }
@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .hero video { position: relative; inset: auto; height: 60svh; min-height: 380px; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 14%); }
  .hero-content { position: relative; inset: auto; padding-top: 22px; flex-direction: column-reverse; }
  .hero .mega { white-space: normal; font-size: clamp(46px, 15vw, 96px); }
}

/* ---------- meta bar ---------- */
.meta-bar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding: 16px var(--pad); border-bottom: 1px solid var(--line); }
.meta-bar > :first-child { grid-column: 1 / span 6; }
.meta-bar > :nth-child(2) { grid-column: 7 / span 3; color: var(--muted); }
.meta-bar > :last-child { grid-column: 10 / span 3; text-align: right; color: var(--muted); }
@media (max-width: 600px) { .meta-bar > :nth-child(2) { display: none; } .meta-bar > :last-child { grid-column: 7 / span 6; } }

section { position: relative; }
.section-space { padding-block: clamp(72px, 11vw, 168px); }

/* ---------- intro ---------- */
/* the photo takes exactly the height of the text beside it, so their top and bottom edges line up */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px) var(--gap); align-items: stretch; padding: clamp(28px, 3vw, 44px) var(--pad) 0; }
.intro figure { grid-column: 1 / span 5; margin: 0; position: relative; min-height: 320px; }
.intro figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.intro .txt { grid-column: 7 / span 6; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.big-text { font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3.6vw, 60px); line-height: 1.04; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.big-text em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
@media (max-width: 860px) { .intro figure { grid-column: 1 / -1; min-height: 0; aspect-ratio: 3 / 2; } .intro .txt { grid-column: 1 / -1; } }

/* ---------- statement ---------- */
.statement { text-align: center; padding: clamp(96px, 14vw, 220px) var(--pad); display: grid; gap: 28px; justify-items: center; overflow: hidden; }
.statement .sides { width: 100%; display: flex; justify-content: space-between; gap: 24px; font-size: 14px; line-height: 1.35; }
.statement .sides span:last-child { text-align: right; }
.statement h2 { margin: 0; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(54px, 11vw, 210px); line-height: .9; letter-spacing: -.02em; }
.statement h2 .brace { color: var(--accent); font-style: normal; }
.statement p { margin: 0; max-width: 54ch; color: var(--muted); }
@media (max-width: 600px) { .statement .sides { font-size: 12px; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; padding-block: clamp(20px, 3vw, 40px); }
.marquee .track { display: inline-flex; gap: 0.4em; animation: marquee 32s linear infinite; will-change: transform; }
.marquee .track span { font-family: var(--f-display); font-size: clamp(64px, 12vw, 240px); font-weight: 600; letter-spacing: -.04em; line-height: .9; }
.marquee .track span.o { color: transparent; -webkit-text-stroke: 1px rgba(243,242,238,.5); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- work grid (staggered) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(64px, 9vw, 140px); padding: 24px var(--pad) 0; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card .media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.card:hover .media img { transform: scale(1.045); }
.card .cap { display: flex; justify-content: space-between; gap: 16px; font-family: var(--f-display); font-size: clamp(17px, 1.5vw, 22px); font-weight: 500; letter-spacing: -.01em; }
.card .cap .go { color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.card:hover .cap .go { color: var(--fg); transform: translate(3px, -3px); }
.card .cap small { display: block; font-family: var(--f-body); font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.card .tag { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(5,5,5,.6); backdrop-filter: blur(8px); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: .5s var(--ease); }
.card:hover .tag { opacity: 1; transform: none; }
.w-a { grid-column: 1 / span 7; } .w-a .media { aspect-ratio: 16 / 11; }
.w-b { grid-column: 9 / span 4; margin-top: 18vw; } .w-b .media { aspect-ratio: 4 / 5; }
.w-c { grid-column: 4 / span 6; } .w-c .media { aspect-ratio: 16 / 10; }
.w-d { grid-column: 1 / span 4; } .w-d .media { aspect-ratio: 4 / 5; }
.w-e { grid-column: 7 / span 6; margin-top: 10vw; } .w-e .media { aspect-ratio: 16 / 11; }
.w-f { grid-column: 4 / span 5; } .w-f .media { aspect-ratio: 16 / 12; }
.w-g { grid-column: 9 / span 4; margin-top: 6vw; } .w-g .media { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .work-grid > * { grid-column: 1 / -1 !important; margin-top: 0 !important; } .work-grid { row-gap: 48px; } }

/* ---------- reveal words ---------- */
.reveal-words { font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 5.6vw, 104px); line-height: .98; letter-spacing: -.035em; margin: 0; }
.reveal-words .w { opacity: .14; transition: opacity .25s linear; }
.reveal-words .w.on { opacity: 1; }
.reveal-words .w.y { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px) var(--gap); padding-inline: var(--pad); }
.split .lead { grid-column: 1 / span 11; }
.split .aside { grid-column: 7 / span 5; display: flex; flex-direction: column; gap: 28px; margin-top: clamp(40px, 6vw, 90px); }
.split .aside p { margin: 0; color: var(--muted); max-width: 46ch; }
.split .aside p strong { color: var(--fg); font-weight: 500; }
@media (max-width: 860px) { .split .lead, .split .aside { grid-column: 1 / -1; } }

/* ---------- services list ---------- */
.svc-list { list-style: none; margin: 0; padding: 0 var(--pad); }
.svc-list li { border-top: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: 1px solid var(--line); }
.svc-list a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: clamp(18px, 2.4vw, 34px) 0; }
.svc-list .name { font-family: var(--f-display); font-size: clamp(30px, 4.6vw, 80px); font-weight: 600; letter-spacing: -.035em; line-height: 1; transition: transform .6s var(--ease), color .3s; display: flex; align-items: center; gap: .3em; }
.svc-list .name::before { content: ""; width: .28em; height: .28em; background: var(--accent); transform: scale(0); transition: transform .45s var(--ease); flex: none; }
.svc-list a:hover .name { transform: translateX(.2em); }
.svc-list a:hover .name::before { transform: scale(1); }
.svc-list .tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; max-width: 420px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .svc-list a { grid-template-columns: 1fr; gap: 10px; } .svc-list .tags { justify-content: flex-start; } }
.hover-preview { position: fixed; z-index: 40; width: 300px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.hover-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .hover-preview { display: none; } }

/* ---------- clients ---------- */
.clients .track span { font-size: clamp(36px, 5vw, 88px); font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; color: var(--muted); }
.clients .track span.dot { color: var(--accent); }

/* ---------- CTA ---------- */
.cta { padding: clamp(96px, 14vw, 220px) var(--pad); display: grid; gap: 40px; }
.cta .mega { font-size: clamp(48px, 9.6vw, 190px); }
.cta .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px var(--gap); align-items: center; }
.cta .row .btn { grid-column: 7 / span 6; justify-self: start; }
.cta .contacts { grid-column: 1 / span 6; display: flex; flex-wrap: wrap; gap: 10px 36px; font-family: var(--f-display); font-size: clamp(18px, 1.8vw, 28px); }
.cta .contacts a { border-bottom: 1px solid var(--line); transition: border-color .3s; }
.cta .contacts a:hover { border-color: var(--accent); }
@media (max-width: 760px) { .cta .contacts, .cta .row .btn { grid-column: 1 / -1; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px var(--pad) calc(env(safe-area-inset-bottom, 0px) + 28px); display: grid; gap: clamp(48px, 6vw, 88px); }
.foot-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gap); }
.foot-cols > div { grid-column: span 3; }
.foot-cols h3 { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.foot-cols p, .foot-cols ul { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.7; }
.foot-cols a:hover { color: var(--accent); }
.foot-bottom { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; align-items: end; font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.foot-word { grid-column: 1 / span 6; color: var(--fg); justify-self: start; }
.foot-word svg { display: block; width: clamp(150px, 17vw, 270px); height: auto; }
.foot-copy { grid-column: 7 / span 3; }
.foot-tag { grid-column: 10 / span 3; }
@media (max-width: 860px) { .foot-cols > div { grid-column: span 6; } .foot-word { grid-column: 1 / -1; } .foot-copy { grid-column: 1 / span 6; } .foot-tag { grid-column: 7 / span 6; text-align: right; } }
@media (max-width: 600px) { .foot-cols > div:first-child, .foot-cols > div:last-child { grid-column: 1 / -1; } .foot-copy, .foot-tag { grid-column: 1 / -1; text-align: left; } }
.to-top { position: fixed; right: var(--pad); bottom: calc(env(safe-area-inset-bottom, 0px) + var(--pad)); z-index: 45; width: 52px; height: 52px; border-radius: 50%; background: #1b1b1a; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s var(--ease), background .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }

/* ---------- page heads ---------- */
.page-head { padding: clamp(130px, 16vw, 230px) var(--pad) clamp(36px, 4vw, 60px); display: grid; gap: 28px; }
.page-head .mega { font-size: clamp(56px, 13vw, 250px); }
.page-head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-head .row p { margin: 0; max-width: 52ch; color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--pad) 8px; }
.filters button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; letter-spacing: .03em; transition: .3s; }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
/* Work page: three portrait cards per row on the 12-column lines (each card spans 4 columns) */
.work-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(40px, 5vw, 72px); padding: 32px var(--pad) 0; }
.work-list .card .media { aspect-ratio: 4 / 5; }
.work-list .card[hidden] { display: none; }
@media (max-width: 1000px) { .work-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .work-list { grid-template-columns: 1fr; } }

/* ---------- case study ---------- */
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px var(--gap); padding: 0 var(--pad) 28px; border-bottom: 1px solid var(--line); }
.case-meta .wide { grid-column: span 2; }
.case-meta div { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.case-meta span:first-child { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .case-meta { grid-template-columns: 1fr 1fr; } }
.case-cover { padding: clamp(24px, 3vw, 44px) var(--pad) 0; }
.case-cover img { width: 100%; border-radius: var(--radius); }
.case-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gap); padding: clamp(64px, 9vw, 140px) var(--pad); }
.case-intro .label { grid-column: 1 / span 3; color: var(--muted); padding-top: 10px; }
.case-intro .big-text { grid-column: 4 / span 9; }
@media (max-width: 760px) { .case-intro .label, .case-intro .big-text { grid-column: 1 / -1; } }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 0 var(--pad); }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.gallery figure.full { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.next-case { display: block; padding: clamp(80px, 12vw, 180px) var(--pad); border-top: 1px solid var(--line); margin-top: clamp(80px, 10vw, 160px); }
.next-case .label { color: var(--muted); }
.next-case .mega { font-size: clamp(52px, 12vw, 230px); transition: color .4s; }
.next-case:hover .mega { color: var(--accent); }

/* ---------- services page ---------- */
.svc-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px) var(--gap); padding: clamp(48px, 6vw, 96px) var(--pad); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.svc-block .no { grid-column: 1 / span 3; color: var(--accent); font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.svc-block .body { grid-column: 4 / span 5; display: flex; flex-direction: column; gap: 22px; }
.svc-block h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4.4vw, 74px); line-height: .98; letter-spacing: -.035em; }
.svc-block p { margin: 0; color: var(--muted); max-width: 52ch; }
.svc-block ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-block li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.svc-block figure { grid-column: 9 / span 4; margin: 0; }
.svc-block figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .svc-block .no, .svc-block .body, .svc-block figure { grid-column: 1 / -1; } .svc-block figure img { aspect-ratio: 16 / 10; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding: 0 var(--pad); }
.about-grid figure { margin: 0; }
.about-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-grid .a1 { grid-column: 1 / span 7; aspect-ratio: 16 / 10; }
.about-grid .a2 { grid-column: 9 / span 4; aspect-ratio: 4 / 5; margin-top: 12vw; }
@media (max-width: 760px) { .about-grid .a1, .about-grid .a2 { grid-column: 1 / -1; margin-top: 0; } }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px) var(--gap); padding: clamp(64px, 9vw, 140px) var(--pad); }
.vm article { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.vm h3 { margin: 0; font-family: var(--f-display); font-size: clamp(28px, 3vw, 48px); font-weight: 600; letter-spacing: -.03em; }
.vm p { margin: 0; color: var(--muted); max-width: 50ch; font-size: clamp(16px, 1.2vw, 19px); }
@media (max-width: 760px) { .vm { grid-template-columns: 1fr; } }
.family { padding: 0 var(--pad) clamp(64px, 9vw, 140px); display: grid; gap: 28px; }
.family ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.family li { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; justify-content: flex-start; }
.family li strong { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.03em; }
.family li span { color: var(--muted); font-size: 15px; }
.family li.here { border-color: var(--accent); }
.family li > a { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.family figure { margin: 0 0 6px; overflow: hidden; border-radius: calc(var(--radius) - 4px); aspect-ratio: 16 / 9; background: var(--bg-2); }
.family figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.family li > a:hover img { transform: scale(1.04); }
.family .fam-logo { aspect-ratio: 16 / 9; display: grid; place-items: center; margin-bottom: 6px; border-radius: calc(var(--radius) - 4px); background: #000; color: #fff; }
.family .fam-logo svg { width: 46%; height: auto; }
@media (max-width: 760px) { .family ul { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px) var(--gap); padding: 0 var(--pad) clamp(80px, 10vw, 160px); }
.contact-form { grid-column: 1 / span 7; display: grid; gap: 22px; }
.contact-info { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 34px; }
@media (max-width: 860px) { .contact-form, .contact-info { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field input, .field textarea, .field select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); font: inherit; font-size: clamp(18px, 1.6vw, 24px); padding: 10px 0 12px; border-radius: 0; transition: border-color .3s; }
.field select option { background: var(--bg); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gap); }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--fg); transition: .25s; }
.chips input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-note { min-height: 1.5em; font-size: 15px; }
.form-note.ok { color: var(--accent); }
.form-note.err { color: #ff8a7a; }
.contact-info h3 { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-info p { margin: 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; }
.contact-info a { border-bottom: 1px solid var(--line); }
.contact-info a:hover { border-color: var(--accent); }

/* ---------- motion ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-img { clip-path: inset(12% 0 0 0 round var(--radius)); transition: clip-path 1.4s var(--ease); }
.rv-img.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.no-js .rv, .no-js .rv-img { opacity: 1; transform: none; clip-path: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .rv-img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .marquee .track { animation: none; }
  .reveal-words .w { opacity: 1; }
}
