/* ═══════════════════════════════════════════════════════════════
   DEVELECOR — design system
   Palette: ink / porcelain / brass / ember  ·  "golden hour" dusk
   Type: Fraunces (display) · Space Grotesk (labels, body)
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/Fraunces-var.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/FrauncesItalic-var.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/SpaceGrotesk-var.ttf') format('truetype-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0c11;
  --ink-2: #10131b;
  --ink-3: #151926;
  --porcelain: #f0eadd;
  --stone: #9a948a;
  --brass: #c9a05e;
  --brass-bright: #ecd3a0;
  --ember: #d0783f;
  --line: rgba(240, 234, 221, 0.12);
  --line-soft: rgba(240, 234, 221, 0.07);
  --pad-x: clamp(20px, 6vw, 96px);
  --pad-y: clamp(84px, 13vh, 156px);
  --font-d: 'Fraunces', Georgia, serif;
  --font-s: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--porcelain);
  font-family: var(--font-s);
  font-weight: 340;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--brass); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-d);
  font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 20, 'WONK' 0;
  letter-spacing: -0.015em;
  line-height: 1;
}
h1 em, h2 em, h3 em, .manifesto__text em {
  font-style: italic;
  color: var(--brass);
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 1;
}

/* ── labels ─────────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.section-head__no {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 15px;
  color: var(--brass);
}
.section-head__label {
  font-size: 11.5px;
  font-weight: 480;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--stone);
}
.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-soft);
  transform: translateY(-4px);
}

/* ═══ PRELOADER ═════════════════════════════════════════════ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink);
  display: grid; place-items: center;
}
.preloader__inner { width: min(560px, 84vw); text-align: center; }
.preloader__word {
  font-family: var(--font-d);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 340;
  letter-spacing: 0.12em;
  display: flex; justify-content: center;
  overflow: hidden;
  margin-bottom: 28px;
}
.preloader__word span { display: inline-block; }
.preloader__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
  opacity: 0;
}
.preloader__tag {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--stone);
}
.preloader__count {
  font-family: var(--font-d); font-style: italic;
  font-size: 15px; color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.preloader__bar {
  height: 1px; background: var(--line);
  overflow: hidden;
}
.preloader__bar i {
  display: block; height: 100%; width: 100%;
  background: var(--brass);
  transform: scaleX(0); transform-origin: left;
}

/* ═══ CHROME ════════════════════════════════════════════════ */
.grain {
  position: fixed; inset: -100px; z-index: 9000;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-30px, 12px); }
  40% { transform: translate(18px, -24px); }
  60% { transform: translate(-12px, 30px); }
  80% { transform: translate(24px, 6px); }
  100% { transform: translate(0, 0); }
}

