/* ==========================================================================
   Stavros Liokalos — portfolio, v2
   Dark rounded panels, bold sans headings over imagery, numbered details.
   Colour comes from the film stills; the interface stays neutral with one
   muted sand accent.
   ========================================================================== */

:root {
  --bg: #0d0d0c;
  --panel: #161615;
  --panel-2: #1d1c1a;
  --panel-3: #262522;
  --ink: #f3f0ea;
  --ink-2: #c3beb4;
  --ink-3: #8c877e;
  --line: rgba(243, 240, 234, 0.08);
  --line-2: rgba(243, 240, 234, 0.16);
  --accent: #c9ab7b;          /* muted sand — the only accent */
  --accent-ink: #15120d;

  --font: "Manrope", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --edge: 14px;               /* space between panels and the window */
  --pad: clamp(20px, 3.6vw, 52px);
  --max: 1480px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
.kicker { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--accent); letter-spacing: 0.005em; margin-bottom: 14px; }
.h-display { font-weight: 700; font-size: clamp(52px, 8.6vw, 138px); line-height: 0.92; letter-spacing: -0.04em; margin: 0; }
.h-section { font-weight: 700; font-size: clamp(32px, 3.5vw, 50px); line-height: 1.06; letter-spacing: -0.03em; margin: 0; }
.lead { font-weight: 600; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.38; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.small { font-size: 13px; line-height: 1.65; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.num { font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- Pill button with circular arrow ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 6px 0 20px;
  border-radius: 999px;
  background: var(--ink); color: var(--accent-ink);
  font-size: 13.5px; font-weight: 600;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s var(--ease);
  white-space: nowrap;
}
.pill__icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); position: relative; flex: none;
  transition: transform 0.45s var(--ease), background 0.35s ease;
}
.pill__icon::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 14px; height: 14px;
  background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8h9M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8h9M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  transform: rotate(-45deg);
  transition: transform 0.45s var(--ease);
}
.pill:hover .pill__icon::before, a:hover > .pill .pill__icon::before { transform: rotate(0deg); }
.pill:hover { background: #fff; }
.pill--ghost { background: var(--panel-3); color: var(--ink); }
.pill--ghost:hover { background: #33312d; }
.pill--sm { height: 38px; padding-left: 16px; gap: 10px; font-size: 12.5px; }
.pill--sm .pill__icon { width: 28px; height: 28px; }

/* ---------- Layout ---------- */
#view { outline: none; min-height: 100vh; }
#view.is-leaving { opacity: 0; transition: opacity 0.3s ease; }
#view.is-entering { animation: viewIn 0.7s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding-top: clamp(80px, 10vw, 150px); }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.split__a { grid-column: 1 / span 6; }
.split__b { grid-column: 8 / span 5; display: grid; gap: 18px; align-content: start; padding-top: 34px; }
.split__b .small { max-width: 44ch; }
.split__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; } .reveal-d3 { transition-delay: 0.24s; }

/* Image box with average-colour placeholder */
.img { position: relative; overflow: hidden; background: var(--panel-2); border-radius: var(--r-lg); isolation: isolate; }
.img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease, transform 1.4s var(--ease), filter 0.8s ease; }
.img img.is-loaded { opacity: 1; }

/* ==========================================================================
   PAGE HERO PANEL (used on every page)
   ========================================================================== */
.panel-hero {
  position: relative;
  margin: var(--edge) var(--edge) 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #000;
  min-height: 560px;
  isolation: isolate;
  animation: panelIn 1.2s var(--ease) both;
}
@keyframes panelIn { from { transform: scale(0.975); opacity: 0; } to { transform: none; opacity: 1; } }
.panel-hero--tall { height: calc(100vh - var(--edge) * 2); height: calc(100svh - var(--edge) * 2); max-height: 980px; }
.panel-hero--mid { height: min(78vh, 760px); }
.panel-hero__media { position: absolute; inset: 0; z-index: -2; }
.panel-hero__media img, .panel-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.panel-hero__media img { animation: slowzoom 14s ease-out both; }
@keyframes slowzoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.panel-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,8,7,0.78) 0%, rgba(8,8,7,0.35) 45%, rgba(8,8,7,0.1) 75%),
    linear-gradient(180deg, rgba(8,8,7,0.55) 0%, rgba(8,8,7,0) 22%, rgba(8,8,7,0) 55%, rgba(8,8,7,0.75) 100%);
}
.panel-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.panel-hero__slide.is-active { opacity: 1; }
.panel-hero__slide.is-active img { animation: slowzoom 9s linear both; }

