/* ============================================================
   RRDA — Right Result Digital Agency
   Premium monochrome single-screen — styles
   ============================================================ */

:root {
  /* palette — strict monochrome */
  --ink:        #060605;
  --ink-2:      #0c0c0b;
  --paper:      #f3f1ea;
  --paper-dim:  rgba(243, 241, 234, 0.56);
  --paper-faint:rgba(243, 241, 234, 0.30);
  --line:       rgba(243, 241, 234, 0.13);
  --line-soft:  rgba(243, 241, 234, 0.07);

  /* type */
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body:    "Manrope", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --pad: clamp(18px, 3.4vw, 46px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (pointer: fine) {
  /* hide native cursor on desktop, we draw our own */
  body, a, button { cursor: none; }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; }
em { font-style: normal; }

/* ============================================================
   ATMOSPHERE LAYERS
   ============================================================ */

#smoke {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
#smoke.is-on { opacity: 1; }

/* film grain */
.grain {
  position: fixed;
  inset: -150%;
  z-index: 6;
  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='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.55s steps(3) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-6%, 3%); }
  66%  { transform: translate(4%, -5%); }
  100% { transform: translate(-3%, 2%); }
}

/* vignette + center glow */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(100% 70% at 50% 36%, rgba(243,241,234,0.022) 0%, transparent 42%),
    radial-gradient(150% 130% at 50% 52%, transparent 48%, rgba(0,0,0,0.5) 82%, rgba(0,0,0,0.88) 100%);
}

/* faint horizontal scanlines for the "screen" texture */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.4;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.16) 3px
  );
  mix-blend-mode: multiply;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor__ring {
  position: absolute;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid #fff;
  border-radius: 50%;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .25s;
}
.cursor__dot {
  position: absolute;
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: #fff;
  border-radius: 50%;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.is-grab  .cursor__ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.cursor.is-hidden { opacity: 0; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ============================================================
   STAGE / LAYOUT
   ============================================================ */
.stage {
  position: relative;
  z-index: 4;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad);
  pointer-events: none; /* let chips below receive drags; children re-enable */
}
.stage a, .stage button { pointer-events: auto; }

/* TOP BAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--f-mono);
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.06em;
}
.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
}
.brand__mark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: -0.02em;
}
.brand__slash { font-weight: 300; opacity: 0.55; margin: 0 1px; }
.brand__reg { font-family: var(--f-mono); font-size: 9px; opacity: 0.5; margin-top: 2px; }

.topnav {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  text-transform: uppercase;
}
.topnav a {
  position: relative;
  color: var(--paper-dim);
  transition: color .35s var(--ease);
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.topnav a:hover { color: var(--paper); }
.topnav a:hover::after { transform: scaleX(1); transform-origin: left; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper-dim);
  text-transform: uppercase;
}
.status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 0 rgba(243,241,234,0.7);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(243,241,234,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(243,241,234,0); }
  100% { box-shadow: 0 0 0 0 rgba(243,241,234,0); }
}

/* HERO */
.hero {
  align-self: center;
  justify-self: center;
  text-align: center;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.4vh, 30px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: clamp(10px, 1vw, 12.5px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.kicker__line {
  width: clamp(28px, 6vw, 70px);
  height: 1px;
  background: var(--line);
}

.title {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-size: clamp(48px, 11vw, 168px);
  text-transform: uppercase;
}
.title__line { display: block; }
/* outlined word — the premium "engraved" treatment */
.title__line--out {
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--paper);
  text-stroke: 1.4px var(--paper);
  position: relative;
}
.title__line--out::after {
  content: "решения";
  position: absolute;
  inset: 0;
  color: var(--paper);
  -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0);
  animation: fillSweep 4.6s var(--ease-in-out) 1.4s infinite;
}
@keyframes fillSweep {
  0%, 18%   { clip-path: inset(0 100% 0 0); }
  44%, 62%  { clip-path: inset(0 0 0 0); }
  88%, 100% { clip-path: inset(0 0 0 100%); }
}

.lede {
  max-width: 640px;
  font-size: clamp(15px, 1.55vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--paper-dim);
}
.lede em { color: var(--paper); font-weight: 500; }

/* ACTIONS */
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.btn__label, .btn__arrow { position: relative; z-index: 2; }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--primary {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}
.btn--primary .btn__glow {
  position: absolute;
  inset: -40%;
  z-index: 1;
  background: radial-gradient(closest-side, rgba(255,255,255,0.9), transparent 70%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  mix-blend-mode: screen;
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0; z-index: 1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .5s var(--ease-in-out);
}
.btn--primary:hover { color: var(--paper); }
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary:hover .btn__glow { opacity: 0.18; }

.btn--ghost {
  color: var(--paper);
  border: 1px solid var(--line);
  font-weight: 500;
}
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0; z-index: 1;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-in-out);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--paper); }
.btn--ghost:hover::before { transform: scaleX(1); }
.btn--ghost .btn__label { position: relative; z-index: 2; }

