/* ============ Tokens ============ */
:root {
  --bg: #04050a;
  --bg-2: #0a0c16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #eeeaf6;
  --muted: #a6a3b8;
  --gold: #e8c07a;
  --gold-2: #f6dfae;
  --violet: #8b6cff;
  --error: #ff8a8a;
  --on-gold: #1a1206;

  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-med: 380ms;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1320px;
  --section: clamp(96px, 16vw, 200px);

  --z-canvas: 0;
  --z-content: 10;
  --z-hud: 40;
  --z-nav: 100;
  --z-menu: 200;
  --z-loader: 2000;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--on-gold); }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: var(--z-loader);
  padding: 10px 16px; background: var(--gold); color: var(--on-gold);
  border-radius: 8px; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.label { color: var(--gold); margin: 0 0 20px; }

.section-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  text-wrap: balance;
}
.section-title em, .hero__title em, .proof__text em {
  color: var(--gold);
  font-weight: 400;
}

main, .footer { position: relative; z-index: var(--z-content); }
section { position: relative; }

/* ============ Canvas + grain ============ */
#space {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: var(--z-canvas); pointer-events: none;
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--bg);
  display: grid; place-items: center;
}
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loader__mark { font-family: var(--f-display); font-size: clamp(36px, 6vw, 64px); font-style: italic; }
.loader__count { color: var(--muted); }
.loader__bar { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ============ Progress + HUD ============ */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: calc(var(--z-nav) + 1); }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--gold)); transform-origin: left; transform: scaleX(0); }
.hud {
  position: fixed; left: var(--gutter); bottom: 24px; z-index: var(--z-hud);
  color: var(--muted); font-size: 11px; display: none; gap: 8px;
}
.hud [data-depth] { color: var(--gold); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .hud { display: flex; } }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  transition: transform var(--t-med) var(--ease-out), background var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(4, 5, 10, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 17px; letter-spacing: 0.02em; margin-right: auto; }
.nav__logo svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.6; transition: transform 800ms var(--ease-out); }
.nav__logo:hover svg { transform: rotate(180deg); }
.nav__logo em { font-family: var(--f-display); font-weight: 500; font-size: 20px; color: var(--gold); margin-left: 4px; }
.nav__links { display: none; gap: 32px; }
.nav__links a { position: relative; font-size: 15px; color: var(--muted); padding: 8px 0; transition: color var(--t-fast); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .nav__cta { display: none; }
.nav__toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.nav__toggle span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: transform var(--t-med) var(--ease-out); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
@media (min-width: 900px) {
  .nav__links, .nav .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: rgba(4, 5, 10, 0.96); backdrop-filter: blur(20px);
  display: grid; place-items: center;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mobile-menu a { font-family: var(--f-display); font-size: 48px; padding: 4px 16px; }
.nav.menu-open { z-index: calc(var(--z-menu) + 1); background: transparent; border-color: transparent; backdrop-filter: none; }

/* ============ Buttons ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px;
  background: var(--gold); color: var(--on-gold);
  border-radius: 999px; font-weight: 600; font-size: 16px;
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: box-shadow var(--t-med) var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold-2); border-radius: inherit;
  transform: translateY(101%); transition: transform var(--t-med) var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn:hover { box-shadow: 0 0 40px rgba(232, 192, 122, 0.35); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-med) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost::before { background: var(--surface-2); }
.btn--ghost:hover { box-shadow: none; border-color: var(--gold); }
.btn--small { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ============ Hero ============ */
.hero {
  min-height: 100vh; min-height: 100dvh; overflow: hidden;
  display: flex; align-items: center;
  padding: 120px 0 160px;
}
.hero__content { will-change: transform, opacity; }
.hero__hud {
  position: absolute; top: 96px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; color: var(--muted); font-size: 11px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); margin: 0 0 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7a7; box-shadow: 0 0 12px #6ee7a7; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.hero__title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(46px, 13.5vw, 176px);
  line-height: 0.92; letter-spacing: -0.03em;
  margin: 0 0 32px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__sub { max-width: 560px; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); margin: 0 0 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--muted); font-size: 11px; padding: 8px;
}
.scroll-cue i { width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--text); animation: drip 2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }

