/* ==========================================================================
   KARBAN LAB — events · spaces · light
   Mobile first: base = phone, then ≥600, ≥861 (desktop nav), ≥1101 (wide)
   ========================================================================== */

/* ---------- Fonts: 3 self-hosted files, subset to Latin + Czech/Slovak/Polish ---------- */
@font-face { font-family: "Jost"; src: url(../fonts/jost.woff2) format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(../fonts/bodoni-moda.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(../fonts/bodoni-moda-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* Animatable custom properties */
@property --r  { syntax: "<length>"; inherits: true; initial-value: 0px; }      /* spotlight radius */
@property --la { syntax: "<angle>";  inherits: true; initial-value: 78deg; }    /* direction the shadow falls */
@property --ld { syntax: "<number>"; inherits: true; initial-value: 140; }      /* shadow length (logo units) */

/* ---------- Tokens ---------- */
:root, [data-theme="dark"] {
  --bg: #0c0b0a;
  --bg-2: #161412;
  --ink: #efe8e1;
  --muted: #8f877f;
  --line: rgba(239, 232, 225, .2);
  --logo: #e9d8cc;
  --logo-hi: #fbf1e8;
  --logo-lo: #dcc9bc;
  --cast: #000;
  --panel: #e8ddd4;
  --panel-ink: #0c0b0a;
  --torch: rgba(255, 236, 214, .065);
  --beam: rgba(255, 238, 220, .075);
  --head-bg: rgba(12, 11, 10, .74);
  --pad: 20px;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Type scale – every large heading uses one of these */
  --fs-display: clamp(40px, 3vw + 26px, 72px);     /* page titles */
  --fs-feature: clamp(44px, 3.4vw + 30px, 84px);   /* selected project (FABINI in the draft) */
  --fs-project: clamp(40px, 3.6vw + 24px, 84px);   /* project detail title */
  --fs-statement: clamp(34px, 2.6vw + 24px, 62px); /* "Good spaces for good people.", next project */
  --fs-card: clamp(24px, 1vw + 20px, 36px);        /* reference titles */
  --fs-num: clamp(48px, 2.6vw + 40px, 80px);       /* service numbers */
  --fs-caps-title: clamp(22px, 1.2vw + 18px, 36px);/* EVENTS / SPACES … on the services page */
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #ece4dc;
  --bg-2: #e2d8ce;
  --ink: #0c0b0a;
  --muted: #6c635b;
  --line: rgba(20, 18, 16, .2);
  --logo: #0c0b0a;
  --logo-hi: #2b2622;
  --logo-lo: #000;
  --cast: #5a4636;
  --panel: #0c0b0a;
  --panel-ink: #ece4dc;
  --torch: rgba(255, 250, 240, .45);
  --beam: rgba(255, 255, 255, .35);
  --head-bg: rgba(236, 228, 220, .8);
  color-scheme: light;
}
@media (min-width: 600px) { :root { --pad: clamp(24px, 4vw, 56px); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 300 16px/1.6 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--logo); color: var(--bg); }
:focus-visible { outline: 1px solid var(--logo); outline-offset: 4px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 16px; background: var(--ink); color: var(--bg); }

.caps { font: 500 10.5px/2 var(--sans); letter-spacing: .26em; text-transform: uppercase; text-wrap: balance; }
.muted { color: var(--muted); }
.num { font: 500 10px/1 var(--sans); letter-spacing: .2em; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }

.rule {
  width: 42px; height: 1px; border: 0; margin: 28px 0;
  background: currentColor; opacity: .75;
  transform-origin: left; transition: transform 1.2s var(--ease) .3s, box-shadow 1.2s;
}
.rule.short { width: 26px; margin: 18px 0; }
.rule.tiny { width: 16px; margin: 14px 0; }
.js .reveal .rule { transform: scaleX(0); }
.js .reveal.in .rule { transform: none; }
[data-theme="dark"] .reveal.in .rule { box-shadow: 0 0 10px rgba(255, 236, 214, .55); }

.arrow-link { display: inline-flex; align-items: center; gap: 16px; font: 500 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; padding-block: 8px; }
.arrow { width: 46px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1; transition: transform .5s var(--ease); }
.arrow-link:hover .arrow, a:hover > .arrow, a:hover .next-title .arrow { transform: translateX(8px); }
.arrow-link.dash::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.arrow-back { width: 28px; }
a:hover > .arrow-back { transform: translateX(-6px); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Torch: soft light following the cursor (desktop) ---------- */
.torch {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), var(--torch), transparent 62%);
  transition: opacity .8s;
}
.has-pointer .torch { opacity: 1; }
[data-theme="dark"] .torch { mix-blend-mode: screen; }
[data-theme="light"] .torch { mix-blend-mode: soft-light; }

/* ==========================================================================
   HEADER + MENU
   ========================================================================== */
.site-head {
  position: fixed; z-index: 30; inset: 0 0 auto; display: flex; align-items: center; gap: 48px;
  padding: calc(18px + env(safe-area-inset-top)) var(--pad) 18px;
  transition: background .5s, padding .5s;
}
.site-head.scrolled { background: var(--head-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.menu-open .site-head { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: block; padding: 6px 0; color: var(--logo); }
.brand svg { display: block; height: 14px; width: auto; fill: currentColor; }
.nav { display: none; }
.nav a, .langs { font: 500 10.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.head-tools .langs { display: none; }
.langs { display: flex; gap: 7px; }
.langs a { opacity: .5; transition: opacity .3s; }
.langs a[aria-current], .langs a:hover { opacity: 1; }

/* The cream dot from the draft = a light switch */
.switch { width: 44px; height: 44px; margin: -13px; display: grid; place-items: center; border-radius: 50%; }
/* Half-lit circle: the lit half swings round when the light is switched */
.switch svg { width: 20px; height: 20px; overflow: visible; color: var(--logo); transition: transform .8s var(--ease), filter .6s; }
.switch circle { fill: none; stroke: currentColor; stroke-width: 1.25; }
.switch path { fill: currentColor; }
[data-theme="dark"] .switch svg { filter: drop-shadow(0 0 5px rgba(255, 236, 214, .45)); }
[data-theme="light"] .switch svg { transform: rotate(180deg); }
.switch:hover svg { transform: rotate(-35deg); }
[data-theme="light"] .switch:hover svg { transform: rotate(145deg); }

.burger { position: relative; width: 44px; height: 44px; margin: -10px -12px -10px 0; }
.burger i { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger i:first-of-type { top: 18px; } .burger i:last-of-type { top: 25px; }
.menu-open .burger i:first-of-type { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger i:last-of-type { top: 21.5px; transform: rotate(-45deg); }

/* Full-screen mobile menu – lives outside the header so it always covers the viewport */
.menu {
  position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column;
  padding: calc(96px + env(safe-area-inset-top)) var(--pad) calc(28px + env(safe-area-inset-bottom));
  background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.menu::before { content: ""; position: absolute; inset: 0 0 auto; height: 60%; pointer-events: none; background: radial-gradient(70% 60% at 50% 0%, var(--beam), transparent 70%); }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-nav { display: flex; flex-direction: column; margin-block: auto; }
.menu-nav a {
  display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 300 clamp(28px, 8.4vw, 40px)/1.15 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
  transition-delay: calc(var(--i) * 55ms + 60ms);
}
.menu-nav a:first-child { border-top: 1px solid var(--line); }
.menu-nav a[aria-current] { color: var(--logo); }
.menu-nav .num { min-width: 2.4em; }
.menu-open .menu-nav a { opacity: 1; transform: none; }
.menu-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 36px; }
.menu-foot .langs, .menu-social { flex-direction: column; gap: 10px; font: 500 10.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.menu-social { display: flex; text-align: right; }

/* Flicker when the light is switched */
.flick main, .flick .site-foot { animation: flick .7s steps(1) both; }
@keyframes flick { 0%{opacity:1} 10%{opacity:.25} 18%{opacity:1} 30%{opacity:.4} 36%{opacity:1} 55%{opacity:.7} 60%,100%{opacity:1} }

/* ==========================================================================
   HERO — photo + KAR/BAN/LAB, symmetric
   ========================================================================== */
.hero {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "stage stage" "left right";
  gap: 36px 16px; align-items: start;
  padding: calc(92px + env(safe-area-inset-top)) var(--pad) 56px;
  overflow: hidden; isolation: isolate;
  animation: kbl-sweep 12s ease-in-out infinite alternate, kbl-reach 19s ease-in-out infinite alternate;
}
.hero.steer { animation: none; }
.hero.paused { animation-play-state: paused; }
@keyframes kbl-sweep { from { --la: 58deg; } to { --la: 122deg; } }
@keyframes kbl-reach { from { --ld: 105; } to { --ld: 175; } }

.hero-side { position: relative; z-index: 3; }
.hero-left { grid-area: left; justify-self: start; }
.hero-right { grid-area: right; justify-self: end; text-align: right; }
.hero-right .rule { margin-left: auto; transform-origin: right; }
.hero-lead span, .claim span { display: block; }
.hero-lead { font: 300 clamp(24px, 7vw, 34px)/1.1 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.caps-list li { font: 500 10px/2.1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.claim { font: 500 10.5px/1.95 var(--sans); letter-spacing: .24em; text-transform: uppercase; }

/* Geometry: photo 4:5, wordmark 16 % taller than the photo (8 % over each edge) */
.hero-stage {
  grid-area: stage; justify-self: center; position: relative;
  width: min(72vw, 52svh, 420px); aspect-ratio: .68966;
  display: grid; place-items: center;
}
.hero-photo {
  position: absolute; inset: 6.897% 0; overflow: hidden; background: var(--bg-2);
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, .75);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.bw { filter: grayscale(1) contrast(1.08) brightness(.82); }
[data-theme="light"] .bw { filter: grayscale(1) contrast(1.02) brightness(1.02); }
.hero-photo .bw { filter: grayscale(1) contrast(1.12) brightness(1.05); transition: filter .8s; }
[data-theme="light"] .hero-photo .bw { filter: grayscale(1) invert(1) contrast(.72) brightness(1.18); }
[data-theme="light"] .hero-photo { box-shadow: 0 40px 80px -40px rgba(60, 40, 25, .45); }
/* Warm light patch on the photo, on the side the light comes from */
.wash {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: radial-gradient(circle at calc(50% - cos(var(--la)) * 46%) calc(22% - sin(var(--la)) * 26%), rgba(255, 240, 222, .55), transparent 58%);
}
.hero-logo { position: relative; z-index: 2; width: 74.586%; margin: 0; line-height: 0; }

/* Wordmark + two-layer cast shadow (near = crisp contact shadow, far = soft penumbra) */
.kbl { position: relative; display: block; width: 100%; container-type: inline-size; --u: calc(100cqi / var(--kbl-w)); }
.kbl svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kbl-face { opacity: 0; transform: translateY(1.5%); transition: opacity 1.6s var(--ease) .1s, transform 1.6s var(--ease) .1s; }
.ready .kbl-face { opacity: 1; transform: none; }
.kbl-shade { fill: var(--cast); pointer-events: none; will-change: transform; opacity: 0; transition: opacity 2s var(--ease) .6s; }
.kbl-shade--near { filter: blur(calc(var(--u) * 12)); transform: translate(calc(cos(var(--la)) * var(--ld) * .36 * var(--u)), calc(sin(var(--la)) * var(--ld) * .36 * var(--u))); }
.kbl-shade--far  { filter: blur(calc(var(--u) * 44)); transform: translate(calc(cos(var(--la)) * var(--ld) * var(--u)), calc(sin(var(--la)) * var(--ld) * var(--u))); }
.ready .kbl-shade--near { opacity: .62; }
.ready .kbl-shade--far { opacity: .56; }

/* Two mirrored moving-head beams */
.beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.beams i {
  position: absolute; top: -6%; width: 70vw; height: 125%;
  background: linear-gradient(to bottom, var(--beam), transparent 85%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  filter: blur(18px); transform-origin: 50% 0; mix-blend-mode: screen;
}
.beams i:first-child { left: 4%; animation: sway-l 16s ease-in-out infinite alternate; }
.beams i:last-child { right: 4%; animation: sway-r 16s ease-in-out infinite alternate; }
@keyframes sway-l { from { transform: rotate(-26deg); } to { transform: rotate(-6deg); } }
@keyframes sway-r { from { transform: rotate(26deg); } to { transform: rotate(6deg); } }
[data-theme="light"] .beams { display: none; }

/* ==========================================================================
   SPOT — black & white; colour appears where the light falls
   ========================================================================== */
.spot { position: relative; display: block; overflow: hidden; background: var(--bg-2); }
.spot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.spot .lit {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x, 50%) var(--y, 50%), #000 0, #000 30%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x, 50%) var(--y, 50%), #000 0, #000 30%, transparent 100%);
  transition: --r .9s var(--ease), transform 1.4s var(--ease);
}
.spot:hover, .spot.is-lit { --r: 340px; }
.spot.is-lit { --r: 520px; }
a:hover .spot img, .spot:hover img { transform: scale(1.035); }
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, .35)); }

/* ==========================================================================
   SERVICES tiles (draft: 01 EVENTS / image / caption / rule)
   ========================================================================== */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 16px; padding: 40px var(--pad) 72px; }
.tile { display: block; }
.tile .num { display: block; margin-bottom: 8px; }
.tile-title { font: 300 clamp(17px, 5vw, 22px)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.tile .spot { aspect-ratio: 4 / 3; }
.tile-text { display: block; margin-top: 16px; max-width: 24ch; font-size: 9.5px; letter-spacing: .22em; }

/* ==========================================================================
   FEATURE — photo + cream panel with window light
   ========================================================================== */
.feature { display: grid; }
.feature-img { aspect-ratio: 4 / 3; }
.feature-panel { position: relative; overflow: hidden; background: var(--panel); color: var(--panel-ink); display: flex; align-items: center; padding: 56px var(--pad) 64px; isolation: isolate; }
.feature-copy { position: relative; z-index: 2; }
.feature-title { font: 400 var(--fs-feature)/.95 var(--serif); letter-spacing: -.02em; margin-top: 18px; }
.feature-title small { font-size: .28em; letter-spacing: 0; white-space: nowrap; vertical-align: .45em; }

/* Gobo: sunlight through a window onto the wall */
.gobo {
  position: absolute; inset: -30%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 38% 46% at 70% 42%, rgba(255, 232, 200, .55), transparent 70%),
    repeating-linear-gradient(98deg, transparent 0 9%, rgba(40, 26, 14, .13) 9% 10.4%),
    linear-gradient(8deg, transparent 49.2%, rgba(40, 26, 14, .14) 49.2% 51.3%, transparent 51.3%);
  filter: blur(5px); transform: rotate(-4deg);
  animation: drift 38s ease-in-out infinite alternate;
  mix-blend-mode: multiply;
}
[data-theme="light"] .feature-panel .gobo { mix-blend-mode: screen; background:
    radial-gradient(ellipse 38% 46% at 70% 42%, rgba(255, 232, 200, .16), transparent 70%),
    repeating-linear-gradient(98deg, transparent 0 9%, rgba(255, 240, 220, .06) 9% 10.4%); }
@keyframes drift { from { translate: -3% -1%; } to { translate: 4% 2%; } }

/* Leaf shadows (tree in front of a window) */
.gobo.leaves {
  inset: -20%; z-index: 2; opacity: .75; filter: blur(3px);
  background:
    radial-gradient(ellipse 9% 5% at 22% 30%, rgba(0,0,0,.55), transparent 70%),
    radial-gradient(ellipse 6% 9% at 30% 38%, rgba(0,0,0,.5), transparent 70%),
    radial-gradient(ellipse 11% 6% at 64% 22%, rgba(0,0,0,.5), transparent 70%),
    radial-gradient(ellipse 7% 4% at 72% 34%, rgba(0,0,0,.55), transparent 70%),
    radial-gradient(ellipse 8% 11% at 46% 62%, rgba(0,0,0,.45), transparent 70%),
    radial-gradient(ellipse 10% 5% at 80% 70%, rgba(0,0,0,.5), transparent 70%),
    radial-gradient(ellipse 5% 8% at 15% 72%, rgba(0,0,0,.5), transparent 70%),
    radial-gradient(ellipse 12% 7% at 55% 12%, rgba(0,0,0,.4), transparent 70%);
  animation: sway 9s ease-in-out infinite alternate;
}
@keyframes sway { from { transform: rotate(-1.5deg) translate(-1%, 0); } to { transform: rotate(1.5deg) translate(1%, 1%); } }

/* ==========================================================================
   CTA — "Good spaces for good people."
   ========================================================================== */
.cta { display: grid; gap: 36px; padding: 72px var(--pad); }
.cta-title { font: 400 var(--fs-statement)/1.04 var(--serif); letter-spacing: -.02em; }
.cta-title em { font-style: italic; }
.cta-text .caps { margin-bottom: 22px; }
.cta-photo { aspect-ratio: 1 / .88; max-width: 420px; }
.cta-social { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.cta-social a { padding-block: 6px; transition: opacity .3s; }
.cta-social a:hover { opacity: .6; }
.cta-social .rule { display: none; }
.cta-social span { flex-basis: 100%; margin-top: 10px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-foot { padding: 0 var(--pad) calc(26px + env(safe-area-inset-bottom)); }
.foot-inner { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); font: 500 9.5px/1.8 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.foot-inner nav { display: flex; justify-content: space-between; gap: 4px; font-size: 8.5px; letter-spacing: .14em; }
.foot-inner a:hover { color: var(--ink); }

/* ==========================================================================
   SUBPAGES
   ========================================================================== */
.page-head { position: relative; padding: calc(116px + env(safe-area-inset-top)) var(--pad) 36px; }
.display {
  font: 400 var(--fs-display)/1 var(--serif); letter-spacing: -.02em; color: var(--logo);
  margin: 14px 0 0 -.03em; max-width: 16ch;
  text-shadow: calc(cos(var(--la)) * var(--ld) * .05px) calc(sin(var(--la)) * var(--ld) * .05px) calc(var(--ld) * .09px) rgb(from var(--cast) r g b / .55);
}
.filters {
  display: flex; gap: 8px; margin: 32px calc(-1 * var(--pad)) 0; padding: 2px var(--pad);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad);
}
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; font: 500 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: 13px 16px; border: 1px solid var(--line); border-radius: 40px; transition: background .4s, color .4s, border-color .4s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Work grid */
.grid { display: grid; gap: 52px; padding: 16px var(--pad) 40px; }
.card { display: block; }
.card[hidden] { display: none; }
.card-img { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.card-title { display: block; font: 400 var(--fs-card)/1.1 var(--serif); letter-spacing: -.01em; margin-top: 6px; text-wrap: balance; }
.card-client { display: block; margin-top: 8px; color: var(--muted); }
.empty { padding: 40px var(--pad) 100px; }

/* Project detail */
.draft-bar { position: fixed; z-index: 60; bottom: 20px; left: 50%; transform: translateX(-50%); background: #c7462c; color: #fff; padding: 10px 18px; font: 500 12px/1 var(--sans); letter-spacing: .1em; }
.project-hero { position: relative; height: 86svh; min-height: 480px; overflow: hidden; }
.project-cover { position: absolute; inset: 0; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); filter: brightness(.3); } to { transform: none; filter: none; } }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,11,10,.5) 0%, transparent 28%, transparent 42%, var(--bg) 100%); }
.project-hero-copy { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 28px; }
.back { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-block: 8px; opacity: .8; }
.back:hover { opacity: 1; }
.project-title { font: 400 var(--fs-project)/1 var(--serif); letter-spacing: -.02em; max-width: 18ch; text-shadow: 0 10px 50px rgba(0,0,0,.45); }
.project-title small { font-size: .24em; letter-spacing: 0; vertical-align: .5em; white-space: nowrap; }
.project-body { display: grid; gap: 34px; padding: 44px var(--pad); max-width: 1500px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: start; }
.facts dt { color: var(--muted); }
.facts dd { font-size: 16px; }
.prose { font-size: 17px; line-height: 1.75; max-width: 64ch; }
.prose p + p { margin-top: 1.1em; }
.prose a { border-bottom: 1px solid var(--line); }
.lead { font: 300 clamp(20px, 5.4vw, 28px)/1.5 var(--sans); margin-bottom: 1.2em; }
.credits { margin-top: 2.4em; color: var(--muted); }
.video { margin: 0 var(--pad) 48px; aspect-ratio: 16 / 9; }
.video iframe { width: 100%; height: 100%; border: 0; }
.gallery { display: grid; gap: 12px; padding: 0 var(--pad) 56px; }
.g-item { display: block; overflow: hidden; background: var(--bg-2); aspect-ratio: 3 / 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.g-item:hover img { transform: scale(1.03); }
.next { display: grid; gap: 24px; padding: 56px var(--pad); border-top: 1px solid var(--line); }
.next-copy { display: block; }
.next-title { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font: 400 var(--fs-statement)/1.05 var(--serif); letter-spacing: -.02em; margin-top: 12px; }
.next-img { aspect-ratio: 4 / 3; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 7, 6, .96); display: grid; place-items: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 84svh; width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; color: #efe8e1; opacity: .75; }
.lightbox button:hover { opacity: 1; }
.lightbox svg { fill: none; stroke: currentColor; stroke-width: 1.2; }
.lb-close { top: calc(10px + env(safe-area-inset-top)); right: 10px; }
.lb-close svg { width: 24px; height: 24px; }
.lb-prev { left: 6px; bottom: 12px; } .lb-next { right: 6px; bottom: 12px; }
.lb-prev .arrow, .lb-next .arrow { width: 36px; }

/* Services page */
.service { display: grid; gap: 28px; padding: 36px var(--pad); scroll-margin-top: 60px; }
.service-img { aspect-ratio: 4 / 5; }
/* line-height 1 + margin -.1125em: the flat top of the figures (0.75 em, Bodoni Moda metrics) lands on the box top */
.num.big { display: block; font: 400 var(--fs-num)/1 var(--serif); letter-spacing: -.01em; color: var(--line); margin: -.1125em 0 14px; transition: color 1.6s var(--ease), text-shadow 1.6s var(--ease); }
.service-copy.in .num.big { color: var(--logo); text-shadow: 0 0 44px rgba(255, 236, 214, .18); }
.service-title { font: 300 var(--fs-caps-title)/1.05 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.service .prose { margin-top: 8px; }
.related { margin-top: 36px; }
.related ul { margin-top: 10px; border-top: 1px solid var(--line); }
.related li a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 400 20px/1.3 var(--serif); }

/* About */
.about { display: grid; gap: 34px; padding: 0 var(--pad) 72px; }
.about-img { aspect-ratio: 4 / 5; }
.steps { padding: 0 var(--pad) 48px; }
.steps ol { display: grid; gap: 36px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 30px; }
.step-title { font: 300 24px/1.1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-top: 14px; }

/* Contact */
.contact { display: grid; gap: 40px; padding: calc(116px + env(safe-area-inset-top)) var(--pad) 72px; }
.contact .cta-title { font-size: var(--fs-display); margin: 14px 0 26px; }
.contact .lead { max-width: 36ch; }
.contact-list { display: grid; gap: 24px; margin-top: 34px; }
.contact-list dt { color: var(--muted); }
.big-link { font: 400 clamp(22px, 1vw + 18px, 34px)/1.25 var(--serif); border-bottom: 1px solid transparent; transition: border-color .4s; overflow-wrap: anywhere; }
.big-link:hover { border-color: currentColor; }
.socials { display: flex; gap: 22px; }
.contact-photo { aspect-ratio: 4 / 5; }

/* 404 */
.notfound { min-height: 90svh; display: grid; place-content: center; text-align: center; gap: 18px; padding: 140px var(--pad) 80px; }
.notfound .display { margin: 0 auto; }
.notfound .arrow-link { justify-self: center; }

/* ==========================================================================
   ≥ 600 px
   ========================================================================== */
@media (min-width: 600px) {
  .hero-lead { font-size: clamp(28px, 4.2vw, 40px); }
  .caps-list li { font-size: 10.5px; letter-spacing: .3em; }
  .claim { font-size: 11.5px; }
  .tile-text { font-size: 10.5px; letter-spacing: .26em; }
  .services { gap: 60px clamp(20px, 3vw, 48px); }
  .gallery { grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); }
  .gallery.odd .g-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
  .steps ol { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .facts { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .foot-inner { flex-direction: row; justify-content: space-between; }
  .foot-inner nav { justify-content: flex-end; gap: 10px; font-size: 9.5px; letter-spacing: .24em; }
}

/* ==========================================================================
   ≥ 861 px — desktop navigation and layouts
   ========================================================================== */
@media (min-width: 861px) {
  .site-head { padding-block: calc(26px + env(safe-area-inset-top)) 26px; }
  .site-head.scrolled { padding-block: 16px; }
  .brand svg { height: 15px; }
  .nav { display: flex; gap: clamp(24px, 4.2vw, 64px); }
  .nav a { position: relative; padding: 8px 0; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
  .nav a:hover::after, .nav a[aria-current]::after { transform: none; }
  .head-tools { gap: 24px; }
  .head-tools .langs { display: flex; }
  .burger, .menu { display: none; }

  .hero {
    min-height: 100svh; align-items: center;
    grid-template-columns: 1fr auto 1fr; grid-template-areas: "left stage right";
    gap: clamp(16px, 3vw, 48px);
    padding: 110px var(--pad) 64px;
  }
  .hero-stage { width: clamp(260px, min(33vw, 56svh), 500px); }
  .hero-lead { font-size: clamp(30px, 3.1vw, 48px); }
  .beams i { width: 34vw; }
  .beams i:first-child { left: 8%; } .beams i:last-child { right: 8%; }

  .feature { grid-template-columns: 47fr 53fr; min-height: clamp(420px, 38vw, 640px); }
  .feature-img { aspect-ratio: auto; min-height: 100%; }
  .feature-panel { padding: 60px clamp(28px, 7vw, 120px); }

  .cta { grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(80px, 8vw, 120px); }
  .cta-photo { grid-row: span 2; }

  .page-head { padding-top: clamp(140px, 12vw, 180px); padding-bottom: clamp(40px, 4vw, 60px); }
  .filters { margin: 44px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .grid { grid-template-columns: 1fr 1fr; gap: clamp(60px, 6vw, 100px) clamp(24px, 4vw, 70px); padding-top: 20px; }

  .project-hero { height: 92svh; min-height: 560px; }
  .project-hero-copy { bottom: clamp(30px, 5vw, 70px); }
  .project-body { grid-template-columns: 1fr 2fr; gap: clamp(30px, 6vw, 110px); padding-block: clamp(56px, 6vw, 90px); }
  .facts { grid-template-columns: 1fr; gap: 22px; }
  .prose { font-size: 18px; }
  .video { margin-bottom: clamp(40px, 6vw, 90px); }
  .next { grid-template-columns: 1fr minmax(240px, 34vw); align-items: center; gap: 40px; padding-block: clamp(60px, 7vw, 110px); }
  .lightbox { padding: 50px 80px; }
  .lb-prev { left: 14px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .lb-next { right: 14px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .lightbox img { max-height: 88svh; }

  .service { grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: start; padding-block: clamp(48px, 6vw, 90px); }
  .service.flip .service-img { order: 2; }
  .about { grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 110px); align-items: start; padding-bottom: clamp(72px, 8vw, 120px); }
  .contact { grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 6vw, 110px); align-items: center; padding-top: clamp(150px, 14vw, 200px); }
}

/* ==========================================================================
   ≥ 1101 px
   ========================================================================== */
@media (min-width: 1101px) {
  .services { grid-template-columns: repeat(4, 1fr); padding-block: clamp(56px, 6vw, 90px) clamp(70px, 7vw, 110px); }
  .tile-title { font-size: clamp(20px, 1.7vw, 26px); }
  .cta { grid-template-columns: 1.6fr 1.1fr 1.3fr .7fr; }
  .cta-photo { grid-row: auto; max-width: none; }
  .cta-social { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 4px; }
  .cta-social .rule { display: block; }
  .cta-social span { flex-basis: auto; margin-top: 0; color: inherit; }
  .steps ol { grid-template-columns: repeat(4, 1fr); }
}

/* Very small phones */
@media (max-width: 359px) {
  .services { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "stage" "left" "right"; }
  .hero-right { justify-self: start; text-align: left; }
  .hero-right .rule { margin-left: 0; transform-origin: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .beams i, .gobo, .project-cover img, .flick main, .flick .site-foot { animation: none; }
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .kbl-face, .kbl-shade, .spot img, .spot .lit, .menu, .menu-nav a { transition: none; }
}