.btn--sm { padding: 13px 22px; font-size: 12px; }

.hint {
  font-family: var(--f-mono);
  font-size: clamp(10.5px, 1vw, 12.5px);
  letter-spacing: 0.04em;
  color: var(--paper-faint);
}
.hint__key { color: var(--paper); }

/* static service tags (mobile) — hidden on desktop */
.hero__tags { display: none; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(243,241,234,0.02);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--paper-dim);
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--paper-dim);
}

/* MARQUEE */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: clamp(11px, 1.05vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  animation: marquee 38s linear infinite;
}
.marquee__track .sep { color: var(--paper-faint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* corner meta */
.meta {
  position: fixed;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-faint);
  pointer-events: none;
}
.meta--bl { left: var(--pad); bottom: calc(var(--pad) + 44px); }
.meta--br { right: var(--pad); bottom: calc(var(--pad) + 44px); text-align: right; }

/* ============================================================
   FLOATING PHYSICS CHIPS
   ============================================================ */
.chips {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.chip {
  position: absolute;
  top: 0; left: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(10,10,9,0.35);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
  white-space: nowrap;
  pointer-events: auto;
  will-change: transform;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--paper-dim);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.chip:hover {
  color: var(--paper);
  border-color: var(--paper);
}
.chip:hover::before { background: var(--paper); transform: scale(1.3); }
.chip.is-grabbed {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.chip.is-grabbed::before { background: var(--ink); }

/* ============================================================
   QUIZ OVERLAY
   ============================================================ */
.quiz {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 40px);
}
.quiz[hidden] { display: none; }

.quiz__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,3,2,0.72);
  backdrop-filter: blur(14px) saturate(0.6);
  -webkit-backdrop-filter: blur(14px) saturate(0.6);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.quiz.is-open .quiz__backdrop { opacity: 1; }

.quiz__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 92vh;
  max-height: 92svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 50px 120px rgba(0,0,0,0.7);
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.quiz.is-open .quiz__panel { opacity: 1; transform: none; }

/* texture inside panel */
.quiz__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(110% 70% at 50% -10%, rgba(243,241,234,0.06), transparent 60%);
}