.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px var(--pad);
}
.brand { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--ink-2); letter-spacing: 0; margin-top: 1px; }
.topnav { display: flex; align-items: center; gap: 30px; }
.topnav a:not(.pill) { font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: color 0.3s; position: relative; }
.topnav a:not(.pill):hover, .topnav a.is-active { color: var(--ink); }
.topnav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.menu-btn { display: none; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(243,240,234,0.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; }

.panel-hero__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 0 var(--pad) clamp(26px, 3.6vw, 48px);
}
.panel-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.panel-hero__title { grid-column: 1 / span 8; }
.panel-hero__aside { grid-column: 9 / span 4; display: grid; gap: 10px; padding-bottom: 10px; }
.panel-hero__aside .lead { font-size: clamp(16px, 1.3vw, 19px); }
.panel-hero__aside .small { color: var(--ink-2); max-width: 36ch; }
.panel-hero__aside a.small { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(30px, 4vw, 56px); padding-top: 18px; border-top: 1px solid rgba(243,240,234,0.18); }
.numbers div { display: grid; gap: 4px; }
.numbers .num { color: var(--ink-2); }
.numbers span:last-child { font-size: 13px; font-weight: 500; }

.slide-dots { display: flex; gap: 6px; margin-top: 4px; }
.slide-dots button { width: 22px; height: 16px; position: relative; }
.slide-dots button::before, .slide-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: rgba(243,240,234,0.25); }
.slide-dots button::after { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.slide-dots button.is-done::after { transform: scaleX(1); }
.slide-dots button.is-active::after { animation: fill var(--slide-ms, 6500ms) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Floating dock nav ---------- */
.dock {
  position: fixed; top: 14px; left: 50%; z-index: 60;
  display: flex; align-items: center; gap: 26px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: rgba(22, 22, 21, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--line);
  transform: translate(-50%, -140%);
  transition: transform 0.6s var(--ease);
}
.dock.is-shown { transform: translate(-50%, 0); }
.dock__brand { font-weight: 700; font-size: 14px; letter-spacing: -0.02em; white-space: nowrap; }
.dock__nav { display: flex; gap: 20px; }
.dock__nav a { font-size: 13px; font-weight: 500; color: var(--ink-2); transition: color 0.3s; }
.dock__nav a:hover, .dock__nav a.is-active { color: var(--ink); }

/* ---------- Mobile menu sheet ---------- */
.sheet {
  position: fixed; inset: var(--edge); z-index: 70; border-radius: var(--r-xl);
  background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px var(--pad) 28px;
  opacity: 0; transform: scale(0.97); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
}
.sheet.is-open { opacity: 1; transform: none; pointer-events: auto; }
.sheet__top { display: flex; justify-content: space-between; align-items: center; }
.sheet__nav { display: grid; gap: 4px; }
.sheet__nav a { font-size: 46px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.12; display: flex; align-items: baseline; gap: 14px; }
.sheet__nav a .num { font-size: 12px; }
.sheet__nav a.is-active { color: var(--accent); }

/* ==========================================================================
   HOME
   ========================================================================== */
/* Directors marquee */
.marquee-wrap { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 30px; align-items: center; padding-top: 30px; }
.marquee-wrap .small { line-height: 1.4; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 46px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; letter-spacing: -0.01em; }
.marquee__track span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Three tiles (monochrome, colour on hover) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 70px); }
.tile { display: block; }
.tile .img { aspect-ratio: 4 / 4.6; }
.tile .img img { filter: grayscale(1) contrast(1.05); }
.tile:hover .img img { filter: none; transform: scale(1.04); }
.tile__cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.tile__cap span:last-child { color: var(--ink-3); font-weight: 500; }

