/* Ardes AI landing — mobile first.
   The page borrows the booth video's grammar: navy "power" grounds and the light paper ground, joined by a slanted
   cut with the red thread running along it; Manrope 400/600 in Bulgarian letterforms; the neural brain as the only AI visual. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/manrope-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* grounds (from the video's token block) */
  --navy-1: #0d4088;
  --navy-2: #062c66;
  --navy-3: #031a40;
  --paper: #f4f2ed;
  --card: #ffffff;
  /* ink */
  --ink: #004388;          /* Ardes wordmark blue */
  --ink-soft: #4a5b7a;
  --on-navy: #f4f2ed;
  --on-navy-soft: #c3d0e8;
  /* the thread */
  --thread: #a22d4c;       /* on paper */
  --thread-lit: #ef5a76;   /* on navy */
  --action: #a22d4c;
  --action-hover: #8a2340;
  --rule: rgba(0, 67, 136, 0.14);
  --field-border: rgba(0, 67, 136, 0.24);
  --ok: #2f9e60;
  --focus: #004388;

  --cut: clamp(52px, 13vw, 132px);   /* height of every slanted edge */
  --gutter: 16px;
  --fs-display: clamp(2.55rem, 10.4vw, 5.4rem);
  --fs-h2: clamp(1.9rem, 7.2vw, 3.25rem);
  --fs-h3: 1.1875rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 400;
  font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; /* the thread runs past both edges of the screen, like in the video */
}
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- grounds ---------- */
.ground-navy {
  --focus: var(--thread-lit);
  position: relative; color: var(--on-navy);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(162, 45, 76, 0.28) 0%, rgba(162, 45, 76, 0) 45%),
    radial-gradient(110% 90% at 30% 30%, var(--navy-1) 0%, var(--navy-2) 52%, var(--navy-3) 100%);
}
/* the video's static film grain, so the navy never looks like a flat web fill */
.ground-navy::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ground-navy > * { position: relative; z-index: 1; }
.ground-navy a:not(.btn) { color: var(--on-navy); }