.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed; top: 0; left: 0; z-index: 10001;
    pointer-events: none;
  }
  .cursor__dot {
    position: absolute; top: -3px; left: -3px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brass);
  }
  .cursor__ring {
    position: absolute; top: -18px; left: -18px;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(201, 160, 94, 0.45);
    transition: transform 0.32s var(--ease-out), opacity 0.32s;
  }
  .cursor.is-link .cursor__ring { transform: scale(1.7); opacity: 0.9; border-color: var(--brass); }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ═══ NAV ═══════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad-x);
  transition: transform 0.5s var(--ease-out), background 0.4s, padding 0.4s;
}
.nav.is-scrolled {
  background: rgba(10, 12, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px var(--pad-x);
  border-bottom: 1px solid var(--line-soft);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-d);
  font-size: 20px; font-weight: 420;
  letter-spacing: 0.02em;
}
.nav__mark { width: 26px; height: 26px; fill: var(--brass); }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 38px); }
.nav__links a {
  position: relative;
  font-size: 11.5px; font-weight: 460;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--stone);
  transition: color 0.3s;
  padding: 6px 0;
}
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--porcelain); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid rgba(201, 160, 94, 0.5);
  border-radius: 100px;
  padding: 11px 22px;
  color: var(--brass-bright);
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.nav__cta:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  background: none; border: none;
  flex-direction: column; justify-content: center; gap: 7px;
}
.nav__burger i {
  display: block; height: 1.5px; width: 26px;
  background: var(--porcelain);
  margin-left: 7px;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav__burger.is-open i:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__burger.is-open i:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(10, 12, 17, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__inner {
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x);
  gap: 48px;
}
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-family: var(--font-d);
  font-size: clamp(38px, 9vw, 64px);
  font-weight: 360;
  line-height: 1.24;
  display: flex; align-items: baseline; gap: 18px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s;
  transition-delay: calc(var(--i) * 60ms);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu__links a:hover { color: var(--brass); }
.menu__links em {
  font-size: 13px; color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.menu__foot { display: flex; gap: 32px; flex-wrap: wrap; }
.menu__foot a { font-size: 14px; color: var(--stone); }
.menu__foot a:hover { color: var(--brass-bright); }

/* ═══ BUTTONS ═══════════════════════════════════════════════ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-s);
  font-size: 12px; font-weight: 520;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 100px;
  padding: 17px 32px;
  overflow: hidden;
  transition: color 0.4s var(--ease-out), border-color 0.4s, transform 0.4s var(--ease-out);
}
.btn svg { width: 13px; height: 13px; transition: transform 0.4s var(--ease-out); }
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 100px;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--brass); color: var(--ink); }
.btn--solid::before { background: var(--brass-bright); }
.btn--solid:hover::before { transform: scaleY(1); }
.btn--solid:hover svg { transform: translateY(3px); }
.btn--solid svg { position: relative; z-index: 1; }
.btn--ghost { border: 1px solid var(--line); color: var(--porcelain); }
.btn--ghost::before { background: rgba(240, 234, 221, 0.06); }
.btn--ghost:hover { border-color: rgba(201, 160, 94, 0.6); }
.btn--ghost:hover::before { transform: scaleY(1); }
.btn--lg { padding: 21px 40px; font-size: 13px; }

/* ═══ HERO ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: clip;
}
.hero__scene { position: absolute; inset: 0; }
.hero__scene canvas { width: 100%; height: 100%; display: block; }
.hero__fallback {
  position: absolute; inset: 0;
  opacity: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 400' preserveAspectRatio='xMidYMax slice'%3E%3Cpath fill='%2307080d' d='M0 400 V330 H60 V300 H120 V340 H180 V260 H240 V320 H300 V290 H360 V330 H430 V240 H490 V300 H560 V210 H620 V280 H690 V150 H750 V240 H800 V120 H870 V220 H930 V180 H1000 V260 H1060 V230 H1130 V300 H1200 V270 H1280 V320 H1360 V290 H1440 V340 H1520 V310 H1600 V400 Z'/%3E%3C/svg%3E") bottom center / 100% auto no-repeat,
    radial-gradient(120% 70% at 68% 88%, rgba(208, 120, 63, 0.55) 0%, rgba(208, 120, 63, 0) 55%),
    linear-gradient(180deg, #0a0c14 0%, #131b36 38%, #3a2f4e 62%, #6e4344 78%, #a05c38 92%, #c87a42 100%);
  transition: opacity 0.8s;
}
.hero.no-webgl .hero__fallback { opacity: 1; }
.hero.no-webgl canvas { display: none; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 17, 0.42) 0%, rgba(10, 12, 17, 0) 30%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 12, 17, 0) 26%),
    linear-gradient(90deg, rgba(10, 12, 17, 0.62) 0%, rgba(10, 12, 17, 0.25) 38%, rgba(10, 12, 17, 0) 60%);
  pointer-events: none;
}
.hero__content {
  position: relative; z-index: 2;
  padding: 0 var(--pad-x);
  max-width: 1200px;
  margin-top: 4vh;
}
.hero__kicker {
  display: flex; align-items: center; gap: 16px;
  font-size: 11.5px; font-weight: 470;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: clamp(22px, 3.4vh, 40px);
}
.hero__rule { width: 52px; height: 1px; background: var(--brass); flex: none; }
.hero__title {
  font-size: clamp(46px, 8.6vw, 124px);
  line-height: 0.99;
  margin-bottom: clamp(24px, 3.6vh, 42px);
  text-wrap: balance;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__sub {
  max-width: 560px;
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 330;
  line-height: 1.7;
  color: rgba(240, 234, 221, 0.82);
  margin-bottom: clamp(28px, 4.4vh, 48px);
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 var(--pad-x) 26px;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(240, 234, 221, 0.55);
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll span { letter-spacing: 0.3em; }
.hero__scroll i {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--brass), transparent);
  animation: scrollcue 2.2s var(--ease-out) infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══ MARQUEE ═══════════════════════════════════════════════ */
.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(20px, 3vh, 34px) 0;
  overflow: clip;
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  display: flex; align-items: center;
  font-family: var(--font-d);
  font-style: italic;
  font-weight: 320;
  font-size: clamp(26px, 4vw, 48px);
  color: rgba(240, 234, 221, 0.34);
  white-space: nowrap;
}
.marquee__track i {
  font-style: normal;
  font-size: 0.42em;
  color: var(--brass);
  margin: 0 1.4em;
  transform: translateY(-0.1em);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══ SECTIONS SHARED ═══════════════════════════════════════ */
.manifesto, .focus, .project, .philosophy, .principal, .contact {
  padding: var(--pad-y) var(--pad-x);
  position: relative;
}

/* ═══ 01 MANIFESTO ══════════════════════════════════════════ */
.manifesto__text {
  font-family: var(--font-d);
  font-weight: 350;
  font-variation-settings: 'opsz' 100, 'SOFT' 30;
  font-size: clamp(27px, 4.1vw, 54px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  max-width: 1150px;
  text-wrap: pretty;
}
.manifesto__text .w { display: inline-block; }
.manifesto__now {
  margin-top: clamp(48px, 7.5vh, 88px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
  max-width: 1050px;
}
.now { border-top: 1px solid var(--line); padding-top: 22px; }
.now__verb {
  display: block;
  font-family: var(--font-d);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 350;
  color: var(--brass-bright);
  font-variation-settings: 'opsz' 100, 'SOFT' 60, 'WONK' 1;
  margin-bottom: 12px;
}
.now p {
  font-size: 14px; font-weight: 330;
  color: var(--stone);
  line-height: 1.65;
  max-width: 34ch;
}

/* ═══ 02 FOCUS ══════════════════════════════════════════════ */
.focus__title {
  font-size: clamp(40px, 6vw, 84px);
  margin-bottom: clamp(48px, 7vh, 88px);
}
.focus__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.6vw, 36px);
}
.card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--ink-2) 0%, #0c0f16 100%);
  overflow: hidden;
  transition: transform 0.55s var(--ease-out), border-color 0.55s, box-shadow 0.55s;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 160, 94, 0.35);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.card__fig {
  position: relative;
  padding: clamp(20px, 2.4vw, 34px);
  background:
    radial-gradient(90% 90% at 50% 115%, rgba(208, 120, 63, 0.16) 0%, rgba(208, 120, 63, 0) 60%),
    repeating-linear-gradient(0deg, transparent 0 27px, var(--line-soft) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--line-soft) 27px 28px);
  border-bottom: 1px solid var(--line-soft);
}
.card:hover .card__fig { background-color: rgba(208, 120, 63, 0.03); }
.card__sheet {
  position: absolute; top: 14px; right: 16px;
  font-size: 9.5px; letter-spacing: 0.22em;
  color: rgba(201, 160, 94, 0.6);
}
.card__body {
  padding: clamp(22px, 2.6vw, 34px);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 22px;
}
.card__no {
  font-family: var(--font-d); font-style: italic;
  font-size: 14px; color: var(--brass);
  padding-top: 6px;
}
.card__body h3 { font-size: clamp(24px, 2.3vw, 32px); margin-bottom: 12px; }
.card__body p {
  grid-column: 2;
  font-size: 14.5px; font-weight: 330;
  color: var(--stone);
  line-height: 1.65;
  max-width: 46ch;
}

