/* Quivorn public site.
   Design idea: the clay city from the Quivorn render. Ice-white ground, one vivid truck blue, soft rounded
   forms. The page is built to work without JavaScript; motion and the 3D stage are added on top
   (see .js-motion and .story.is-3d). */

@font-face { font-family: 'Sora'; src: url('/fonts/sora-var.woff') format('woff'); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hanken-grotesk-var.woff') format('woff'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ice: #EAF0F9;
  --cloud: #F6F9FD;
  --white: #FFFFFF;
  --mist: #D3E0F1;
  --ground: #DFE5F6;
  --blue: #2B63CB;
  --blue-hover: #1F4FAE;
  --blue-bright: #5797E6;
  --blue-tint: #E1ECFB;
  --navy: #0F1E3A;
  --navy-2: #182C52;
  --slate: #475775;
  --ok: #138A63;
  --err: #B3261E;
  --display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7.5rem);
  --lift: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 48px -24px rgba(31, 79, 174, .38);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ice); color: var(--navy); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .foot :focus-visible { outline-color: #9CC2FF; }
::selection { background: var(--blue); color: #fff; }

h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 1rem + 5.2vw, 5rem); line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 1.1rem + 2.7vw, 3.2rem); line-height: 1.08; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 52rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .8rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .7rem 1.6rem; border: 1.5px solid transparent; border-radius: 999px; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -10px rgba(43, 99, 203, .8); }
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: rgba(255, 255, 255, .7); color: var(--navy); border-color: rgba(15, 30, 58, .28); }
.btn--ghost:hover { background: #fff; border-color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--blue-tint); transform: translateY(-2px); }
.btn--small { min-height: 2.6rem; padding: .5rem 1.2rem; font-size: .95rem; }

/* ---- Header ---- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(234, 240, 249, .78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.top.is-stuck { border-bottom-color: var(--mist); background: rgba(246, 249, 253, .86); }
.top__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.logo__word { font: 600 1.45rem/1 var(--display); letter-spacing: -0.05em; }
.logo--light { color: #fff; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .98rem; padding: .4rem 0; color: var(--slate); transition: color .15s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--blue-bright); text-underline-offset: 8px; }
.menu-btn { display: none; min-height: 2.6rem; padding: .4rem 1.1rem; border: 1.5px solid rgba(15, 30, 58, .3); border-radius: 999px; background: transparent; font: 600 .95rem var(--body); color: inherit; cursor: pointer; }

/* ---- Hero: the render is the scene ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: min(100svh, 900px); background: var(--ice); }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media video, .hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; transform: translate3d(0, calc(var(--p, 0) * 70px), 0) scale(calc(1.05 + var(--p, 0) * .05)); will-change: transform; }
.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, var(--ice) 0%, rgba(234, 240, 249, .94) 26%, rgba(234, 240, 249, .55) 44%, rgba(234, 240, 249, 0) 64%),
  linear-gradient(0deg, var(--ice) 0%, rgba(234, 240, 249, 0) 16%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: 2rem; align-items: end; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem); }
.hero__copy { transform: translate3d(0, calc(var(--p, 0) * -48px), 0); opacity: calc(1 - var(--p, 0) * 1.4); }
.hero__copy h1 { max-width: 11ch; }
.lead { font-size: clamp(1.1rem, .95rem + .6vw, 1.32rem); line-height: 1.55; max-width: 34rem; margin: 1.5rem 0 0; color: var(--slate); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }
.alt { margin: 1.3rem 0 0; font-size: .98rem; color: var(--slate); }
.alt a { color: var(--blue); font-weight: 600; }

/* The consignment note: frosted glass, tilts toward the pointer */
.note { position: relative; margin: 0; justify-self: end; width: min(23.5rem, 100%); perspective: 900px; }
.note__card { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border: 1px solid rgba(255, 255, 255, .9); border-radius: 26px; box-shadow: var(--lift); overflow: hidden; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .25s ease-out; will-change: transform; }
.note__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.4rem; background: var(--navy); color: #fff; }
.note__title { font: 600 1.02rem var(--display); letter-spacing: -0.02em; }
.note__ref { font-weight: 600; color: #9CC2FF; font-variant-numeric: tabular-nums; }
.note__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--mist); }
.note__meta dt { font-size: .82rem; color: var(--slate); }
.note__meta dd { margin: .1rem 0 0; font-weight: 600; line-height: 1.3; font-size: .96rem; }
.trail { list-style: none; margin: 0; padding: 1.2rem 1.4rem .9rem; }
.trail li { position: relative; display: flex; gap: 1rem; padding-bottom: 1rem; }
.trail li:last-child { padding-bottom: .3rem; }
.trail li:not(:last-child)::before { content: ""; position: absolute; left: .62rem; top: 1.5rem; bottom: .1rem; border-left: 2px solid var(--blue-bright); opacity: .45; }
.trail__dot { --fill: var(--blue-bright); flex: none; width: 1.3rem; height: 1.3rem; margin-top: .1rem; border: 2px solid var(--blue); border-radius: 50%; background: var(--fill); }
.trail li:last-child .trail__dot { --fill: var(--ok); border-color: var(--ok); }
.trail__text { display: flex; flex-direction: column; line-height: 1.3; font-size: .96rem; }
.trail__text span { color: var(--slate); font-size: .88rem; }
.trail li:last-child .trail__text { padding-right: 6.5rem; }
.stamp { position: absolute; right: 0; top: -.8rem; padding: .3rem .8rem; border: 2.5px solid var(--ok); border-radius: 10px; color: var(--ok); font: 700 1.1rem/1 var(--display); transform: rotate(-8deg); background: rgba(255, 255, 255, .85); }
.note figcaption { padding: .85rem 1.4rem 1rem; border-top: 1px solid var(--mist); font-size: .84rem; color: var(--slate); }

