/* arbio.ca — Constellation
   Deep black and one electric blue. Venues as light on a turning sphere; loops traced where the prices
   don't add up. Satoshi carries every word; Azeret Mono only carries measurements. */

:root {
  --bg: #020308;
  --bg-2: #05070f;
  --ink: #f4f6fb;
  --mute: #9aa3b5;
  --faint: #7d879b;
  --line: rgba(140, 170, 255, 0.12);
  --line-2: rgba(140, 170, 255, 0.24);
  --blue: #4d8dff;
  --blue-soft: #9cc0ff;
  --blue-ink: #02060f;
  --error: #ff8f8f;

  --sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(20px, 4.5vw, 64px);
  --maxw: 1280px;
  --nav-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--blue-ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; z-index: 100; left: 16px; top: 16px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 500;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ------------------------------------------------------------------ nav */

.nav {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 32px;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s;
}
.nav.is-scrolled { background: var(--bg); border-bottom-color: var(--line); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.mark { width: 24px; height: 24px; flex: none; }
.mark__a { fill: var(--ink); }
.mark__b { fill: var(--blue); }
.wordmark { font-weight: 700; font-size: 14px; letter-spacing: 0.22em; line-height: 1; }

.nav__links {
  display: flex; gap: 32px; margin: 0 auto;
  font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
.nav__links a { position: relative; padding: 8px 0; transition: color 0.2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue);
  opacity: 0; transform: translateY(4px); transition: opacity 0.3s, transform 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a[aria-current="true"]::after { opacity: 1; transform: none; }

.pill {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  font-weight: 500; font-size: 13px; white-space: nowrap;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.pill:hover { border-color: var(--blue); background: rgba(77, 141, 255, 0.08); box-shadow: 0 0 28px -8px rgba(77, 141, 255, 0.9); }

.nav__toggle {
  display: none; margin-left: auto; height: 38px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: none; cursor: pointer;
  font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.nav__toggle[aria-expanded="true"] { border-color: var(--blue); }

.menu {
  position: fixed; z-index: 39; top: var(--nav-h); left: 0; right: 0;
  display: grid; padding: 8px var(--gutter) 28px;
  background: rgba(2, 3, 8, 0.97); border-bottom: 1px solid var(--line);
}
.menu[hidden] { display: none; }
.menu a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.menu a:last-child { border-bottom: 0; color: var(--blue); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; }
}
@media (min-width: 901px) { .menu { display: none !important; } }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 500 15px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s, box-shadow 0.3s, border-color 0.25s, transform 0.4s var(--ease);
}
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--ink); color: #02030a; }
.btn--light:hover { background: #fff; box-shadow: 0 0 0 6px rgba(77, 141, 255, 0.16), 0 14px 44px -12px rgba(77, 141, 255, 0.75); }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.btn--quiet:hover { box-shadow: inset 0 0 0 1px var(--blue), 0 0 30px -10px rgba(77, 141, 255, 0.8); }
.btn[disabled] { cursor: progress; opacity: 0.72; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative; height: 100svh; min-height: 680px; overflow: hidden; isolation: isolate;
  background: radial-gradient(46% 58% at 64% 50%, rgba(46, 102, 255, 0.2), transparent 70%), var(--bg);
}
.hero[data-palette="nebula"] { background: radial-gradient(46% 58% at 64% 50%, rgba(140, 70, 255, 0.22), transparent 70%), var(--bg); }
.hero[data-palette="nebula"] .hero__l2 { color: #cdc4f3; }
.hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero.is-live .hero__canvas { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 3, 8, 0.72) 0%, rgba(2, 3, 8, 0) 42%),
    linear-gradient(0deg, rgba(2, 3, 8, 0.95) 0%, rgba(2, 3, 8, 0) 26%);
}

.hero__chips { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.chip {
  position: absolute; left: 0; top: 0;
  padding: 5px 8px 4px; border-radius: 6px;
  border: 1px solid rgba(110, 160, 255, 0.5); background: rgba(3, 8, 24, 0.78);
  font: 500 11px/1 var(--mono); letter-spacing: 0.02em; color: #c6dbff; white-space: nowrap;
  opacity: 0; transition: opacity 0.35s, background-color 0.3s, color 0.3s;
  will-change: transform;
}
.chip.is-on { opacity: 1; }
.chip--prod { padding: 7px 10px 6px; font-size: 12px; border-color: rgba(140, 185, 255, 0.7); }
.chip--prod.is-closed { background: var(--blue); color: var(--blue-ink); border-color: var(--blue); box-shadow: 0 0 30px -4px rgba(77, 141, 255, 0.9); }

.hero__title {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  font-weight: 500; font-size: clamp(3rem, 1rem + 5.4vw, 6rem); line-height: 0.95; letter-spacing: -0.04em;
}
.hero__l1, .hero__l2 { position: absolute; text-shadow: 0 2px 36px rgba(2, 3, 8, 0.6); }
.hero__l1 { left: var(--gutter); top: calc(var(--nav-h) + 9vh); }
.hero__l2 { right: var(--gutter); bottom: 25vh; text-align: right; color: #b5c5e6; }

.hero__foot { position: absolute; z-index: 2; left: var(--gutter); bottom: 6vh; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 20px 36px; max-width: 860px; }
.hero__lede { max-width: 38ch; font-size: 1.0625rem; line-height: 1.55; color: var(--mute); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* the one label the hero needs: its figures are simulated. Level with the last row of buttons, at every width */
.hero__sim {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 6vh;
  font: 500 11px/52px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
}

@media (max-width: 760px) {
  .hero { min-height: 640px; }
  .hero__title { font-size: clamp(2.7rem, 1.2rem + 7vw, 4rem); }
  .hero__l1 { top: calc(var(--nav-h) + 4vh); }
  .hero__l2 { left: var(--gutter); bottom: calc(6vh + 250px); }
  .hero::after { background: linear-gradient(0deg, rgba(2, 3, 8, 0.96) 0%, rgba(2, 3, 8, 0.6) 38%, rgba(2, 3, 8, 0) 60%); }
  .hero__foot { right: var(--gutter); }
}

/* ------------------------------------------------------------------ shared section rhythm */

.section {
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(104px, 15vh, 184px) var(--gutter) 0;
}
.split {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px clamp(32px, 5vw, 88px); align-items: end;
}
.h2 {
  font-weight: 500; font-size: clamp(2.1rem, 1.05rem + 2.9vw, 3.9rem);
  line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; max-width: 16ch;
}
.h2--xl { font-weight: 500; font-size: clamp(2.4rem, 0.9rem + 4.4vw, 5.2rem); max-width: 17ch; }
.h2 .line { display: block; }
.body { font-size: 1.0625rem; line-height: 1.66; color: var(--mute); max-width: 56ch; text-wrap: pretty; }
.hero__lede, .card p, .path p, .band__grid p, .spread__caption span { text-wrap: pretty; }
.body + .body { margin-top: 18px; }

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ thesis: the spread */

.spread {
  position: relative; margin-top: clamp(48px, 6vw, 72px);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: radial-gradient(70% 90% at 50% 100%, rgba(46, 102, 255, 0.14), transparent 70%), linear-gradient(180deg, rgba(12, 18, 36, 0.6), rgba(4, 6, 12, 0.92));
}
.spread canvas { width: 100%; height: clamp(260px, 34vw, 420px); }
.spread__note { position: absolute; top: 18px; left: 22px; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.spread__caption { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.spread__caption span { padding: 20px 24px 22px; border-right: 1px solid var(--line); color: var(--mute); font-size: 0.95rem; line-height: 1.5; }
.spread__caption span:last-child { border-right: 0; }
.spread__caption b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; }

@media (max-width: 760px) {
  .spread__caption { grid-template-columns: minmax(0, 1fr); }
  .spread__caption span { border-right: 0; border-bottom: 1px solid var(--line); }
  .spread__caption span:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------------------ system: the bento */

.bento {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 24, 46, 0.55), rgba(5, 8, 15, 0.94));
  transition: border-color 0.3s, box-shadow 0.4s;
}
.card::before { /* a hairline of light along the top edge */
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 185, 255, 0.55), transparent);
}
.card:hover { border-color: var(--line-2); box-shadow: 0 40px 100px -50px rgba(61, 123, 255, 0.7); }
.card canvas { width: 100%; flex: 1 1 auto; min-height: 190px; }
.card__text { padding: 22px 26px 26px; border-top: 1px solid var(--line); }
.card h3 { margin-bottom: 8px; font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; }
.card p { font-size: 0.95rem; line-height: 1.56; color: var(--mute); max-width: 44ch; }
.card--cov { grid-column: span 4; grid-row: span 2; }
.card--cov canvas { min-height: 380px; }
.bento__note { margin-top: 18px; font: 500 11px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.card--det, .card--exe { grid-column: span 2; }
.card--exp, .card--ops { grid-column: span 3; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--cov { grid-column: 1 / -1; grid-row: auto; }
  .card--cov canvas { min-height: 300px; }
  .card--det, .card--exe, .card--exp, .card--ops { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card--det, .card--exe, .card--exp, .card--ops { grid-column: auto; }
  .card canvas { min-height: 200px; }
}

/* ------------------------------------------------------------------ scope: the loop */

.scope__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 88px); align-items: center; margin-top: clamp(40px, 5vw, 64px);
}
.loopfig svg { width: 100%; height: auto; overflow: visible; }
.loopfig figcaption { margin-top: 18px; font: 400 13px/1.5 var(--mono); color: var(--faint); }
.loopfig figcaption b { color: var(--blue-soft); font-weight: 500; }
.loopfig__faint path { fill: none; stroke: rgba(140, 170, 255, 0.2); stroke-width: 1; }
.loopfig__edge { fill: rgba(77, 141, 255, 0.07); stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 7px rgba(77, 141, 255, 0.85)); }
.loopfig__flow { fill: none; stroke: #e2edff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 5 95; filter: drop-shadow(0 0 6px var(--blue-soft)); }
.loopfig__nodes circle { fill: rgba(190, 210, 255, 0.55); }
.loopfig__hot circle:not(.loopfig__halo) { fill: #eef4ff; }
.loopfig__halo { fill: url(#nodeGlow); }
.loopfig__hot .loopfig__halo { transform-box: fill-box; transform-origin: center; }
.loopfig__labels text { font: 500 12px var(--mono); fill: var(--blue-soft); }
.loopfig__labels .loopfig__id { font-size: 11px; fill: var(--faint); }

@media (prefers-reduced-motion: no-preference) {
  .loopfig__flow { animation: loop-flow 3.2s linear infinite; }
  .loopfig__halo { animation: halo 2.4s ease-in-out infinite; }
  .loopfig__halo:nth-of-type(3) { animation-delay: 0.8s; }
  .loopfig__halo:nth-of-type(5) { animation-delay: 1.6s; }
}
@keyframes loop-flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes halo { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }

@media (max-width: 860px) { .scope__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .loopfig__labels text { font-size: 17px; }
  .loopfig__labels .loopfig__id { font-size: 15px; }
}

/* ------------------------------------------------------------------ engagement: the path */

.path {
  position: relative; list-style: none; margin: clamp(56px, 7vw, 88px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-2); }
.path::after {
  content: ""; position: absolute; top: 4px; left: 0; width: 120px; height: 5px; border-radius: 3px; opacity: 0;
  background: linear-gradient(90deg, rgba(77, 141, 255, 0), var(--blue) 70%, #e2edff);
  box-shadow: 0 0 18px rgba(77, 141, 255, 0.9);
}
.path li { position: relative; padding-top: 38px; }
.path__node {
  position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--blue); box-shadow: 0 0 0 5px rgba(77, 141, 255, 0.1);
}
.path h3 { margin-bottom: 8px; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; }
.path p { font-size: 0.95rem; line-height: 1.56; color: var(--mute); max-width: 30ch; }

@media (prefers-reduced-motion: no-preference) {
  .path::after { animation: travel 6s linear infinite; }
  .path__node { animation: lit 6s linear infinite; }
  .path li:nth-child(1) .path__node { animation-delay: 0.05s; }
  .path li:nth-child(2) .path__node { animation-delay: 1.1s; }
  .path li:nth-child(3) .path__node { animation-delay: 2.8s; }
  .path li:nth-child(4) .path__node { animation-delay: 4.45s; }
}
@keyframes travel { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(100% - 120px); opacity: 0; } }
@keyframes lit {
  0% { background: var(--bg); box-shadow: 0 0 0 5px rgba(77, 141, 255, 0.1); }
  3% { background: #e2edff; box-shadow: 0 0 0 7px rgba(77, 141, 255, 0.35), 0 0 26px 4px rgba(77, 141, 255, 0.8); }
  22%, 100% { background: var(--bg); box-shadow: 0 0 0 5px rgba(77, 141, 255, 0.1); }
}

@media (max-width: 860px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-left: 36px; }
  .path::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .path::after { display: none; }
  .path li { padding-top: 0; }
  .path__node { left: -36px; top: 4px; }
}

/* ------------------------------------------------------------------ principles: the blue band */

.band { position: relative; margin-top: clamp(104px, 15vh, 184px); overflow: hidden; background: var(--blue); color: var(--blue-ink); }
.band__mark {
  position: absolute; right: -4vw; top: -6%; width: min(46vw, 620px); fill: none; stroke: rgba(2, 6, 15, 0.16); stroke-width: 0.25; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 60%); mask-image: linear-gradient(180deg, #000 30%, transparent 60%);
}
@media (max-width: 760px) { .band__mark { display: none; } }
.band__inner { position: relative; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: clamp(96px, 14vh, 168px) var(--gutter); }
.band__title { font-weight: 700; font-size: clamp(2.3rem, 1rem + 4vw, 4.8rem); line-height: 1; letter-spacing: -0.04em; max-width: 17ch; text-wrap: balance; }
.band__title span { display: block; margin-top: 0.12em; opacity: 0.62; }
.band__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid rgba(2, 6, 15, 0.28); }
.band__grid h3 { margin-bottom: 8px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; }
.band__grid p { font-size: 1rem; line-height: 1.55; color: rgba(2, 6, 15, 0.78); max-width: 34ch; }

@media (max-width: 760px) { .band__grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ contact */

.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 104px); align-items: start;
  padding-bottom: clamp(104px, 15vh, 184px);
}
.contact__intro { display: grid; gap: 22px; }
.contact__small { font-size: 14px; line-height: 1.5; color: var(--faint); }

.panel {
  position: relative; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(16, 24, 46, 0.5), rgba(5, 8, 15, 0.94));
  box-shadow: 0 50px 140px -70px rgba(61, 123, 255, 0.65);
}
.panel::before { content: ""; position: absolute; left: 14%; right: 14%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(140, 185, 255, 0.6), transparent); }

.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: var(--mute); }
.field label span { margin-left: 4px; font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1px solid rgba(160, 185, 255, 0.3); background: rgba(255, 255, 255, 0.035);
  color: var(--ink); font: 400 16px/1.4 var(--sans); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 132px; }
