@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* Palette — near-black base, warm off-white text, gold signal */
  --bg:          #05080F;
  --bg-2:        #09101C;
  --surface:     #0D1827;
  --text:        #EDE8DF;
  --text-dim:    #7A8FA3;
  --muted:       #5A7A8A;
  --accent:      #C4973E;
  --accent-hi:   #D9AE58;
  --border:      rgba(196,151,62,0.12);
  --border-hi:   rgba(196,151,62,0.28);

  /* Typography */
  --font-display: Palatino,"Palatino Linotype","Book Antiqua",'Cormorant Garamond',Georgia,serif;
  --font-body:    system-ui,-apple-system,"Segoe UI",Helvetica,sans-serif;
  --font-mono:    "SF Mono","Fira Mono","Menlo","Courier New",monospace;

  /* Motion */
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:      cubic-bezier(0.55, 0, 1, 0.45);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --dur-fast:     0.25s;
  --dur-mid:      0.55s;
  --dur-slow:     1.1s;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Lenis overrides this when active */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Static film-grain overlay — no animation to avoid compositing cost */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: 0.028;
  pointer-events: none;
  z-index: 9000;
}

/* Skip-to-content link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1.5rem;
  z-index: 99999;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* ── Utilities ── */
.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .section-wrap { padding: 5rem 1.5rem; }
}
/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  to { transform: translateY(0); }
}
@keyframes expandH {
  to { transform: scaleX(1); }
}
@keyframes barPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.3); }
}
@keyframes grain {
  0%  { transform: translate(0, 0); }
  10% { transform: translate(-3%, -4%); }
  20% { transform: translate(4%, 3%); }
  30% { transform: translate(-2%, 5%); }
  40% { transform: translate(3%, -3%); }
  50% { transform: translate(-4%, 2%); }
  60% { transform: translate(4%, -4%); }
  70% { transform: translate(-3%, 4%); }
  80% { transform: translate(3%, -5%); }
  90% { transform: translate(-4%, 3%); }
}
@keyframes preCountUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes curtainUp   { to { transform: translateY(-100%); } }
@keyframes curtainDown { to { transform: translateY(100%);  } }
@keyframes tickerMove  {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::after { animation: none !important; }
  .char { transform: none !important; opacity: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
#preloader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  overflow: hidden;
}

.pre-counter {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 14vw, 16rem);
  color: var(--text);
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  animation: preCountUp 0.4s var(--ease) 0.1s forwards;
}

.pre-bar {
  width: min(380px, 70vw);
  height: 1px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.pre-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

.pre-brand {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
}

/* Curtain panels that split to reveal site */
.pre-curtain {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  background: #000;
  pointer-events: none;
}
.pre-curtain--top { top: 0; transform-origin: top; }
.pre-curtain--bot { bottom: 0; transform-origin: bottom; }

#preloader.revealing .pre-curtain--top {
  animation: curtainUp   0.9s var(--ease) forwards;
}
#preloader.revealing .pre-curtain--bot {
  animation: curtainDown 0.9s var(--ease) forwards;
}

#preloader.done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease 0.85s;
}
/* ── Custom cursor — pointer devices only ── */
@media (hover: hover) {
  body, body * { cursor: none; }
}

#cursor-dot,
#cursor-ring,
#cursor-label {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

@media (hover: hover) {
  #cursor-dot, #cursor-ring, #cursor-label { display: block; }
}

#cursor-dot {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.2s var(--ease), height 0.2s var(--ease), opacity 0.2s;
}

#cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(196,151,62,0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition:
    width 0.45s var(--ease),
    height 0.45s var(--ease),
    border-color 0.45s,
    border-radius 0.45s;
}

/* Cursor label — appears on project rows */
#cursor-label {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
  transform: translate(-50%, -180%);
  opacity: 0;
  transition: opacity 0.25s;
}
#cursor-label.visible { opacity: 1; }