/* Curved archive carousel */
.curve-panel { margin: 0 var(--edge); border-radius: var(--r-xl); background: var(--panel); padding: clamp(60px, 7vw, 100px) 0 clamp(36px, 4vw, 56px); overflow: hidden; }
.curve-head { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 0 var(--pad); }
.curve-head .h-section { max-width: 16ch; }
.curve-head .small { max-width: 52ch; }
.curve {
  position: relative; height: clamp(240px, 26vw, 360px); margin-top: clamp(40px, 5vw, 70px);
  perspective: var(--persp, 1300px);
  cursor: grab; touch-action: pan-y; user-select: none;
}
.curve.is-dragging { cursor: grabbing; }
.curve__card {
  position: absolute; left: 50%; top: 50%;
  width: var(--card-w, 190px); aspect-ratio: 3 / 4.3;
  margin-left: calc(var(--card-w, 190px) / -2);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform;
}
.curve__card .img { width: 100%; height: 100%; border-radius: var(--r-md); }
.curve__card .img img { pointer-events: none; }
.curve__label {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(13,13,12,0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 600; line-height: 1.25;
  opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.45s var(--ease);
}
.curve__label small { display: block; font-weight: 500; color: var(--ink-3); font-size: 10.5px; }
.curve__card:hover .curve__label { opacity: 1; transform: none; }
.curve-foot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: clamp(30px, 4vw, 50px) var(--pad) 0; text-align: center; }
.curve-foot div { display: grid; gap: 4px; }
.curve-foot span:last-child { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }

/* Project cards (2 columns) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 3vw, 44px) 14px; margin-top: clamp(40px, 5vw, 70px); }
.card { display: block; }
.card .img { aspect-ratio: 16 / 10; }
.card:hover .img img { transform: scale(1.035); }
.card__body { padding: 18px 4px 0; display: grid; gap: 8px; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.card__title { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.card__meta { font-size: 12.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.card__desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; max-width: 58ch; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .pill { margin-top: 6px; justify-self: start; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--3 .img { aspect-ratio: 3 / 2; }
.card.is-hidden, .row.is-hidden { display: none; }

/* Coming soon / CTA panels */
.panel-cta { position: relative; margin: clamp(80px, 10vw, 150px) var(--edge) 0; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; min-height: clamp(420px, 52vw, 640px); display: flex; align-items: flex-end; background: #000; }
.panel-cta > .img { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.panel-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,8,7,0.82) 0%, rgba(8,8,7,0.45) 55%, rgba(8,8,7,0.3) 100%), linear-gradient(0deg, rgba(8,8,7,0.65), rgba(8,8,7,0.1) 60%); }
.panel-cta__body { width: 100%; padding: var(--pad); }
.panel-cta__body .panel-hero__grid { align-items: end; }
.panel-cta .strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.panel-cta .strip .img { aspect-ratio: 4 / 3; border-radius: var(--r-sm); cursor: zoom-in; }
.panel-cta .strip .img:hover img { transform: scale(1.05); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(201,171,123,0.6); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(201,171,123,0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(201,171,123,0); } }

