/* LINK — VRAINS scene · hero + sigils · full-bleed orb intake */

.link-page {
  --link-cyan: #00f0ff;
  --link-mag: #ff2bd6;
  --link-gold: #ffe566;
  --link-plat: #e8f4ff;
  --link-font-display: "Exo 2", Orbitron, Audiowide, sans-serif;
  --link-font-mono: "Share Tech Mono", ui-monospace, monospace;
  --orb-tilt-x: 0px;
  --orb-tilt-y: 0px;
  --link-gap: clamp(0.4rem, 1.4vh, 0.75rem);
  --link-topbar-pad: clamp(3.25rem, 9vw, 4.25rem);
  --link-orb-size: min(320px, 46vw);
  --link-orb-inset-top: 0.4rem;
  /* Ring geometry matches .link-ingress-sun__ring--b inset 12% / --a inset 0 */
  --link-ring-pink-r: 0.38;
  --link-ring-gold-r: 0.5;
  --link-y-emblem: 22%;
  --link-y-title: 56%;
  --link-y-badge: 70%;
  --link-form-min-h: clamp(16rem, 38dvh, 26rem);
  --link-sigil-scale: 0.78;
}

.link-page body,
.link-page {
  font-family: "DM Sans", system-ui, sans-serif;
}

/* Scene */
.link-page .vapor-scene.link-vrains-scene {
  background: linear-gradient(180deg, #030014 0%, #0a0428 22%, #120838 42%, #061a2e 68%, #020810 100%);
  animation: link-scene-pulse 18s ease-in-out infinite alternate;
}

.link-page .vapor-sun,
.link-page .waves,
.link-page .scanlines,
.link-page .glow {
  display: none !important;
}

@keyframes link-scene-pulse {
  0% { filter: hue-rotate(0deg) saturate(1.05); }
  100% { filter: hue-rotate(8deg) saturate(1.12); }
}

.link-horizon-haze {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 6%;
  height: 40%;
  background: radial-gradient(ellipse 55% 40% at 50% 55%, rgba(255, 43, 214, 0.22), transparent 72%);
  animation: link-haze-drift 14s ease-in-out infinite alternate;
}

@keyframes link-haze-drift {
  0% { transform: translateX(-2%) scale(1); }
  100% { transform: translateX(2%) scale(1.04); }
}

.link-ingress-sun {
  position: absolute;
  left: 50%;
  top: calc(var(--link-topbar-pad) + var(--link-orb-inset-top));
  width: var(--link-orb-size);
  height: var(--link-orb-size);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.link-ingress-sun__core {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff 0%, var(--link-cyan) 25%, var(--link-mag) 70%, transparent 100%);
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.45), 0 0 120px rgba(255, 43, 214, 0.25);
  animation: link-core-throb 4s ease-in-out infinite;
}

@keyframes link-core-throb {
  50% { transform: scale(0.96); opacity: 0.88; }
}

.link-ingress-sun__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.35);
}

.link-ingress-sun__ring--a {
  animation: link-ring-spin 24s linear infinite;
  border-style: dashed;
  border-width: 2px;
  border-color: rgba(255, 229, 102, 0.72);
  box-shadow: 0 0 20px rgba(255, 229, 102, 0.25);
}

.link-ingress-sun__ring--b {
  inset: 12%;
  animation: link-ring-spin 16s linear infinite reverse;
  border-width: 2px;
  border-color: rgba(255, 43, 214, 0.75);
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.28);
}

@keyframes link-ring-spin {
  to { transform: rotate(360deg); }
}

.link-ingress-sun__hex {
  position: absolute;
  inset: 18%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 240, 255, 0.12), transparent, rgba(255, 43, 214, 0.1), transparent);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  animation: link-hex-pulse 6s ease-in-out infinite;
}

@keyframes link-hex-pulse {
  50% { opacity: 0.55; filter: blur(1px); }
}

.link-sky-lattice {
  position: absolute;
  inset: 0 0 40%;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 214, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
  animation: link-lattice-drift 20s linear infinite;
}

@keyframes link-lattice-drift {
  from { background-position: 0 0; }
  to { background-position: 0 64px; }
}

.link-page .grid-floor.link-grid-boost {
  background-size: 36px 36px;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 214, 0.42) 1px, transparent 1px);
  animation: link-grid-flow 7s linear infinite;
  will-change: background-position;
  transform: perspective(340px) rotateX(68deg) translateZ(0);
  backface-visibility: hidden;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.25));
}