/* States */
body.cur-hover #cursor-dot { width: 6px; height: 6px; }
body.cur-hover #cursor-ring {
  width: 52px; height: 52px;
  border-color: var(--accent);
}
body.cur-view #cursor-dot { opacity: 0; }
body.cur-view #cursor-ring {
  width: 80px; height: 80px;
  border-color: transparent;
  background: var(--accent);
  opacity: 0.12;
}
body.cur-click #cursor-ring { width: 20px; height: 20px; }
/* ── Scroll progress ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 0%;
  background: var(--accent);
  z-index: 5000;
  pointer-events: none;
  transition: width 0.06s linear;
}

/* ── Navigation ── */
#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem;
  transition: padding 0.5s var(--ease);
  mix-blend-mode: difference; /* elegant inverts on bright bg */
}

/* Fallback when mix-blend-mode can't work well */
#nav.scrolled {
  background: rgba(5,8,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  mix-blend-mode: normal;
  padding: 1.2rem 3rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-right a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  opacity: 0.45;
  transition: opacity var(--dur-fast);
}
.nav-right a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav-right a:hover,
.nav-right a.active { opacity: 1; }
.nav-right a:hover::after,
.nav-right a.active::after { width: 100%; }

/* Social cluster in nav */
.nav-social {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-left: 0.4rem;
  border-left: 1px solid var(--border-hi);
  margin-left: -0.6rem;
}
.nav-social-link {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  opacity: 0.4;
  transition: opacity var(--dur-fast), color var(--dur-fast);
}
.nav-social-link:hover { opacity: 1; color: var(--accent); }

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(237,232,223,0.2);
  color: var(--text);
  padding: 0.3rem 0.7rem;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.lang-btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 4001;
}
.hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  #nav { padding: 1.5rem; mix-blend-mode: normal; background: transparent; }
  #nav.scrolled { padding: 1rem 1.5rem; }
  .hamburger { display: flex; }
  .nav-right {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    z-index: 3999;
  }
  .nav-right.open { display: flex; }
  .nav-right a { font-size: 1.2rem; opacity: 0.8; }
  .nav-social {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    gap: 1.1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
  .nav-social-link { font-size: 0.7rem; letter-spacing: 0.12em; opacity: 0.6; }
  .lang-btn {
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-color: var(--accent);
    color: var(--accent);
    margin-top: 1rem;
  }
}
#hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Ghost background title ── */
.hero-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}
.hero-ghost-text {
  font-family: var(--font-display);
  font-size: clamp(10rem, 28vw, 36rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0.022;
  white-space: nowrap;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── Vertical side labels ── */
.hero-aside {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 2.4s forwards;
}
.hero-aside--left  { left: 2.5rem; }
.hero-aside--right { right: 2.5rem; }

.aside-text {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.hero-aside--right .aside-text { transform: rotate(180deg); }

/* ── Main content ── */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.hero-pre {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

/* Title lines — each line wraps chars for mask animation */
.hero-title { font-family: var(--font-display); font-weight: 400; }

.hero-line {
  display: block;
  overflow: hidden;
  line-height: 0.88;
  white-space: nowrap; /* never break the title mid-word; size it to fit instead */
}

/* First line: "Les Productions" */
.hero-line:nth-child(1) {
  font-size: clamp(2.2rem, 5.5vw, 7.5rem);
  letter-spacing: 0.18em;
  color: var(--text);
}
/* Second line: "Navigateur" — the statement */
.hero-line:nth-child(2) {
  font-size: clamp(5rem, 15vw, 21rem);
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: -0.06em;
}

/* Individual characters */
.char {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.hero-line:nth-child(1) .char {
  animation: slideUp var(--dur-slow) var(--ease) forwards;
  animation-delay: calc(0.35s + var(--i, 0) * 0.038s);
}
.hero-line:nth-child(2) .char {
  animation: slideUp var(--dur-slow) var(--ease) forwards;
  animation-delay: calc(0.65s + var(--i, 0) * 0.048s);
}

.hero-rule {
  width: 0;
  height: 1px;
  background: var(--border-hi);
  margin: 2.5rem auto;
  animation: none;
  transform-origin: center;
  transform: scaleX(0);
  animation: expandH 0.9s var(--ease) 1.8s forwards;
}
@keyframes expandH {
  to { width: clamp(100px, 14vw, 200px); transform: scaleX(1); }
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.82rem, 1.3vw, 1rem);
  letter-spacing: 0.07em;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 2s forwards;
}

/* ── Scroll cue ── */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 2.6s forwards;
}
.hero-scroll-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: barPulse 2s ease-in-out 3s infinite;
  transform-origin: top;
}

@media (max-width: 768px) {
  .hero-aside { display: none; }
  .hero-line:nth-child(1) { font-size: clamp(1.7rem, 6.5vw, 7.5rem); letter-spacing: 0.1em; }
  .hero-line:nth-child(2) { font-size: clamp(2.6rem, 13.5vw, 10rem); letter-spacing: 0.02em; }
}
/* ── Manifesto / Statement Section ── */
#statement {
  background: var(--bg);
  padding: 14rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Decorative large number in corner */
#statement::before {
  content: '01';
  position: absolute;
  top: 3rem;
  right: 4rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0.4;
}

.statement-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.statement-eyebrow {
  margin-bottom: 3.5rem;
}

.statement-text {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 6rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--muted);
  /* Each word is a span.word */
}

