/* ============================================================
   Quentin Bonnardel — Personal site
   Premium dark, warm-gold accent. Fraunces + Inter + JetBrains Mono.
   ============================================================ */

:root {
  --bg:        #0A0908;
  --bg-2:      #121110;
  --bg-3:      #1A1816;
  --line:      rgba(245, 241, 234, 0.10);
  --line-2:    rgba(245, 241, 234, 0.18);
  --fg:        #F5F1EA;
  --fg-dim:    rgba(245, 241, 234, 0.62);
  --fg-mute:   rgba(245, 241, 234, 0.40);
  --gold:      #C8A45C;
  --gold-soft: #B8924A;
  --gold-glow: rgba(200, 164, 92, 0.18);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* film grain overlay over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

a { color: inherit; text-decoration: none; }

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

/* -------- type system -------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 0.96;
  font-variation-settings: "opsz" 144;
}

.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.h-section em {
  font-style: italic;
  color: var(--gold);
}

.lede {
  font-family: var(--sans);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 56ch;
  font-weight: 300;
}

.mono { font-family: var(--mono); }

/* -------- shared layout -------- */

section {
  padding: clamp(80px, 10vw, 160px) var(--pad-x);
  position: relative;
}

.wrap { max-width: var(--maxw); margin: 0 auto; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

.divider {
  height: 1px; background: var(--line);
  width: 100%;
}

/* -------- buttons -------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: #1a1208;
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--fg);
  border-color: var(--fg);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px -10px rgba(245, 241, 234, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* -------- intro loader -------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  padding: var(--pad-x);
  pointer-events: all;
}
.loader.gone {
  pointer-events: none;
  animation: loader-out 1.2s var(--ease-in-out) forwards;
}
@keyframes loader-out {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100%); opacity: 1; }
}

.loader-top, .loader-bottom {
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute);
}
.loader-top { align-items: start; }

.loader-mid {
  display: grid;
  place-items: center;
  position: relative;
}
.loader-logo {
  opacity: 0;
  animation: loader-logo-in 1.4s var(--ease-out) 0.2s forwards;
}
.loader-logo img {
  height: clamp(36px, 5vw, 64px);
  width: auto;
  display: block;
}
@keyframes loader-logo-in {
  0% { opacity: 0; transform: translateY(20px) scale(0.96); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.loader-bar {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 80px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--gold);
  animation: load-fill 1.6s var(--ease-in-out) forwards;
}
@keyframes load-fill { to { width: 100%; } }

.loader-counter {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--fg-mute);
  position: absolute; right: var(--pad-x); bottom: 56px;
}

/* -------- nav -------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  transition: background 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out);
}
.nav.scrolled {
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 24px;
  transition: opacity 0.4s var(--ease-out);
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo img {
  height: 100%;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  justify-content: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}
.nav-links a::before {
  content: attr(data-num);
  font-size: 9px;
  color: var(--gold);
  margin-right: 8px;
  opacity: 0.7;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; gap: 16px; justify-content: flex-end; align-items: center; }

.lang-toggle {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  padding: 8px 14px;
  color: var(--fg-mute);
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.lang-toggle button.active {
  background: var(--fg);
  color: var(--bg);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.4s var(--ease-out);
}
.nav-cta:hover { background: var(--gold); color: var(--bg); }
.nav-cta .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold);
  animation: pulse 2s infinite;
}
.nav-cta:hover .pulse { background: var(--bg); animation: none; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--gold-glow); }
  70%  { box-shadow: 0 0 0 8px rgba(200, 164, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 164, 92, 0); }
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}

/* -------- hero -------- */

.hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 48px;
  position: relative;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}
.hero-eyebrow { display: flex; flex-direction: column; gap: 6px; }
.hero-coords {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--fg-mute);
  text-transform: uppercase;
  text-align: right;
  display: flex; flex-direction: column; gap: 6px;
}
.hero-coords .now { color: var(--gold); }

.hero-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 900px) { .hero-stage { grid-template-columns: 1fr; } }

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 152px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
.hero-title .it {
  font-style: italic;
  color: var(--gold);
  display: block;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 1.1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 1.30s; }
.hero-title .line:nth-child(2) > span { animation-delay: 1.45s; }
.hero-title .line:nth-child(3) > span { animation-delay: 1.60s; }
@keyframes word-up { to { transform: translateY(0); } }