.link-page .grid-floor.link-grid-boost::before {
  background-size: 36px 36px;
  opacity: 0.65;
  animation: link-grid-flow 7s linear infinite;
  animation-delay: -3.5s;
}

.link-page .grid-floor-mirror.link-grid-boost {
  display: none;
}

@keyframes link-grid-flow {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 36px, 0 36px; }
}

.link-vertical-data {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 18px, rgba(0, 240, 255, 0.04) 18px, rgba(0, 240, 255, 0.04) 19px);
  animation: link-data-fall 12s linear infinite;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  pointer-events: none;
}

@keyframes link-data-fall {
  from { transform: translateY(-20px); }
  to { transform: translateY(20px); }
}

.link-chromatic {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.05;
  background: linear-gradient(90deg, #f00, #0f0, #00f);
  animation: link-chroma 8s steps(3) infinite;
}

@keyframes link-chroma {
  0% { transform: translateX(-2px); }
  33% { transform: translateX(2px); }
  66% { transform: translateX(0); }
}

.link-scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 240, 255, 0.025) 2px, rgba(0, 240, 255, 0.025) 4px);
}

/* Scroll snap + event layout */
html:has(body.link-page) {
  scroll-behavior: smooth;
}

body.link-page {
  scroll-snap-type: y proximity;
  scroll-padding-top: clamp(3.25rem, 9vw, 4.25rem);
  padding-bottom: 0 !important;
}

.link-hero.link-snap-panel {
  scroll-snap-align: start;
}

.link-snap-event {
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}

.link-snap-footer {
  scroll-snap-align: end;
  min-height: 0;
}

/* Content shell — one vertical rhythm */
.link-page #page-root {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.link-page {
  padding-bottom: 0;
}

/* Crown — locked to ingress sun box */
.link-orb-crown-mount {
  position: relative;
  width: 100%;
  min-height: calc(var(--link-orb-inset-top) + var(--link-orb-size) + clamp(1.25rem, 4vh, 2rem));
  height: auto;
  box-sizing: border-box;
  margin: 0;
  flex-shrink: 0;
  pointer-events: none;
}

.link-orb-crown {
  position: absolute;
  left: 50%;
  top: var(--link-orb-inset-top);
  width: var(--link-orb-size);
  height: var(--link-orb-size);
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

.link-orb-crown .link-emblem {
  display: flex;
  justify-content: center;
  margin: 0;
  position: absolute;
  left: 50%;
  top: var(--link-y-emblem);
  z-index: 5;
  filter: drop-shadow(0 0 28px rgba(0, 240, 255, 0.45));
  transform: translate(-50%, -32%);
  width: 100%;
}

.link-orb-crown .link-emblem-svg {
  width: min(200px, 52%);
  height: auto;
}

.link-orb-crown .link-title-orbit {
  font-family: var(--link-font-display);
  font-size: clamp(1.75rem, 6.5vw, 2.55rem);
  font-weight: 700;
  letter-spacing: 0.34em;
  margin: 0;
  padding: 0.15rem 0.55rem;
  background: linear-gradient(92deg, var(--link-cyan), var(--link-plat) 45%, var(--link-mag));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: absolute;
  left: 50%;
  top: var(--link-y-title);
  transform: translate(-50%, -50%);
  z-index: 4;
  filter: drop-shadow(0 0 18px rgba(255, 43, 214, 0.45));
}

.link-orb-crown .link-badge--cyber {
  display: inline-block !important;
  font-family: var(--link-font-mono);
  font-size: clamp(0.48rem, 1.9vw, 0.58rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffe566;
  text-shadow: 0 0 12px rgba(255, 229, 102, 0.65);
  margin: 0;
  padding: 0.35rem 0.85rem;
  position: absolute;
  left: 50%;
  top: var(--link-y-badge);
  transform: translate(-50%, -50%);
  z-index: 3;
  white-space: nowrap;
  max-width: 96%;
  box-sizing: border-box;
  background:
    linear-gradient(90deg, rgba(255, 229, 102, 0.18), rgba(0, 240, 255, 0.1), rgba(255, 229, 102, 0.18));
  border: 1px solid rgba(255, 229, 102, 0.75);
  clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
  box-shadow:
    0 0 24px rgba(255, 229, 102, 0.35),
    inset 0 0 14px rgba(0, 240, 255, 0.1);
  animation: link-badge-flicker 4s ease-in-out infinite;
}

/* Hero — sigils only */
.link-hero {
  text-align: center;
  padding: 0 0.75rem;
  margin: 0;
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: min(820px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-bottom: 0;
}

.link-hero-stack,
.link-orbit-rings {
  display: none;
}

.link-sigil-row--lower {
  transform: scale(var(--link-sigil-scale));
  transform-origin: center top;
}

.link-hero + .link-intake-wide {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
}

@keyframes link-emblem-float {
  50% { transform: translateY(-3px); }
}

.link-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed transparent;
}

@keyframes link-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes link-badge-flicker {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.92; filter: brightness(1.08); }
}

.link-emblem-svg {
  width: min(200px, 48vw);
  height: auto;
  animation: link-emblem-float 5s ease-in-out infinite;
}

.link-sigil-row {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 88vw;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.45rem, 2vw, 0.75rem);
}

