/* ═══════════════════════════════════════════════════════════════════
   BGP ENGINEERING — bgpengineering.com
   Design: light & premium · huge type · smooth motion
   Fonts are self-hosted (assets/fonts) · no external requests
   ═══════════════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-var-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono-var-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────────── */
:root {
  --bone:    #F4F0E6;
  --bone-2:  #EAE4D6;
  --bone-3:  #E0D9C7;
  --ink:     #17130F;
  --ink-2:   #211C16;
  --ink-soft:#6B6252;
  --accent:  #E84A0F;
  --accent-2:#C93B08;
  --line:    rgba(23, 19, 15, .16);
  --line-soft: rgba(23, 19, 15, .09);

  --font-d: 'Space Grotesk', 'Arial Black', sans-serif;
  --font-b: 'Inter', 'Helvetica Neue', sans-serif;
  --font-m: 'JetBrains Mono', 'Courier New', monospace;

  --pad-x: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.65, .05, .18, 1);
  --radius: 22px;
}

/* ── Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.has-smooth { scroll-behavior: auto; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
li { list-style: none; }
::selection { background: var(--accent); color: var(--bone); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.mono {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .09em;
}
.accent { color: var(--accent); font-style: normal; }

.section { padding: clamp(90px, 12vw, 170px) var(--pad-x); max-width: 1520px; margin-inline: auto; }

/* split-line wrapper (JS wraps .line content into .line-inner) */
.line { display: block; overflow: hidden; }
.line-inner { display: block; will-change: transform; }

/* ── Grain ─────────────────────────────────────────────────────── */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  opacity: .045; pointer-events: none; z-index: 140;
}

/* ── Cursor ────────────────────────────────────────────────────── */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 950;
  border-radius: 50%; mix-blend-mode: exclusion; background: #fff;
}
.cursor { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  background: transparent; border: 1.5px solid #fff;
  transition: transform .35s var(--ease), opacity .3s;
}
.cursor-ring.is-active { transform: scale(1.8); }
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

/* ── Preloader ─────────────────────────────────────────────────── */
.preloader { position: fixed; inset: 0; z-index: 900; }
.preloader__panel { position: absolute; left: 0; width: 100%; height: 50.5%; background: var(--ink); }
.preloader__panel--top { top: 0; }
.preloader__panel--bottom { bottom: 0; }
.preloader__ui { position: absolute; inset: 0; padding: clamp(24px, 4vw, 56px); color: var(--bone); }
.preloader__state { position: absolute; top: clamp(24px, 4vw, 56px); left: clamp(24px, 4vw, 56px); font-size: 13px; line-height: 1.9; opacity: .85; }
.preloader__state #preFsm { color: var(--accent); }
.preloader__count {
  position: absolute; right: clamp(24px, 4vw, 56px); bottom: clamp(18px, 3vw, 44px);
  font-family: var(--font-d); font-weight: 700; font-size: clamp(90px, 16vw, 220px);
  line-height: 1; letter-spacing: -.04em;
}
.preloader__count::after { content: '%'; font-size: .35em; vertical-align: super; color: var(--accent); }
.preloader__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: rgba(244,240,230,.12); }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ── Header ────────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  transition: background .4s, box-shadow .4s, padding .4s;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bone) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-block: 12px;
}
.logo { display: flex; align-items: center; gap: 12px; z-index: 520; }
.logo__mark { width: 34px; height: 34px; flex: none; transition: transform .5s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__mark--lg { width: 46px; height: 46px; }
.logo__text { font-family: var(--font-d); font-weight: 700; font-size: 17px; letter-spacing: .02em; line-height: 1; }
.logo__text em { display: block; font-style: normal; font-weight: 500; font-size: 8.5px; letter-spacing: .42em; color: var(--ink-soft); margin-top: 3px; }

.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav__link { font-family: var(--font-d); font-weight: 500; font-size: 15px; position: relative; padding: 4px 0; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__right { display: flex; align-items: center; gap: 16px; z-index: 520; }

/* burger */
.burger { display: none; width: 44px; height: 44px; background: var(--ink); border: 0; border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; width: 18px; height: 2px; background: var(--bone); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 480; background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad-x);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu.is-open { clip-path: inset(0 0 0% 0); visibility: visible; transition: clip-path .7s var(--ease); }
body.menu-open .logo__text { color: var(--bone); }
body.menu-open .logo__text em { color: rgba(244,240,230,.55); }
.menu__link {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-d); font-weight: 700; font-size: clamp(27px, 7.2vw, 60px);
  padding: 10px 0; border-bottom: 1px solid rgba(244,240,230,.12);
  transform: translateY(40px); opacity: 0; transition: transform .6s var(--ease), opacity .6s;
}
.menu.is-open .menu__link { transform: none; opacity: 1; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: .10s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: .16s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: .22s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: .28s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: .34s; }
.menu__link--cta { color: var(--accent); }
.menu__num { font-size: 13px; color: var(--accent); }
.menu__foot { position: absolute; bottom: 28px; left: var(--pad-x); opacity: .5; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-d); font-weight: 600; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
  will-change: transform;
}
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn--xl { padding: 20px 44px; font-size: 18px; }
.btn--accent { background: var(--accent); color: #FFF6EC; }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn__ico { width: 15px; height: 15px; flex: none; transition: transform .35s var(--ease); }
.btn:hover .btn__ico { transform: translateX(4px); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(120px, 16vh, 180px) var(--pad-x) 90px;
  max-width: 1520px; margin-inline: auto;
}
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__net-links path { fill: none; stroke: var(--line-soft); stroke-width: 1.4; stroke-dasharray: 5 7; }
.hero__net-nodes circle { fill: var(--bone-3); }
#packets circle { fill: var(--accent); }
.hero::before {
  content: ''; position: absolute; z-index: -2; top: -10%; right: -5%;
  width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 74, 15, .13), transparent 70%);
}