.quiz__bar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
  padding: 20px clamp(20px, 4vw, 36px);
  border-bottom: 1px solid var(--line-soft);
}
.quiz__brand { display: flex; flex-direction: column; gap: 3px; }
.quiz__brand .brand__mark { font-size: 17px; }
.quiz__brandsub {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.quiz__progress { display: flex; flex-direction: column; gap: 8px; }
.quiz__count {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--paper-dim);
  text-align: center;
}
.quiz__track {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.quiz__fill {
  height: 100%;
  width: 20%;
  background: var(--paper);
  border-radius: 2px;
  transition: width .6s var(--ease);
}
.quiz__close {
  position: relative;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.quiz__close span {
  position: absolute;
  width: 15px; height: 1.4px;
  background: var(--paper);
}
.quiz__close span:first-child { transform: rotate(45deg); }
.quiz__close span:last-child { transform: rotate(-45deg); }
.quiz__close:hover { border-color: var(--paper); transform: rotate(90deg); }

.quiz__body {
  position: relative;
  padding: clamp(26px, 5vw, 46px) clamp(20px, 4vw, 36px);
  overflow-y: auto;
}

/* a single step */
.step { display: none; }
.step.is-active { display: block; animation: stepIn .55s var(--ease) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.step__no {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 14px;
}
.step__q {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step__sub {
  font-size: 14.5px;
  color: var(--paper-dim);
  margin-bottom: 28px;
}

/* option grid */
.opts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.opts--one { grid-template-columns: 1fr; }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; } }

.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(243,241,234,0.012);
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.opt:hover { border-color: var(--paper-dim); transform: translateY(-2px); }
.opt__tick {
  flex: none;
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  place-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.opt__tick::after {
  content: "";
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--ink);
  transform: scale(0);
  transition: transform .3s var(--ease);
}
.opt--radio .opt__tick, .opt--radio .opt__tick::after { border-radius: 50%; }
.opt__txt { display: flex; flex-direction: column; gap: 3px; }
.opt__txt b { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.opt__txt small {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--paper-faint);
}
.opt.is-on {
  border-color: var(--paper);
  background: rgba(243,241,234,0.05);
}
.opt.is-on .opt__tick { background: var(--paper); border-color: var(--paper); }
.opt.is-on .opt__tick::after { transform: scale(1); }

/* contact step */
.fields { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.field input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(243,241,234,0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.field input::placeholder { color: var(--paper-faint); }
.field input:focus { outline: none; border-color: var(--paper); background: rgba(243,241,234,0.04); }
.field.is-error input { border-color: #c9c9c4; box-shadow: 0 0 0 3px rgba(243,241,234,0.08); }
.field__err {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
  opacity: 0;
  height: 0;
  transition: opacity .3s var(--ease);
}
.field.is-error .field__err { opacity: 1; height: auto; }
.consent {
  font-size: 12px;
  color: var(--paper-faint);
  margin-top: 4px;
  line-height: 1.5;
}

/* success */
.done { text-align: center; padding: clamp(20px, 5vw, 50px) 0; }
.done__mark {
  width: 76px; height: 76px;
  margin: 0 auto 26px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: popIn .7s var(--ease) both;
}
.done__mark svg { width: 30px; height: 30px; }
.done__mark path {
  stroke: var(--paper);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw .7s var(--ease) .35s forwards;
}
@keyframes popIn { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__q {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.done__sub { color: var(--paper-dim); font-size: 15.5px; max-width: 460px; margin: 0 auto 26px; line-height: 1.5; }
.done__summary {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 540px;
}
.done__tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--paper-dim);
}

/* quiz nav */
.quiz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px clamp(20px, 4vw, 36px);
  border-top: 1px solid var(--line-soft);
}
.quiz__nav .btn--ghost[hidden] { visibility: hidden; }

/* ============================================================
   ENTRANCE REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
}
.is-revealed [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
.is-revealed .kicker  { transition-delay: .15s; }
.is-revealed .title   { transition-delay: .28s; }
.is-revealed .lede    { transition-delay: .5s; }
.is-revealed .actions { transition-delay: .66s; }
.is-revealed .hint    { transition-delay: .8s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .topnav { display: none; }
  .meta { display: none; }
  .chips { display: none; }                /* drop floating physics on mobile */
  .hero__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 92vw;
    margin-top: 2px;
  }
  .marquee { padding-top: 14px; }
  .hero { gap: clamp(14px, 2.2vh, 22px); max-width: 100%; }
  .title { font-size: clamp(30px, 9.5vw, 58px); line-height: 0.96; }
  .lede { font-size: 15px; max-width: 86vw; }
  .actions { flex-direction: column; align-items: center; width: min(360px, 86vw); }
  .actions .btn { justify-content: center; width: 100%; padding: 15px 22px; }
  .btn { font-size: 12px; }
}
@media (max-width: 520px) {
  :root { --pad: 16px; }
  .status__txt { display: none; }
  .title { font-size: clamp(26px, 8.6vw, 42px); }
  .kicker { font-size: 10px; letter-spacing: 0.2em; gap: 10px; }
  .lede { font-size: 14px; line-height: 1.45; }
  .hint { font-size: 10.5px; }
  .marquee__track { font-size: 11px; gap: 18px; }
  .quiz__bar { gap: 12px; padding: 16px 18px; }
  .quiz__body { padding: 24px 18px 8px; }
  .step__q { font-size: clamp(22px, 7vw, 30px); }
  .quiz__nav { padding: 14px 18px; }
}
/* very short viewports — keep the single screen intact */
@media (max-height: 620px) and (min-width: 821px) {
  .title { font-size: clamp(40px, 9vw, 110px); }
  .hero { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain, .scanlines { display: none; }
}

/* ============================================================
   CONSULT MODAL (short form, reuses quiz visuals)
   ============================================================ */
.quiz__panel--sm { width: min(480px, 100%); }
.quiz__bar--sm { grid-template-columns: 1fr auto; }
.quiz__nav--end { justify-content: flex-end; }
.consult .quiz__body { padding-bottom: 8px; }

/* ============================================================
   THANKS PAGE
   ============================================================ */
.thanks {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--pad);
}
.thanks__inner {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.6vh, 26px);
  animation: stepIn .8s var(--ease) both;
}
.thanks__mark {
  width: 92px; height: 92px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: popIn .8s var(--ease) both;
}
.thanks__mark svg { width: 38px; height: 38px; }
.thanks__mark path {
  stroke: var(--paper);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw .8s var(--ease) .45s forwards;
}
.thanks__kicker {
  font-family: var(--f-mono);
  font-size: clamp(10px, 1vw, 12.5px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.thanks__title {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-size: clamp(38px, 7vw, 92px);
  text-transform: uppercase;
}
.thanks__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 460px;
}
.thanks__sub em { color: var(--paper); font-weight: 500; }
.thanks .actions { margin-top: 6px; }
