/* =========================================================
   AGENTIA WORKS — Couture Minimal · Graphite Studio
   ========================================================= */

:root {
  /* Surfaces */
  --bg:           #15130f;
  --bg-1:         #1a1814;
  --bg-2:         #221f1a;
  --bg-3:         #2b2722;
  --bg-glass:     rgba(26, 24, 20, 0.72);

  /* Ink */
  --ink:          #ece6d8;
  --ink-2:        #c9c2b3;
  --ink-3:        #8a8377;
  --ink-4:        #5a5448;
  --ink-5:        #3b362e;

  /* Lines */
  --line:         rgba(236, 230, 216, 0.08);
  --line-2:       rgba(236, 230, 216, 0.14);
  --line-strong:  rgba(236, 230, 216, 0.28);

  /* Accent — champagne */
  --gold:         #c9a96a;
  --gold-2:       #b89554;
  --gold-3:       #6e5a36;
  --gold-soft:    rgba(201, 169, 106, 0.14);
  --gold-glow:    rgba(201, 169, 106, 0.35);

  /* Type */
  --f-display:    "Geist", "Söhne", "Inter Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-text:       "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:       "Geist Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Motion */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-deep:    cubic-bezier(0.65, 0, 0.05, 1);
  --dur:          1.2s;

  /* Layout */
  --pad:          clamp(20px, 4vw, 56px);
  --max:          1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--gold); color: var(--bg); }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "tnum";
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201,169,106,0.05), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201,169,106,0.03), transparent 70%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* Film grain overlay */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.045;
  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 values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Scroll progress (top hairline) */
.scrollbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  z-index: 150;
}
.scrollbar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-2));
  transform-origin: left;
}

/* Cursor */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 250;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), background 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover {
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--gold);
  mix-blend-mode: normal;
}
@media (pointer: coarse) { .cursor { display: none; } }

/* Intro curtain */
.curtain {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 18px;
}
.curtain__mark {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  gap: 0.04em;
}
.curtain__mark span { display: inline-block; opacity: 0; transform: translateY(20px); }
.curtain__mark.in span { animation: cIn 0.7s var(--ease) forwards; }
.curtain__mark.in span:nth-child(1) { animation-delay: 0.05s; }
.curtain__mark.in span:nth-child(2) { animation-delay: 0.10s; }
.curtain__mark.in span:nth-child(3) { animation-delay: 0.15s; }
.curtain__mark.in span:nth-child(4) { animation-delay: 0.20s; }
.curtain__mark.in span:nth-child(5) { animation-delay: 0.25s; }
.curtain__mark.in span:nth-child(6) { animation-delay: 0.30s; }
.curtain__mark.in span:nth-child(7) { animation-delay: 0.35s; }
.curtain__mark.in span:nth-child(8) { animation-delay: 0.40s; }
.curtain__mark.in span:nth-child(9) { animation-delay: 0.50s; }
.curtain__mark.in span:nth-child(10) { animation-delay: 0.55s; }
.curtain__mark.in span:nth-child(11) { animation-delay: 0.60s; }
.curtain__mark.in span:nth-child(12) { animation-delay: 0.65s; }
.curtain__mark.in span:nth-child(13) { animation-delay: 0.70s; }
.curtain__line {
  width: 0; height: 1px; background: var(--gold);
  transition: width 1s var(--ease);
}
.curtain__line.in { width: clamp(80px, 12vw, 180px); }
.curtain__meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity 0.6s 0.6s;
}
.curtain__meta.in { opacity: 1; }
.curtain.out { animation: curtainOut 1.1s var(--ease-deep) forwards; }

@keyframes cIn { to { opacity: 1; transform: translateY(0); } }
@keyframes curtainOut {
  to { transform: translateY(-101%); }
}