.statement-text .word {
  display: inline;
  transition: color 0.6s var(--ease);
  white-space: pre;
}

.statement-text .word.lit {
  color: var(--text);
}

/* Italic emphasis */
.statement-text em {
  font-style: italic;
  color: inherit;
}

@media (max-width: 768px) {
  #statement { padding: 8rem 1.5rem; }
  #statement::before { display: none; }
}
/* ── Projects — vertical list layout ── */
#projects {
  background: var(--bg);
  position: relative;
}

.projects-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects-count {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ── List ── */
.projects-list {
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

.proj-row {
  display: block;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Accent line sweeps left → right on hover */
.proj-row::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
  z-index: 2;
}
.proj-row:hover::before { transform: scaleX(1); }

.proj-row-inner {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto 2.5rem;
  align-items: center;
  gap: 3rem;
  padding: 2.8rem 4rem;
  transition: padding-left 0.6s var(--ease), background 0.4s;
  position: relative;
  z-index: 1;
}
.proj-row:hover .proj-row-inner {
  padding-left: 5.5rem;
}

/* Index number */
.proj-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  align-self: start;
  padding-top: 0.25rem;
}

/* Title + logline */
.proj-title-group { overflow: hidden; }

.proj-title-group h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 5.5rem);
  line-height: 0.95;
  color: var(--text);
  transition: color 0.3s;
  letter-spacing: -0.01em;
}
.proj-row:hover .proj-title-group h3 { color: var(--accent); }

.proj-logline {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-dim);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.55s var(--ease), opacity 0.4s ease 0.1s, margin-top 0.3s;
}
.proj-row:hover .proj-logline {
  max-height: 5rem;
  opacity: 1;
  margin-top: 0.7rem;
}

/* Year + type */
.proj-meta {
  text-align: right;
}
.proj-meta-type {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.proj-meta-stage {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}

/* Arrow */
.proj-arrow {
  font-size: 1.1rem;
  color: var(--muted);
  transition: color 0.3s, transform 0.4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-row:hover .proj-arrow {
  color: var(--accent);
  transform: translate(5px, -2px);
}

/* ── Floating hover preview ── */
#proj-preview {
  position: fixed;
  width: 340px;
  height: 450px;
  pointer-events: none;
  z-index: 3000;
  opacity: 0;
  transform: translate(-50%, -60%) scale(0.88) rotate(3deg);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  border: 1px solid var(--border-hi);
  overflow: hidden;
  will-change: transform;
}
#proj-preview.visible {
  opacity: 1;
  transform: translate(-50%, -60%) scale(1) rotate(-1.5deg);
}