.link-hero .link-sigil-row.link-sigil-row--lower {
  margin-top: clamp(0.35rem, 1.2vh, 0.65rem);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: min(820px, 94vw);
}

.link-sigil-card {
  position: relative;
  aspect-ratio: 1;
  min-height: clamp(72px, 18vw, 108px);
  display: block;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 43, 214, 0.16), transparent 55%),
    linear-gradient(165deg, rgba(8, 12, 32, 0.94), rgba(2, 6, 16, 0.98));
  box-shadow:
    0 0 28px rgba(0, 240, 255, 0.1),
    inset 0 0 20px rgba(0, 240, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.link-sigil-card:hover,
.link-sigil-card:focus-within,
.link-sigil-card.is-open {
  z-index: 30;
  border-color: rgba(255, 229, 102, 0.5);
  box-shadow: 0 0 40px rgba(255, 43, 214, 0.2);
  transform: translateY(-2px);
}

.link-sigil-face {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.35rem 0.55rem;
}

.link-sigil {
  width: 58%;
  height: auto;
  color: var(--link-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.55));
  animation: link-sigil-idle 4s ease-in-out infinite;
}

.link-sigil-card:nth-child(2) .link-sigil { color: var(--link-mag); animation-delay: 0.5s; }
.link-sigil-card:nth-child(3) .link-sigil { color: var(--link-plat); animation-delay: 1s; }
.link-sigil-card:nth-child(4) .link-sigil { color: var(--link-gold); animation-delay: 1.5s; }

@keyframes link-sigil-idle {
  50% { transform: scale(1.05); }
}

.link-sigil-rune {
  font-family: var(--link-font-mono);
  font-size: clamp(0.5rem, 2.4vw, 0.65rem);
  letter-spacing: 0.22em;
  color: rgba(232, 244, 255, 0.82);
}

/* Inlaid sigil popups */
.link-sigil-popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) scale(0.94);
  width: max(200px, 22vw);
  max-width: 260px;
  padding: 0.85rem 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.45);
  background:
    linear-gradient(145deg, rgba(6, 12, 32, 0.97), rgba(14, 8, 28, 0.98));
  box-shadow:
    inset 0 0 24px rgba(0, 240, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(139, 92, 246, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  color: var(--link-cyan);
  text-align: center;
}

.link-sigil-card:nth-child(2) .link-sigil-popup { color: var(--link-mag); }
.link-sigil-card:nth-child(3) .link-sigil-popup { color: var(--link-plat); }
.link-sigil-card:nth-child(4) .link-sigil-popup { color: var(--link-gold); }

.link-sigil-card:hover .link-sigil-popup,
.link-sigil-card:focus-within .link-sigil-popup,
.link-sigil-card.is-open .link-sigil-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.link-sigil-popup-glyph {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.35rem;
  display: block;
}

.link-sigil-spin {
  transform-origin: 60px 60px;
  animation: link-sigil-rotate 10s linear infinite;
}

.link-sigil-pulse {
  transform-origin: 60px 60px;
  animation: link-sigil-magic-pulse 2.8s ease-in-out infinite;
}

@keyframes link-sigil-rotate {
  to { transform: rotate(360deg); }
}

@keyframes link-sigil-magic-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.link-sigil-popup-title {
  font-family: var(--link-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: var(--link-plat);
}

.link-sigil-popup-text {
  font-size: 0.72rem;
  line-height: 1.55;
  margin: 0;
  color: rgba(232, 244, 255, 0.78);
}

@media (max-width: 720px) {
  .link-sigil-popup {
    bottom: auto;
    top: calc(100% + 10px);
    width: min(240px, 88vw);
    max-width: none;
  }
}

@media (max-height: 700px) and (max-width: 480px) {
  .link-emblem-svg {
    width: min(168px, 42vw);
  }
}

.link-hero-meta {
  display: none;
}

.link-intake-bridge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  width: 88vw;
  margin: 0;
  padding: 0;
}

.link-intake-wide {
  width: 88vw;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
}

.link-intake-bridge .link-tagline {
  font-family: var(--link-font-mono);
  font-size: clamp(0.55rem, 2.5vw, 0.68rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 244, 255, 0.5);
  margin: 0;
}

.link-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--link-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.08);
  color: var(--link-cyan);
}

