/* OBK Studio — design tokens
   Source of truth for colour, type and spacing. Pulled from the 2024 portfolio
   (portfolio-obk.netlify.app): black/white system, Mona Sans Wide, dark hero.
   The work brings the colour; the UI stays monochrome. */

/* Three static cuts of Mona Sans Wide (instanced from the variable font with fontTools).
   Static files instead of the variable font: some WebKit builds ignore the weight axis and render
   every heading thin. Also lighter: 3 x 21 KB vs 131 KB. */
@font-face { font-family: "Mona Sans"; src: url("fonts/MonaSans-LightWide-350.woff2") format("woff2"); font-weight: 350; font-stretch: 125%; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("fonts/MonaSans-MediumWide-500.woff2") format("woff2"); font-weight: 500; font-stretch: 125%; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("fonts/MonaSans-ExtraBoldWide-800.woff2") format("woff2"); font-weight: 800; font-stretch: 125%; font-display: swap; }

:root {
  color-scheme: dark;        /* native controls, scrollbars and autofill render dark */
  /* Colour — monochrome core */
  --obk-black: #000;
  --obk-ink: #0b0b0b;        /* page background (dark) */
  --obk-carbon: #161616;     /* raised surfaces */
  --obk-graphite: #222;      /* borders, dividers on dark */
  --obk-smoke: #444;
  --obk-steel: #7a7a7a;      /* form field borders: 3.9:1 on --obk-carbon (WCAG 1.4.11 needs 3:1) */
  --obk-ash: #999;           /* secondary text on dark: 7.4:1 on --obk-ink */
  --obk-mist: #ccc;
  --obk-white: #fff;

  /* Colour — glow, from the hero light (use for gradients/accents only, never body text) */
  --obk-glow-violet: #5b3cff;
  --obk-glow-blue: #1f6bff;
  --obk-glow-ember: #ff5a36;

  /* Semantic */
  --bg: var(--obk-ink);
  --surface: var(--obk-carbon);
  --line: var(--obk-graphite);
  --text: var(--obk-white);
  --text-muted: var(--obk-ash);
  --focus: var(--obk-white);
  --hover: var(--obk-glow-ember); /* 6.3:1 on --obk-ink; black text on it 6.8:1 */

  /* Type — Mona Sans, wide cut. Display = ExtraBold Wide, body = Light/Regular Wide */
  --font: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --wide: 125%;
  --w-light: 350;           /* body text; 300 read too thin on dark at 15-17px */
  --w-regular: 400;
  --w-medium: 500;
  --w-display: 800;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-base: 1.0625rem; /* 17 */
  --fs-lg: 1.375rem;    /* 22 */
  --fs-xl: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --fs-2xl: clamp(2.25rem, 1.2rem + 4.5vw, 4.75rem);
  --fs-3xl: clamp(2.75rem, 1rem + 7.5vw, 8rem);
  --lh-tight: 1.02;
  --lh-body: 1.6;
  --track-label: 0.14em;

  /* Space — 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;
  --s-32: 8rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1320px;

  /* Shape & motion */
  --radius: 0;            /* square edges, like the 2024 site */
  --radius-pill: 999px;   /* buttons */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 450ms;
  --ease-fade: cubic-bezier(0.4, 0, 0.2, 1); /* even fade for hover colour changes */
  --dur-fade: 500ms;
  --tap: 44px;
}

/* OBK Studio site — layout and components. Tokens come from brand/tokens.css
   (concatenated in front of this file by tools/build_site.py). Mobile first. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-stretch: var(--wide);
  font-weight: var(--w-light);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color var(--dur-fade) var(--ease-fade), text-decoration-color var(--dur-fade) var(--ease-fade); }
/* Everything that changes colour on hover fades in and out at the same speed. */
.card h2, .card h3, .next-project h2, .nav-toggle, .reel-toggle button {
  transition: color var(--dur-fade) var(--ease-fade), background-color var(--dur-fade) var(--ease-fade), border-color var(--dur-fade) var(--ease-fade);
}
@media (prefers-reduced-motion: reduce) { a, .btn, .card h2, .card h3, .next-project h2, .nav-toggle, .reel-toggle button { transition: none; } }
a:hover { text-decoration-thickness: 2px; color: var(--hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--obk-white); color: var(--obk-black); }