/* ---------- the slanted cut: every change of ground is the video's thread wipe, frozen ---------- */
.cut { position: relative; z-index: 3; height: var(--cut); pointer-events: none; overflow-x: clip; overflow-clip-margin: 0; }
.ground-navy + .cut { margin-top: calc(-1 * var(--cut)); }
.cut + .ground-navy { margin-top: calc(-1 * var(--cut)); }
.cut svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 5px rgba(239, 90, 118, 0.7)); }
.cut__line { stroke: #e04a69; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.cut__glow { stroke: rgba(239, 90, 118, 0.35); stroke-width: 7px; vector-effect: non-scaling-stroke; }
.hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.audit { clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.foot { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--action { background: var(--action); color: #fff; }
.btn--action:hover { background: var(--action-hover); }
.ground-navy .btn--action { --action: #cf3456; --action-hover: #b82a4a; }
.btn--quiet { background: rgba(244, 242, 237, 0.07); color: var(--on-navy); border-color: rgba(244, 242, 237, 0.34); }
.btn--quiet:hover { background: rgba(244, 242, 237, 0.14); }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(0, 67, 136, 0.3); }
.btn--line:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn__icon { width: 18px; height: 18px; fill: currentColor; margin-left: -4px; }
.btn__meta { font-weight: 400; opacity: 0.72; font-variant-numeric: tabular-nums; }
.btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }

/* =========================================================================================================
   Hero
   ========================================================================================================= */
.hero { overflow: hidden; padding: max(20px, env(safe-area-inset-top)) 0 calc(var(--cut) + 44px); }
.hero__inner { position: relative; }
.hero__logo { display: inline-block; position: relative; z-index: 2; }
.hero__logo img { width: 200px; height: auto; }
.hero__stage { position: absolute; z-index: 0; top: 14px; right: -104px; width: 392px; height: 392px; transform: translate3d(0, var(--py, 0px), 0); } /* --py: slow drift against the page (app.js) */
.brain { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit path { fill: none; stroke: var(--thread-lit); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 0; }
.orbit--back { opacity: 0.4; z-index: 1; }
.orbit--front { z-index: 2; }
.orbit--front { filter: drop-shadow(0 0 6px rgba(239, 90, 118, 0.75)); }
.hero__copy { position: relative; z-index: 2; margin-top: 196px; }
.display { font-size: var(--fs-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
.display .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.display .line__in { display: block; }
.display .ai { color: var(--thread-lit); }
.hero__lead { margin-top: 20px; max-width: 34em; color: var(--on-navy-soft); font-size: 1.0625rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__actions .btn--action { flex: 1 1 100%; }
.hero__actions .btn--quiet { flex: 1 1 100%; }
.hero__free { margin-top: 12px; color: var(--on-navy-soft); font-size: var(--fs-small); }
.hero__booth { margin-top: 22px; padding-left: 14px; border-left: 2px solid var(--thread-lit); color: var(--on-navy-soft); font-size: var(--fs-small); max-width: 36em; }
html[data-phase="after"] [data-when="event"] { display: none; }

/* The one orchestrated moment: on load the thread cuts in, the orbit coils round the brain, the promise rises. */
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes coil { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes spark { 0% { opacity: 0; transform: scale(0.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.8); } }
.display .line__in { animation: rise 1s var(--ease-out) 0.35s both; }
.display .line + .line .line__in { animation-delay: 0.43s; }
.hero__lead, .hero__actions, .hero__free, .hero__booth { animation: fade 0.8s ease-out 0.8s both; }
.cut--load svg { animation: wipe 0.95s cubic-bezier(0.65, 0, 0.35, 1) 0.05s both; }
.cut__spark { position: absolute; right: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 0%, #ffd2dc 30%, rgba(239, 90, 118, 0.6) 55%, rgba(239, 90, 118, 0) 72%);
  animation: spark 0.7s ease-out 0.9s both; }
.orbit--back path { animation: coil 0.6s cubic-bezier(0.5, 0, 0.75, 0) 0.45s both; }
.orbit--front path { animation: coil 0.75s cubic-bezier(0.25, 1, 0.5, 1) 1.05s both; }
.brain { animation: fade 1s ease-out 0.5s both; }

/* =========================================================================================================
   Route — the services on one thread; tapping a stop adds it to the enquiry
   ========================================================================================================= */
.route { padding: 56px 0 104px; }
.route__intro p { margin-top: 16px; color: var(--ink-soft); max-width: 36em; }
.route__intro .route__hint { color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.route__summary { font-size: 0.9375rem; }
.route__summary a { font-weight: 600; color: var(--thread); margin-left: 6px; }
.route__map { position: relative; margin-top: 36px; }
.route__rail { position: absolute; left: 11px; top: var(--rail-top, 36px); height: var(--rail-h, calc(100% - 72px)); width: 2px; background: rgba(0, 67, 136, 0.16); border-radius: 2px; }
.route__lit { position: absolute; left: -0.5px; top: 0; width: 3px; height: var(--lit, 0px); border-radius: 3px; background: var(--thread);
  box-shadow: 0 0 10px rgba(162, 45, 76, 0.45); transition: height 0.7s var(--ease-out); }
.route__leg { position: relative; margin: 40px 0 4px; padding-left: 40px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.route__leg::before { content: ""; position: absolute; left: 12px; top: 50%; width: 18px; height: 1.5px; background: rgba(0, 67, 136, 0.28); }
.route__leg:first-of-type { margin-top: 0; }
.stop {
  position: relative; display: grid; grid-template-columns: 24px 1fr 34px; align-items: center; column-gap: 16px;
  width: 100%; min-height: 64px; padding: 16px 0 8px; border: 0; background: none; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.route__stops li + li { border-top: 1px solid var(--rule); }
.route__legtext { padding-left: 40px; margin: 0 0 6px; color: var(--ink-soft); font-size: 0.9375rem; max-width: 34em; }
.stop__desc { padding: 0 0 18px 40px; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.55; max-width: 38em; }
.stop__more { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--thread); white-space: nowrap; }
.stop__more::after { content: " ↓"; }
.stop__price { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(162, 45, 76, 0.1); color: var(--thread);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; vertical-align: 2px; font-variant-numeric: tabular-nums; }
.stop__node { justify-self: center; position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(0, 67, 136, 0.45); background: var(--paper);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.3s; }
.stop--start .stop__node { width: 20px; height: 20px; }
.stop__text { display: block; }
.stop__name { display: block; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.stop__line { display: block; margin-top: 2px; font-size: 0.9375rem; font-weight: 500; color: var(--ink); line-height: 1.45; }
.stop__pick { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(0, 67, 136, 0.3); transition: background-color 0.2s, border-color 0.2s; }
.stop__pick::before, .stop__pick::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); border-radius: 1px; transition: transform 0.25s var(--ease-out), opacity 0.2s; }
.stop__pick::before { width: 12px; height: 1.75px; transform: translate(-50%, -50%); }
.stop__pick::after { width: 1.75px; height: 12px; transform: translate(-50%, -50%); }
.stop:hover .stop__pick { border-color: var(--ink); }
.stop[aria-pressed="true"] .stop__node { background: var(--thread); border-color: var(--thread); box-shadow: 0 0 0 5px rgba(162, 45, 76, 0.13); }
.stop[aria-pressed="true"] .stop__pick { background: var(--thread); border-color: var(--thread); }
/* plus → tick */
.stop[aria-pressed="true"] .stop__pick::before { background: #fff; width: 6px; transform: translate(-6px, 1px) rotate(45deg); }
.stop[aria-pressed="true"] .stop__pick::after { background: #fff; height: 12px; transform: translate(1px, -6px) rotate(45deg); }
.stop:focus-visible { outline-offset: 2px; border-radius: 12px; }
/* without JS the stops are plain text */
html:not(.js) .stop { cursor: default; }
html:not(.js) .stop__pick { display: none; }

/* =========================================================================================================
   Audit steps (navy band)
   ========================================================================================================= */
.audit { padding: calc(var(--cut) + 40px) 0 calc(var(--cut) + 52px); scroll-margin-top: calc(-1 * var(--cut) + 8px); }
.audit:focus { outline: none; }
.kicker { color: var(--thread-lit); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.01em; margin-bottom: 12px; }
.audit h2 { max-width: 14em; }
.audit__lead { margin-top: 18px; color: var(--on-navy-soft); max-width: 34em; font-size: 1.0625rem; }
.audit__sub { margin-top: 30px; font-size: 1rem; }
.ticks { margin-top: 12px; display: grid; gap: 10px; max-width: 34em; }
.ticks li { position: relative; padding-left: 30px; color: var(--on-navy-soft); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(239, 90, 118, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3L14.5 7' fill='none' stroke='%23ef5a76' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* the offer: a paper card on the navy, the thread along its top edge */
.offer { --focus: var(--ink); position: relative; margin-top: 36px; padding: 28px 22px 24px; border-radius: 20px; background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.55); }
.offer::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 3px; border-radius: 3px; background: var(--thread-lit); box-shadow: 0 0 12px rgba(239, 90, 118, 0.8); }
.offer__name { font-weight: 600; color: var(--ink-soft); font-size: 0.9375rem; }
.offer__headline { margin-top: 6px; font-size: clamp(1.6rem, 6.4vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); text-wrap: balance; }
.offer__note { margin-top: 10px; color: var(--ink-soft); font-size: 0.9375rem; }
.offer__indicative { margin-top: 12px; display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(0, 67, 136, 0.07); color: var(--ink-soft); font-size: 0.875rem; }
.offer__indicative strong { color: var(--ink); font-weight: 600; }
.offer__free { margin-top: 10px; text-align: center; color: var(--ink-soft); font-size: 0.8125rem; }
.offer__title { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 1rem; }
.offer__list { margin: 12px 0 24px; display: grid; gap: 10px; }
.offer__list li { position: relative; padding-left: 28px; font-size: 0.9375rem; line-height: 1.5; }
.offer__list li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--thread) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3L14.5 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

.audit__steps-title { margin-top: 56px; font-size: clamp(1.375rem, 5vw, 1.75rem); letter-spacing: -0.02em; }
.steps { position: relative; margin-top: 28px; display: grid; gap: 28px; }
.steps::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--thread-lit); box-shadow: 0 0 10px rgba(239, 90, 118, 0.6); border-radius: 2px; }
.step { position: relative; padding-left: 36px; }
.step::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px; border-radius: 50%; background: var(--navy-2); border: 2px solid var(--on-navy); }
.step p { margin-top: 6px; color: var(--on-navy-soft); max-width: 30em; }

.faq { max-width: 760px; }
.faq .audit__steps-title { margin-bottom: 12px; }
.faq details { border-top: 1px solid rgba(244, 242, 237, 0.16); }
.faq details:last-child { border-bottom: 1px solid rgba(244, 242, 237, 0.16); }
.faq summary { position: relative; display: block; padding: 18px 44px 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 14px; height: 1.75px; border-radius: 1px; background: var(--thread-lit);
  transition: transform 0.25s var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq details p { padding: 0 44px 20px 0; color: var(--on-navy-soft); max-width: 38em; }

/* =========================================================================================================
   The enquiry
   ========================================================================================================= */
.ask { padding: 56px 0 104px; scroll-margin-top: 8px; }
.ask:focus { outline: none; }
.ask__intro > p { margin-top: 16px; color: var(--ink-soft); max-width: 32em; }
.facts { margin-top: 28px; }
.facts > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.facts dt { font-weight: 600; }
.facts dd { color: var(--ink-soft); font-size: 0.9375rem; }
.facts a { color: var(--ink); font-weight: 600; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.ask__panel { margin-top: 32px; background: var(--card); border-radius: 20px; padding: 24px 18px 22px;
  box-shadow: 0 34px 70px -40px rgba(12, 48, 110, 0.4), 0 2px 6px rgba(12, 48, 110, 0.06); }

.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; margin-bottom: 7px; padding: 0; font-size: 0.9375rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: 0.8125rem; margin-left: 4px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--field-border); border-radius: 12px;
  background: #fbfaf7; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(0, 67, 136, 0.13); }
[aria-invalid="true"] { border-color: var(--thread) !important; background: #fdf5f7 !important; }
.field__error { margin-top: 6px; color: var(--thread); font-size: var(--fs-small); font-weight: 600; }
.field__error:empty { display: none; }
.field__hint { margin-top: 6px; color: var(--ink-soft); font-size: 0.8125rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--field-border); border-radius: 999px;
  font-size: 0.9375rem; line-height: 1.2; cursor: pointer; user-select: none; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--thread); border-color: var(--thread); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.check { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; }
.check input { appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 22px; height: 22px; border: 1.5px solid var(--field-border); border-radius: 6px; background: #fbfaf7; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.check input:checked { background: var(--thread) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: var(--thread); }
.check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.check label { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.check label a { color: var(--ink); font-weight: 600; }
.check .field__error { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: #fdf5f7; color: var(--thread); font-size: var(--fs-small); font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-info { background: rgba(0, 67, 136, 0.07); color: var(--ink); }
.form__after { margin-top: 12px; text-align: center; color: var(--ink-soft); font-size: 0.8125rem; }
.form__test { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #fff4d6; color: #6b4b00; font-size: 0.8125rem; text-align: center; }

.done { text-align: center; padding: 20px 4px 8px; }
.done:focus { outline: none; }
.done__mark { width: 64px; height: 64px; margin: 0 auto 18px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done__mark circle { stroke: var(--thread); stroke-width: 2.5; stroke-dasharray: 190; stroke-dashoffset: 190; animation: done-ring 0.7s var(--ease-out) forwards; transform: rotate(-90deg); transform-origin: center; }
.done__mark path { stroke: var(--thread); stroke-width: 3.5; stroke-dasharray: 40; stroke-dashoffset: 40; animation: done-ring 0.45s var(--ease-out) 0.5s forwards; }
@keyframes done-ring { to { stroke-dashoffset: 0; } }
.done__title { font-size: 1.625rem; letter-spacing: -0.02em; }
.done__text { margin: 10px auto 0; color: var(--ink-soft); max-width: 26em; }
.done__actions { display: grid; gap: 10px; margin-top: 26px; }

/* =========================================================================================================
   Footer
   ========================================================================================================= */
.foot { padding: calc(var(--cut) + 36px) 0 calc(36px + env(safe-area-inset-bottom)); }
.foot__inner { display: grid; gap: 22px; }
.foot__logo { width: 190px; height: auto; }
.foot__contact { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.7; }
.foot__contact a { text-decoration: none; }
.foot__contact a:hover { text-decoration: underline; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9375rem; }
.foot__legal { color: var(--on-navy-soft); font-size: 0.8125rem; max-width: 40em; }

/* ---------- scroll cue: the page goes on below the hero ---------- */
.cue { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; pointer-events: none;
  padding: 36px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(3, 26, 64, 0) 0%, rgba(3, 26, 64, 0.72) 70%);
  opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity 0.45s ease-out, transform 0.6s var(--ease-out); }
.cue.is-on { opacity: 1; transform: none; }
.cue__link { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 18px 0 14px; border-radius: 999px;
  border: 1px solid rgba(244, 242, 237, 0.3); background: rgba(3, 26, 64, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--on-navy); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.cue__link:hover { background: rgba(3, 26, 64, 0.75); border-color: rgba(244, 242, 237, 0.55); }
.cue:not(.is-on) .cue__link { pointer-events: none; }
/* a short piece of the thread with a light travelling down it */
.cue__track { position: relative; width: 2px; height: 18px; border-radius: 2px; background: rgba(244, 242, 237, 0.28); overflow: hidden; }
.cue__dot { position: absolute; left: 0; top: 0; width: 2px; height: 8px; border-radius: 2px; background: var(--thread-lit); box-shadow: 0 0 6px rgba(239, 90, 118, 0.9);
  animation: cue-run 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes cue-run { 0% { transform: translateY(-10px); } 70%, 100% { transform: translateY(20px); } }
html:not(.js) .cue { display: none; }

/* ---------- mobile dock ---------- */
.dock { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 242, 237, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--rule);
  transform: translateY(110%); transition: transform 0.3s var(--ease-out); }
.dock.is-on { transform: none; }
.dock__count { font-weight: 400; opacity: 0.85; }

/* ---------- video ---------- */
.player { padding: 0; border: 0; background: transparent; width: min(100vw - 24px, 1120px); max-width: none; max-height: none; overflow: visible; }
.player::backdrop { background: rgba(3, 26, 64, 0.88); }
.player__frame { border-radius: 14px; overflow: hidden; background: var(--navy-3); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.player video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.player form { display: flex; justify-content: center; margin-top: 14px; }

/* ---------- simple pages (privacy, thanks, 404) ---------- */
.plain-head { padding: 22px 0 calc(var(--cut) + 18px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.plain-head img { width: 176px; height: auto; }
.plain__main { width: min(100% - 2 * var(--gutter), 720px); margin: 24px auto 96px; }
.plain__main h1 { font-size: clamp(1.9rem, 7vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.plain__main h2 { font-size: 1.3125rem; letter-spacing: -0.015em; margin-top: 36px; }
.plain__main p, .plain__main ul { margin-top: 12px; color: var(--ink-soft); }
.plain__main ul { list-style: disc; padding-left: 1.2em; }
.plain__main li + li { margin-top: 6px; }
.plain__main strong { color: var(--ink); font-weight: 600; }
.plain__main .btn { margin-top: 28px; }
.draft-note { margin-top: 18px !important; padding: 12px 14px; border-radius: 12px; background: #fff4d6; color: #6b4b00 !important; font-size: var(--fs-small); }

/* =========================================================================================================
   Larger screens
   ========================================================================================================= */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero__actions .btn--action, .hero__actions .btn--quiet { flex: 0 0 auto; }
  .hero__stage { right: -60px; width: 460px; height: 460px; }
  .hero__copy { margin-top: 250px; }
  .hero__logo img { width: 232px; }
  .ask__panel { padding: 36px 36px 30px; }
  .done__actions { grid-template-columns: auto auto; justify-content: center; }
}

@media (min-width: 960px) {
  :root { --gutter: 48px; }
  .hero { padding-top: 36px; }
  .hero__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); grid-template-rows: auto 1fr; min-height: min(86svh, 860px); }
  .display { font-size: clamp(3.6rem, 5.6vw, 5.4rem); }
  .display .line { white-space: nowrap; }
  .hero__logo { grid-column: 1; grid-row: 1; align-self: start; }
  .hero__logo img { width: 272px; }
  .hero__copy { grid-column: 1; grid-row: 2; align-self: center; margin: 0; padding: 40px 0 24px; }
  .hero__stage { top: 50%; right: -8%; width: min(54vw, 760px); height: min(54vw, 760px); transform: translate3d(0, calc(-46% + var(--py, 0px)), 0); }
  .hero__lead { font-size: 1.1875rem; max-width: 30em; }

  .route { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; padding: 96px 0 96px; }
  .route__intro { position: sticky; top: 56px; align-self: start; }
  .route__map { margin-top: 8px; }
  .stop__desc { padding-right: 50px; }

  .audit { padding: calc(var(--cut) + 56px) 0 calc(var(--cut) + 36px); }
  .audit__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
  .offer { margin-top: 8px; padding: 36px 36px 32px; }
  .offer::before { left: 36px; right: 36px; }
  .audit__steps-title { margin-top: 88px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
  .steps::before { left: 6px; right: -48px; top: 5px; bottom: auto; width: auto; height: 2px; }
  .step { padding: 36px 0 0; }
  .step::before { top: 0; }

  .ask { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; padding: 72px 0 72px; align-items: start; }
  .ask__intro { position: sticky; top: 56px; }
  .ask__panel { margin-top: 0; padding: 44px 44px 36px; }
  .ask__panel .form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .ask__panel .form > * { grid-column: 1 / -1; }
  .ask__panel .form > .field:nth-child(1), .ask__panel .form > .field:nth-child(2),
  .ask__panel .form > .field:nth-child(3), .ask__panel .form > .field:nth-child(4) { grid-column: auto; }

  .foot__inner { grid-template-columns: auto 1fr auto; align-items: end; column-gap: 56px; }
  .foot__legal { grid-column: 1 / -1; }
  .dock { display: none; }
}

/* =========================================================================================================
   Section motion (app.js adds html.motion; without JS or with reduced motion everything is simply there)
   ========================================================================================================= */
.motion .rv:not(.rv-words):not(.rv-line) { opacity: 0; transform: translate3d(0, 22px, 0);
  transition: opacity 0.8s ease-out var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.motion .rv.in:not(.rv-words):not(.rv-line) { opacity: 1; transform: none; }

/* headings: words rise out of their own masks */
.rv-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.06em 0.14em; margin: 0 -0.06em -0.14em; }
.rv-words .w > span { display: inline-block; }
.motion .rv-words .w > span { transform: translate3d(0, 108%, 0); transition: transform 0.95s var(--ease-out) var(--d, 0s); }
.motion .rv-words.in .w > span { transform: none; }

/* the thread draws itself along each cut, a spark where it leaves the screen */
.motion .rv-cut svg { clip-path: inset(0 100% 0 0); transition: clip-path 1.15s cubic-bezier(0.65, 0, 0.35, 1); }
.motion .rv-cut.in svg { clip-path: inset(-20px -20px -20px 0); }
.motion .rv-cut .cut__spark { animation: none; }
.motion .rv-cut.in .cut__spark { animation: spark 0.7s ease-out 1s both; }

/* the services line follows the reader down; each stop arrives when the line reaches it */
.motion .route__rail { clip-path: inset(0 -12px calc(100% - var(--drawn, 0px)) -12px); }
.motion .rv-stop { transition: opacity 0.6s ease-out, transform 0.8s var(--ease-out); }
.motion .rv-stop:not(.in) { opacity: 0; transform: translate3d(-10px, 0, 0); }
.motion .stop.rv-stop:not(.in) .stop__node { transform: scale(0.2); }
.motion .stop.rv-stop .stop__node { transition: background-color 0.2s, border-color 0.2s, box-shadow 0.3s, transform 0.55s var(--ease-out) 0.05s; }

/* audit: the thread runs through the steps first */
.motion .rv-line::before { transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.1s; }
.motion .rv-line.in::before { transform: none; }
@media (min-width: 960px) {
  .motion .rv-line::before { transform: scaleX(0); transform-origin: 0 50%; }
}

/* things already on screen when the page opens (reload, deep link) just appear */
.motion .rv-now, .motion .rv-now .w > span, .motion .rv-now::before, .motion .rv-now svg, .motion .rv-now .stop__node { transition: none !important; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .done__mark circle, .done__mark path { stroke-dashoffset: 0; }
}

@media print {
  .dock, .player, .hero__stage, .cut { display: none !important; }
  .ground-navy { background: none; color: #000; clip-path: none; }
}