.link-status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: link-pulse 2s ease-in-out infinite;
}

@keyframes link-pulse {
  50% { opacity: 0.4; }
}

/* Full-bleed orb + form overlay — 88vw event */
.link-orb-stage {
  position: relative;
  width: 100%;
  display: grid;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 60px rgba(107, 33, 255, 0.22), 0 20px 60px rgba(0, 0, 0, 0.45);
}

.link-orb-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 55%, #0a1638 0%, #020617 100%);
  --focal-x: 50%;
  --focal-y: 62%;
  pointer-events: none;
}

.link-orb-art {
  position: absolute;
  top: -22%;
  right: -8%;
  bottom: -10%;
  left: -8%;
  background: url("../img/link-scrying-orb-bg.png") center / cover no-repeat;
  background-position: 50% 58%;
  transform: translate3d(var(--orb-tilt-y, 0px), var(--orb-tilt-x, 0px), 0) scale(1.06);
  animation: link-orb-breathe 18s ease-in-out infinite alternate;
  will-change: transform;
}

.link-orb-focal {
  position: absolute;
  left: var(--focal-x, 50%);
  top: var(--focal-y, 62%);
  width: min(72vw, 420px);
  height: min(72vw, 420px);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 240, 255, 0.22) 0%,
    rgba(139, 92, 246, 0.12) 38%,
    transparent 68%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  animation: link-focal-pulse 6s ease-in-out infinite;
}

@keyframes link-focal-pulse {
  50% { opacity: 0.75; transform: translate(-50%, -50%) scale(1.06); }
}

.link-orb-swirl {
  position: absolute;
  inset: -10%;
  background: conic-gradient(
    from 0deg at var(--focal-x, 50%) var(--focal-y, 62%),
    transparent,
    rgba(139, 92, 246, 0.12),
    transparent,
    rgba(0, 240, 255, 0.14),
    transparent,
    rgba(255, 43, 214, 0.1),
    transparent
  );
  mix-blend-mode: screen;
  animation: link-orb-swirl-spin 24s linear infinite;
  pointer-events: none;
  opacity: 0.75;
}

.link-orb-chroma {
  position: absolute;
  left: var(--focal-x, 50%);
  top: var(--focal-y, 62%);
  width: min(55vw, 360px);
  height: min(40vw, 260px);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(255, 255, 255, 0.1), transparent 70%);
  animation: link-orb-chroma-pulse 5s ease-in-out infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes link-orb-swirl-spin {
  to { transform: rotate(360deg); }
}

@keyframes link-orb-chroma-pulse {
  50% { opacity: 0.55; transform: scale(1.03); }
}

@keyframes link-orb-breathe {
  0% { transform: translate3d(var(--orb-tilt-y, 0px), var(--orb-tilt-x, 0px), 0) scale(1.04); }
  100% { transform: translate3d(var(--orb-tilt-y, 0px), var(--orb-tilt-x, 0px), 0) scale(1.08); }
}