h1, h2, h3 { font-weight: var(--w-display); line-height: var(--lh-tight); letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 var(--s-4); max-width: 62ch; }
strong { font-weight: var(--w-medium); }

.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--obk-white); color: var(--obk-black); padding: var(--s-3) var(--s-4); }
.skip:focus { top: var(--s-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.label { font-size: var(--fs-xs); font-weight: var(--w-medium); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.section { padding-block: var(--s-16); }
@media (min-width: 900px) { .section { padding-block: var(--s-24); } }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-8); }
.section-head h2 { font-size: var(--fs-xl); text-transform: uppercase; }
.section-head a { display: inline-flex; align-items: center; min-height: var(--tap); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: 0 var(--s-6);
  border-radius: var(--radius-pill); border: 1px solid var(--obk-white);
  font: inherit; font-weight: var(--w-medium); font-size: var(--fs-sm); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fade) var(--ease-fade), color var(--dur-fade) var(--ease-fade), border-color var(--dur-fade) var(--ease-fade);
}
.btn-primary { background: var(--obk-white); color: var(--obk-black); }
.btn-ghost { background: transparent; color: var(--obk-white); }
.btn-primary:hover, .btn-ghost:hover { background: var(--hover); border-color: var(--hover); color: var(--obk-black); }
.btn svg { width: 1em; height: 1em; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; min-height: var(--tap); }
.brand svg { width: 30px; height: 30px; }
.brand span { font-weight: var(--w-display); font-size: 0.95rem; letter-spacing: 0.02em; }
.header-right { display: flex; align-items: center; gap: var(--s-3); }

/* Language toggle (FR / EN): always visible, current language filled */
.lang-switch { display: inline-flex; border: 1px solid var(--obk-smoke); border-radius: var(--radius-pill); }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap);
  padding: 0 var(--s-3); border-radius: var(--radius-pill); text-decoration: none;
  font-size: var(--fs-xs); font-weight: var(--w-medium); letter-spacing: 0.1em; color: var(--obk-mist);
  transition: color var(--dur-fade) var(--ease-fade), background-color var(--dur-fade) var(--ease-fade);
}
.lang-switch a:hover { color: var(--hover); }
.lang-switch a[aria-current="true"] { background: var(--obk-white); color: var(--obk-black); }
.lang-switch a[aria-current="true"]:hover { background: var(--hover); color: var(--obk-black); }
@media (min-width: 860px) { .lang-switch { order: 2; } }
@media (prefers-reduced-motion: reduce) { .lang-switch a { transition: none; } }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); background: none; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav { display: none; }
.nav.open { display: block; position: absolute; inset: 64px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s-4) var(--gutter) var(--s-6); }
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.nav a { display: flex; align-items: center; min-height: var(--tap); text-decoration: none; font-weight: var(--w-medium); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-sm); }
.nav a[aria-current="page"] { text-decoration: underline; }
.nav .btn { margin-top: var(--s-3); }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav, .nav.open { display: block; position: static; padding: 0; border: 0; background: none; }
  .nav ul { display: flex; align-items: center; gap: var(--s-6); }
  .nav .btn { margin-top: 0; }
}

/* Hero (home) */
.hero { position: relative; min-height: min(92svh, 900px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-media, .hero-media video, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,11,0.15) 0%, rgba(11,11,11,0.35) 45%, var(--bg) 100%); }
/* Wider screens: darken the text side so the headline and buttons stay readable over any frame of the reel. */
@media (min-width: 720px) { .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,11,11,0.78) 0%, rgba(11,11,11,0.45) 45%, rgba(11,11,11,0) 75%); } }
.hero .wrap { padding-block: var(--s-24) var(--s-12); }
.hero h1 { font-size: var(--fs-3xl); text-transform: uppercase; max-width: 14ch; }
.hero .lede { font-size: var(--fs-lg); max-width: 40ch; margin-top: var(--s-6); color: var(--obk-mist); }
.hero .actions { margin-top: var(--s-8); }
.hero .label { margin-bottom: var(--s-4); display: block; color: var(--obk-mist); }
.reel-toggle { position: absolute; right: var(--gutter); bottom: var(--s-6); z-index: 2; }
.reel-toggle button { width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); background: rgba(0,0,0,0.4); color: #fff; cursor: pointer; display: grid; place-items: center; }
.reel-toggle svg { width: 16px; height: 16px; }