/* Rounded row list (projects / credits) */
.rows { display: grid; gap: 10px; margin-top: clamp(36px, 4vw, 60px); }
.row a, .row > div {
  display: grid; grid-template-columns: 56px minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 20px; align-items: center;
  padding: 20px 22px; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.5s var(--ease);
}
.row a:hover { background: var(--panel-2); border-color: var(--line); }
.rows.is-hovering .row a:not(:hover) { opacity: 0.55; }
.row a { transition: background 0.35s ease, border-color 0.35s ease, opacity 0.35s ease; }
.row__thumb { width: 56px; aspect-ratio: 1; border-radius: 10px; }
.row__main { display: grid; gap: 2px; min-width: 0; }
.row__role { font-size: 12px; font-weight: 600; color: var(--accent); }
.row__title { font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.row__dir { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__year { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--panel-3); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   PROJECTS PAGE
   ========================================================================== */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: clamp(36px, 4vw, 56px); }
.segment { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.segment button { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-3); transition: background 0.3s ease, color 0.3s ease; }
.segment button sup { font-size: 9.5px; margin-left: 3px; color: inherit; opacity: 0.7; }
.segment button:hover { color: var(--ink); }
.segment button.is-active { background: var(--ink); color: var(--accent-ink); }

/* Hover preview for the list */
.hover-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: clamp(240px, 22vw, 360px); aspect-ratio: 3 / 2;
  opacity: 0; transition: opacity 0.3s ease;
}
.hover-preview.is-visible { opacity: 1; }
.hover-preview__inner { position: absolute; inset: 0; border-radius: var(--r-md); overflow: hidden; background: var(--panel-2); box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.hover-preview__inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.hover-preview__inner img.is-on { opacity: 1; }

/* ==========================================================================
   PROJECT PAGE
   ========================================================================== */
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 5vw, 70px); }
.fact { background: var(--panel); border-radius: var(--r-md); padding: 0 20px 22px; display: grid; gap: 6px; align-content: start; }
.fact::before { content: ""; display: block; height: 2px; width: 46%; background: var(--accent); margin-bottom: 22px; border-radius: 0 0 2px 2px; }
.fact .num { color: var(--accent); }
.fact b { font-weight: 700; font-size: 16px; letter-spacing: -0.015em; line-height: 1.3; }
.fact span:last-child { font-size: 12.5px; color: var(--ink-3); }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: clamp(50px, 6vw, 90px); }
.shot { margin: 0; cursor: zoom-in; }
.shot .img { border-radius: var(--r-lg); }
.shot:hover .img img { transform: scale(1.025); }
.shot--full { grid-column: 1 / -1; }
.shot--wide { grid-column: 1 / -1; }
.shot--half-a { grid-column: 1 / span 6; }
.shot--half-b { grid-column: 7 / span 6; }
.shot--big-a { grid-column: 1 / span 7; }
.shot--big-b { grid-column: 8 / span 5; }
.shot--small-a { grid-column: 1 / span 5; }
.shot--small-b { grid-column: 6 / span 7; }
.shot--portrait-a { grid-column: 1 / span 6; }
.shot--portrait-b { grid-column: 7 / span 6; }
.shot--portrait-solo { grid-column: 4 / span 6; }
.shot--pair .img { height: 100%; }
.gallery .shot--pair { display: flex; }
.gallery .shot--pair .img { flex: 1; }

.keyart { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(36px, 4vw, 56px); }
.keyart figure { margin: 0; width: clamp(150px, 17vw, 240px); cursor: zoom-in; }
.keyart .img { border-radius: var(--r-md); }
.keyart figure:hover .img img { transform: scale(1.04); }

.next { position: relative; display: block; margin: clamp(80px, 10vw, 150px) var(--edge) 0; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; min-height: clamp(340px, 42vw, 520px); }
.next > .img { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.next > .img img { opacity: 1; transform: scale(1.05); }
.next:hover > .img img { transform: scale(1); }
.next::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,8,7,0.85), rgba(8,8,7,0.25)); transition: opacity 0.6s ease; }
.next:hover::after { opacity: 0.75; }
.next__body { position: absolute; inset: auto 0 0 0; padding: var(--pad); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.backlinks { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 22px var(--pad) 0; max-width: var(--max); margin: 0 auto; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.backlinks a:hover { color: var(--ink); }

/* ==========================================================================
   ABOUT / CONTACT
   ========================================================================== */
.bio { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); max-width: 62ch; margin: 0; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 5vw, 70px); }

.contact-card { background: var(--panel); border-radius: var(--r-xl); padding: clamp(10px, 1.6vw, 20px); display: grid; gap: 8px; }
.contact-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 18px; border-radius: var(--r-md); background: var(--panel-2); }
.contact-row dt { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.contact-row dd { margin: 0; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; min-width: 0; overflow-wrap: anywhere; }
.contact-row a:hover { color: var(--accent); }
.contact-row .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.copy { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--panel-3); font-size: 12px; font-weight: 600; color: var(--ink-2); transition: background 0.3s, color 0.3s; }
.copy:hover { background: var(--ink); color: var(--accent-ink); }
.big-mail { display: inline-block; font-weight: 700; font-size: clamp(30px, 4.6vw, 70px); letter-spacing: -0.04em; line-height: 1; margin-top: 26px; background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat; padding-bottom: 6px; transition: background-size 0.7s var(--ease); overflow-wrap: anywhere; }
.big-mail:hover { background-size: 100% 2px; }