/* drawings */
.drawing { width: 100%; height: auto; }
.drawing .ln {
  fill: none;
  stroke: rgba(240, 234, 221, 0.75);
  stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.drawing .ln-b { stroke: var(--brass); }
.drawing .ln-thin { stroke-width: 0.8; stroke: rgba(240, 234, 221, 0.4); }
.drawing .glz {
  fill: rgba(212, 137, 74, 0.13);
  transition: fill 0.6s;
}
.card:hover .glz, .project__board:hover .glz { fill: rgba(226, 150, 82, 0.28); }
.drawing .ln-dim {
  stroke: rgba(201, 160, 94, 0.55);
  stroke-width: 0.8;
  fill: none;
}
.drawing .dim-t {
  fill: rgba(201, 160, 94, 0.85);
  font-family: var(--font-s);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}
.drawing .dim-t--plate { font-size: 8px; fill: var(--brass-bright); letter-spacing: 0.08em; }
.drawing .dim-t--tb { font-size: 13px; fill: rgba(240, 234, 221, 0.8); letter-spacing: 0.24em; }
.drawing .dim-t--tb2 { font-size: 9.5px; fill: rgba(154, 148, 138, 0.9); letter-spacing: 0.2em; }
.drawing--xl .ln { stroke-width: 1.2; }

/* ═══ 03 PROJECT ════════════════════════════════════════════ */
.project {
  background: linear-gradient(180deg, var(--ink) 0%, #0d1019 30%, #0d1019 70%, var(--ink) 100%);
}
.project__head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: clamp(36px, 5vh, 60px);
}
.project__title { font-size: clamp(52px, 8vw, 120px); }
.project__loc {
  font-size: 11.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone);
}
.project__board {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: clamp(24px, 3.6vw, 56px);
  background:
    radial-gradient(70% 80% at 50% 110%, rgba(208, 120, 63, 0.14) 0%, rgba(208, 120, 63, 0) 62%),
    repeating-linear-gradient(0deg, transparent 0 32px, var(--line-soft) 32px 33px),
    repeating-linear-gradient(90deg, transparent 0 32px, var(--line-soft) 32px 33px),
    linear-gradient(180deg, #0f121b 0%, #0b0e15 100%);
  transition: border-color 0.5s;
}
.project__board:hover { border-color: rgba(201, 160, 94, 0.3); }
.project__grid {
  margin-top: clamp(36px, 5vh, 64px);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.project__desc {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 330;
  line-height: 1.75;
  color: rgba(240, 234, 221, 0.85);
  max-width: 60ch;
}
.project__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 32px;
}
.project__stats div { border-top: 1px solid var(--line); padding-top: 16px; }
.project__stats dt {
  font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
}
.project__stats dd {
  font-family: var(--font-d);
  font-size: clamp(20px, 1.9vw, 27px);
  color: var(--brass-bright);
}

/* ═══ GALLERY ═══════════════════════════════════════════════ */
.gallery { margin-top: clamp(56px, 8.5vh, 104px); }
.gallery__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vh, 56px);
}
.gallery__title { font-size: clamp(32px, 4.4vw, 62px); }
.gallery__note {
  max-width: 380px;
  font-size: 14px; font-weight: 330;
  color: var(--stone);
  line-height: 1.7;
}
.gallery figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.45s, transform 0.55s var(--ease-out), box-shadow 0.55s;
}
.gallery figure:hover {
  border-color: rgba(201, 160, 94, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.85);
}
.gallery figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 0.9s var(--ease-out);
}
.gallery figure:hover img { transform: scale(1.045); }
.gallery figure::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(208, 120, 63, 0.05) 0%, rgba(10, 12, 17, 0) 40%, rgba(10, 12, 17, 0.18) 100%);
  pointer-events: none;
}
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 12px 16px;
  font-size: 10.5px; font-weight: 480;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(240, 234, 221, 0.9);
  background: linear-gradient(0deg, rgba(10, 12, 17, 0.78) 0%, rgba(10, 12, 17, 0) 100%);
}
.gallery__lead { aspect-ratio: 21 / 9; cursor: default; }
.gallery__lead video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}
.gallery__lead:hover { transform: none; }
.gallery__lead figcaption {
  display: flex; align-items: baseline; gap: 14px;
  padding: 18px 22px;
  font-size: 11px;
}
.gallery__lead figcaption span {
  color: var(--brass-bright);
  font-family: var(--font-d);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.gallery__floor { margin-top: clamp(36px, 5vh, 56px); }
.gallery__floorhead {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 20px;
}
.gallery__no {
  font-family: var(--font-d); font-style: italic;
  font-size: 15px; color: var(--brass);
}
.gallery__floorhead h4 {
  font-family: var(--font-d);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 380;
  letter-spacing: -0.01em;
}
.gallery__floorhead i { flex: 1; height: 1px; background: var(--line-soft); transform: translateY(-4px); }
.gallery__unit {
  font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--stone);
}
.gallery__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.gallery__row figure { aspect-ratio: 4 / 3; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(7, 8, 12, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure {
  max-width: min(1240px, 92vw);
  max-height: 86vh;
  margin: 0;
  transform: scale(0.96);
  transition: transform 0.45s var(--ease-out);
}
.lightbox.is-open figure { transform: scale(1); }
.lightbox img {
  max-width: 100%; max-height: 80vh;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.lightbox figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--stone);
}
.lightbox__close {
  position: absolute; top: 22px; right: 30px;
  width: 52px; height: 52px;
  background: none; border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--porcelain);
  font-size: 26px; line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.lightbox__close:hover { border-color: var(--brass); color: var(--brass-bright); transform: rotate(90deg); }

/* ═══ 04 PROCESS ════════════════════════════════════════════ */
.process { position: relative; }
.process__pin {
  padding: var(--pad-y) 0 var(--pad-y) var(--pad-x);
  overflow: clip;
}
.process .section-head { margin-right: var(--pad-x); }
.process__title {
  font-size: clamp(40px, 6vw, 84px);
  margin-bottom: clamp(36px, 5vh, 60px);
}
.process__track {
  position: relative;
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  width: max-content;
  padding-right: var(--pad-x);
  padding-top: 24px;
}
.process__track::before {
  content: '';
  position: absolute; top: 24px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, var(--line-soft) 85%, transparent 100%);
  transform: translateY(-0.5px);
}
.step {
  width: clamp(280px, 30vw, 420px);
  border-left: 1px solid var(--line);
  padding: 8px 0 8px clamp(20px, 2vw, 32px);
  position: relative;
}
.step::before {
  content: '';
  position: absolute; left: -3.5px; top: -3px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 12px 2px rgba(201, 160, 94, 0.5);
}
.step__no {
  display: block;
  font-family: var(--font-d); font-style: italic;
  font-size: clamp(44px, 4.6vw, 68px);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 160, 94, 0.75);
  margin-bottom: 26px;
  line-height: 1;
}
.step h3 { font-size: clamp(24px, 2.2vw, 31px); margin-bottom: 14px; }
.step p {
  font-size: 14.5px; font-weight: 330;
  color: var(--stone);
  line-height: 1.7;
  max-width: 40ch;
}