.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }

.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); margin-bottom: clamp(18px, 2.6vw, 30px); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,74,15,.5);} 100% { box-shadow: 0 0 0 12px rgba(232,74,15,0);} }

.hero__title {
  font-family: var(--font-d); font-weight: 700; text-transform: uppercase;
  font-size: clamp(52px, 8.6vw, 132px); line-height: .96; letter-spacing: -.03em;
}
.hero__lede { max-width: 54ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); margin-top: clamp(22px, 3vw, 34px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 3.4vw, 40px); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(26px, 3.2vw, 38px); }
.hero__chips li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--ink-soft); background: color-mix(in srgb, var(--bone-2) 55%, transparent); }

/* photo card */
.hero__visual { position: relative; justify-self: center; }
.polaroid {
  background: #FCFAF4; border-radius: 18px; padding: 14px 14px 12px;
  box-shadow: 0 30px 80px -20px rgba(23, 19, 15, .35), 0 4px 16px rgba(23,19,15,.08);
  transform: rotate(3deg); width: min(400px, 78vw);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  will-change: transform;
}
.polaroid:hover { transform: rotate(.5deg) scale(1.015); }
.polaroid__img { border-radius: 10px; overflow: hidden; }
.polaroid__img img { transition: transform 1s var(--ease); }
.polaroid:hover .polaroid__img img { transform: scale(1.04); }
.polaroid figcaption { text-align: center; padding-top: 12px; color: var(--ink-soft); letter-spacing: .18em; font-size: 11px; }