/* ===== Header ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(21,19,15,0.86), rgba(21,19,15,0.4) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
.nav.scrolled {
  background: var(--bg-glass);
  border-bottom-color: var(--line);
}
.nav__mark {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.nav__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.nav__right { display: flex; align-items: center; gap: 28px; }
.lang {
  display: flex; gap: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lang button {
  padding: 6px 8px;
  color: var(--ink-3);
  transition: color 0.3s;
}
.lang button.active { color: var(--ink); }
.lang button:hover { color: var(--gold); }
.lang__sep { color: var(--ink-5); padding: 6px 0; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 20px;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(236,230,216,0.02);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-deep);
  z-index: -1;
}
.btn:hover {
  color: var(--bg);
  border-color: var(--gold);
}
.btn:hover::before { transform: translateY(0); }
.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  border-color: transparent;
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); }

.btn--lg {
  padding: 18px 26px 18px 30px;
  font-size: 15px;
}

/* ===== Sections ===== */
.section {
  padding: clamp(80px, 12vh, 160px) var(--pad);
  position: relative;
}
.section--hero { padding-top: clamp(120px, 18vh, 200px); padding-bottom: clamp(60px, 8vh, 100px); min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; }
.section + .section { border-top: 1px solid var(--line); }

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

/* Eyebrow (small caps mono) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow__dash {
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold);
}
.eyebrow--center { justify-content: center; }

/* Display headlines */
.h-display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(48px, 8.5vw, 138px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.h-display em {
  font-style: italic;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--gold);
}

.h-section {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.h-section em {
  font-style: italic;
  font-family: "Instrument Serif", "Times New Roman", serif;
  color: var(--gold);
  letter-spacing: -0.005em;
}

.h-sub {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.lede {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
}

.caption {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ===== HERO ===== */
.hero__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__location {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
  line-height: 1.8;
}
.hero__location strong { color: var(--ink); font-weight: 500; }

.hero__title {
  margin-top: clamp(40px, 8vh, 120px);
  max-width: 18ch;
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  align-items: end;
}
@media (max-width: 880px) {
  .hero__bottom { grid-template-columns: 1fr; gap: 24px; }
}
.hero__lede { max-width: 42ch; }
.hero__stat {
  display: flex; flex-direction: column; gap: 8px;
}
.hero__stat__num {
  font-family: var(--f-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 8px;
}
.hero__stat__num .gold { color: var(--gold); }
.hero__stat__num .frac { font-size: 0.5em; color: var(--ink-3); }
.hero__stat__label { font-size: 12px; color: var(--ink-3); font-family: var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; }

/* ===== Slots indicator ===== */
.slots {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(236,230,216,0.02);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  width: fit-content;
}
.slots__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
  position: relative;
}
.slots__dot::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { opacity: 0.8; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.8); }
}
.slots strong { color: var(--gold); font-weight: 500; }

/* ===== MARQUEE ===== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 24px 0;
  background: rgba(0,0,0,0.18);
  /* Own GPU layer to avoid sub-pixel rerasterizing */
  transform: translateZ(0);
}
.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: scroll 80s linear infinite;
  font-family: var(--f-display);
  font-size: clamp(28px, 3.6vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  will-change: transform;
  backface-visibility: hidden;
  text-rendering: optimizeSpeed;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  flex-shrink: 0;
}
.marquee__track em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--gold);
}
.marquee__dot {
  width: 7px; height: 7px; background: var(--gold); border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ===== Manifesto / Filosofía ===== */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
@media (max-width: 880px) { .manifesto { grid-template-columns: 1fr; } }
.manifesto__num {
  font-family: var(--f-display);
  font-size: clamp(80px, 14vw, 220px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-3);
  position: sticky; top: 120px;
}
.manifesto__num em {
  -webkit-text-stroke: 1px var(--gold);
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: transparent;
}
.manifesto__body p {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 32px;
  text-wrap: pretty;
}
.manifesto__body p em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--gold);
}
.manifesto__body p:last-child { margin-bottom: 0; }
.manifesto__signature {
  margin-top: 48px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.manifesto__signature .sig-line { width: 36px; height: 1px; background: var(--gold); }

/* ===== Servicios ===== */
.services { display: flex; flex-direction: column; }

.service {
  display: grid;
  grid-template-columns: 72px 1fr 220px;
  grid-template-rows: auto auto;
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 0;
  padding: clamp(40px, 5vh, 64px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  cursor: default;
  overflow: hidden;
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service::before {
  content: "";
  position: absolute;
  inset: 0 -16px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  pointer-events: none;
}
.service:hover::before { opacity: 1; }

.service__num {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  padding-top: 14px;
  align-self: start;
}

.service__title {
  grid-column: 2 / 4;
  grid-row: 1;
  font-family: var(--f-display);
  font-size: clamp(28px, 3.8vw, 56px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink-1);
  padding-bottom: clamp(16px, 2vh, 28px);
  align-self: start;
}
.service__title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-3);
  transition: color 0.5s var(--ease);
  display: block;
  font-size: 0.55em;
  margin-top: 8px;
  letter-spacing: -0.005em;
}
.service:hover .service__title em { color: var(--gold); }

.service__desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 46ch;
  align-self: start;
}

