/* =====================================================================
   GEN W STUDIO — Project Application page
   Dark editorial · glass form hero · ambient 3D world · cinematic drift
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #050505;
  --card: #111111;
  --glass: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-soft: rgba(255, 255, 255, 0.06);

  --accent: #9C6BFF;
  --accent-2: #47C9FF;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);

  --text: #ffffff;
  --text-2: #bbbbbb;
  --text-3: #7a7a80;

  --font-display: "Satoshi", "General Sans", system-ui, sans-serif;
  --font-ui: "General Sans", "Satoshi", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 22px;
  --radius-lg: 34px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
  --glow: 0 0 60px -12px rgba(156, 107, 255, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg); color: var(--text); font-family: var(--font-body);
  font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; cursor: none;
}
@media (hover: none) { body { cursor: auto; } }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: none; }
ul, ol { list-style: none; padding: 0; }
::selection { background: rgba(156, 107, 255, 0.35); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

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


/* ---------- Custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.cursor__ring { position: absolute; width: 38px; height: 38px; border: 1.5px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), opacity .3s; }
.cursor.is-link .cursor__ring { width: 62px; height: 62px; }
.cursor.is-text .cursor__ring { width: 4px; height: 30px; border-radius: 4px; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: grid; place-items: center; }
.loader__inner { width: min(80vw, 360px); text-align: center; }
.loader__glyph { height: 62px; margin: 0 auto 16px; }
.loader__mark { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.22em; font-size: clamp(15px, 3vw, 19px); color: var(--text-2); text-transform: uppercase; }
.loader__track { height: 2px; background: rgba(255,255,255,.1); margin: 20px auto 0; max-width: 260px; overflow: hidden; border-radius: 2px; }
.loader__fill { display: block; height: 100%; width: 0%; background: var(--grad); }
.loader.is-done { opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }

/* ---------- Brand mark ---------- */
.brand-mark { display: block; width: auto; flex: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); transition: filter .45s var(--ease); }
.nav__brand .brand-mark { filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)) drop-shadow(0 0 14px rgba(156,107,255,0.22)); }
.nav__brand:hover .brand-mark { filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)) drop-shadow(0 0 22px rgba(156,107,255,0.50)) drop-shadow(0 0 40px rgba(71,201,255,0.20)); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 600; font-size: 16px; letter-spacing: .01em;
  padding: 16px 26px; border-radius: 100px; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), color .4s var(--ease), box-shadow .5s var(--ease);
}
.btn--primary { color: #0a0a0a; background: var(--grad); box-shadow: var(--glow), 0 2px 20px rgba(0,0,0,.5); }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--accent-2), var(--accent)); opacity: 0; transition: opacity .5s var(--ease); }
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 0 80px -6px rgba(71,201,255,.65), 0 0 40px -10px rgba(156,107,255,.6); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { color: var(--text); border: 1px solid var(--stroke); background: var(--glass); backdrop-filter: blur(10px); }
.btn--ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .5s var(--ease); }
.btn--ghost:hover { color: #0a0a0a; border-color: transparent; }
.btn--ghost:hover::before { opacity: 1; }

.btn--submit { width: 100%; margin-top: 8px; font-size: 17px; padding: 18px; }
.btn--submit .btn__spinner { position: absolute; width: 20px; height: 20px; border: 2px solid rgba(10,10,10,.35); border-top-color: #0a0a0a; border-radius: 50%; opacity: 0; }
.btn--submit.is-loading .btn__label { opacity: 0; }
.btn--submit.is-loading .btn__spinner { opacity: 1; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-ui); font-weight: 500; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-2); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(156,107,255,.9); }

[data-reveal] { will-change: transform, opacity; }
@keyframes scrolldash { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--gutter);
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-hidden { transform: translateY(-118%); }
.nav.is-scrolled { background: rgba(5,5,5,.72); backdrop-filter: blur(22px) saturate(1.5); border-bottom-color: transparent; padding-top: 12px; padding-bottom: 12px; }
.nav.is-scrolled::after { content: ""; position: absolute; bottom: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: linear-gradient(90deg, transparent, rgba(156,107,255,.35), rgba(71,201,255,.35), transparent); }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.nav__brand .brand-mark { height: 32px; }
.nav__brandtext { font-size: 17px; background: linear-gradient(135deg, #fff 50%, rgba(156,107,255,0.85) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; transition: filter .4s var(--ease); }
.nav__brand:hover .nav__brandtext { filter: drop-shadow(0 0 12px rgba(156,107,255,0.5)); }
.nav__status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-ui); font-size: 13px; letter-spacing: .02em; color: var(--text-2); }
.nav__dot { width: 7px; height: 7px; border-radius: 50%; background: #5fe38a; box-shadow: 0 0 10px rgba(95,227,138,.9); position: relative; flex: none; }
.nav__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(95,227,138,.5); animation: statuspulse 2.8s var(--ease) infinite; }
@keyframes statuspulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@media (max-width: 600px) { .nav__status { display: none; } }