/* Reel dialog */
.reel-dialog { width: min(96vw, 1400px); max-height: 92vh; padding: 0; border: 0; background: #000; color: #fff; }
.reel-dialog::backdrop { background: rgba(0,0,0,0.88); }
.reel-dialog video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.reel-dialog .close { position: absolute; top: var(--s-2); right: var(--s-2); z-index: 2; }

/* Intro / statement */
.statement { font-size: var(--fs-xl); font-weight: var(--w-light); line-height: 1.25; max-width: 30ch; }
.statement strong { font-weight: var(--w-display); }

/* Work grid */
.work-grid { display: grid; gap: var(--s-8) var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  /* Odd number of projects: the first (featured) card spans both columns so every row pairs up. */
  .work-grid > .card:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .work-grid > .card:first-child:nth-last-child(odd) .thumb { aspect-ratio: 2 / 1; }
}
.card { position: relative; display: block; text-decoration: none; }
.card .thumb { overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.card:hover .thumb img { transform: scale(1.04); }
.card:hover h2, .card:hover h3 { color: var(--hover); }
@media (prefers-reduced-motion: reduce) { .card:hover .thumb img { transform: none; } }
.card h2, .card h3 { font-size: var(--fs-lg); text-transform: uppercase; margin-top: var(--s-4); }
.card .label { display: block; margin-top: var(--s-2); }
.card:focus-visible { outline-offset: 6px; }

/* Services */
.services { display: grid; gap: var(--s-6); grid-template-columns: 1fr; counter-reset: svc; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { border-top: 1px solid var(--obk-white); padding-top: var(--s-6); }
.service h3 { font-size: var(--fs-lg); text-transform: uppercase; margin-bottom: var(--s-4); }
.service h3::before { counter-increment: svc; content: "0" counter(svc); display: block; font-size: var(--fs-xs); font-weight: var(--w-medium); letter-spacing: var(--track-label); color: var(--text-muted); margin-bottom: var(--s-3); }
.service ul { list-style: none; padding: 0; margin: var(--s-4) 0 0; }
.service li { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }

.pillars { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar h3 { font-size: var(--fs-base); text-transform: uppercase; margin-bottom: var(--s-2); }
.pillar p { color: var(--text-muted); font-size: var(--fs-sm); }

/* Packages table (services page) */
.packages { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.packages th, .packages td { text-align: left; vertical-align: top; padding: var(--s-4) var(--s-3) var(--s-4) 0; border-bottom: 1px solid var(--line); }
.packages th { font-weight: var(--w-display); text-transform: uppercase; font-size: var(--fs-sm); width: 32%; }
@media (max-width: 600px) { .packages th, .packages td { display: block; width: 100%; padding-right: 0; } .packages th { border-bottom: 0; padding-bottom: 0; } }

/* CTA band */
.cta-band { border-top: 1px solid var(--line); }
.cta-band .wrap { display: grid; gap: var(--s-6); padding-block: var(--s-16); }
.cta-band h2 { font-size: var(--fs-2xl); text-transform: uppercase; max-width: 16ch; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.4fr 1fr; align-items: end; padding-block: var(--s-24); } }

/* Case study */
.cs-hero .wrap { padding-block: var(--s-12) var(--s-8); }
.cs-hero h1 { font-size: var(--fs-2xl); text-transform: uppercase; margin-top: var(--s-3); }
.cs-live { margin-top: var(--s-6); }
.cs-live .btn { font-size: var(--fs-base); }
.list-plain a { text-decoration: underline; text-underline-offset: 3px; }
.cs-meta { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.cs-meta dt { font-size: var(--fs-xs); font-weight: var(--w-medium); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); }
.cs-meta dd { margin: var(--s-1) 0 0; font-size: var(--fs-sm); }
.cs-cover img { width: 100%; max-height: 82svh; object-fit: cover; }
.cs-brief { font-size: var(--fs-xl); line-height: 1.3; max-width: 32ch; }
.step { display: grid; gap: var(--s-6); padding-block: var(--s-12); border-top: 1px solid var(--line); }
/* Long image-heavy pages: skip layout/paint for off-screen blocks until they're near the viewport. */
/* Not on blocks with links: their colour fade would animate from the UA default blue when they unlock. */
.step, .gallery figure { content-visibility: auto; contain-intrinsic-size: auto 1500px; }
@media (min-width: 900px) { .step, .gallery figure { contain-intrinsic-size: auto 760px; } }
@media (min-width: 900px) { .step { grid-template-columns: 1fr 2fr; gap: var(--s-12); } .step .step-text { position: sticky; top: 96px; align-self: start; } }
.step h3 { font-size: var(--fs-lg); text-transform: uppercase; margin: var(--s-2) 0 var(--s-4); }
.media-grid { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
.media-grid figure { margin: 0; background: var(--surface); }
.media-grid img { width: 100%; }
@media (min-width: 600px) { .media-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Image tiles (multi-image rows and galleries): every tile in a grid has the same shape (--tile, set
   per grid by the build from its images). Images close to that shape fill the tile; others (e.g. a
   phone screenshot next to desktop ones) are shown whole on the surface colour, never stretched.
   Only when tiles sit side by side; in a single phone column each image keeps its own shape. */
@media (min-width: 600px) {
  .media-grid.two.tiles > figure { aspect-ratio: var(--tile, 4 / 3); overflow: hidden; background: var(--surface); }
  .media-grid.two.tiles > figure picture { display: block; width: 100%; height: 100%; }
  .media-grid.two.tiles > figure img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .media-grid.two.tiles > figure.fit img { object-fit: contain; object-position: center; }
  /* Odd count: the last tile takes the full row, wider shape. */
  .media-grid.two.tiles > figure:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: var(--tile-wide, 16 / 9); }
}
@media (min-width: 720px) {
  .gallery.tiles > figure { aspect-ratio: var(--tile, 4 / 3); overflow: hidden; background: var(--surface); }
  .gallery.tiles > figure picture { display: block; width: 100%; height: 100%; }
  .gallery.tiles > figure img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .gallery.tiles > figure.fit img { object-fit: contain; object-position: center; }
}
.vid { position: relative; background: #000; }
.vid video { width: 100%; }
.vid.vertical video { max-height: 80svh; width: auto; margin-inline: auto; }
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.list-plain li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.two-col { display: grid; gap: var(--s-8); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.gallery { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
.gallery figure { margin: 0; }
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery.tiles > figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: var(--tile-wide, 16 / 9); }
}

.embed-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; cursor: pointer; color: #fff; overflow: hidden; }
.embed-facade picture { display: block; width: 100%; height: 100%; }
.embed-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity var(--dur) var(--ease); }
.embed-facade:hover img { opacity: 0.4; }
.embed-facade > span { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s-4); }
.embed-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

.next-project { display: block; text-decoration: none; padding-block: var(--s-12); border-top: 1px solid var(--line); }
.next-project h2 { font-size: var(--fs-2xl); text-transform: uppercase; margin-top: var(--s-2); }
.next-project:hover h2 { color: var(--hover); text-decoration: underline; text-decoration-thickness: 2px; }
.reel-toggle button:hover { background: var(--hover); border-color: var(--hover); color: var(--obk-black); }
.nav-toggle:hover { border-color: var(--hover); color: var(--hover); }

/* About */
.about-grid { display: grid; gap: var(--s-12); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.4fr; } }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.timeline .when { font-size: var(--fs-xs); color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.timeline .what { font-weight: var(--w-medium); }

/* Forms */
.form { display: grid; gap: var(--s-6); max-width: 640px; }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-xs); font-weight: var(--w-medium); letter-spacing: var(--track-label); text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap); padding: var(--s-3) var(--s-4);
  background: var(--surface); color: var(--text); border: 1px solid var(--obk-steel); border-radius: 0;
  font: inherit; font-size: 1rem;
}
.field textarea { min-height: 160px; resize: vertical; }
/* Own the select styling: iOS Safari draws native selects with black text and ignores our colours. */
.field select {
  -webkit-appearance: none; appearance: none; padding-right: var(--s-12);
  background-color: var(--surface); color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23ffffff' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s-4) center; background-size: 18px;
}
.field select option { background: var(--surface); color: var(--text); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--obk-white); }
.field .hint { font-size: var(--fs-xs); color: var(--text-muted); }
.hp { display: none; }