.service__detail {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
}
.service__detail li {
  list-style: none;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.service__detail li::before {
  content: ""; flex-shrink: 0;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  transition: transform 0.3s var(--ease);
}
.service:hover .service__detail li::before { transform: scale(1.5); }

@media (max-width: 880px) {
  .service {
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto auto;
  }
  .service__title  { grid-column: 2; font-size: clamp(36px, 8vw, 56px); }
  .service__desc   { grid-column: 1 / -1; }
  .service__detail { grid-column: 1 / -1; margin-top: 16px; }
}

/* ===== Proceso / Timeline interactiva ===== */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 80px;
  position: relative;
}

/* Track base (dim) */
.process::before {
  content: "";
  position: absolute;
  top: 7px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}

/* Fill dorado con bola luminosa en la punta */
.process__fill {
  position: absolute;
  top: 7px; left: 0;
  height: 1px;
  width: 0%;
  background: linear-gradient(90deg, rgba(201,169,106,0.4), var(--gold));
  box-shadow: 0 0 6px rgba(201,169,106,0.5);
  z-index: 1;
  pointer-events: none;
}
.process__fill::after {
  content: "";
  position: absolute;
  right: -5px; top: -4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold), 0 0 22px rgba(201,169,106,0.5);
  opacity: 1;
}

.process__step {
  padding: 0 16px 0 0;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.process__step__dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(201,169,106,0.2);
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
  transition: border-color 0.4s, background 0.4s;
}

/* Ripple ring on active dot */
.process__step__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,106,0);
  pointer-events: none;
}

.process__step.is-active .process__step__dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,106,0.12), 0 0 12px rgba(201,169,106,0.4);
}

.process__step.is-active .process__step__dot::after {
  animation: dotRipple 1.6s ease-out infinite;
}

@keyframes dotRipple {
  0%   { inset: -3px;  border-color: rgba(201,169,106,0.6); }
  100% { inset: -12px; border-color: rgba(201,169,106,0);   }
}

.process__step.is-done .process__step__dot {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(0.7);
}

.process__step__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  transition: color 0.4s;
}
.process__step.is-active .process__step__num,
.process__step.is-done  .process__step__num { color: var(--gold); }

.process__step__title {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
  line-height: 1.1;
  color: var(--ink-3);
  transition: color 0.4s;
}
.process__step.is-active .process__step__title { color: var(--ink-1); }
.process__step.is-done  .process__step__title { color: var(--ink-2); }

/* Desc inline oculto — se muestra en el panel */
.process__step__desc { display: none; }

/* Panel de descripción */
.process__panel {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 24px;
  align-items: start;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  min-height: 72px;
}

.process__panel__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding-top: 3px;
}

.process__panel__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0;
}

