/* ================================================================
   Vection Labs — style.css
   Green lab. Bricolage Grotesque (display) / Fraunces (body).
   Monospace ONLY inside .terminal.
   ================================================================ */

:root {
  --bg:        #081009;
  --bg-2:      #0a140c;
  --panel:     #0e1a11;
  --line:      rgba(160, 214, 172, 0.13);
  --ink:       #eef5ee;
  --ink-dim:   #93a898;
  --ink-faint: #5c6e60;
  --accent:      #63e58f;
  --accent-deep: #17a45c;
  --accent-soft: rgba(35, 190, 110, 0.14);
  --mint:      #b9f4cf;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body:    "Fraunces", serif;
  --font-serif:   "Fraunces", serif;
  --font-code:    "JetBrains Mono", monospace; /* code sample only */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-deep); color: #ffffff; }

/* ---------------- atmosphere ---------------- */

.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 60;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(3) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1.5%); }
  66% { transform: translate(1.5%, -2%); }
  100% { transform: translate(0, 0); }
}

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 90; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--mint));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* custom cursor — "target lock" corner brackets */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 100; }
  .cur-c { position: absolute; top: 0; left: 0; width: 9px; height: 9px; will-change: transform; }
  .cur-c::before {
    content: ""; position: absolute; inset: 0;
    border: 0 solid rgba(238, 245, 238, 0.85);
    transition: border-color 0.2s;
  }
  .tl::before { border-left-width: 1.5px; border-top-width: 1.5px; border-top-left-radius: 3px; }
  .tr::before { border-right-width: 1.5px; border-top-width: 1.5px; border-top-right-radius: 3px; }
  .bl::before { border-left-width: 1.5px; border-bottom-width: 1.5px; border-bottom-left-radius: 3px; }
  .br::before { border-right-width: 1.5px; border-bottom-width: 1.5px; border-bottom-right-radius: 3px; }
  .cur-dot {
    position: absolute; top: 0; left: 0;
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--accent);
    transition: opacity 0.2s;
    will-change: transform;
  }
  .cursor.is-lock .cur-c::before { border-color: var(--accent); }
  .cursor.is-lock .cur-dot { opacity: 0; }
  body, a, button { cursor: none; }
}

/* ---------------- shared ---------------- */

.shader-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

section { position: relative; }

.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.section-num {
  font-family: var(--font-display);
  font-weight: 700; font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.section-label {
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}
.section-label::after {
  content: ""; display: inline-block;
  width: 56px; height: 1px;
  background: var(--line);
  margin-left: 16px; vertical-align: middle;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.section-sub { margin-top: 18px; max-width: 52ch; color: var(--ink-dim); font-size: 18px; }

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 300; letter-spacing: 0; }
.accent, .accent-text { color: var(--accent); }

.pill {
  display: inline-block;
  padding: 1px 10px 2px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--panel);
  font-size: 15px;
  white-space: nowrap;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 99px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), background-color 0.25s,
              border-color 0.25s, color 0.25s, box-shadow 0.35s;
  will-change: transform;
}
.btn-solid {
  background: var(--accent-deep); color: #ffffff;
  box-shadow: 0 0 0 0 rgba(23, 164, 92, 0);
}
.btn-solid:hover { box-shadow: 0 8px 40px -6px rgba(23, 164, 92, 0.65); }
.btn-ghost {
  color: var(--ink);
  border-color: rgba(160, 214, 172, 0.28);
  background: rgba(14, 26, 17, 0.42);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-big { font-size: 17px; padding: 18px 34px; }
.btn-arrow { transition: transform 0.3s var(--ease-out); display: inline-block; }
.btn:hover .btn-arrow { transform: translate(3px, -3px); }

/* ---------------- reveal system ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out) var(--d, 0s),
              transform 0.9s var(--ease-out) var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

.line-mask { display: block; overflow: hidden; }
[data-reveal-line] {
  display: block;
  transform: translateY(115%);
  transition: transform 1s var(--ease-out) var(--d, 0s);
}
[data-reveal-line].in { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal-line], .creed-item { opacity: 1 !important; transform: none !important; }
  .grain, .marquee-track { animation: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------------- nav — contracts into a floating capsule ---------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 0 clamp(16px, 3vw, 40px);
  transition: transform 0.5s var(--ease-out), padding-top 0.5s var(--ease-out);
}
.nav.hidden { transform: translateY(-130%); }

.nav-shell {
  height: var(--nav-h);
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px;
  padding: 0 clamp(10px, 2vw, 22px);
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: max-width 0.55s var(--ease-out), height 0.45s var(--ease-out),
              border-radius 0.5s var(--ease-out), background-color 0.4s,
              border-color 0.4s, box-shadow 0.5s, padding 0.5s var(--ease-out);
}
.nav.scrolled { padding-top: 14px; }
.nav.scrolled .nav-shell {
  max-width: 940px;
  height: 62px;
  border-radius: 99px;
  background: rgba(10, 20, 12, 0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  border-color: var(--line);
  box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.9),
              inset 0 1px 0 rgba(185, 244, 207, 0.06);
  padding: 0 10px 0 16px;
}

.nav-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.logo-img {
  width: 34px; height: 34px;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}
.nav-logo:hover .logo-img { transform: rotate(8deg) scale(1.08); }
.logo-word {
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  transition: font-size 0.4s var(--ease-out);
}
.logo-word em { font-style: normal; color: var(--accent); }
.nav.scrolled .logo-word { font-size: 17px; }

/* links + sliding active pill */
.nav-links { position: relative; display: flex; gap: 6px; }
.nav-pill {
  position: absolute; top: 50%; left: 0;
  height: 34px; width: 0;
  border-radius: 99px;
  background: var(--accent-soft);
  border: 1px solid rgba(120, 230, 160, 0.22);
  transform: translate(0, -50%);
  opacity: 0;
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out), opacity 0.35s;
  pointer-events: none;
}
.nav-links a {
  position: relative;
  color: var(--ink-dim); text-decoration: none;
  font-family: var(--font-display);
  font-size: 15.5px; font-weight: 500;
  padding: 7px 16px;
  border-radius: 99px;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); }