/* ======================================================================
   SCROLL CHAPTERS
   ====================================================================== */
.chapter { position: relative; z-index: 2; }
.chapter__pin { height: 100svh; overflow: hidden; }

@keyframes shimmer { from { background-position: 200% center; } to { background-position: 0% center; } }

/* ---- Cursor label (magnetic hover) ---- */
.cursor__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-ui); font-weight: 600; font-size: 11px; letter-spacing: .06em; color: #0a0a0a; opacity: 0; white-space: nowrap; }
.cursor.is-labeled { mix-blend-mode: normal; }
.cursor.is-labeled .cursor__ring { width: 72px; height: 72px; background: #fff; border-color: transparent; }
.cursor.is-labeled .cursor__dot { opacity: 0; }
.cursor.is-labeled .cursor__label { opacity: 1; }

/* ---- Liquid button (feDisplacement driven on hover via JS) ---- */
.btn--liquid { will-change: filter; }

/* ---- Split-text reveal (words flow inline; clip mask has descender room) ---- */
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.split-inner { display: inline-block; will-change: transform; }

/* ======================================================================
   CONTACT — Dual W Monolith Engineering Experience + form
   ====================================================================== */
.contact {
  position: relative; z-index: 2; overflow: hidden;
  /* tall section gives Ws room to breathe */
  padding: clamp(100px, 13vh, 180px) 0 clamp(120px, 15vh, 200px);
  background:
    radial-gradient(ellipse 70% 55% at 20% 50%, rgba(9,7,20,0.95) 0%, transparent 70%),
    radial-gradient(ellipse 70% 55% at 80% 50%, rgba(7,11,20,0.95) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 50% 50%, #080a10 0%, #050505 100%);
}

/* Full-section WebGL canvas — always behind, never intercepts pointer */
.contact__stage {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0; display: block;
}
@media (max-width: 700px) { .contact__stage { display: none; } }

/* Narrow side dimming vignettes (keep W edges subtle) */
.contact::before, .contact::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 1;
  pointer-events: none;
}
.contact::before {
  left: 0;
  background: linear-gradient(to right, #050505 0%, transparent 100%);
}
.contact::after {
  right: 0;
  background: linear-gradient(to left, #050505 0%, transparent 100%);
}

/* Centred form column — floats above the 3D layer */
.contact__center {
  width: 100%; max-width: 860px;
  padding-inline: var(--gutter);
  margin-inline: auto;
  position: relative; z-index: 4;
}

.contact__head { text-align: center; margin-bottom: 44px; }
.contact__head .eyebrow { justify-content: center; }
.contact__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 5vw, 58px); line-height: 1.02; letter-spacing: -.02em; margin-top: 18px;
}
.contact__title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact__form { position: relative; }
.contact__form::before {
  content: ""; position: absolute; inset: -8% -5%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 52% at 50% 18%, rgba(156,107,255,.18), transparent 72%),
    radial-gradient(46% 46% at 78% 92%, rgba(71,201,255,.12), transparent 74%);
  filter: blur(44px);
}

/* Frosted-glass form panel — sits clearly above 3D */
.glasspanel {
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  border: 1px solid var(--stroke); border-radius: var(--radius-lg);
  backdrop-filter: blur(28px); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.12);
}
.contact .glasspanel {
  background: linear-gradient(158deg, rgba(12,13,20,.88), rgba(8,9,14,.78));
  backdrop-filter: blur(44px) saturate(1.4);
  box-shadow:
    0 80px 200px -60px rgba(0,0,0,.98),
    0 0 0 1px rgba(255,255,255,.07),
    inset 0 1px 0 rgba(255,255,255,.14),
    0 0 80px -30px rgba(156,107,255,.07);
}