/* Page heads */
.page-head .wrap { padding-block: var(--s-16) var(--s-8); }
.page-head h1 { font-size: var(--fs-2xl); text-transform: uppercase; max-width: 18ch; }
.page-head p { font-size: var(--fs-lg); color: var(--obk-mist); margin-top: var(--s-6); max-width: 46ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-12) var(--s-8); font-size: var(--fs-sm); }
.site-footer .wrap { display: grid; gap: var(--s-8); }
@media (min-width: 600px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > div:first-child { grid-column: 1 / -1; } }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } .site-footer .wrap > div:first-child { grid-column: auto; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.site-footer a { display: inline-flex; align-items: center; min-height: var(--tap); }
.site-footer .fine { grid-column: 1 / -1; color: var(--text-muted); font-size: var(--fs-xs); border-top: 1px solid var(--line); padding-top: var(--s-6); }

/* Reveal on scroll (JS adds .in) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Click-to-enlarge images (a.zoom -> lightbox in main.js; without JS the link opens the image) */
.zoom { position: relative; display: block; cursor: zoom-in; color: inherit; }
.zoom:focus-visible { outline-offset: -3px; }
.zoom::after {
  content: ""; position: absolute; right: var(--s-3); bottom: var(--s-3); width: 36px; height: 36px; border-radius: 50%;
  background: rgba(11,11,11,0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0; transition: opacity var(--dur-fade) var(--ease-fade);
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
@media (hover: none) { .zoom::after { opacity: 0.85; width: 30px; height: 30px; } }
.tiles > figure .zoom { height: 100%; }
@media (min-width: 600px) { .media-grid.two.tiles > figure .zoom, .gallery.tiles > figure .zoom { height: 100%; } }
.cs-cover .zoom { cursor: zoom-in; }

.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,5,5,0.96); color: var(--text); }
.lightbox::backdrop { background: rgba(5,5,5,0.96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--gutter); }
.lb-count { font-size: var(--fs-xs); letter-spacing: var(--track-label); color: var(--text-muted); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); touch-action: pan-y; }
.lb-stage picture, .lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-stage img { max-height: calc(100dvh - 180px); }
.lb-cap { padding: var(--s-3) var(--gutter) var(--s-6); font-size: var(--fs-sm); color: var(--obk-mist); max-width: 80ch; margin-inline: auto; text-align: center; }
.lb-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: rgba(11,11,11,0.6); color: #fff; cursor: pointer;
  transition: background-color var(--dur-fade) var(--ease-fade), border-color var(--dur-fade) var(--ease-fade), color var(--dur-fade) var(--ease-fade); }
.lb-btn:hover { background: var(--hover); border-color: var(--hover); color: var(--obk-black); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: var(--s-3); }
.lb-next { right: var(--s-3); }
@media (max-width: 599px) { .lb-prev, .lb-next { top: auto; bottom: var(--s-2); transform: none; } }
.lb-stage img.lb-in { animation: lb-fade 250ms var(--ease-fade); }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--tap); padding: var(--s-4) 0; cursor: pointer; font-weight: var(--w-medium); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4em; line-height: 1; transition: transform var(--dur-fade) var(--ease-fade); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--hover); }
.faq details p { padding-bottom: var(--s-4); }

/* Smooth page-to-page loads (cross-document view transitions; browsers without support just navigate) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: var(--ease-fade); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .lb-stage img.lb-in { animation: none; }
  .zoom::after, .lb-btn, .faq summary::after { transition: none; }
}