.hero-meta {
  margin-top: 36px;
  display: grid;
  gap: 24px;
  max-width: 520px;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 1.85s forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-meta p {
  color: var(--fg-dim);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  font-weight: 300;
}

.hero-cta-row {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 8px;
}

.hero-portrait {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 65% center;
  filter: contrast(1.05) saturate(0.92) brightness(0.94);
  transform: scale(1.08);
  animation: portrait-in 1.6s var(--ease-out) 1.2s both;
  will-change: transform;
}
@keyframes portrait-in {
  from { transform: scale(1.18); opacity: 0; }
  to   { transform: scale(1.08); opacity: 1; }
}
.hero-portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 9, 8, 0.55) 100%);
  pointer-events: none;
}

.hero-portrait-label {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg);
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-portrait-label small { color: var(--gold); }

.hero-portrait-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(245,241,234,0.18);
  pointer-events: none;
  z-index: 1;
}

.hero-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
@media (max-width: 800px) { .hero-bottom { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

.hero-stat .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--fg);
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.hero-stat .num em { color: var(--gold); font-style: italic; }
.hero-stat .lab {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 10px;
  max-width: 22ch;
}

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; color: var(--fg-mute);
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0;
  animation: fade-in 1s ease 2.4s forwards;
}
@keyframes fade-in { to { opacity: 1; } }
.scroll-hint .l {
  width: 1px; height: 36px; background: var(--line-2);
  position: relative; overflow: hidden;
}
.scroll-hint .l::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 14px; background: var(--gold);
  animation: scroll-tick 2s ease infinite;
}
@keyframes scroll-tick {
  0%   { top: -14px; }
  100% { top: 36px; }
}

/* -------- about (manifesto) -------- */

.about {
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

.about-left { position: sticky; top: 120px; }
.about-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.about-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 24px;
  font-variation-settings: "opsz" 144;
}
.about-title em { color: var(--gold); font-style: italic; }

.about-portrait-mini {
  margin-top: 48px;
  width: 200px;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--line-2);
}
.about-portrait-mini img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.4) contrast(1.05);
}

.about-body {
  display: grid;
  gap: 36px;
}
.about-body p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.4;
  color: var(--fg);
  font-variation-settings: "opsz" 32;
}
.about-body p .accent { color: var(--gold); font-style: italic; }
.about-body p.dim { color: var(--fg-dim); }

.about-creds {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 700px) { .about-creds { grid-template-columns: 1fr; } }
.about-creds .c {
  background: var(--bg);
  padding: 28px;
}
.about-creds .c .lab {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 14px;
}
.about-creds .c .val {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--fg);
  font-variation-settings: "opsz" 32;
}

/* -------- portfolio (Str.Vert) -------- */

.work-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
@media (max-width: 800px) { .work-head { grid-template-columns: 1fr; gap: 24px; } }

.work-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 80px;
}
@media (max-width: 900px) { .work-feature { grid-template-columns: 1fr; } }

.work-cover {
  background: var(--bg-2);
  padding: 0;
  position: relative;
  min-height: 480px;
  overflow: hidden;
}
.work-cover .label {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 2;
}
.work-cover .badge {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 2;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
}
.work-cover .brand-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 24px;
}
.work-cover .brand-mark > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.work-cover .brand-mark .logo {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(80px, 12vw, 180px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
  font-variation-settings: "opsz" 144;
}
.work-cover .brand-mark .logo em { color: var(--gold); }
.work-cover .belugga-logo {
  width: 200px !important;
  max-width: 60%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(245, 241, 234, 0.08));
  transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.work-cover:hover .belugga-logo {
  transform: scale(1.04);
  filter: drop-shadow(0 0 60px rgba(245, 241, 234, 0.18));
}
.work-cover .brand-mark .tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; color: var(--fg-mute);
  text-transform: uppercase; margin-top: 18px; text-align: center;
}
.work-cover .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, transparent 75%);
}

.work-info {
  background: var(--bg);
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
}
.work-info h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
}
.work-info h3 em { color: var(--gold); font-style: italic; }
.work-info p {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
}
.work-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.work-stats .s {
  background: var(--bg);
  padding: 20px;
}
.work-stats .s .n {
  font-family: var(--serif); font-style: italic;
  font-size: 36px; line-height: 1; color: var(--gold);
  font-variation-settings: "opsz" 48;
}
.work-stats .s .l {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute); margin-top: 10px;
}