/* ---------- Form ---------- */
.form { padding: clamp(24px, 3vw, 40px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { position: relative; display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.field__label { font-family: var(--font-ui); font-weight: 500; font-size: 13.5px; letter-spacing: .04em; color: var(--text-2); }
.field__opt { color: var(--text-3); font-weight: 400; }
.field__input {
  font-family: var(--font-body); font-size: 16px; color: var(--text); width: 100%;
  background: rgba(255,255,255,.035); border: 1px solid var(--stroke); border-radius: 14px; padding: 15px 16px;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.field__input::placeholder { color: var(--text-3); }
.field__input:focus { outline: none; border-color: rgba(156,107,255,.8); box-shadow: 0 0 0 4px rgba(156,107,255,.16), 0 0 20px -8px rgba(156,107,255,.30); background: rgba(255,255,255,.065); }
.field__textarea { resize: vertical; min-height: 118px; line-height: 1.55; }
.field.is-invalid .field__input { border-color: rgba(255,99,99,.7); box-shadow: 0 0 0 4px rgba(255,99,99,.12); }
.field.is-valid .field__input { border-color: rgba(71,201,255,.55); }
.field__error { font-family: var(--font-ui); font-size: 12.5px; color: #ff8080; min-height: 1em; opacity: 0; transform: translateY(-3px); transition: opacity .3s, transform .3s; }
.field.is-invalid .field__error { opacity: 1; transform: none; }
.field__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.counter { font-family: var(--font-ui); font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.counter.is-ok { color: var(--accent-2); }
.counter.is-over { color: #ff8080; }
.counter__num { color: var(--text); }

/* file upload */
.filedrop { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; background: rgba(255,255,255,.03); border: 1px dashed var(--stroke); border-radius: 14px; cursor: none; transition: border-color .3s var(--ease), background .3s var(--ease); }
.filedrop:hover { border-color: rgba(156,107,255,.6); background: rgba(255,255,255,.05); }
.filedrop.is-filled { border-style: solid; border-color: rgba(71,201,255,.5); }
.filedrop__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: none; }
.filedrop__icon { color: var(--text-2); flex: none; display: grid; place-items: center; }
.filedrop__text { font-family: var(--font-ui); font-size: 13.5px; color: var(--text-3); }
.filedrop__text b { color: var(--text); font-weight: 600; }
.filedrop.is-filled .filedrop__text { color: var(--text); }
.form__note { text-align: center; margin-top: 18px; color: var(--text-3); font-size: 13px; }

/* ---------- Custom select ---------- */
.select { position: relative; }
.field:has(.select.is-open) { z-index: 30; }
.select__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.035); border: 1px solid var(--stroke); border-radius: 14px; padding: 15px 16px;
  font-family: var(--font-body); font-size: 16px; text-align: left; transition: border-color .35s var(--ease), box-shadow .35s;
}
.select__trigger:focus-visible { outline: none; border-color: rgba(156,107,255,.7); box-shadow: 0 0 0 4px rgba(156,107,255,.14); }
.select.is-open .select__trigger { border-color: rgba(156,107,255,.7); box-shadow: 0 0 0 4px rgba(156,107,255,.14); }
.select__value[data-placeholder] { color: var(--text-3); }
.select__value { color: var(--text); }
.select__chev { color: var(--text-2); transition: transform .4s var(--ease); }
.select.is-open .select__chev { transform: rotate(180deg); }
.select__list {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 40;
  background: rgba(13,13,17,.98); backdrop-filter: blur(24px); border: 1px solid var(--stroke); border-radius: 16px;
  padding: 8px; box-shadow: var(--shadow); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.select.is-open .select__list { opacity: 1; visibility: visible; transform: none; }
.select__opt {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 10px; font-size: 15px; color: var(--text);
  transition: background .25s, color .25s; cursor: none;
}
.select__opt span { color: var(--text-3); font-size: 12.5px; font-family: var(--font-ui); letter-spacing: .04em; }
.select__opt:hover, .select__opt.is-focused { background: rgba(156,107,255,.16); }
.select__opt[aria-selected="true"] { background: rgba(156,107,255,.24); }
.select__opt:hover span, .select__opt.is-focused span { color: var(--text-2); }

/* ---------- Success overlay ---------- */
.success { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: clamp(80px,12vh,120px) 24px 24px;
  background: rgba(5,5,5,.88); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.success.is-open { opacity: 1; visibility: visible; }
.success__card {
  max-width: 460px; text-align: center; padding: 44px 36px;
  transform: translateY(20px) scale(.96); transition: transform .6s var(--ease);
  background: linear-gradient(158deg, rgba(18,18,22,.96), rgba(12,12,16,.94)) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 0 0 1px rgba(156,107,255,.15), 0 60px 140px -40px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.10) !important;
}
.success.is-open .success__card { transform: none; }
.success__check { color: var(--accent-2); margin: 0 auto 20px; width: fit-content; filter: drop-shadow(0 0 20px rgba(71,201,255,.6)); }
.success__tick { stroke-dasharray: 40; stroke-dashoffset: 40; }
.success.is-open .success__tick { animation: tick .6s var(--ease) .25s forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.success__card h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; margin-bottom: 12px; }
.success__card p { color: var(--text-2); margin-bottom: 26px; }

/* ======================================================================
   FAQ
   ====================================================================== */
.faq { position: relative; z-index: 2; padding: clamp(70px,12vh,140px) 0; }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px,6vw,90px); align-items: start; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }
.faq__aside { position: sticky; top: 120px; }
@media (max-width: 860px) { .faq__aside { position: static; } }
.faq__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 7vw, 84px); line-height: .98; letter-spacing: -.03em; }
.faq__title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.faq__note { margin-top: 22px; color: var(--text-3); max-width: 30ch; }
.faq__list { border-top: 1px solid var(--stroke-soft); }
.qa { border-bottom: 1px solid var(--stroke-soft); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 4px; font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2.2vw, 24px); transition: color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-2); }
.qa__icon { position: relative; width: 20px; height: 20px; flex: none; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; background: currentColor; transform: translate(-50%,-50%); transition: transform .4s var(--ease); border-radius: 2px; }
.qa__icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.qa[open] .qa__icon::after { transform: translate(-50%,-50%) rotate(0deg); }
.qa__body { overflow: hidden; height: 0; }
.qa__body p { padding: 0 4px 28px; color: var(--text-2); max-width: 62ch; font-size: 17px; }

