@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("/assets/fonts/spectral-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("/assets/fonts/spectral-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Marcellus";
  src: url("/assets/fonts/marcellus-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/space-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-400.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IM Fell English";
  src: url("/assets/fonts/im-fell-english-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --obsidian: #080a0a;
  --bone: #f4efe6;
  --aqua: #4ac7b8;
  --tesserakt-ice: #b8f4ff;
  --tesserakt-sky: #7eceff;
  --tesserakt-blue: #2f8dff;
  --tesserakt-core: #0a6cf0;
  --tesserakt-deep: #031b66;
  --gold: #b3944a;
  --teal: #003333;
  --midnight: #272757;
  --violet: #120719;
  --rose: #4b1e2a;
  --iron: #8c8c86;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Spectral", Georgia, serif;
  --ui: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #05080c;
  scroll-behavior: smooth;
}

/* TESSERAKT background — darkness with cold light rising from within, no photo.
   The page should feel deeper than it has any right to. */
body {
  min-height: 100vh;
  margin: 0;
  color: var(--bone);
  font-family: var(--body);
  line-height: 1.6;
  background:
    radial-gradient(120% 80% at 50% 64%, rgba(34, 96, 140, 0.22), rgba(8, 16, 26, 0) 58%),
    radial-gradient(140% 100% at 50% 122%, rgba(60, 150, 200, 0.16), rgba(5, 9, 14, 0) 52%),
    linear-gradient(180deg, #05080c 0%, #060b12 46%, #04070b 100%);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

/* blue shimmer — soft drifting electric haze that lifts off the dark */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(38% 48% at 32% 36%, rgba(70, 170, 255, 0.12), transparent 60%),
    radial-gradient(46% 56% at 70% 62%, rgba(96, 205, 255, 0.1), transparent 62%);
  mix-blend-mode: screen;
  filter: blur(10px);
  animation: tesserakt-shimmer 16s ease-in-out infinite alternate;
}

@keyframes tesserakt-shimmer {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
    opacity: 0.68;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate3d(2%, 2%, 0) scale(1.08);
    opacity: 0.74;
  }
}

/* depth — a cold core haze held inside a vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(rgba(3, 7, 13, 0.22), rgba(3, 7, 13, 0.22)),
    radial-gradient(80% 60% at 50% 46%, rgba(90, 190, 230, 0.05), transparent 60%),
    radial-gradient(140% 120% at 50% 50%, transparent 52%, rgba(3, 6, 10, 0.7) 100%),
    linear-gradient(180deg, rgba(5, 9, 14, 0.4) 0%, transparent 22%, transparent 78%, rgba(3, 6, 10, 0.85) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

#threshold-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.linksea-shell {
  position: relative;
  z-index: 3;
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(18px, 3.4vw, 34px) 0 34px;
}

.linksea-shell::before {
  content: "";
  position: fixed;
  inset: -54px 0 auto;
  z-index: 5;
  height: clamp(270px, 39vh, 410px);
  pointer-events: none;
  background:
    radial-gradient(54% 82% at 50% 28%, rgba(126, 206, 255, 0.12), transparent 68%),
    linear-gradient(180deg, transparent 0%, rgba(5, 8, 12, 0.78) 18%, rgba(5, 8, 12, 0.66) 50%, rgba(5, 8, 12, 0.18) 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
  mix-blend-mode: normal;
}

.neon-stage {
  position: sticky;
  top: clamp(10px, 2.1vw, 22px);
  z-index: 7;
  width: min(760px, 100%);
  margin-inline: auto;
  min-height: min(23vh, 220px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.34rem;
  padding: 0.45rem 0 1rem;
  isolation: isolate;
}

.neon-stage::before {
  content: "";
  position: absolute;
  inset: -1.8rem -1.4rem -1.25rem;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(62% 84% at 50% 40%, rgba(47, 141, 255, 0.18), transparent 66%),
    radial-gradient(82% 90% at 50% 22%, rgba(184, 244, 255, 0.08), transparent 70%),
    linear-gradient(180deg, transparent, rgba(5, 8, 12, 0.34) 22%, rgba(5, 8, 12, 0.1) 78%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 74%, transparent 100%);
}

.kicker,
.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.66);
}

.neon-sign {
  position: relative;
  max-width: 100%;
  margin: 0;
  font-family: "IM Fell English", var(--display);
  font-size: clamp(1.75rem, 4.34vw, 3.36rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--tesserakt-sky);
  background:
    linear-gradient(
      100deg,
      var(--tesserakt-ice) 0%,
      var(--tesserakt-sky) 22%,
      var(--tesserakt-core) 48%,
      var(--tesserakt-ice) 62%,
      var(--tesserakt-blue) 78%,
      var(--tesserakt-sky) 100%
    );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 2px rgba(184, 244, 255, 0.9),
    0 0 12px rgba(126, 206, 255, 0.78),
    0 0 30px rgba(47, 141, 255, 0.46),
    0 0 62px rgba(3, 27, 102, 0.58);
  filter:
    drop-shadow(0 16px 42px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 18px rgba(47, 141, 255, 0.28));
  animation: tesserakt-title-shimmer 9s ease-in-out infinite;
}

.neon-sign::before,
.neon-sign::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.neon-sign::before {
  color: transparent;
  -webkit-text-stroke: 1px rgba(126, 206, 255, 0.74);
  transform: translate(0.035em, 0.035em);
  opacity: 0.56;
}

.neon-sign::after {
  color: rgba(3, 27, 102, 0.28);
  transform: translate(-0.035em, -0.02em);
}

.portal-handle {
  margin: -0.04rem 0 0;
  color: rgba(184, 244, 255, 0.72);
  font-family: var(--ui);
  font-size: clamp(1.44rem, 2.5vw, 1.72rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(47, 141, 255, 0.32);
}

.subtitle {
  max-width: 540px;
  margin: 0;
  color: rgba(244, 239, 230, 0.78);
  font-family: var(--ui);
  font-size: clamp(0.9rem, 1.35vw, 1rem);
}

@keyframes tesserakt-title-shimmer {
  0%,
  100% {
    background-position: 8% 50%;
    text-shadow:
      0 0 2px rgba(184, 244, 255, 0.82),
      0 0 10px rgba(126, 206, 255, 0.66),
      0 0 26px rgba(47, 141, 255, 0.38),
      0 0 54px rgba(3, 27, 102, 0.5);
  }
  50% {
    background-position: 96% 50%;
    text-shadow:
      0 0 3px rgba(184, 244, 255, 0.98),
      0 0 16px rgba(126, 206, 255, 0.82),
      0 0 38px rgba(47, 141, 255, 0.52),
      0 0 74px rgba(3, 27, 102, 0.62);
  }
}

.social-dock {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.38rem;
  max-width: min(100%, 620px);
  margin-top: 0.12rem;
}

.social-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.46rem 0.64rem;
  border: 1px solid rgba(111, 198, 242, 0.36);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(120, 205, 248, 0.1), rgba(120, 205, 248, 0.02)),
    rgba(8, 12, 18, 0.58);
  color: #eaf6ff;
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(120, 205, 248, 0.04),
    0 0 24px rgba(70, 170, 255, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-pill:hover,
.social-pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(140, 215, 255, 0.7);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(70, 170, 255, 0.34),
    0 0 12px rgba(140, 215, 255, 0.24);
  outline: 0;
}

.social-pill svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-pill polygon,
.social-pill circle:last-child,
.social-pill--x path,
.social-pill--facebook path,
.social-pill--tiktok path,
.social-pill--linkedin rect,
.social-pill--linkedin circle {
  fill: currentColor;
  stroke: none;
}

.link-stack {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.56rem;
  max-width: 70%;
  margin-inline: auto;
}

.link-stack .link-card:first-child {
  margin-top: calc(160px * 0.3);
}

.link-card {
  --accent: #6fc6f2;
  --hover-lift: 0px;
  --dissolve-opacity: 1;
  --dissolve-y: 0px;
  --dissolve-scale: 1;
  --dissolve-blur: 0px;
  --dissolve-sat: 1;
  --dissolve-brightness: 1;
  --dissolve-haze: 0;
  --dissolve-spark: 0;
  --dissolve-band: 0%;
  --dissolve-shift: 0px;
  --dissolve-shift-neg: 0px;
  --dissolve-mist-y: 0px;
  position: relative;
  min-height: 160px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, rgba(244, 239, 230, 0.14));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), transparent 46%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.76), rgba(4, 9, 18, 0.72));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(120, 205, 248, 0.05);
  overflow: hidden;
  opacity: var(--dissolve-opacity);
  filter:
    blur(var(--dissolve-blur))
    saturate(var(--dissolve-sat))
    brightness(var(--dissolve-brightness));
  transform: translate3d(0, calc(var(--dissolve-y) + var(--hover-lift)), 0) scale(var(--dissolve-scale));
  transform-origin: 50% 12%;
  isolation: isolate;
  will-change: transform, opacity, filter;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.link-card::before,
.link-card::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
}

.link-card::before {
  z-index: 2;
  opacity: var(--dissolve-haze);
  background:
    radial-gradient(42% 34% at 26% 6%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 68%),
    radial-gradient(48% 42% at 76% 22%, rgba(184, 244, 255, 0.22), transparent 70%),
    repeating-linear-gradient(102deg, transparent 0 8px, rgba(184, 244, 255, 0.18) 9px 10px, transparent 11px 19px);
  filter: blur(3px);
  mix-blend-mode: screen;
  transform: translate3d(var(--dissolve-shift), var(--dissolve-mist-y), 0);
}

.link-card::after {
  z-index: 3;
  opacity: var(--dissolve-spark);
  background:
    linear-gradient(90deg, transparent 0%, rgba(184, 244, 255, 0.34) 46%, transparent 82%),
    repeating-linear-gradient(0deg, transparent 0 5px, color-mix(in srgb, var(--accent) 52%, transparent) 6px 7px, transparent 8px 16px),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(184, 244, 255, 0.14) 14px 15px, transparent 16px 27px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 var(--dissolve-band), transparent calc(var(--dissolve-band) + 22%));
  mask-image: linear-gradient(180deg, #000 0%, #000 var(--dissolve-band), transparent calc(var(--dissolve-band) + 22%));
  mix-blend-mode: screen;
  transform: translate3d(var(--dissolve-shift-neg), var(--dissolve-mist-y), 0);
}

.link-card:hover,
.link-card:has(.copy:focus-visible),
.link-card:has(.preview:focus-visible) {
  --hover-lift: -3px;
  border-color: color-mix(in srgb, var(--accent) 70%, var(--bone));
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.48),
    0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
  outline: 0;
}


.preview {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 160px;
  padding: 0;
  border: 0;
  isolation: isolate;
  overflow: hidden;
  background: rgba(8, 10, 10, 0.55);
  color: inherit;
  cursor: zoom-in;
}

.preview::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 2;
  border: 1px solid rgba(244, 239, 230, 0.16);
  pointer-events: none;
}

.preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 10, 10, 0.05), transparent 46%, rgba(8, 10, 10, 0.58)),
    linear-gradient(180deg, transparent 0%, rgba(8, 10, 10, 0.52) 100%);
}

.preview img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.015);
  filter: grayscale(1) contrast(1.06) brightness(0.94);
  transition: filter 240ms ease;
}

.link-card:hover .preview img,
.link-card:has(.preview:focus-visible) .preview img {
  filter: grayscale(0.2) contrast(1.04) brightness(1);
}

.preview-trigger:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--accent) 72%, var(--bone));
  outline-offset: -5px;
}

.copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 0.28rem;
  padding: 0.78rem 0.86rem;
  min-width: 0;
}

.copy-main {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
}

.copy:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--accent) 72%, var(--bone));
  outline-offset: -5px;
}

.link-card .eyebrow {
  color: color-mix(in srgb, var(--accent) 72%, var(--bone));
}

.prompt {
  display: block;
  max-width: 570px;
  font-family: var(--display);
  font-size: clamp(1.26rem, 1.95vw, 1.72rem);
  font-weight: 600;
  line-height: 0.95;
}

.aside {
  max-width: 560px;
  color: rgba(244, 239, 230, 0.72);
  font-family: var(--body);
  font-size: 0.78rem;
  line-height: 1.28;
}

.cta {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 0.1rem;
  padding: 0.44rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--accent) 56%, rgba(244, 239, 230, 0.22));
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 15%, rgba(8, 10, 10, 0.6));
  color: var(--bone);
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.1;
}

.cta::after {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  margin-left: 0.52rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.image-modal[hidden] {
  display: none;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: min(4vw, 28px);
}

.image-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(74, 199, 184, 0.18), transparent 42%),
    rgba(3, 4, 4, 0.78);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.image-modal__panel {
  --accent: #6fc6f2;
  position: relative;
  width: min(920px, 100%);
  max-height: min(92vh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, rgba(244, 239, 230, 0.14));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%),
    rgba(8, 10, 10, 0.94);
  box-shadow:
    0 38px 120px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(244, 239, 230, 0.04),
    0 0 52px color-mix(in srgb, var(--accent) 18%, transparent);
}

.image-modal__panel--square {
  width: min(820px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
}

.image-modal__image {
  position: relative;
  min-height: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: rgba(8, 10, 10, 0.68);
}

.image-modal__panel--square .image-modal__image {
  aspect-ratio: 1;
}

.image-modal__image::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  pointer-events: none;
}

.image-modal__image img {
  width: 100%;
  height: 100%;
  max-height: 92vh;
  object-fit: cover;
  object-position: top center;
}

.image-modal__copy {
  display: grid;
  align-content: center;
  gap: 0.7rem;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.image-modal__copy h2,
.image-modal__copy p {
  margin: 0;
}

.image-modal__copy h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 0.96;
}

.image-modal__copy p:not(.eyebrow) {
  color: rgba(244, 239, 230, 0.75);
  font-size: 0.94rem;
  line-height: 1.4;
}

.image-modal__cta {
  margin-top: 0.25rem;
}

.image-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 6px;
  background: rgba(8, 10, 10, 0.76);
  color: var(--bone);
  cursor: pointer;
}

.image-modal__close::before,
.image-modal__close::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 17px;
  height: 1px;
  background: currentColor;
}

.image-modal__close::before {
  transform: rotate(45deg);
}

.image-modal__close::after {
  transform: rotate(-45deg);
}

.image-modal__close:hover,
.image-modal__close:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 68%, var(--bone));
  outline: 0;
}

.deep-page {
  background:
    linear-gradient(90deg, rgba(8, 10, 10, 0.88), rgba(8, 10, 10, 0.54), rgba(8, 10, 10, 0.9)),
    linear-gradient(180deg, rgba(8, 10, 10, 0.16), rgba(8, 10, 10, 0.97) 82%),
    url("/assets/threshold-night-water.png") center / cover fixed no-repeat;
}

.deep-page--crownalchemy {
  --deep-blood: #800020;
  --deep-blood-dim: #2a0a12;
  --deep-metal: #b3944a;
  --deep-sage: #71816f;
  --deep-line: rgba(179, 148, 74, 0.22);
}

.deep-shell {
  position: relative;
  z-index: 3;
  width: min(100% - 20px, 680px);
  margin: 0 auto;
  padding: 0.9rem 0 2.8rem;
}

.deep-nav {
  position: sticky;
  top: 0.6rem;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 8px;
  background: rgba(8, 10, 10, 0.72);
  backdrop-filter: blur(14px);
}

.deep-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.62rem;
  border-radius: 6px;
  color: rgba(244, 239, 230, 0.78);
  font-family: var(--ui);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.deep-nav a:last-child {
  border: 1px solid color-mix(in srgb, var(--deep-blood) 54%, rgba(244, 239, 230, 0.2));
  background: color-mix(in srgb, var(--deep-blood) 18%, rgba(8, 10, 10, 0.62));
  color: #fff7df;
}

.deep-hero {
  display: grid;
  gap: 0.86rem;
  padding: clamp(1.2rem, 5vw, 2rem) 0 1.1rem;
  text-align: center;
}

.deep-kicker {
  margin: 0;
  color: color-mix(in srgb, var(--deep-metal) 78%, var(--bone));
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.deep-hero h1,
.deep-section h2,
.deep-final h2,
.deep-tiles h2 {
  margin: 0;
  color: #fff7df;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0;
}

.deep-hero h1 {
  max-width: 10ch;
  margin: 0 auto;
  font-size: clamp(2.55rem, 13vw, 5.1rem);
  line-height: 0.86;
  text-shadow:
    0 0 14px color-mix(in srgb, var(--deep-blood) 58%, transparent),
    0 0 42px rgba(179, 148, 74, 0.22);
}

.deep-hero p,
.deep-section p,
.deep-final p,
.deep-tiles p {
  margin: 0;
  color: rgba(244, 239, 230, 0.75);
}

.deep-hero > p:not(.deep-kicker) {
  max-width: 40rem;
  margin: 0 auto;
  font-family: var(--ui);
  font-size: 0.98rem;
  line-height: 1.5;
}

.deep-hero-media {
  position: relative;
  margin-top: 0.3rem;
  overflow: hidden;
  border: 1px solid var(--deep-line);
  border-radius: 8px;
  aspect-ratio: 1;
  background: rgba(8, 10, 10, 0.62);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(244, 239, 230, 0.04);
}

.deep-hero-media::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  pointer-events: none;
}

.deep-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.92) contrast(1.04);
}

.deep-tiles {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.deep-tiles article,
.deep-section,
.deep-final {
  border: 1px solid rgba(244, 239, 230, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--deep-blood) 10%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(8, 10, 10, 0.76), rgba(20, 8, 12, 0.78));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
}

.deep-tiles article {
  display: grid;
  gap: 0.32rem;
  padding: 0.9rem;
}

.deep-tiles span {
  color: var(--deep-sage);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.deep-tiles h2 {
  font-size: 1.35rem;
  line-height: 1;
}

.deep-tiles p {
  font-size: 0.82rem;
  line-height: 1.38;
}

.deep-story {
  display: grid;
  gap: 0.72rem;
  padding-top: 0.72rem;
}

.deep-section,
.deep-final {
  display: grid;
  gap: 0.66rem;
  padding: clamp(1rem, 4vw, 1.35rem);
}

.deep-section:nth-child(even) {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--deep-sage) 11%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(8, 10, 10, 0.76), rgba(10, 18, 17, 0.76));
}

.deep-section h2,
.deep-final h2 {
  font-size: clamp(1.55rem, 7vw, 2.55rem);
  line-height: 0.96;
}

.deep-section p,
.deep-final p {
  font-size: 0.98rem;
  line-height: 1.58;
}

.deep-final {
  margin-top: 0.78rem;
  text-align: center;
}

.deep-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.cta--quiet {
  background: rgba(8, 10, 10, 0.46);
  border-color: rgba(244, 239, 230, 0.18);
}

@media (min-width: 760px) {
  .deep-shell {
    width: min(100% - 48px, 740px);
    padding-top: 1.2rem;
  }

  .deep-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  body {
    background-attachment: scroll;
  }

  .linksea-shell {
    width: min(100% - 20px, 520px);
    padding-top: 12px;
    padding-bottom: 22px;
  }

  .linksea-shell::before {
    inset: -42px 0 auto;
    height: clamp(238px, 38vh, 310px);
    background:
      radial-gradient(74% 82% at 50% 28%, rgba(126, 206, 255, 0.12), transparent 70%),
      linear-gradient(180deg, transparent 0%, rgba(5, 8, 12, 0.82) 18%, rgba(5, 8, 12, 0.64) 50%, rgba(5, 8, 12, 0.14) 82%, transparent 100%);
  }

  .neon-stage {
    top: 8px;
    min-height: 168px;
    gap: 0.38rem;
    padding-bottom: 0.75rem;
  }

  .neon-sign {
    font-size: clamp(1.26rem, 5.46vw, 1.75rem);
  }

  .subtitle {
    max-width: 19rem;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .social-dock {
    gap: 0.32rem;
  }

  .social-pill {
    width: 34px;
    min-height: 34px;
    padding: 0;
  }

  .social-pill span {
    display: none;
  }

  .kicker,
  .eyebrow {
    font-size: 0.62rem;
  }

  .link-stack {
    grid-template-columns: 1fr;
    gap: 0.58rem;
    max-width: 100%;
    margin-inline: 0;
  }

  .link-stack .link-card:first-child {
    margin-top: calc(112px * 0.3);
  }

  .link-card {
    min-height: 0;
    height: 112px;
    grid-template-columns: 112px minmax(0, 1fr);
    border-radius: 7px;
  }

  .preview,
  .preview img {
    min-height: 0;
    height: 112px;
  }

  .preview::before {
    inset: 5px;
  }

  .preview img {
    object-position: top left;
  }

  .copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0.78rem;
  }

  .prompt {
    flex: 1 1 0;
    min-height: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: clamp(1rem, 5.2vw, 1.3rem);
    line-height: 0.98;
  }

  .aside {
    display: none;
  }

  .cta {
    min-height: 30px;
    padding: 0.44rem 0.56rem;
    font-size: 0.72rem;
  }

  .image-modal {
    padding: 10px;
  }

  .image-modal__panel {
    max-height: calc(100vh - 20px);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .image-modal__image {
    min-height: 0;
    max-height: 58vh;
  }

  .image-modal__image img {
    max-height: 58vh;
  }

  .image-modal__copy {
    gap: 0.48rem;
    padding: 0.86rem;
  }

  .image-modal__copy h2 {
    font-size: clamp(1.45rem, 8vw, 2.2rem);
  }

  .image-modal__copy p:not(.eyebrow) {
    font-size: 0.82rem;
    line-height: 1.32;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before {
    animation: none;
  }

  .linksea-shell::before,
  .neon-stage::before,
  .link-card::before,
  .link-card::after {
    display: none;
  }

  .link-card {
    opacity: 1;
    filter: none;
    transition: none;
    transform: none;
  }

  .link-card:hover,
  .link-card:focus-visible {
    transform: none;
  }
}