/* sub-brands grid */
.brands-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 80px;
}
@media (max-width: 900px) { .brands-row { grid-template-columns: repeat(2, 1fr); } }
.brand-card {
  background: var(--bg);
  padding: 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease-out);
  cursor: default;
}
.brand-card:hover { background: var(--bg-2); }
.brand-card .num {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--fg-mute);
}
.brand-card .name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  font-variation-settings: "opsz" 48;
}
.brand-card .name em { color: var(--gold); font-style: italic; }
.brand-card .cat {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute);
}
.brand-card .reach {
  font-family: var(--serif); font-style: italic;
  font-size: 14px; color: var(--gold);
  font-variation-settings: "opsz" 16;
}
.brand-card .arrow-out {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 16px; color: var(--fg-mute);
  transition: all 0.4s var(--ease-out);
}
.brand-card:hover .arrow-out { color: var(--gold); transform: translate(2px, -2px); }

/* flywheel */
.flywheel {
  margin-top: 120px;
}
.fw-head { margin-bottom: 64px; }
.fw-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .fw-grid { grid-template-columns: 1fr; } }
.fw-step {
  background: var(--bg);
  padding: 36px 24px;
  display: grid; gap: 16px; grid-template-rows: auto auto 1fr;
  min-height: 280px;
  position: relative;
}
.fw-step .n {
  font-family: var(--serif); font-style: italic;
  font-size: 56px; color: var(--gold);
  line-height: 1;
  font-variation-settings: "opsz" 96;
}
.fw-step .t {
  font-family: var(--serif); font-weight: 300;
  font-size: 22px; line-height: 1.1;
  font-variation-settings: "opsz" 32;
}
.fw-step .d {
  font-size: 13px; line-height: 1.55; color: var(--fg-dim);
}

/* impact numbers */
.impact { background: var(--bg); }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 800px) { .impact-grid { grid-template-columns: 1fr; } }
.impact-cell {
  background: var(--bg);
  padding: 56px 36px;
  display: grid; gap: 16px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
.impact-cell:hover { background: var(--bg-2); }
.impact-cell .lab {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute);
}
.impact-cell .big {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 0.95;
  color: var(--fg);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.impact-cell .big .u { color: var(--gold); }
.impact-cell .desc {
  font-size: 14px; line-height: 1.55; color: var(--fg-dim);
  max-width: 32ch;
}

/* -------- contact -------- */

.contact {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative;
}
.contact-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .contact-stage { grid-template-columns: 1fr; gap: 48px; } }

.contact-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
.contact-headline em { color: var(--gold); font-style: italic; display: block; }

.contact-form {
  display: grid; gap: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 44px);
}

.field {
  display: grid; gap: 8px;
}
.field label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  padding: 12px 0;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.form-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 8px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute);
}
.form-meta .secure { display: flex; align-items: center; gap: 8px; }
.form-meta .secure::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

.form-success {
  background: var(--bg);
  border: 1px solid var(--gold);
  padding: 44px;
  text-align: center;
  display: grid; gap: 12px;
}
.form-success .ic {
  width: 48px; height: 48px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto;
  color: var(--gold);
  font-family: var(--serif); font-style: italic;
  font-size: 22px;
}
.form-success h4 {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 32px;
}
.form-success p { color: var(--fg-dim); font-size: 14px; }

/* -------- footer -------- */

footer {
  border-top: 1px solid var(--line);
  padding: 48px var(--pad-x) 32px;
  display: grid;
  gap: 48px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }

.footer-mark {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 64px; line-height: 0.9;
  font-variation-settings: "opsz" 96;
}
.footer-mark em { color: var(--gold); }

.footer-col h5 {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  font-size: 14px; color: var(--fg-dim);
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute);
}
.footer-bottom .made em { color: var(--gold); font-style: italic; font-family: var(--serif); }

/* big footer wordmark */
.footer-wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--bg-3);
  user-select: none;
  margin: 32px 0 0;
  overflow: hidden;
  font-variation-settings: "opsz" 144;
}
.footer-wordmark em { color: var(--gold); opacity: 0.4; font-style: italic; }

/* -------- reveal animation utility -------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1; transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* word-by-word reveal */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}
.reveal.in .split-word > span { transform: translateY(0); }

/* marquee strip */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 24px 0;
  white-space: nowrap;
  display: flex;
  gap: 64px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 48px);
  font-variation-settings: "opsz" 96;
  color: var(--fg-dim);
}
.marquee > div {
  display: inline-flex;
  gap: 64px;
  animation: marquee 38s linear infinite;
}
.marquee .star { color: var(--gold); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