@media (prefers-reduced-motion: no-preference) {
  .trail__dot { animation: tick .4s calc(.6s + var(--i, 0) * .6s) both cubic-bezier(.3, 1.6, .5, 1); }
  .trail li { animation: reveal .4s calc(.5s + var(--i, 0) * .6s) both; }
  .stamp { animation: thud .35s calc(.55s + var(--i, 5) * .6s) both cubic-bezier(.2, .9, .3, 1.2); }
  .hero__copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__copy > :nth-child(2) { animation-delay: .1s; }
  .hero__copy > :nth-child(3) { animation-delay: .2s; }
  .hero__copy > :nth-child(4) { animation-delay: .3s; }
}
@keyframes tick { from { background: #fff; transform: scale(.5); } to { background: var(--fill); transform: scale(1); } }
@keyframes reveal { from { opacity: .3; } to { opacity: 1; } }
@keyframes thud { from { opacity: 0; transform: rotate(-8deg) scale(1.9); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---- Sections ---- */
.sec { padding: var(--section) 0; }
.sec--tint { background: var(--cloud); border-block: 1px solid var(--mist); }
.sec--dark { background: var(--navy); color: #fff; }
.pagehead { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.pagehead__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.pagehead h1 { font-size: clamp(2.3rem, 1.1rem + 4.2vw, 4.2rem); max-width: 14ch; }
.pagehead .lead { margin-top: 1.4rem; }
.frame { position: relative; margin: 0; overflow: hidden; border-radius: 32px; background: var(--ground); box-shadow: var(--lift); }
.frame img, .frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 3.2; }
.frame [data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); will-change: transform; }

.problem__grid, .two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.problem h2 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); max-width: 14ch; }
.two > h2 + .prose, .two > div > h2 + .prose, .two > div > h2 + .ticks { margin-top: 1.3rem; }
.prose { max-width: 40rem; }
.prose p { line-height: 1.7; color: var(--slate); }
.prose--lg { font-size: 1.15rem; max-width: 42rem; }
.prose--lg p { color: var(--navy); }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 .6rem; }
.prose h3 { margin: 1.6rem 0 .5rem; }
.prose a { color: var(--blue); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 4px solid var(--blue-bright); font-size: 1.2rem; }
.prose img { border-radius: 20px; margin: 1.5rem 0; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding-top: 1.7rem; border-top: 2px solid var(--mist); }
.steps li::before { content: counter(step); position: absolute; top: -1.15rem; left: 0; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font: 600 .95rem/1 var(--display); }
.steps h3 { margin-bottom: .5rem; }
.steps p { margin: 0; color: var(--slate); }
.steps--stack { grid-template-columns: 1fr; gap: 0; margin-top: 1.6rem; }
.steps--stack li { border-top: 0; border-left: 2px solid var(--mist); padding: 0 0 2rem 2rem; margin-left: 1.15rem; }
.steps--stack li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps--stack li::before { top: -.1rem; left: -1.25rem; }
.steps--wide { max-width: 46rem; }
.steps--wide p { font-size: 1.1rem; }

/* Plain lists with a blue bar on top of each item */
.grid { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; gap: 2.4rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid li::before { content: ""; display: block; width: 2.4rem; height: 5px; margin-bottom: 1.1rem; border-radius: 3px; background: var(--blue-bright); }
.grid h3 { margin-bottom: .5rem; }
.grid p { margin: 0; color: var(--slate); }

.ticks { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 2rem; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3 5 8.6l4.4-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
.ticks--err li::before { background-color: var(--err); }

/* ---- Story: one journey, four chapters. Stacked by default; pinned with a 3D stage when .is-3d ---- */
.story { background: var(--cloud); border-block: 1px solid var(--mist); padding: var(--section) 0; }
.story__head { max-width: 44rem; margin-bottom: 2.4rem; }
.story__stage { display: none; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem 2rem; counter-reset: ch; }
.chapter { counter-increment: ch; }
.chapter__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; background: var(--ground); margin-bottom: 1.1rem; }
.chapter h3 { margin-bottom: .4rem; }
.chapter p { margin: 0; color: var(--slate); max-width: 30rem; }
.chapter__no { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .7rem; border-radius: 50%; background: var(--blue); color: #fff; font: 600 .85rem/1 var(--display); }

.story.is-3d { padding: 0; height: calc(var(--chapters, 4) * 90vh + 20vh); background: var(--ice); }
.story.is-3d .story__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story.is-3d .story__stage { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 72%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
.story.is-3d canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.story.is-3d .story__grid { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: minmax(0, 27rem) 1fr; align-items: center; pointer-events: none; }
.story.is-3d .story__copy { pointer-events: auto; }
.story.is-3d .story__head { margin-bottom: 1.6rem; }
.story.is-3d .chapters { display: block; position: relative; height: 15rem; }
.story.is-3d .chapter { position: absolute; inset: 0; opacity: 0; transform: translate3d(0, 24px, 0); pointer-events: none; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
.story.is-3d .chapter.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story.is-3d .chapter__img { display: none; }
.story.is-3d .chapter p { font-size: 1.1rem; }
.story__rail { display: none; }
.story.is-3d .story__rail { display: block; position: absolute; left: var(--gutter); bottom: 2.2rem; right: 40%; height: 4px; border-radius: 2px; background: var(--mist); z-index: 3; }
.story.is-3d .story__rail::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--blue); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.story__hud { display: none; }
.story.is-3d .story__hud { display: flex; align-items: center; gap: .6rem; position: absolute; right: var(--gutter); bottom: 1.6rem; z-index: 3; padding: .55rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 .9rem var(--body); color: var(--navy); }
.story__hud::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(19, 138, 99, .2); }

/* ---- Two audiences ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.panel { display: flex; flex-direction: column; background: var(--cloud); border: 1px solid var(--mist); border-radius: 32px; overflow: hidden; text-decoration: none; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.panel:hover { transform: translateY(-6px); box-shadow: var(--lift); }
.panel__img { overflow: hidden; aspect-ratio: 16 / 9; background: var(--ground); }
.panel__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.panel:hover .panel__img img { transform: scale(1.05); }
.panel__body { display: flex; flex-direction: column; flex: 1; gap: .9rem; padding: clamp(1.5rem, 3vw, 2.2rem); }
.panel h2 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem); }
.panel p { margin: 0; color: var(--slate); max-width: 30rem; }
.panel__go { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--blue); }
.panel__go::after { content: " \2192"; display: inline-block; transition: transform .2s; }
.panel:hover .panel__go::after { transform: translateX(5px); }

/* ---- Standards, beside a clip of the trucks ---- */
.standards { background: var(--navy); color: #fff; padding: var(--section) 0; overflow: hidden; }
.standards__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.standards .grid { margin-top: 2.2rem; grid-template-columns: repeat(2, 1fr); gap: 2rem 2rem; }
.standards .grid p { color: #B7C6E0; }
.standards .grid li::before { background: #7FB0F5; }
.standards .frame { border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); aspect-ratio: 16 / 10; }

/* ---- Closing band ---- */
.band { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(115deg, #2455B8 0%, #3A78E0 100%); color: #fff; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--band-img, none) right center / cover no-repeat; opacity: .22; mix-blend-mode: luminosity; -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 70%); mask-image: linear-gradient(90deg, transparent 10%, #000 70%); }
.band__in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(3rem, 6vw, 5rem); }
.band h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
.band p { margin: .6rem 0 0; font-size: 1.1rem; max-width: 36rem; color: #DCE8FB; }

/* About */
.purpose { background: var(--navy); color: #fff; padding: clamp(1.8rem, 3vw, 2.8rem); border-radius: 28px; }
.purpose__label { margin: 0 0 .8rem; color: #9FB4D6; font-weight: 600; }
.purpose__text { margin: 0; font: 600 clamp(1.6rem, 1rem + 2.2vw, 2.4rem)/1.15 var(--display); letter-spacing: -.035em; color: #fff; }

/* FAQ */
.faq { margin-top: 1.6rem; border-top: 1px solid var(--mist); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; font: 600 1.15rem/1.35 var(--display); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border: 1.5px solid var(--navy); border-radius: 50%; font: 500 1.2rem/1 var(--body); transition: background .2s, color .2s, transform .25s; }
.faq details[open] summary::after { content: "\2212"; background: var(--blue); border-color: var(--blue); color: #fff; }
.faq .prose { padding-bottom: 1.2rem; }

/* Contact details */
.reach { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem 4rem; }
.reach span { display: block; font-size: .9rem; color: var(--slate); }
.reach a, .reach b { font: 600 1.3rem var(--display); letter-spacing: -.02em; text-decoration-color: var(--blue-bright); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---- Forms ---- */
.formsec { padding: var(--section) 0; }
.formsec__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.formsec__intro { position: sticky; top: 6.5rem; }
.formsec__intro p { color: var(--slate); max-width: 26rem; margin-top: 1rem; }
.form, .form-done { background: var(--white); border: 1px solid var(--mist); border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--lift); }
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .35rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-weight: 600; padding: 0; }
.opt { font-weight: 400; font-size: .85rem; color: var(--slate); margin-left: .3rem; }
.hint { font-size: .88rem; color: var(--slate); }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 3rem; padding: .65rem .9rem; border: 1.5px solid #9DB0CC; border-radius: 14px; background: #fff; color: var(--navy); font: 400 1rem/1.4 var(--body); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(87, 151, 230, .35); }
.field [aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.err, .form__error { color: var(--err); font-weight: 600; font-size: .92rem; margin: 0; }
.form__error { padding: .8rem 1rem; border: 1.5px solid var(--err); border-radius: 12px; background: #fff; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .5rem .9rem; }
.check { display: flex; align-items: center; gap: .6rem; min-height: 2.6rem; font-weight: 400; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--blue); }
.form .btn { justify-self: start; }
.form-done h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.form-done:not([hidden]) { border-color: var(--ok); }

/* ---- Insights ---- */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 2.4rem; }
.posts a { display: block; text-decoration: none; }
.posts img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 22px; margin-bottom: 1rem; }
.posts time, .post__meta { font-size: .92rem; color: var(--slate); }
.posts h2 { font-size: 1.45rem; margin: .3rem 0 .5rem; }
.posts a:hover h2 { text-decoration: underline; text-decoration-color: var(--blue-bright); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.posts p { color: var(--slate); }
.empty { font-size: 1.15rem; color: var(--slate); }
.crumb { margin: 0 0 1.2rem; font-weight: 600; }
.post__title { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem); }
.post__cover { width: 100%; border-radius: 24px; margin: 1.5rem 0; }
.post__cta { margin-top: 3rem; }

/* ---- Footer ---- */
.foot { background: var(--navy); color: #C3D0E6; padding-top: clamp(3rem, 5vw, 4.5rem); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.foot__brand p { margin: 1rem 0 0; max-width: 20rem; }
.foot__h { font: 600 1rem var(--body); color: #fff; margin: 0 0 .9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot a { text-decoration-color: #5797E6; text-underline-offset: 4px; }
.foot a:hover { color: #9CC2FF; }
.foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-block: 1.4rem 5rem; border-top: 1px solid #25385E; font-size: .92rem; color: #93A5C6; }

.wa-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: inline-flex; align-items: center; gap: .55rem; min-height: 3rem; padding: .6rem 1.2rem; border-radius: 999px; background: #128C5A; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 12px 24px -10px rgba(18, 140, 90, .8); transition: transform .18s, background .18s; }
.wa-fab:hover { background: #0E7149; transform: translateY(-2px); }
.wa-fab__dot { width: .7rem; height: .7rem; border-radius: 50%; background: #7CF0B0; box-shadow: 0 0 0 3px rgba(124, 240, 176, .3); }

/* ---- Scroll motion (only when the script has switched it on) ---- */
.js-motion [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js-motion [data-reveal].in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.6rem 2rem; }
}
@media (max-width: 880px) {
  .hero { display: block; min-height: 0; }
  .hero__media { position: relative; inset: auto; z-index: 0; height: 62vw; min-height: 15rem; }
  .hero__media video, .hero__media img { object-position: 60% 50%; transform: none; }
  .hero__media::after { background: linear-gradient(0deg, var(--ice) 0%, rgba(234, 240, 249, 0) 38%); }
  .hero__inner { grid-template-columns: 1fr; padding-block: 0 3rem; margin-top: -2.2rem; position: relative; }
  .hero__copy { transform: none; opacity: 1; }
  .note { justify-self: stretch; width: 100%; }
  .pagehead__grid, .problem__grid, .two, .split, .formsec__grid, .foot__grid, .standards__grid { grid-template-columns: 1fr; }
  .pagehead .frame { order: -1; aspect-ratio: 16 / 10; }
  .formsec__intro { position: static; }
  .band__in { flex-direction: column; align-items: flex-start; }
  .grid--2, .chapters { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; align-items: center; }
  .top__bar { flex-wrap: wrap; padding-block: .8rem; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: .6rem 0 1rem; }
  .nav ul { flex-direction: column; gap: .3rem; }
  .nav a:not(.btn) { display: block; padding: .7rem 0; border-bottom: 1px solid var(--mist); }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
}
@media (max-width: 600px) {
  .grid--4, .standards .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 1.6rem; }
  .steps li { border-top: 0; border-left: 2px solid var(--mist); padding: 0 0 2rem 2rem; margin-left: 1.15rem; }
  .steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
  .steps li::before { top: -.1rem; left: -1.25rem; }
  .note__meta { grid-template-columns: 1fr; gap: .6rem; }
  .actions .btn { flex: 1 1 100%; }
  .form .btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media video, .hero__media img, .hero__copy { transform: none !important; opacity: 1 !important; }
}
@media print { .top, .wa-fab, .foot, .formsec, .story__stage { display: none; } body { background: #fff; } }

/* ---- Reach: where Quivorn is heading ---- */
.kicker { margin: 0 0 .9rem; font: 600 .8rem/1 var(--font-display, inherit); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.reach { padding: var(--section) 0; }
.reach__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.reach__vid { aspect-ratio: 16 / 10; }
.route { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; position: relative; }
.route li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 1rem; align-items: start; position: relative; }
.route li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.4rem; bottom: -1.1rem; width: 2px; background: linear-gradient(var(--blue), rgba(43, 99, 203, .15)); }
.route b { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--blue); color: #fff; font-size: .9rem; }
.route h3 { margin: .1rem 0 .2rem; font-size: 1.1rem; }
.route p { margin: 0; color: var(--slate); }
.network { margin-top: clamp(3rem, 7vw, 5.5rem); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.network__text h3 { margin: 0 0 .8rem; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.network__text p { margin: 0; color: var(--slate); max-width: 26rem; }
.network__vid { background: #05080f; aspect-ratio: 16 / 9; border: 1px solid rgba(15, 30, 58, .25); }
.network__vid figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); padding: .4rem .8rem; border-radius: 99px; background: rgba(5, 8, 15, .72); color: #DCE6F7; font-size: .78rem; backdrop-filter: blur(6px); }
@media (max-width: 860px) {
  .reach__top, .network { grid-template-columns: 1fr; }
  .network__text p { max-width: none; }
}
