/* Shared structure. Colour, type and signature layout live in theme-*.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--ink); background: var(--bg); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .6em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 1.1rem + 5.4vw, 5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.8vw, 3.25rem); letter-spacing: -.015em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }

.wrap { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 7.5rem); position: relative; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); max-width: 34em; }
.grad-text { color: var(--deep-1); background: var(--text-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.sample { display: inline-block; font: 700 .75rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: #fff; border: 1.5px dashed var(--ink); border-radius: 99px; padding: .4rem .7rem; }

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: #fff; padding: .7rem 1rem; border-radius: 99px; }
.skip:focus { top: 1rem; }

.progress { position: fixed; inset: 0 0 auto; height: 5px; z-index: 60; background: var(--rainbow); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- aurora ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mix { position: absolute; inset: 0; }
.mix i { position: absolute; width: 95vmax; height: 95vmax; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: .95; animation: drift-a 22s ease-in-out infinite alternate; }
.mix i:nth-child(1) { --c: var(--c1); left: -40vmax; top: -45vmax; }
.mix i:nth-child(2) { --c: var(--c2); right: -45vmax; top: -30vmax; animation: drift-b 27s ease-in-out infinite alternate; }
.mix i:nth-child(3) { --c: var(--c3); left: -30vmax; bottom: -55vmax; animation: drift-c 31s ease-in-out infinite alternate; }
.mix i:nth-child(4) { --c: var(--c4); right: -30vmax; bottom: -50vmax; animation: drift-a 25s ease-in-out -9s infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(22vmax, 14vmax, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-24vmax, 20vmax, 0) scale(.88); } }
@keyframes drift-c { to { transform: translate3d(26vmax, -18vmax, 0) scale(1.1); } }

/* ---------- buttons ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.5rem; border: 0; border-radius: 99px; font: 700 1rem/1.2 var(--body); text-decoration: none; text-align: center; cursor: pointer; transition: translate .35s ease, box-shadow .35s ease; }
.btn:hover { translate: 0 -3px; }
.btn-solid { color: #fff; box-shadow: 0 12px 28px -12px var(--shadow); }
/* the flowing gradient is a wide layer moved with transform only */
.btn-solid::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 300%; z-index: -1; background: var(--btn-flow); animation: flow 9s linear infinite; }
@keyframes flow { to { transform: translateX(-66.666%); } }
.btn-ghost { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--rainbow-strong) border-box; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- navigation ---------- */
.nav-shell { position: sticky; top: .8rem; z-index: 50; padding-top: .1rem; }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .55rem .5rem 1rem; border-radius: 99px; background: rgb(255 255 255 / .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 36px -20px var(--shadow); }
.brand { display: flex; align-items: center; gap: .5rem; font: 600 1.3rem/1 var(--display); text-decoration: none; min-height: 44px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.menu { position: relative; display: flex; gap: .2rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.menu a { display: flex; align-items: center; min-height: 44px; padding: 0 .85rem; text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 99px; }
.menu-line { position: absolute; left: 0; bottom: 4px; width: 100px; height: 3px; border-radius: 3px; background: var(--rainbow-strong); transform-origin: 0 50%; opacity: 0; transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .3s; pointer-events: none; }
.nav .btn { min-height: 44px; padding: .6rem 1.15rem; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; place-items: center; box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (max-width: 899px) {
  .nav { flex-wrap: wrap; border-radius: 28px; }
  .menu { order: 3; width: 100%; flex-wrap: wrap; margin: 0; }
  .menu-line { display: none; }
  .js .burger { display: grid; }
  .js .menu { display: none; flex-direction: column; padding-block: .3rem; }
  .js .nav.open .menu { display: flex; }
  .nav > .btn { margin-left: auto; }
}
@media (max-width: 420px) { .nav { padding-left: .7rem; gap: .35rem; } .nav .btn { padding-inline: .8rem; font-size: .92rem; } .brand { font-size: 1.1rem; } .brand svg { width: 24px; height: 24px; } }
/* without JS the full menu is visible, so let it scroll away on small screens */
@media (max-width: 899px) { html:not(.js) .nav-shell { position: static; } }

/* ---------- cards ---------- */
.card { background: rgb(255 255 255 / .86); border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: 0 20px 48px -28px var(--shadow); transition: translate .4s ease, box-shadow .4s ease; }
.card:hover { translate: 0 -8px; box-shadow: 0 34px 60px -30px var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.icon { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: var(--rainbow); margin-bottom: 1.2rem; }
.icon svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .45rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--rainbow-strong); }

/* ---------- map ---------- */
.map { position: relative; border-radius: 32px; overflow: hidden; background: #fff; box-shadow: 0 24px 56px -30px var(--shadow); }
.map svg { width: 100%; height: 100%; min-height: 300px; }
.map .sample { position: absolute; left: 1rem; bottom: 1rem; }
.details { margin: 0; }
.details dt { font-weight: 700; margin-top: 1rem; }
.details dd { margin: 0; }

.footer { position: relative; margin-top: 3rem; padding-block: 3rem 2rem; background: rgb(255 255 255 / .8); }
.footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--rainbow); }
.footer a { display: inline-block; padding-block: .6rem; margin-right: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) { .grad-text { -webkit-text-fill-color: currentColor; background: none; } .btn { border: 2px solid; } }