.field ::placeholder { color: var(--faint); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 4px rgba(77, 141, 255, 0.2); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: inset 0 0 0 100px #0b1222; caret-color: var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field__error { font-size: 13px; line-height: 1.4; color: var(--error); }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select select option { background: #0b1020; color: var(--ink); }
.select svg { position: absolute; right: 16px; top: 50%; width: 12px; height: 8px; transform: translateY(-50%); fill: none; stroke: var(--mute); stroke-width: 1.5; pointer-events: none; }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 8px; }
.form__status { font-size: 14px; color: var(--error); }
.form__status:empty { display: none; }

@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .btn--submit { width: 100%; justify-content: center; }
}

.receipt { display: grid; gap: 14px; justify-items: start; padding: 8px 2px; outline: none; }
.receipt[hidden] { display: none; }
.receipt__loop { width: 132px; height: auto; margin-bottom: 8px; overflow: visible; }
.receipt__loop path { fill: rgba(77, 141, 255, 0.08); stroke: var(--blue); stroke-width: 1.8; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(77, 141, 255, 0.9)); stroke-dasharray: 260; stroke-dashoffset: 0; }
.receipt__loop circle { fill: #eef4ff; }
.receipt__loop--open path { fill: none; stroke-dasharray: 6 6; }
.receipt__title { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 500; letter-spacing: -0.035em; }
.receipt__ref { font: 400 13px/1 var(--mono); letter-spacing: 0.04em; color: var(--faint); }
.receipt__ref span { color: var(--blue-soft); }
@media (prefers-reduced-motion: no-preference) {
  .receipt:not([hidden]) .receipt__loop path { animation: draw 1.4s var(--ease) both; }
}
@keyframes draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }

/* ------------------------------------------------------------------ footer */

.footer { max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 44px var(--gutter) 40px; border-top: 1px solid var(--line); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer__line { color: var(--mute); font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; font-size: 14px; color: var(--mute); }
.footer__links a:hover { color: var(--ink); }
@media (max-width: 640px) { .footer__links { margin-left: 0; flex-basis: 100%; } }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: 36px; font-size: 13px; line-height: 1.5; color: var(--faint); }
.footer__bottom p:last-child { max-width: 62ch; }

/* ------------------------------------------------------------------ small pages (404, sent, no-JS errors) */

.slip {
  min-height: 100svh; display: grid; align-content: center; gap: 22px;
  max-width: calc(720px + var(--gutter) * 2); margin: 0 auto; padding: 120px var(--gutter);
}
.slip .receipt__loop { width: 120px; }
.textlink { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(77, 141, 255, 0.7); text-underline-offset: 6px; }
.textlink:hover { text-decoration-color: var(--blue); }

/* ------------------------------------------------------------------ reduced motion */

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