@media (max-width: 880px) {
  .process { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process::before { display: none; }
  .process__fill { display: none; }
  .process__step__desc { display: block; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
  .process__panel { display: none; }
}

/* ===== Work Showcase ===== */
.work-showcase { position: relative; }

.work-list { list-style: none; padding: 0; margin: 0; }

.work-list__item {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(28px, 4.5vh, 56px) 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.work-list__item:first-child { border-top: 1px solid var(--line); }

.work-list__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  transition: color 0.4s var(--ease);
}

.work-list__name {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.032em;
  line-height: 1;
  color: var(--ink-1);
  will-change: transform;
}

.work-list__cat {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.4s var(--ease);
}

.work-list__year {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-align: right;
}

/* Hover state: dim others */
.work-showcase.is-hovering .work-list__item { opacity: 0.22; }
.work-showcase.is-hovering .work-list__item.is-active { opacity: 1; }

.work-list__year--nda {
  color: var(--gold);
  border: 1px solid var(--gold-3);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: 0.2em;
}

@media (max-width: 880px) {
  .work-list__item { grid-template-columns: 48px 1fr; }
  .work-list__cat, .work-list__year { display: none; }
  .work-list__name { font-size: clamp(28px, 8vw, 48px); }
}

/* ===== Floating preview card ===== */
.work-preview {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  height: 380px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  overflow: hidden;
  border: 1px solid rgba(201,169,106,0.15);
  will-change: transform, opacity;
}

.work-preview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.work-preview__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(21,19,15,0.88) 0%, transparent 55%);
}

.work-preview__num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold-3);
  margin-bottom: 5px;
  display: block;
}

.work-preview__label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
}

/* ===== Criteria / Filter ===== */
.criteria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
.criteria__col {
  padding: 48px clamp(20px, 3vw, 40px);
}
.criteria__col + .criteria__col { border-left: 1px solid var(--line); }
.criteria__col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.criteria__col h4 .yes { color: var(--gold); }
.criteria__col h4 .no { color: var(--ink-4); }
.criteria__list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.criteria__list li {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--ink);
  display: flex; gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.criteria__list li:last-child { border-bottom: 0; }
.criteria__list--no li { color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--ink-5); }
.criteria__list .mark {
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gold);
  padding-top: 4px;
}
.criteria__list--no .mark { color: var(--ink-4); }
@media (max-width: 880px) {
  .criteria { grid-template-columns: 1fr; }
  .criteria__col + .criteria__col { border-left: 0; border-top: 1px solid var(--line); }
}

/* ===== CTA section ===== */
.cta {
  text-align: center;
  padding: clamp(120px, 18vh, 200px) var(--pad);
  position: relative;
  overflow: hidden;
}
.cta__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,169,106,0.08), transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; }
.cta h2 {
  margin: 28px auto 32px;
  max-width: 22ch;
}
.cta__sub {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0 auto 48px;
  line-height: 1.4;
}

/* ===== Footer ===== */
.footer {
  padding: 80px var(--pad) 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
.footer__brand {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.footer__brand em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--gold);
}
.footer__col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.3s;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer__col a:hover { color: var(--gold); }
.footer__col a::before {
  content: ""; width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s var(--ease);
}
.footer__col a:hover::before { width: 12px; }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  gap: 24px;
  flex-wrap: wrap;
}

/* ===== Reveals ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

/* Line-by-line text reveal */
.reveal-lines .line {
  display: block;
  overflow: hidden;
}
.reveal-lines .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-deep);
}
.reveal-lines.in .line > span { transform: translateY(0); }
.reveal-lines.in .line:nth-child(2) > span { transition-delay: 0.1s; }
.reveal-lines.in .line:nth-child(3) > span { transition-delay: 0.2s; }
.reveal-lines.in .line:nth-child(4) > span { transition-delay: 0.3s; }
.reveal-lines.in .line:nth-child(5) > span { transition-delay: 0.4s; }

/* ===== Apply page ===== */
.apply-shell {
  min-height: 100vh;
  padding: clamp(120px, 16vh, 180px) var(--pad) clamp(80px, 12vh, 140px);
}
.apply-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 9vh, 110px);
  max-width: 980px;
  margin: 0 auto;
}

.apply-aside { width: 100%; }
.apply-aside .h-section { margin: 24px 0 28px; max-width: 18ch; }
.apply-aside .lede { margin-bottom: 0; max-width: 56ch; }