.badge { position: absolute; top: -44px; right: -34px; width: clamp(104px, 10vw, 136px); animation: spin 14s linear infinite; filter: drop-shadow(0 10px 24px rgba(201,59,8,.35)); }
.badge svg { width: 100%; height: auto; }
.badge__bg { fill: var(--accent); }
.badge__text { fill: #FFF6EC; font-family: var(--font-m); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; }
.badge__check { fill: none; stroke: #FFF6EC; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__scroll { position: absolute; bottom: 30px; left: var(--pad-x); display: flex; align-items: center; gap: 12px; color: var(--ink-soft); }
.hero__scroll i { display: block; width: 54px; height: 1.5px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { 40% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* ── Ticker ────────────────────────────────────────────────────── */
.ticker {
  background: var(--accent); color: #FFF6EC; overflow: hidden;
  transform: rotate(-2deg) scale(1.02); margin: clamp(10px, 2vw, 30px) -2vw;
  box-shadow: 0 18px 50px -18px rgba(201, 59, 8, .55);
}
.ticker__track { display: flex; width: max-content; padding: 16px 0; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__group span { font-family: var(--font-d); font-weight: 700; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: .02em; padding: 0 18px; white-space: nowrap; }
.ticker__group i { font-style: normal; font-size: 12px; opacity: .7; }

/* ── Why ───────────────────────────────────────────────────────── */
.statement {
  font-family: var(--font-d); font-weight: 600;
  font-size: clamp(38px, 5.4vw, 78px); line-height: 1.04; letter-spacing: -.02em;
  max-width: 20ch;
}
.statement--sm { font-size: clamp(30px, 4vw, 54px); max-width: 24ch; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(50px, 7vw, 90px); }
.stat { border-top: 2px solid var(--ink); padding-top: 22px; }
.stat__num { font-family: var(--font-d); font-weight: 700; font-size: clamp(46px, 6vw, 88px); line-height: 1; letter-spacing: -.03em; }
.stat__num .count::after { content: attr(data-suffix); color: var(--accent); }
.stat__label { color: var(--ink-soft); margin-top: 12px; max-width: 30ch; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: clamp(50px, 7vw, 90px); }
.benefit {
  background: var(--bone-2); border-radius: var(--radius); padding: clamp(26px, 2.6vw, 40px);
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.benefit::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.benefit:hover { transform: translateY(-8px); box-shadow: 0 24px 60px -24px rgba(23,19,15,.25); }
.benefit:hover::before { transform: scaleX(1); }
.benefit__ico { width: 34px; height: 34px; color: var(--accent); margin-bottom: 20px; }
.benefit h3 { font-family: var(--font-d); font-weight: 600; font-size: clamp(19px, 1.6vw, 23px); margin-bottom: 10px; }
.benefit p { color: var(--ink-soft); font-size: 15.5px; }

/* ── Terminal ──────────────────────────────────────────────────── */
.term-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.term-note { color: var(--ink-soft); margin-top: 26px; }
.terminal {
  background: var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(23, 19, 15, .5);
}
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: var(--ink-2); }
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #4A4238; }
.terminal__bar i:nth-child(1) { background: #E8620F; }
.terminal__bar span { margin-left: 10px; color: rgba(244,240,230,.45); font-size: 11px; }
.terminal__body {
  padding: 22px 24px 26px; color: #E9E2D0; font-size: clamp(11px, 1.15vw, 13.5px);
  line-height: 1.75; min-height: 300px; white-space: pre; overflow-x: auto;
}
.terminal__body .t-accent { color: var(--accent); }
.terminal__body .t-green { color: #9ECB6A; }
.terminal__body .t-dim { color: rgba(233,226,208,.5); }
.terminal__body .t-caret { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ── Course ────────────────────────────────────────────────────── */
.course__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 80px); }
.course__sub { color: var(--ink-soft); margin-top: 22px; font-size: clamp(16px, 1.5vw, 18px); }
.course__list { border-top: 1px solid var(--line); }
.module {
  position: relative; display: grid;
  grid-template-columns: 70px 1.4fr .7fr 60px; gap: clamp(14px, 2.5vw, 40px); align-items: center;
  padding: clamp(24px, 3vw, 38px) clamp(6px, 1.4vw, 20px);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.module::before {
  content: ''; position: absolute; inset: 0; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: 0;
}
.module:hover::before { transform: scaleY(1); transform-origin: top; }
.module > * { position: relative; z-index: 1; transition: color .4s var(--ease); }
.module__num { color: var(--accent); font-size: 14px; }
.module__txt h3 { font-family: var(--font-d); font-weight: 600; font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -.01em; transition: color .4s var(--ease); }
.module__txt p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; max-width: 52ch; transition: color .4s var(--ease); }
.module__tags { color: var(--ink-soft); font-size: 11px; text-align: right; transition: color .4s var(--ease); }
.module__arrow { font-size: 26px; justify-self: end; transform: translateX(-14px); opacity: 0; transition: transform .45s var(--ease), opacity .45s, color .4s; }
.module:hover .module__arrow { transform: none; opacity: 1; color: var(--accent); }
.module:hover .module__txt h3 { color: var(--bone); }
.module:hover .module__txt p, .module:hover .module__tags { color: rgba(244,240,230,.55); }

/* ── About ─────────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 100px); align-items: center; }
.polaroid--about { transform: rotate(-2.5deg); margin-inline: auto; }
.polaroid--about:hover { transform: rotate(-.5deg) scale(1.015); }
.polaroid--about .polaroid__img img { filter: grayscale(.5) sepia(.14) contrast(1.02); transition: filter .8s var(--ease), transform 1s var(--ease); }
.polaroid--about:hover .polaroid__img img { filter: none; }
.about__text { max-width: 56ch; display: grid; gap: 18px; margin-top: clamp(22px, 3vw, 32px); font-size: clamp(16px, 1.5vw, 18.5px); }
.about__text p { color: var(--ink-soft); }
.about__text p:first-child { color: var(--ink); }
.about__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.about__chips li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--ink-soft); }
.about__sig { margin-top: 30px; color: var(--ink); font-size: 13px; }

/* ── Signup ────────────────────────────────────────────────────── */
.signup { max-width: none; background: var(--ink); color: var(--bone); border-radius: clamp(26px, 3vw, 44px); margin: 0 clamp(10px, 1.6vw, 24px); padding-block: clamp(90px, 11vw, 150px); }
.signup__inner { max-width: 1100px; margin-inline: auto; text-align: center; }
.signup__title {
  font-family: var(--font-d); font-weight: 700; text-transform: uppercase;
  font-size: clamp(54px, 9.6vw, 150px); line-height: .95; letter-spacing: -.03em;
}
.signup__title .outline {
  font-style: normal; color: transparent;
  -webkit-text-stroke: 2px var(--accent); text-stroke: 2px var(--accent);
}
.signup__sub { color: rgba(244,240,230,.6); margin-top: 26px; font-size: clamp(16px, 1.5vw, 19px); }

.form { max-width: 720px; margin: clamp(40px, 5vw, 60px) auto 0; }
.form__row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; text-align: left; }
.field { position: relative; }
.field input {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid rgba(244,240,230,.28);
  color: var(--bone); font-family: var(--font-b); font-size: 19px; padding: 26px 2px 14px;
  transition: border-color .35s;
}
.field input:focus { outline: none; border-color: var(--accent); }
.field label {
  position: absolute; left: 2px; top: 26px; color: rgba(244,240,230,.5);
  transition: top .3s var(--ease), font-size .3s var(--ease), color .3s; pointer-events: none;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label { top: 2px; font-size: 10px; color: var(--accent); }
.field.is-error input { border-color: #FF6B4A; }
.form .btn--xl { margin-top: 40px; }
.form__micro { margin-top: 22px; color: rgba(244,240,230,.4); }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq .statement--sm { margin-bottom: clamp(36px, 5vw, 64px); }
.faq__list { border-top: 1px solid var(--line); max-width: 980px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  list-style: none; cursor: pointer; padding: clamp(20px, 2.6vw, 30px) 4px;
  font-family: var(--font-d); font-weight: 600; font-size: clamp(19px, 2.2vw, 28px);
  transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa__icon { position: relative; width: 34px; height: 34px; flex: none; border: 1.5px solid var(--line); border-radius: 50%; transition: background .4s var(--ease), border-color .4s, transform .5s var(--ease); }
.qa__icon::before, .qa__icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.8px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .45s var(--ease), background .4s; }
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__icon { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.qa[open] .qa__icon::before, .qa[open] .qa__icon::after { background: #FFF6EC; }
.qa[open] .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__body { overflow: hidden; }
.qa__body p { color: var(--ink-soft); max-width: 68ch; padding: 0 4px clamp(22px, 2.6vw, 30px); font-size: 16.5px; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer { position: relative; padding: clamp(60px, 8vw, 110px) var(--pad-x) 46px; overflow: hidden; }
.footer__marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 10px 0; margin-bottom: clamp(46px, 6vw, 80px); }
.footer__marquee-track { display: flex; width: max-content; will-change: transform; }
.footer__marquee-track span {
  font-family: var(--font-d); font-weight: 700; font-size: clamp(40px, 6.5vw, 92px);
  white-space: nowrap; text-transform: uppercase; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink); opacity: .8;
}
.footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: start; max-width: 1520px; margin-inline: auto; }
.footer__brand p { margin-top: 20px; color: var(--ink-soft); max-width: 34ch; }
.footer__nav { display: grid; gap: 12px; }
.footer__nav a { font-family: var(--font-d); font-weight: 500; font-size: 17px; width: fit-content; position: relative; }
.footer__nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.footer__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__meta { display: grid; gap: 22px; color: var(--ink-soft); line-height: 2; }
.footer__meta #utcClock { color: var(--accent); }
.totop {
  position: absolute; right: var(--pad-x); bottom: 46px;
  width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background .4s var(--ease), color .4s, border-color .4s;
}
.totop svg { width: 20px; height: 20px; }
.totop:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .term-wrap { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .polaroid--about { margin-inline: 0; }
  .module { grid-template-columns: 50px 1fr 44px; }
  .module__tags { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__right .btn { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { justify-self: start; margin-top: 20px; }
  .polaroid { width: min(340px, 74vw); }
  .badge { right: -18px; top: -36px; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .benefits { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .totop { position: static; margin-top: 40px; }
  .hero__scroll { display: none; }
}

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