/* ═══ 05 PHILOSOPHY ═════════════════════════════════════════ */
.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.tenet {
  padding: clamp(28px, 3vw, 44px);
  border-left: 1px solid var(--line-soft);
}
.tenet:first-child { border-left: none; padding-left: 0; }
.tenet__no {
  display: block;
  font-family: var(--font-d); font-style: italic;
  font-size: 15px;
  color: var(--brass);
  margin-bottom: 22px;
}
.tenet h3 { font-size: clamp(23px, 2.1vw, 30px); margin-bottom: 16px; max-width: 8ch; }
.tenet p {
  font-size: 14.5px; font-weight: 330;
  color: var(--stone);
  line-height: 1.7;
}

/* ═══ 06 PRINCIPAL ══════════════════════════════════════════ */
.principal { background: linear-gradient(180deg, var(--ink) 0%, #0d1019 45%, var(--ink) 100%); }
.principal__grid {
  display: grid;
  grid-template-columns: 1.1fr auto 1fr;
  gap: clamp(32px, 4.5vw, 80px);
  align-items: start;
}
.principal__photo {
  position: relative;
  width: clamp(220px, 23vw, 320px);
  aspect-ratio: 4 / 5;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-2);
  transition: border-color 0.5s;
}
.principal__photo:hover { border-color: rgba(201, 160, 94, 0.4); }
.principal__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) contrast(1.03) brightness(0.96);
}
.principal__photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(208, 120, 63, 0.06) 0%, rgba(10, 12, 17, 0) 45%, rgba(10, 12, 17, 0.3) 100%);
  pointer-events: none;
}
.principal__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 12px 16px;
  font-size: 10.5px; font-weight: 480;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(240, 234, 221, 0.9);
  background: linear-gradient(0deg, rgba(10, 12, 17, 0.72) 0%, rgba(10, 12, 17, 0) 100%);
}
.principal__title { font-size: clamp(44px, 6.4vw, 92px); }
.principal__body p {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 330;
  line-height: 1.75;
  color: rgba(240, 234, 221, 0.85);
  max-width: 54ch;
}
.principal__sig {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 6px;
}
.principal__sig em {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 44px;
  color: var(--brass);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.principal__sig span {
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--stone);
}
.partners {
  margin-top: clamp(56px, 8.5vh, 104px);
  border-top: 1px solid var(--line-soft);
  padding-top: 36px;
  display: flex; align-items: baseline; gap: 40px; flex-wrap: wrap;
}
.partners__label {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone);
  flex: none;
}
.partners__row {
  display: flex; flex-wrap: wrap; gap: 12px 0;
}
.partners__row span {
  font-family: var(--font-d);
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 350;
  color: rgba(240, 234, 221, 0.62);
  transition: color 0.3s;
}
.partners__row span:hover { color: var(--brass-bright); }
.partners__row span:not(:last-child)::after {
  content: '·';
  color: var(--brass);
  margin: 0 18px;
}