.preview-visual {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
}
/* Per-project backgrounds */
.preview-visual[data-proj="1"] { background: linear-gradient(155deg,#091422 0%,#0e2640 50%,#071828 100%); }
.preview-visual[data-proj="2"] { background: linear-gradient(155deg,#180e04 0%,#2e1e08 50%,#150b02 100%); }
.preview-visual[data-proj="3"] { background: linear-gradient(155deg,#090e14 0%,#121f2b 50%,#060b10 100%); }

.preview-artwork {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
}

.preview-label {
  position: absolute;
  bottom: 1.4rem;
  left: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

/* Grain on preview */
.preview-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ── Mobile fallback ── */
@media (max-width: 860px) {
  .proj-row-inner {
    grid-template-columns: 3.5rem 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
  .proj-meta, .proj-arrow { display: none; }
  .proj-logline { max-height: 5rem; opacity: 1; margin-top: 0.5rem; }
  .proj-row:hover .proj-row-inner { padding-left: 1.5rem; }
  #proj-preview { display: none; }
}

@media (max-width: 768px) {
  .projects-header { padding: 5rem 1.5rem 2rem; }
}
/* ── News / Momentum ── */
#news {
  background: var(--bg);
  position: relative;
}

.news-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 4rem;
}

.news-list {
  list-style: none;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.news-item {
  display: grid;
  grid-template-columns: 6rem 11rem 1fr;
  align-items: baseline;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.news-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.news-cat {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.news-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  line-height: 1.4;
  color: var(--text-dim);
  transition: color 0.3s;
}
.news-item:hover .news-title { color: var(--text); }

@media (max-width: 860px) {
  .news-inner { padding: 4rem 1.5rem; }
  .news-item { grid-template-columns: 1fr; gap: 0.35rem; padding: 1.2rem 0; }
}
/* ── About ── */
#about {
  background: var(--bg-2);
  position: relative;
}

#about::before {
  content: '02';
  position: absolute;
  top: 3rem;
  right: 4rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0.4;
}

/* Stats bar */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}

.stat {
  display: block;
  padding: 4rem;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background 0.4s;
  text-decoration: none;
  color: inherit;
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--surface); }

.stat-n {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 8rem);
  color: var(--accent);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.stat-l {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Copy */
.about-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 4rem 8rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.about-copy p {
  font-size: 0.94rem;
  color: var(--text-dim);
  line-height: 1.9;
}
.about-copy p + p { margin-top: 1.4rem; }

/* Approach — principles */
.about-approach {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4rem 8rem;
}

.principle-list {
  list-style: none;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.principle-item {
  display: grid;
  grid-template-columns: 3.5rem 12rem 1fr;
  align-items: baseline;
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.5s var(--ease);
}
.principle-item:hover { padding-left: 1rem; }

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.principle-label {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.01em;
}

.principle-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-dim);
}

@media (max-width: 860px) {
  .about-approach { padding: 0 1.5rem 5rem; }
  .principle-item { grid-template-columns: 2.5rem 1fr; gap: 0.5rem 1rem; }
  .principle-text { grid-column: 2; }
}

@media (max-width: 860px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-right: none; grid-column: 1 / -1; border-top: 1px solid var(--border); }
  .stat { padding: 2.5rem; }
  .about-body { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 1.5rem; }
  #about::before { display: none; }
}
/* ── Contact ── */
#contact {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '03';
  position: absolute;
  top: 3rem;
  right: 4rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0.4;
}

/* Ghost behind contact */
.contact-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}
.contact-ghost-text {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 24rem);
  font-weight: 400;
  color: #fff;
  opacity: 0.018;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10rem 4rem 8rem;
  position: relative;
  z-index: 1;
}

.contact-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 11rem);
  line-height: 0.9;
  color: var(--text);
  margin: 2.5rem 0 3.5rem;
  letter-spacing: -0.02em;
}
.contact-headline em {
  font-style: italic;
  color: var(--accent);
}

.contact-sub {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 3rem;
}

.contact-email-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.2rem;
  transition: color 0.3s, border-color 0.3s;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }

/* Magnetic CTA */
.contact-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
  margin-top: 4rem;
}
.contact-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* Audience routing */
.contact-routing {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  margin: 0 0 1rem;
}
.contact-routing li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.routing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Contact form ── */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin: 3rem 0 4rem;
  max-width: 680px;
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group--full { grid-column: 1 / -1; }

.form-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-hi);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.55rem 0;
  transition: border-color 0.3s;
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-input:focus { border-bottom-color: var(--accent); }
.form-input::placeholder { color: var(--muted); opacity: 0.5; }

.form-select {
  cursor: pointer;
  background: transparent;
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235A7A8A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}
.form-select option { background: var(--bg-2); color: var(--text); }

.form-textarea {
  resize: vertical;
  min-height: 6rem;
  font-family: var(--font-body);
  line-height: 1.65;
}

.form-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.form-submit {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--accent);
  padding: 0.7rem 1.8rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.form-submit:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.form-success {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.4s;
}
.form-success.visible { opacity: 1; }

@media (max-width: 768px) {
  .contact-inner { padding: 6rem 1.5rem 5rem; }
  .contact-ghost { display: none; }
  #contact::before { display: none; }
  .contact-email-wrap { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .contact-form { grid-template-columns: 1fr; }
  .form-group--full { grid-column: 1; }
}
/* ── Footer ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 4rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-social-link {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer-social-link:hover { color: var(--accent); }

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer-nav a:hover { color: var(--accent); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Territory readout — instrument-panel motif */
.footer-coords {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 0.9rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.coord-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
}
.coord-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: barPulse 2.4s ease-in-out infinite;
}

@media (max-width: 768px) {
  footer { padding: 2rem 1.5rem; grid-template-columns: 1fr; text-align: center; }
  .footer-nav, .footer-social { justify-content: center; }
  .footer-coords { padding: 0.9rem 1.5rem; justify-content: center; text-align: center; }
}
/* ── Project modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,8,15,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.modal.open .modal-backdrop { opacity: 1; }

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 95vw);
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  display: grid;
  grid-template-rows: 260px 1fr;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
}
.modal.open .modal-panel { transform: translateX(0); }

/* Artwork banner */
.modal-artwork {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-artwork-bg {
  position: absolute;
  inset: 0;
}
.modal-artwork[data-proj="1"] .modal-artwork-bg {
  background: linear-gradient(155deg,#091422 0%,#0e2640 50%,#071828 100%);
}
.modal-artwork[data-proj="2"] .modal-artwork-bg {
  background: linear-gradient(155deg,#180e04 0%,#2e1e08 50%,#150b02 100%);
}
.modal-artwork[data-proj="3"] .modal-artwork-bg {
  background: linear-gradient(155deg,#090e14 0%,#121f2b 50%,#060b10 100%);
}
.modal-artwork svg {
  position: relative;
  z-index: 1;
  opacity: 0.22;
  width: 55%;
}

/* Body */
.modal-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-eyebrow { margin-bottom: 0.2rem; }

.modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.01em;
}

.modal-meta-line {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 0.75rem;
}

.modal-logline {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-dim);
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
  margin: 0.5rem 0;
}

.modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.modal-detail-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.modal-detail-value {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Festival list inside modal */
.modal-festivals { border-top: 1px solid var(--border); padding-top: 1.2rem; }
.modal-festivals-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.modal-festivals-list li {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding-left: 1rem;
  position: relative;
}
.modal-festivals-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Close button */
.modal-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 10001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  opacity: 0;
  transition: opacity 0.4s var(--ease) 0.1s;
  pointer-events: none;
}
.modal.open .modal-close {
  opacity: 1;
  pointer-events: auto;
}
.modal-close:hover { background: var(--bg-2); border-color: var(--accent); }

@media (max-width: 768px) {
  .modal-panel {
    width: 100vw;
    grid-template-rows: 180px 1fr;
    transform: translateY(100%);
  }
  .modal.open .modal-panel { transform: translateY(0); }
  .modal-body { padding: 2rem 1.5rem; }
  .modal-close { top: auto; bottom: calc(100vh - 180px + 1rem); right: 1rem; }
}