/* ======================================================================
   FOOTER
   ====================================================================== */
.footer { position: relative; z-index: 2; padding-top: clamp(48px, 8vh, 88px); border-top: 1px solid transparent; background: linear-gradient(180deg, transparent, rgba(10,10,13,.5)); }
.footer::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: linear-gradient(90deg, transparent, rgba(156,107,255,.40), rgba(71,201,255,.35), transparent); }
.footer__grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding-bottom: 34px; }
@media (max-width: 620px) { .footer__grid { grid-template-columns: 1fr; gap: 26px; } }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand .brand-mark { height: 44px; filter: drop-shadow(0 0 14px rgba(156,107,255,0.20)); }
.footer__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.footer__tag { color: var(--text-3); font-size: 14px; margin-top: 2px; }
.footer__email { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; font-family: var(--font-ui); color: var(--accent-2); letter-spacing: .01em; transition: color .3s var(--ease), filter .3s var(--ease); }
.footer__email:hover { color: #fff; filter: drop-shadow(0 0 8px rgba(71,201,255,.5)); }
.footer__nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer__nav a { color: var(--text-2); font-size: 15px; position: relative; transition: color .3s; }
.footer__nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.footer__nav a:hover { color: var(--text); }
.footer__nav a:hover::after { transform: scaleX(1); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 40px; color: var(--text-3); font-size: 13px; font-family: var(--font-ui); }

/* Confetti */
.confetti { position: fixed; inset: 0; z-index: 9600; pointer-events: none; }

/* ======================================================================
   MOTION SAFETY / FOCUS / RESPONSIVE
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 5px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}

/* ══════════════════════════════════════════════════════════
   POLISH — quality micro-details
   ══════════════════════════════════════════════════════════ */

/* Eyebrow dot: subtle ambient pulse */
@keyframes dotPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.4); }
}
.eyebrow__dot { animation: dotPulse 3s ease-in-out infinite; }

/* Glasspanel entry origin */
.contact .glasspanel { transform-origin: center bottom; }

/* ══════════════════════════════════════════════════════════
   APPLICATION PAGE — ap-* namespace
   Replaces hero+contact layout. Top agencies reference:
   Locomotive, BASIC/DEPT, Fantasy, Jam3 — focused dark form,
   process steps sidebar, atmospheric depth.
   ══════════════════════════════════════════════════════════ */

/* ── Section shell ─────────────────────────────────────── */
.ap-section {
  position: relative;
  overflow: hidden;
  padding: 0 0 clamp(80px, 10vh, 140px);
}

/* Override contact section background — richer, more atmospheric */
.ap-section.contact {
  background:
    radial-gradient(ellipse 55% 70% at 8%  25%, rgba(156,107,255,0.13) 0%, transparent 55%),
    radial-gradient(ellipse 45% 60% at 92% 75%, rgba(71,201,255,0.09)  0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(10,8,20,1) 0%, rgba(4,4,9,1) 100%);
}