.nav-cta { padding: 10px 20px; font-size: 14px; }

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

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 40px) clamp(20px, 4vw, 56px) 90px;
  overflow: hidden;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgba(8,16,9,0.93) 0%,  rgba(8,16,9,0.88) 18%, rgba(8,16,9,0.76) 32%,
      rgba(8,16,9,0.58) 45%, rgba(8,16,9,0.36) 58%, rgba(8,16,9,0.16) 72%,
      transparent 92%),
    radial-gradient(ellipse 95% 72% at 50% 45%, transparent 28%, rgba(8,16,9,0.75) 100%),
    linear-gradient(180deg, rgba(8,16,9,0.6) 0%, transparent 22%, transparent 68%, var(--bg) 100%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; width: 100%; will-change: transform; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 9.5vw, 132px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-title .serif { color: var(--accent); font-weight: 300; }

.hero-sub {
  margin-top: 34px;
  max-width: 54ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-dim);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }

/* ---------------- marquee ---------------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 17px 0;
  transform: rotate(-0.5deg) scale(1.012);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600; font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  white-space: nowrap;
  padding-right: 12px;
}
.marquee-track i { font-style: normal; color: var(--accent); padding: 0 14px; font-size: 11px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- manifesto ---------------- */

.manifesto { padding: clamp(110px, 15vw, 200px) clamp(20px, 4vw, 56px); max-width: 1180px; margin: 0 auto; }
.manifesto-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.8vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.028em;
  max-width: 22ch;
}
.manifesto-sub { margin-top: 34px; max-width: 58ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-dim); }
.manifesto-sub em { color: var(--ink); font-style: italic; }

/* ---------------- signal / stats ---------------- */

.signal {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.signal-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(90px, 11vw, 150px) clamp(20px, 4vw, 56px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 60px); }
.stat { border-left: 1px solid var(--line); padding-left: clamp(14px, 2vw, 26px); }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  display: block;
  color: var(--ink);
}
.stat:nth-child(2) .stat-value { color: var(--accent); }
.stat:nth-child(4) .stat-value { color: var(--mint); }
.stat-label {
  display: block; margin-top: 12px;
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}

/* ---------------- registry (models) ---------------- */

.models { padding: clamp(110px, 15vw, 200px) clamp(20px, 4vw, 56px); max-width: 1240px; margin: 0 auto; }

.registry { margin-top: clamp(46px, 6vw, 76px); border-top: 1px solid var(--line); }

.reg { position: relative; border-bottom: 1px solid var(--line); }
.reg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent-soft), transparent 62%);
  opacity: 0; transition: opacity 0.45s;
  pointer-events: none;
}
.reg:hover::before, .reg[data-open="true"]::before { opacity: 1; }

.reg-head {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 2.6vw, 34px) clamp(6px, 1.4vw, 18px);
  background: none; border: none; text-align: left;
  color: inherit;
  transition: padding-left 0.45s var(--ease-out);
}
.reg:hover .reg-head, .reg[data-open="true"] .reg-head { padding-left: clamp(16px, 2.4vw, 32px); }