/* ============ Marquee ============ */
.marquee {
  border-block: 1px solid var(--line);
  padding: 22px 0; overflow: hidden;
  background: rgba(4, 5, 10, 0.5); backdrop-filter: blur(6px);
}
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(24px, 3vw, 40px); font-style: italic; white-space: nowrap; }
.marquee__track b { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Parallax decor ============ */
.bgword {
  position: absolute; top: 50%; left: 0; z-index: -1;
  font-family: var(--f-display); font-weight: 600; font-style: italic;
  font-size: clamp(120px, 24vw, 380px); line-height: 1;
  white-space: nowrap; pointer-events: none; user-select: none;
  color: transparent; -webkit-text-stroke: 1px rgba(232, 192, 122, 0.12);
  transform: translateY(-50%);
  will-change: transform;
}
.bgword--work { top: 12%; transform: none; }
.moon {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  will-change: transform;
}
.moon--a { width: 140px; height: 140px; right: 8%; top: 8%;
  background: radial-gradient(circle at 32% 30%, #f6dfae, #b48646 45%, #3a2410 75%, #120a04);
  box-shadow: 0 0 80px rgba(232, 192, 122, 0.25); }
.moon--b { width: 46px; height: 46px; left: 6%; bottom: 10%;
  background: radial-gradient(circle at 30% 30%, #d9d2ff, #6a55cc 50%, #1a1240); box-shadow: 0 0 40px rgba(139, 108, 255, 0.4); }
.moon--c { width: 260px; height: 260px; left: -80px; top: 10%;
  background: radial-gradient(circle at 70% 30%, #8b6cff, #2c1f73 50%, #0b0820 80%); opacity: 0.55; filter: blur(1px); }
.moon--d { width: 90px; height: 90px; right: 10%; top: 30%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #9ab 40%, #2a3140 75%, #0a0d14); box-shadow: 0 0 50px rgba(200, 220, 255, 0.2); }
.moon--e { width: 180px; height: 180px; right: -40px; bottom: 5%;
  background: radial-gradient(circle at 30% 30%, #f6dfae, #a8743a 45%, #2a180a 80%); opacity: 0.7; }

@media (max-width: 599px) {
  .moon--a { width: 90px; height: 90px; }
  .moon--c { width: 160px; height: 160px; left: -60px; }
  .moon--d { width: 60px; height: 60px; }
  .moon--e { width: 110px; height: 110px; opacity: 0.4; }
}

/* ============ Manifesto ============ */
.manifesto { padding: var(--section) 0; overflow: hidden; }
.manifesto__text {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(32px, 5vw, 72px); line-height: 1.12; letter-spacing: -0.01em;
  margin: 0; max-width: 20ch; text-wrap: pretty;
}
.manifesto__text .w { opacity: 0.16; transition: none; }

/* ============ Work ============ */
.work { overflow: hidden; }
.work__pin { position: relative; overflow: hidden; padding: var(--section) 0 80px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.work__head { display: grid; gap: 24px; margin-bottom: 56px; }
.work__head .section-title { margin: 0; }
.work__note { color: var(--muted); max-width: 440px; margin: 0; }
@media (min-width: 900px) { .work__head { grid-template-columns: 1fr auto; align-items: end; } }

.work__track {
  display: grid; gap: 40px;
  padding: 0 var(--gutter);
}
@media (min-width: 900px) {
  .work.is-horizontal .work__pin { padding-top: 110px; padding-bottom: 40px; }
  .work.is-horizontal .work__head { margin-bottom: 36px; }
  .work.is-horizontal .work__track { display: flex; gap: 48px; width: max-content; will-change: transform; }
  .work.is-horizontal .project { width: min(58vw, 820px, calc((100vh - 430px) * 1.6)); flex: none; }
}

.project { position: relative; }
.project__screen, .project__meta { pointer-events: none; }
@media (max-width: 599px) { .work .project__screen { aspect-ratio: 4 / 5; } }
.project__open { position: absolute; inset: 0; z-index: 3; border-radius: 20px; cursor: pointer; }
.project__screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 700ms var(--ease-out), border-color var(--t-med), box-shadow var(--t-med);
  transform-style: preserve-3d;
}
.project:hover .project__screen, .project__open:focus-visible + .project__screen {
  border-color: rgba(232, 192, 122, 0.5);
  box-shadow: 0 30px 80px -20px rgba(232, 192, 122, 0.25);
}
.project__meta { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; padding: 22px 4px 0; }
.project__meta h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3vw, 40px); margin: 0; line-height: 1.1; grid-column: 1; grid-row: 1; }
.project__meta p { color: var(--muted); margin: 0; font-size: 15px; grid-column: 1; }
.project__meta .tag { grid-column: 2; grid-row: 1; }
.tag {
  display: inline-block; padding: 6px 12px; border: 1px solid rgba(232, 192, 122, 0.4);
  border-radius: 999px; color: var(--gold); font-size: 11px; margin: 0; white-space: nowrap;
}

/* ============ Proof ============ */
.proof { padding: var(--section) 0; overflow: hidden; }
.proof__text { font-family: var(--f-display); font-size: clamp(34px, 5.4vw, 80px); line-height: 1.05; margin: 0 auto; max-width: 18ch; text-align: center; text-wrap: balance; }
.proof__text .label { display: block; font-family: var(--f-mono); font-size: 12px; margin-bottom: 28px; }

/* ============ Process ============ */
.process { padding: var(--section) 0; overflow: hidden; }
.steps { list-style: none; padding: 0; margin: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 36px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.steps::after {
  content: ""; position: absolute; left: 36px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(var(--gold), var(--violet));
  transform: scaleY(var(--line-progress, 0)); transform-origin: top;
}
.step { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 40px 0; }
.step__num {
  position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px;
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--muted);
  transition: border-color var(--t-med), color var(--t-med), box-shadow var(--t-med);
}
.step.is-active .step__num { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 30px rgba(232, 192, 122, 0.3); }
.step__body h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(36px, 4.5vw, 64px); line-height: 1; margin: 12px 0 14px; }
.step__body p { color: var(--muted); max-width: 560px; margin: 0; }
@media (min-width: 900px) {
  .steps::before, .steps::after { left: 50%; }
  .step { grid-template-columns: 1fr 72px 1fr; gap: 48px; padding: 56px 0; }
  .step__num { grid-column: 2; grid-row: 1; }
  .step__body { grid-column: 3; grid-row: 1; }
  .step:nth-child(even) .step__body { grid-column: 1; text-align: right; }
  .step:nth-child(even) .step__body p { margin-left: auto; }
}

/* ============ Includes ============ */
.includes { padding: var(--section) 0; overflow: hidden; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; padding: 36px 32px; border-radius: 20px;
  background: rgba(10, 12, 22, 0.7); border: 1px solid var(--line);
  backdrop-filter: blur(8px); overflow: hidden;
  transition: border-color var(--t-med), transform var(--t-med) var(--ease-out);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 192, 122, 0.14), transparent 40%);
  transition: opacity var(--t-med);
}
.grid:hover .card::before { opacity: 1; }
.card:hover { border-color: rgba(232, 192, 122, 0.35); transform: translateY(-4px); }
.card svg { width: 32px; height: 32px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 28px; }
.card h3 { font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

/* ============ Studio ============ */
.studio { padding: var(--section) 0; overflow: hidden; }
.studio__inner { display: grid; gap: 64px; align-items: center; }
@media (min-width: 900px) { .studio__inner { grid-template-columns: 0.9fr 1.1fr; } }
.studio__orbit { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; will-change: transform; }
.orbit i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 20px var(--gold); }
.orbit--1 { inset: 0; }
.orbit--2 { inset: 16%; border-style: dashed; }
.orbit--2 i { background: var(--violet); box-shadow: 0 0 20px var(--violet); }
.orbit--3 { inset: 32%; }
.orbit--3 i { width: 6px; height: 6px; top: -3px; margin-left: -3px; background: #fff; }
.studio__core {
  position: absolute; inset: 40%; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 3vw, 36px); color: var(--on-gold);
  background: radial-gradient(circle at 30% 30%, var(--gold-2), var(--gold) 50%, #8a6430);
  box-shadow: 0 0 80px rgba(232, 192, 122, 0.4);
}
.studio__copy > p { color: var(--muted); max-width: 560px; }
.studio__sign { font-family: var(--f-display); font-style: italic; font-size: 24px; color: var(--text) !important; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 0; border-top: 1px solid var(--line); padding-top: 32px; }
.stats div { margin: 0; }
.stats dt { color: var(--muted); font-size: 10px; margin-bottom: 8px; }
.stats dd { margin: 0; font-family: var(--f-display); font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }

/* ============ Contact ============ */
.contact { padding: var(--section) 0; overflow: hidden; }
.contact__inner { display: grid; gap: 56px; }
@media (min-width: 1024px) { .contact__inner { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }
.contact__intro > p { color: var(--muted); max-width: 460px; }
.contact__points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact__points li { display: flex; align-items: center; gap: 12px; }
.contact__points svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.form {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 20px;
  padding: clamp(24px, 4vw, 48px); border-radius: 24px;
  background: rgba(10, 12, 22, 0.75); border: 1px solid var(--line); backdrop-filter: blur(12px);
}
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full, .form__summary, .form .btn, .form__fine { grid-column: 1 / -1; }
.field label, .chips legend { font-size: 14px; font-weight: 600; }
.field label span { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field select option { background: var(--bg-2); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 3px rgba(232, 192, 122, 0.2); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field__err { margin: 0; color: var(--error); font-size: 14px; min-height: 0; }
.field__err:empty { display: none; }
.field__help { margin: 0; color: var(--muted); font-size: 14px; }

.chips { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: all var(--t-fast);
}
.chips label:hover span { border-color: var(--gold); }
.chips input:checked + span { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.chips input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.form__summary { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--error); background: rgba(255, 138, 138, 0.08); color: var(--text); font-size: 15px; }
.form__summary ul { margin: 6px 0 0; padding-left: 18px; }
.form__summary a { color: var(--error); text-decoration: underline; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__fine { margin: 0; font-size: 13px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin2 700ms linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }

.form__success {
  position: absolute; inset: 0; border-radius: inherit; background: rgba(10, 12, 22, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px;
}
.form__success[hidden] { display: none; }
.form__success svg { width: 72px; height: 72px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.form__success svg circle { stroke-dasharray: 132; stroke-dashoffset: 132; animation: draw 900ms var(--ease-out) forwards; }
.form__success svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 500ms 600ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form__success h3 { font-family: var(--f-display); font-size: 40px; font-weight: 500; margin: 0 0 8px; }
.form__success p { color: var(--muted); max-width: 340px; margin: 0; }

/* ============ Footer ============ */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--line); overflow: hidden; background: linear-gradient(transparent, rgba(4, 5, 10, 0.8)); }
.footer__big {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.2em;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(72px, 18vw, 300px); line-height: 0.9; letter-spacing: -0.04em;
  transition: color var(--t-med);
}
.footer__big em { color: var(--gold); font-weight: 400; }
.footer__big:hover { color: var(--gold-2); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; color: var(--muted); font-size: 14px; }
.footer__row p { margin: 0; }
.footer__top { display: inline-flex; align-items: center; min-height: 44px; transition: color var(--t-fast); }
.footer__top:hover { color: var(--gold); }

/* ============ Modal ============ */
.modal {
  width: min(1000px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid var(--line-strong); border-radius: 24px;
  background: var(--bg-2); color: var(--text); overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(2, 3, 6, 0.75); backdrop-filter: blur(8px); }
.modal[open] { animation: modalIn 500ms var(--ease-out); }
.modal[open]::backdrop { animation: fadeIn 400ms ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(0.97); } }
@keyframes fadeIn { from { opacity: 0; } }
.modal__inner { position: relative; padding: clamp(24px, 5vw, 56px); }
.modal__close {
  position: sticky; top: 0; float: right; margin: -8px -8px 0 0; z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--bg-2);
  transition: border-color var(--t-fast), transform var(--t-med) var(--ease-out);
}
.modal__close:hover { border-color: var(--gold); transform: rotate(90deg); }
.modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 16px 0 8px; }
.modal__sector { color: var(--muted); margin: 0 0 32px; }
.modal__hint { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--muted); font-size: 11px; }
.modal__hint svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.modal__hint path { animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 50% { transform: translateY(3px); opacity: 0.4; } }
.modal__screen .project__screen { pointer-events: auto; aspect-ratio: auto; height: min(66vh, 640px); }
.modal .mock__view { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(232, 192, 122, 0.5) transparent; }
.modal .mock__view:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -2px; }
.modal__cols { display: grid; gap: 32px; margin: 40px 0; }
@media (min-width: 768px) { .modal__cols { grid-template-columns: repeat(3, 1fr); } }
.modal__cols h3 { color: var(--gold); margin: 0 0 12px; font-weight: 500; }
.modal__cols p, .modal__cols li { color: var(--muted); font-size: 16px; margin: 0; }
.modal__cols ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .manifesto__text .w { opacity: 1 !important; }
  .marquee__track { animation: none; }
}