/* contact__center is the scissor reference for the 3D Ws.
   820px centered → ~310px each side for the W sculptures on 1440px screens */
.ap-section .contact__center.ap-center {
  max-width: 760px;
  padding-top: calc(var(--nav-h, 80px) + clamp(52px, 8vh, 100px));
}

/* ── Ambient background orbs ───────────────────────────── */
.ap-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ap-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation-fill-mode: forwards;
}
.ap-orb--1 {
  width: clamp(400px, 42vw, 640px);
  height: clamp(400px, 42vw, 640px);
  background: radial-gradient(circle, rgba(156,107,255,0.22) 0%, transparent 68%);
  top: -8%; left: -14%;
  animation: apOrb1 18s ease-in-out infinite alternate;
}
.ap-orb--2 {
  width: clamp(320px, 36vw, 520px);
  height: clamp(320px, 36vw, 520px);
  background: radial-gradient(circle, rgba(71,201,255,0.16) 0%, transparent 68%);
  bottom: 0%; right: -12%;
  animation: apOrb2 22s ease-in-out infinite alternate;
}
.ap-orb--3 {
  width: clamp(240px, 28vw, 420px);
  height: clamp(240px, 28vw, 420px);
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 68%);
  top: 38%; left: 50%;
  transform: translateX(-50%);
  animation: apOrb3 26s ease-in-out infinite alternate;
}
@keyframes apOrb1 { from { opacity: 1; transform: translate(0,0);       } to { opacity: 0.75; transform: translate(5%, 8%);   } }
@keyframes apOrb2 { from { opacity: 1; transform: translate(0,0);       } to { opacity: 0.75; transform: translate(-6%,-5%);  } }
@keyframes apOrb3 { from { opacity: 1; transform: translateX(-50%);     } to { opacity: 0.6;  transform: translateX(-45%);   } }

/* ── Page heading ──────────────────────────────────────── */
.ap-hd {
  position: relative; z-index: 1;
  text-align: center;
  padding-bottom: clamp(44px, 6vh, 72px);
  will-change: transform;
}
.ap-eyebrow { justify-content: center; }

.ap-title {
  font-family: var(--font-display);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ap-t1 {
  font-weight: 300;
  font-size: clamp(2.5rem, 7.5vw, 7.25rem);
  color: rgba(255,255,255,0.32);
  display: block;
}
.ap-t2 {
  font-weight: 900;
  font-size: clamp(2.8rem, 8.5vw, 8rem);
  display: block;
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 56px rgba(156,107,255,0.32)) drop-shadow(0 0 20px rgba(71,201,255,0.14));
  animation: shimmer 5.5s linear infinite;
}
.ap-sub {
  font-size: clamp(0.9rem, 1.3vw, 1.0625rem);
  line-height: 1.8;
  color: var(--text-2);
  max-width: 56ch;
  margin-inline: auto;
}
.ap-sub__br { display: none; }
@media (min-width: 680px) { .ap-sub__br { display: inline; } }

/* ── Form body — single column ─────────────────────────── */
.ap-body {
  position: relative; z-index: 1;
}

/* ── Form wrap — centered, constrained width ────────────── */
.ap-form-wrap {
  will-change: transform;
}

/* (aside styles removed — sidebar removed from layout) */
.ap-step__h {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.ap-step__p {
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--text-2);
}

.ap-stats {
  display: flex;
  gap: 0;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.ap-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ap-stat + .ap-stat {
  border-left: 1px solid rgba(255,255,255,0.07);
  padding-left: 20px;
}
.ap-stat__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  letter-spacing: -0.04em;
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.ap-stat__l {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-2);
  text-transform: uppercase;
}

.ap-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
}
.ap-privacy svg { flex-shrink: 0; opacity: 0.5; }

/* ── Form wrap ─────────────────────────────────────────── */
.ap-form-wrap { width: 100%; }
.ap-form-wrap .form.glasspanel {
  background: linear-gradient(158deg, rgba(16,14,26,0.96) 0%, rgba(10,10,18,0.94) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(156,107,255,0.10),
    0 32px 80px -20px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 20px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 680px) {
  .ap-section .contact__center.ap-center { max-width: 100%; }
  .ap-form-wrap .form.glasspanel { padding: clamp(20px, 5vw, 32px); border-radius: 14px; }
}