/* ═══ 07 CONTACT ════════════════════════════════════════════ */
.contact {
  position: relative;
  padding-bottom: clamp(72px, 10vh, 120px);
  overflow: clip;
  text-align: left;
}
.contact__glow {
  position: absolute; inset: auto -20% -30% -20%;
  height: 110%;
  background: radial-gradient(60% 62% at 42% 100%, rgba(208, 120, 63, 0.42) 0%, rgba(201, 160, 94, 0.14) 48%, transparent 74%);
  pointer-events: none;
}
.contact__title {
  position: relative;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 1;
  margin-bottom: clamp(24px, 4vh, 40px);
}
.contact__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.04em; }
.contact__title .line > span { display: inline-block; }
.contact__sub {
  position: relative;
  max-width: 520px;
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 330;
  line-height: 1.7;
  color: rgba(240, 234, 221, 0.8);
  margin-bottom: clamp(32px, 5vh, 52px);
}
.contact__paths {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
  margin-bottom: clamp(36px, 5.5vh, 56px);
}
.path {
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  transition: border-color 0.4s;
}
.path:hover { border-color: rgba(201, 160, 94, 0.55); }
.path__who {
  font-family: var(--font-d);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--porcelain);
  letter-spacing: -0.01em;
}
.path p {
  font-size: 13.5px; font-weight: 330;
  color: var(--stone);
  line-height: 1.6;
  flex: 1;
}
.path__go {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 520;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass);
  transition: color 0.3s;
}
.path__go i { font-style: normal; transition: transform 0.35s var(--ease-out); }
.path:hover .path__go { color: var(--brass-bright); }
.path:hover .path__go i { transform: translateX(5px); }
.contact__actions { position: relative; display: flex; gap: 18px; flex-wrap: wrap; }