.link-orb-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 240, 255, 0.14) 50%, transparent 62%);
  animation: link-orb-scanline 4s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes link-orb-scanline {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

.link-orb-ring {
  position: absolute;
  left: var(--focal-x, 50%);
  top: var(--focal-y, 62%);
  border-radius: 50%;
  border: 1px solid rgba(255, 229, 102, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.link-orb-ring--outer {
  width: min(78%, 520px);
  aspect-ratio: 1;
  animation: link-orb-ring-pulse 5s ease-in-out infinite;
}

.link-orb-ring--inner {
  width: min(48%, 320px);
  aspect-ratio: 1;
  border-color: rgba(0, 240, 255, 0.55);
  animation: link-orb-ring-pulse 3.5s ease-in-out infinite reverse;
}

@keyframes link-orb-ring-pulse {
  50% { opacity: 0.45; transform: translate(-50%, -50%) scale(1.05); }
}

.link-orb-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 95% 88% at 50% 52%, transparent 42%, rgba(2, 6, 23, 0.5) 78%, rgba(2, 6, 23, 0.82) 100%);
  pointer-events: none;
}

.link-orb-panel {
  position: relative;
  z-index: 2;
  grid-area: 1 / 1;
  min-height: var(--link-form-min-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: clamp(1rem, 3vw, 1.35rem) clamp(1rem, 5vw, 2.5rem) clamp(1.25rem, 3.5vw, 1.65rem);
  width: 100%;
  box-sizing: border-box;
}

.link-orb-panel h2 {
  font-family: var(--link-font-display);
  font-size: clamp(0.95rem, 3.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0;
  color: var(--link-plat);
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
}

.link-intake-sub {
  font-family: var(--link-font-mono);
  font-size: 0.78rem;
  color: rgba(232, 244, 255, 0.72);
  margin: 0 0 0.35rem;
  text-align: center;
  line-height: 1.45;
}

.link-waitlist-form {
  width: 100%;
  max-width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.link-form-row label {
  display: block;
  font-family: var(--link-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--link-cyan);
  margin-bottom: 0.3rem;
}

.link-waitlist-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  color: var(--link-plat);
  font-size: 1rem;
  margin-bottom: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 20px rgba(0, 240, 255, 0.08);
}

.link-waitlist-form input[type="email"]::placeholder {
  color: rgba(232, 244, 255, 0.45);
  font-family: var(--link-font-mono);
  letter-spacing: 0.06em;
}

.link-waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 28px rgba(0, 240, 255, 0.2);
}

.link-consent-row {
  display: flex;
  justify-content: center;
  margin: 0;
}

.link-consent-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  max-width: 28rem;
  text-align: left;
}

.link-consent-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.link-consent-box {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  border: 1px solid rgba(0, 240, 255, 0.65);
  background: rgba(4, 12, 32, 0.55);
  clip-path: polygon(14% 0, 86% 0, 100% 14%, 100% 86%, 86% 100%, 14% 100%, 0 86%, 0 14%);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.15);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.link-consent-box::after {
  content: "";
  position: absolute;
  inset: 22%;
  background: linear-gradient(135deg, var(--link-cyan), var(--link-mag));
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.2s;
  clip-path: polygon(14% 0, 86% 0, 100% 14%, 100% 86%, 86% 100%, 14% 100%, 0 86%, 0 14%);
}

.link-consent-input:checked + .link-consent-box {
  border-color: rgba(255, 229, 102, 0.75);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

.link-consent-input:checked + .link-consent-box::after {
  opacity: 1;
  transform: scale(1);
}

.link-consent-input:focus-visible + .link-consent-box {
  outline: 2px solid rgba(255, 229, 102, 0.6);
  outline-offset: 2px;
}

.link-consent-text {
  font-family: var(--link-font-mono);
  font-size: 0.68rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: rgba(232, 244, 255, 0.78);
}

.link-waitlist-form .consent-row {
  display: none;
}

.link-waitlist-btn {
  margin-top: 0.15rem !important;
}

#waitlist-message {
  margin-top: 0.75rem;
  font-family: var(--link-font-mono);
  font-size: 0.82rem;
  text-align: center;
}

#waitlist-message.is-success { color: #4ade80; }
#waitlist-message.is-error { color: #f87171; }

.link-footer {
  text-align: center;
  margin: 0;
  padding: 0.2rem 0 0;
  width: 88vw;
  margin-left: auto;
  margin-right: auto;
}

.link-footer .site-credits {
  font-family: var(--link-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin: 0;
}

@media (max-height: 820px) {
  .link-page {
    --link-form-min-h: clamp(12.5rem, 30dvh, 17.5rem);
  }

  .link-hero + .link-intake-wide {
    margin-top: 0.15rem;
  }
}

@media (max-height: 700px) and (max-width: 480px) {
  .link-page {
    --link-orb-size: min(280px, 44vw);
    --link-orb-inset-top: 0.25rem;
    --link-y-emblem: 12%;
    --link-form-min-h: clamp(14rem, 34dvh, 20rem);
  }

  .link-orb-crown .link-emblem-svg {
    width: min(168px, 48%);
  }

  .link-orb-crown .link-title-orbit {
    font-size: 1.55rem;
  }
}

@media (min-width: 900px) {
  .link-page {
    --link-orb-size: min(340px, 42vh, 360px);
    --link-form-min-h: clamp(18rem, 40dvh, 28rem);
  }
}