.reg-idx {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  transition: color 0.35s;
}
.reg:hover .reg-idx, .reg[data-open="true"] .reg-idx { color: var(--accent); }

.reg-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.reg-name em { font-style: normal; color: var(--accent); }

.reg-meta { display: flex; align-items: center; gap: 14px; }
.reg-arch {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
  color: var(--ink-faint);
  white-space: nowrap;
}
.reg-flag {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  background: rgba(160, 214, 172, 0.05);
  padding: 3px 12px; border-radius: 99px;
  white-space: nowrap;
}

/* plus/minus mark */
.reg-mark { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.reg-mark::before, .reg-mark::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 1.5px; background: var(--ink-dim);
  transition: transform 0.45s var(--ease-out), background-color 0.35s;
}
.reg-mark::after { transform: rotate(90deg); }
.reg:hover .reg-mark::before, .reg:hover .reg-mark::after { background: var(--accent); }
.reg[data-open="true"] .reg-mark::after { transform: rotate(0deg); }
.reg[data-open="true"] .reg-mark::before,
.reg[data-open="true"] .reg-mark::after { background: var(--accent); }

.reg-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}
.reg[data-open="true"] .reg-panel { grid-template-rows: 1fr; }
.reg-panel > div { overflow: hidden; }
.reg-panel-in {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
  padding: 0 clamp(16px, 2.4vw, 32px) clamp(30px, 3.4vw, 44px);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.5s var(--ease-out) 0.1s, transform 0.5s var(--ease-out) 0.1s;
}
.reg[data-open="true"] .reg-panel-in { opacity: 1; transform: translateY(0); }
.reg-panel-in > p { color: var(--ink-dim); font-size: 17px; max-width: 46ch; }

.reg-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.reg-specs div { border-top: 1px solid var(--line); padding-top: 10px; }
.reg-specs dt {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.reg-specs dd { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); }

.reg-link {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  width: fit-content;
}
.reg-link span { transition: transform 0.3s var(--ease-out); }
.reg-link:hover span { transform: translate(3px, -3px); }

/* ---------------- creed (principles) ---------------- */

.principles { padding: clamp(110px, 15vw, 200px) clamp(20px, 4vw, 56px); max-width: 1240px; margin: 0 auto; }

.creed { list-style: none; margin-top: clamp(40px, 5vw, 70px); }
.creed-item {
  position: relative;
  max-width: 640px;
  padding: clamp(30px, 4vw, 54px) 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateX(-46px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.creed-item.in { opacity: 1; transform: translateX(0); }
.creed-item:nth-child(even) {
  margin-left: auto; text-align: right;
  transform: translateX(46px);
}
.creed-item:nth-child(even).in { transform: translateX(0); }
.creed-item:last-child { border-bottom: 1px solid var(--line); }

.creed-idx {
  display: block;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.creed-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.creed-item h3 em { color: var(--accent); font-weight: 300; }
.creed-item p { color: var(--ink-dim); font-size: 17.5px; }
.creed-item .tag {
  font-family: var(--font-code);
  font-size: 0.85em;
  color: var(--mint);
  background: var(--accent-soft);
  padding: 1px 7px; border-radius: 5px;
}

/* ---------------- quickstart / terminal ---------------- */

.start { padding: clamp(110px, 15vw, 200px) clamp(20px, 4vw, 56px); max-width: 1080px; margin: 0 auto; }

.terminal {
  margin-top: clamp(40px, 5vw, 64px);
  background: #081109;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(120, 230, 160, 0.05);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(160, 214, 172, 0.04);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(160, 214, 172, 0.2); }
.t-dot:first-child { background: rgba(255, 120, 110, 0.6); }
.t-dot:nth-child(2) { background: rgba(240, 200, 110, 0.55); }
.t-dot:nth-child(3) { background: rgba(99, 229, 143, 0.6); }
.terminal-title { margin-left: 12px; font-family: var(--font-display); font-size: 13px; color: var(--ink-faint); flex-grow: 1; }
.copy-btn {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 14px;
  transition: color 0.25s, border-color 0.25s;
}
.copy-btn:hover, .copy-btn.copied { color: var(--accent); border-color: var(--accent); }

.terminal-body {
  padding: 26px 28px;
  overflow-x: auto;
  font-family: var(--font-code);   /* the ONLY monospace on the site */
  font-size: 14px;
  line-height: 1.75;
  color: #cbdcd0;
}
.terminal-body code { font-family: inherit; }
.c-kw  { color: var(--mint); }
.c-str { color: var(--accent); }
.c-num { color: #7de1ff; }
.c-fn  { color: #dbe8de; }

/* ---------------- cta ---------------- */

.cta {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  text-align: center;
}
.cta-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 58% at 50% 50%, rgba(10, 20, 12, 0.94) 12%, transparent 76%),
    linear-gradient(180deg, var(--bg-2) 0%, transparent 18%, transparent 82%, var(--bg-2) 100%);
}
.cta-inner { position: relative; max-width: 1000px; margin: 0 auto; padding: clamp(120px, 16vw, 220px) clamp(20px, 4vw, 56px); }
.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 10.5vw, 150px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.cta-title .serif { font-weight: 300; }
.cta-sub { margin: 30px auto 0; max-width: 44ch; color: var(--ink-dim); font-size: 18px; }
.cta .btn { margin-top: 42px; }

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

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 56px) 36px;
  max-width: 1240px; margin: 0 auto;
}
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px; }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 90px); flex-wrap: wrap; }
.footer-cols h4 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.footer-cols a {
  display: block;
  color: var(--ink-dim); text-decoration: none;
  font-size: 15px; margin-bottom: 11px;
  transition: color 0.25s, transform 0.3s var(--ease-out);
}
.footer-cols a:hover { color: var(--accent); transform: translateX(4px); }