/* ═══ FOOTER ════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px var(--pad-x);
}
.footer__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone);
}
.footer__top { transition: color 0.3s; }
.footer__top:hover { color: var(--brass-bright); }

/* ═══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .nav__links { display: none; }
}
@media (max-width: 900px) {
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .focus__grid { grid-template-columns: 1fr; }
  .project__grid { grid-template-columns: 1fr; }
  .philosophy__grid { grid-template-columns: 1fr; }
  .tenet { border-left: none; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 28px; }
  .tenet:first-child { border-top: none; padding-top: 0; }
  .principal__grid { grid-template-columns: 1fr; }
  .principal__photo { width: min(320px, 70vw); }
  .process__pin { padding-right: var(--pad-x); }
  .process__track { flex-direction: column; width: auto; gap: 40px; padding-right: 0; }
  .step { width: auto; max-width: 560px; }
  .manifesto__now { grid-template-columns: 1fr; gap: 26px; max-width: 460px; }
  .gallery__lead { aspect-ratio: 16 / 10; }
  .hero__foot .hero__coord { display: none; }
}
@media (max-width: 1080px) {
  .contact__paths { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .project__stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .contact__paths { grid-template-columns: 1fr; gap: 24px; }
  .hero__actions .btn { padding: 15px 26px; }
}

/* ═══ REDUCED MOTION ════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll i { animation: none; }
  .marquee__track { animation-duration: 160s; }
  html { scroll-behavior: auto; }
}