.apply-aside__panel {
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
  padding: 28px;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 700px) {
  .apply-aside__panel { grid-template-columns: 1fr; }
}
.apply-aside__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 20px;
  border-right: 1px solid var(--line);
  font-size: 14px;
}
.apply-aside__row:last-child { border-right: 0; }
.apply-aside__row:first-child { padding-left: 0; }
@media (max-width: 700px) {
  .apply-aside__row {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }
  .apply-aside__row:last-child { border-bottom: 0; }
  .apply-aside__row:first-child { padding-top: 0; }
}
.apply-aside__row .k { color: var(--ink-3); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; }
.apply-aside__row .v { color: var(--ink); font-family: var(--f-display); font-size: 18px; letter-spacing: -0.015em; }
.apply-aside__row .v.gold { color: var(--gold); }

/* Form */
.apply-form {
  display: flex; flex-direction: column;
  gap: 0;
}
.apply-step {
  padding: 36px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.apply-step:first-child { padding-top: 0; }
.apply-step:last-of-type { border-bottom: 0; }
.apply-step__head {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 28px;
}
.apply-step__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.apply-step__title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

.field { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .field__row { grid-template-columns: 1fr; gap: 0; } }
.field label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: space-between;
  padding-left: 2px;
}
.field label .opt { color: var(--ink-5); font-size: 10px; font-style: italic; text-transform: none; letter-spacing: 0.04em; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field textarea,
.field select {
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--line);
  padding: 16px 18px;
  font-family: var(--f-display);
  font-size: 16px;
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  letter-spacing: -0.008em;
  border-radius: 2px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); font-family: var(--f-display); font-weight: 300; }
.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.025);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold-3);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 3px rgba(201, 169, 106, 0.06);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
  cursor: pointer;
}
.field select option { background: var(--bg-1); color: var(--ink); }

.choices {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.choice {
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  user-select: none;
}
.choice:hover { border-color: var(--gold-3); color: var(--ink); }
.choice.is-selected {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.apply-submit {
  margin-top: 40px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.apply-submit__note {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  max-width: 32ch;
}

/* Success state */
.apply-success {
  display: none;
  text-align: center;
  padding: clamp(60px, 12vh, 120px) 0;
}
.apply-success.is-on { display: block; }
.apply-success__seal {
  width: 64px; height: 64px;
  margin: 0 auto 32px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.apply-success h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.05;
}
.apply-success h3 em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--gold);
}
.apply-success p { color: var(--ink-2); max-width: 48ch; margin: 0 auto 32px; }

/* Misc */
.divider-dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 10px;
}

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tag.gold { color: var(--gold); border-color: var(--gold-3); }

/* Hide initial state on JS-loaded */
.js-load .curtain { display: flex; }
.no-js .curtain { display: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
  }
  .reveal, .reveal-stagger > *, .reveal-lines .line > span {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================
   GSAP ANIMATION LAYERS
   ========================================================= */

/* Split chars */
.split-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Hero particles canvas */
.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  transform-style: preserve-3d;
}
.section--hero { position: relative; overflow: hidden; }
.section--hero .wrap { position: relative; z-index: 1; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: clamp(24px, 4vh, 48px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  pointer-events: none;
}
.scroll-hint__text {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.scroll-hint__line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.page-transition__mark {
  font-family: var(--f-display);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Service gold line (drawn on hover) */
.service__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-2));
  transform-origin: left center;
  pointer-events: none;
}

/* CTA breathing SVG */
.cta__breathe {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  pointer-events: none;
  will-change: transform;
}

/* Split words */
.split-word {
  display: inline;
  will-change: opacity, filter;
}

/* Constellation (HTML+SVG approach) */
.manifesto__num {
  position: relative;
  min-height: 540px;
}

.constellation-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.constellation-svg line {
  stroke: rgba(201, 169, 106, 0.3);
  stroke-width: 0.6px;
  transition: stroke 0.3s;
}

.constellation-word {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  cursor: default;
  user-select: none;
  transition: color 0.25s;
}

.constellation-word:hover {
  color: var(--gold);
}

.constellation-center {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
}

/* Reveal classes: keep opacity:0 as starting state for GSAP */
.reveal {
  opacity: 0;
}
.reveal-lines .line > span {
  display: block;
  transform: translateY(110%);
}
.reveal-lines .line {
  display: block;
  overflow: hidden;
}