.footer-bottom {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--ink-faint);
  font-size: 13.5px;
}
.footer-bottom p:first-child { font-style: italic; font-size: 15px; }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .reg-panel-in { grid-template-columns: 1fr; }
  .creed-item, .creed-item:nth-child(even) { max-width: none; text-align: left; }
}
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav.scrolled .nav-shell { max-width: 100%; }
  .reg-head { grid-template-columns: auto 1fr auto; gap: 14px; }
  .reg-meta { display: none; }
  .hero-title { font-size: clamp(44px, 13vw, 76px); }
  .footer-top { flex-direction: column; }
  .reg-specs { grid-template-columns: 1fr; }
}


/* =================================================================
   INTRO — the mark eats the wordmark, then the veil irises open
   -----------------------------------------------------------------
   Sequence: logo lands, VECTION slides in from the left and LABS from
   the right, then each word is CLIPPED FROM ITS OUTER EDGE INWARD so
   the erase travels toward the mark rather than away from it. The mark
   then flies to the position of the real nav logo, which is measured at
   run time rather than hardcoded, so it stays aligned at any width.
   ================================================================= */
.intro {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  pointer-events: none;
}
.intro-veil {
  position: absolute; inset: 0;
  background: var(--bg);
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 0.85s cubic-bezier(0.7, 0, 0.2, 1);
}
.intro.is-open .intro-veil { clip-path: circle(0% at 50% 50%); }

.intro-stage {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 2.4vw, 30px);
}
.intro-mark {
  display: block;
  width: clamp(64px, 8vw, 96px); height: clamp(64px, 8vw, 96px);
  opacity: 0; transform: scale(0.82);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  will-change: transform, opacity;
}
.intro-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.intro.is-mark  .intro-mark { opacity: 1; transform: scale(1); }
/* the flight to the nav is a transform written by JS; a longer, softer curve */
.intro.is-fly   .intro-mark { transition: transform 0.8s cubic-bezier(0.65, 0, 0.2, 1), opacity 0.3s linear 0.55s; }

.intro-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5.2vw, 66px);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  clip-path: inset(-20% 0 -20% 0);
  transition: clip-path 0.55s cubic-bezier(0.7, 0, 0.25, 1),
              transform  0.55s cubic-bezier(0.7, 0, 0.25, 1);
  will-change: clip-path, transform;
}
.intro-right { color: var(--accent); }
.intro-word .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
  transition: opacity 0.42s var(--ease-out), transform 0.42s var(--ease-out);
}
.intro.is-type .intro-word .ch { opacity: 1; transform: none; }

/* The erase. Growing the LEFT inset eats the left word from its far edge
   inward; growing the RIGHT inset does the mirror for the right word. Both
   therefore vanish in the direction of the mark. */
.intro.is-eat .intro-left  { clip-path: inset(-20% 0 -20% 100%); transform: translateX(0.22em); }
.intro.is-eat .intro-right { clip-path: inset(-20% 100% -20% 0); transform: translateX(-0.22em); }

.intro-ring {
  position: absolute; z-index: 1;
  width: clamp(64px, 8vw, 96px); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0; transform: scale(0.6);
}
.intro.is-pulse .intro-ring {
  animation: intro-ring 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes intro-ring {
  0%   { opacity: 0.85; transform: scale(0.6); }
  100% { opacity: 0;    transform: scale(5.4); }
}

.intro.is-done { display: none; }
body.intro-lock { overflow: hidden; }

/* No intro at all when motion is unwelcome: the site is simply there. */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  body.intro-lock { overflow: auto; }
}