/* ---------- Footer ---------- */
.footer { margin: clamp(80px, 10vw, 150px) var(--edge) var(--edge); border-radius: var(--r-xl); background: var(--panel); }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: center; padding: 30px var(--pad); }
.footer__brand { display: grid; gap: 2px; }
.footer__name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.footer__role { font-size: 12.5px; color: var(--ink-3); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); }
.footer__copy { font-size: 12px; color: var(--ink-3); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(6,6,5,0.96); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.35s ease; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 76px clamp(16px, 7vw, 110px); }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-md); transition: opacity 0.3s ease, transform 0.5s var(--ease); }
.lightbox__img.is-switching { opacity: 0; transform: scale(0.985); }
.lightbox__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 24px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lightbox__close { position: absolute; top: 20px; right: var(--pad); height: 40px; padding: 0 16px; border-radius: 999px; background: var(--panel-3); font-size: 13px; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; }
.lightbox__nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 50%; background: var(--panel-3); display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.lightbox__nav:hover { background: var(--ink); color: var(--accent-ink); }
.lightbox__nav--prev { left: var(--pad); }
.lightbox__nav--next { right: var(--pad); }
body.no-scroll { overflow: hidden; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .panel-hero__title { grid-column: 1 / -1; }
  .panel-hero__aside { grid-column: 1 / span 8; padding-bottom: 0; }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row a, .row > div { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .row__dir { display: none; }
}

@media (max-width: 760px) {
  :root { --edge: 8px; --r-xl: 22px; --r-lg: 16px; }
  .topnav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .dock { left: var(--edge); right: var(--edge); padding-left: 18px; gap: 12px; transform: translateY(-140%); justify-content: space-between; }
  .dock.is-shown { transform: none; }
  .dock__nav { display: none; }
  .panel-hero { min-height: 520px; }
  .panel-hero--mid { height: 74vh; height: 74svh; }
  .panel-hero::after { background: linear-gradient(180deg, rgba(8,8,7,0.6) 0%, rgba(8,8,7,0.05) 28%, rgba(8,8,7,0.35) 55%, rgba(8,8,7,0.9) 100%); }
  .panel-hero__aside { grid-column: 1 / -1; }
  .panel-hero__aside .small { display: none; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .split__a, .split__b { grid-column: 1 / -1; }
  .split__b { padding-top: 0; }
  .marquee-wrap { grid-template-columns: 1fr; gap: 14px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:nth-child(3) { display: none; }
  .curve-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .cards--3 { grid-template-columns: 1fr; }
  .panel-cta .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row a, .row > div { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .row__thumb { width: 52px; }
  .row__year { display: none; }
  .rows.is-hovering .row a:not(:hover) { opacity: 1; }
  .gallery { gap: 8px; }
  .shot--half-a, .shot--half-b, .shot--big-a, .shot--big-b, .shot--small-a, .shot--small-b, .shot--wide { grid-column: 1 / -1; }
  .shot--portrait-a { grid-column: 1 / span 6; }
  .shot--portrait-b { grid-column: 7 / span 6; }
  .shot--portrait-solo { grid-column: 1 / -1; }
  .facts, .services { grid-template-columns: 1fr 1fr; }
  .contact-row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .contact-row dt { grid-column: 1 / -1; }
  .footer__inner { grid-template-columns: 1fr; }
  .lightbox__nav { top: auto; bottom: 70px; margin-top: 0; }
}

@media (hover: none) { .hover-preview { display: none; } .curve__label { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 760px) { .dock .pill { display: none; } }
.panel-hero__media .img { height: 100%; border-radius: 0; }
