/* HULDR — site styles. Environment A (Midnight Aurora) by default. */

:root {
  /* Surfaces */
  --midnight: #070A14;
  --basalt:   #0E1422;
  --fjord:    #1A2438;
  --ash:      #7C8694;
  --ice:      #D7E4EF;
  --birch:    #F4F1EA;

  /* Aurora */
  --aurora-1: #5BE3D8;
  --aurora-2: #7BA9FF;
  --aurora-3: #A586FF;
  --aurora-4: #FF7BD2;
  --aurora-5: #A6FFC9;

  /* Accents */
  --ember:    #D77A3A;
  --blood:    #B7382A;

  /* Recipes */
  --g-aurora-flow: linear-gradient(100deg,
    var(--aurora-1) 0%,
    var(--aurora-2) 25%,
    var(--aurora-3) 55%,
    var(--aurora-4) 80%,
    var(--aurora-5) 100%);
  --g-sky: linear-gradient(180deg,
    var(--midnight) 0%,
    #0C1226 40%,
    #14203F 70%,
    #1F3158 100%);

  /* Type */
  --f-display: "Inter Tight", "Söhne Breit", "NB Architekt", system-ui, sans-serif;
  --f-editorial: "Cinzel", "Trajan Pro", serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "Berkeley Mono", ui-monospace, monospace;

  /* Spacing */
  --rail: 1184px;
  --pad-x: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--midnight);
  color: var(--ice);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Body must not paint on top of the fixed env-a layer */
body { background: transparent; }

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

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

::selection { background: rgba(165, 134, 255, 0.35); color: var(--birch); }

/* ─────────────────────────────────────────────────────────────────────
   ENVIRONMENT A — Midnight Aurora background
   ─────────────────────────────────────────────────────────────────── */

.env-a {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--g-sky);
  pointer-events: none;
}

/* Aurora ribbons — three stacked SVGs with drift animation */
.aurora-layer {
  position: absolute;
  left: 0;
  width: 200%;
  height: 60vh;
  opacity: 0.85;
  filter: blur(40px) saturate(1.15);
  mix-blend-mode: screen;
  pointer-events: none;
}
.aurora-layer.l1 {
  top: -8%;
  animation: drift-a 64s ease-in-out infinite alternate;
}
.aurora-layer.l2 {
  top: 8%;
  opacity: 0.65;
  animation: drift-b 88s ease-in-out infinite alternate;
}
.aurora-layer.l3 {
  top: 24%;
  opacity: 0.5;
  animation: drift-c 110s ease-in-out infinite alternate;
}

@keyframes drift-a { 0% { transform: translateX(-12%); } 100% { transform: translateX(-2%); } }
@keyframes drift-b { 0% { transform: translateX(-4%);  } 100% { transform: translateX(-18%); } }
@keyframes drift-c { 0% { transform: translateX(-22%); } 100% { transform: translateX(-6%); } }

/* Fjord silhouette pinned to lower viewport */
.fjord-silhouette {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  height: 38vh;
  pointer-events: none;
  opacity: 0.92;
}

/* Ice shards — angular polygons along the bottom edge */
.ice-shards {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  height: 16vh;
  pointer-events: none;
  opacity: 0.85;
}

/* Snow particles */
.snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.snow span {
  position: absolute;
  top: -8px;
  width: 2px;
  height: 2px;
  background: rgba(244, 241, 234, 0.7);
  border-radius: 50%;
  animation: fall linear infinite;
  opacity: 0.6;
}
@keyframes fall {
  0%   { transform: translateY(-8px) translateX(0); }
  100% { transform: translateY(105vh) translateX(20px); }
}

/* ─────────────────────────────────────────────────────────────────────
   HEADER
   ─────────────────────────────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 10;
  padding: 28px var(--pad-x) 0;
  max-width: var(--rail);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand .seal-mini {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.brand .wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 14px;
  color: var(--birch);
}

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ash);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 220ms ease;
}
.nav a:hover { color: var(--ice); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--g-aurora-flow);
  transition: width 220ms ease;
}
.nav a:hover::after { width: 100%; }

@media (max-width: 720px) {
  .nav { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────
   HERO
   ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 5;
  max-width: var(--rail);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) var(--pad-x) clamp(96px, 14vh, 200px);
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero .seal-large {
  width: clamp(180px, 22vw, 260px);
  height: clamp(180px, 22vw, 260px);
  margin-bottom: 48px;
  margin-left: -8px;
}

.hero .eyebrow {
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--aurora-2);
  margin: 0 0 24px 0;
  max-width: 56ch;
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--birch);
  margin: 0 0 32px 0;
  max-width: 14ch;
}

.hero h1 .glow {
  background: var(--g-aurora-flow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ice);
  max-width: 56ch;
  margin: 0 0 40px 0;
}
.hero p.lede + p.lede { margin-top: -16px; margin-bottom: 40px; }

.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--birch);
  padding: 14px 22px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--midnight), var(--midnight)) padding-box,
    var(--g-aurora-flow) border-box;
  border-radius: 2px;
  position: relative;
  transition: transform 220ms ease, background-position 400ms ease;
  background-size: 100% 100%, 200% 100%;
}
.hero .cta:hover {
  background-position: 100% 0%, 100% 0%;
  transform: translateY(-1px);
}
.hero .cta .arrow {
  display: inline-block;
  transition: transform 220ms ease;
}
.hero .cta:hover .arrow { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────────────────
   SECTIONS — common
   ─────────────────────────────────────────────────────────────────── */

main {
  position: relative;
  z-index: 5;
}

section {
  max-width: var(--rail);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 160px) var(--pad-x);
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aurora-2);
  margin-bottom: 24px;
}

/* ─────────────────────────────────────────────────────────────────────
   NORDIC — runes, kennings, knotwork dividers
   ─────────────────────────────────────────────────────────────────── */

/* Single rune mark, aurora-gradient text fill */
.rune {
  font-family: "Cormorant Garamond", "Cinzel", serif;
  font-size: 1.6em;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3) 60%, var(--aurora-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(123, 169, 255, 0.18);
  display: inline-block;
  transform: translateY(1px);
}

/* Old Norse kenning — italic micro-line above section title */
.norse {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--aurora-2);
  margin: -12px 0 14px 0;
  opacity: 0.78;
}
.norse::before {
  content: "·  ";
  color: var(--ash);
  margin-right: 2px;
}

/* Knotwork-inspired divider between sections */
.rune-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: var(--rail);
  margin: 0 auto;
  padding: 8px var(--pad-x);
  opacity: 0.55;
}
.rune-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(124, 134, 148, 0.0) 4%,
    rgba(91, 227, 216, 0.28) 30%,
    rgba(165, 134, 255, 0.32) 50%,
    rgba(255, 123, 210, 0.28) 70%,
    rgba(124, 134, 148, 0.0) 96%,
    transparent 100%
  );
}
.rune-divider .line.right { transform: scaleX(-1); }
.rune-divider .knot {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3) 55%, var(--aurora-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.4em;
}

/* Runic transliteration row in the footer */
.runic-mark {
  display: inline-flex;
  gap: 0.55em;
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3) 60%, var(--aurora-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid rgba(124, 134, 148, 0.2);
}

.section-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--birch);
  margin: 0 0 24px 0;
  max-width: 22ch;
}

.section-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ash);
  max-width: 56ch;
  margin: 0 0 56px 0;
}

/* ─────────────────────────────────────────────────────────────────────
   THREE-STEP — Pay · Compute · Disappear
   ─────────────────────────────────────────────────────────────────── */

.three {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 880px) {
  .three { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  padding: 36px;
  background: linear-gradient(180deg, rgba(26, 36, 56, 0.5), rgba(14, 20, 34, 0.5));
  border: 1px solid rgba(124, 134, 148, 0.18);
  border-radius: 2px;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% -10%,
      rgba(165, 134, 255, 0.18),
      transparent 50%);
  pointer-events: none;
}

.step .num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--aurora-2);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.step h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 12px 0;
  color: var(--birch);
}

.step p {
  font-size: 15px;
  color: var(--ash);
  margin: 0;
  line-height: 1.6;
}

.step .glyph {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────────────
   RECEIPT STAMP
   ─────────────────────────────────────────────────────────────────── */

.receipt-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0 0;
  padding: 24px;
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.7), rgba(7, 10, 20, 0.9));
  border: 1px solid rgba(124, 134, 148, 0.16);
  border-radius: 2px;
}

.receipt {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ice);
  white-space: pre;
  letter-spacing: 0;
  position: relative;
}

.receipt .row { display: flex; gap: 24px; }
.receipt .k { color: var(--ash); width: 11ch; }
.receipt .v { color: var(--birch); }
.receipt .v .glow {
  background: var(--g-aurora-flow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.receipt .rule {
  border-top: 1px solid rgba(124, 134, 148, 0.22);
  margin: 12px 0;
}
.receipt .head, .receipt .foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aurora-2);
}
.receipt .verified {
  color: var(--ember);
}

/* ─────────────────────────────────────────────────────────────────────
   ARCHITECTURE DIAGRAM
   ─────────────────────────────────────────────────────────────────── */

.arch {
  margin-top: 32px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.6), rgba(7, 10, 20, 0.8));
  border: 1px solid rgba(124, 134, 148, 0.16);
  border-radius: 2px;
}
.arch svg {
  width: 100%;
  height: auto;
  max-width: 880px;
  display: block;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────
   STACK ROW (Atoma / Marlin / Phala / x402)
   ─────────────────────────────────────────────────────────────────── */

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
  padding: 28px 32px;
  border-top: 1px solid rgba(124, 134, 148, 0.16);
  border-bottom: 1px solid rgba(124, 134, 148, 0.16);
}
.stack-row .label {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  margin-right: auto;
}
.stack-row .stack-item {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ice);
  opacity: 0.85;
}

/* ─────────────────────────────────────────────────────────────────────
   CODE BLOCK (SDK preview)
   ─────────────────────────────────────────────────────────────────── */

.code-wrap {
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.85), rgba(7, 10, 20, 0.95));
  border: 1px solid rgba(124, 134, 148, 0.16);
  border-radius: 2px;
  overflow: hidden;
}
.code-wrap .code-head {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(124, 134, 148, 0.14);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.04em;
}
.code-wrap pre {
  margin: 0;
  padding: 28px 32px;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ice);
  overflow-x: auto;
}
.code-wrap pre .com { color: var(--ash); }
.code-wrap pre .key { color: var(--aurora-2); }
.code-wrap pre .str { color: var(--aurora-1); }
.code-wrap pre .fn  { color: var(--aurora-3); }

/* ─────────────────────────────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────────────────────────── */

footer {
  position: relative;
  z-index: 5;
  margin-top: 80px;
  padding: 56px var(--pad-x) 80px;
  max-width: var(--rail);
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid rgba(124, 134, 148, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

footer .quiet {
  font-family: var(--f-editorial);
  font-style: italic;
  color: var(--ash);
  font-size: 14px;
  max-width: 38ch;
}

footer .meta {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────────────────────────────
   AURORA SEAL — animations
   ─────────────────────────────────────────────────────────────────── */

.seal { display: block; }

.seal .seal-stroke {
  stroke: url(#auroraStroke);
}

.seal .seal-halo {
  animation: halo-breathe 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.06; }
  50%      { opacity: 0.18; }
}

.seal .pupil {
  animation: blink 22s steps(1, end) infinite;
}
@keyframes blink {
  0%, 96%  { transform: scaleY(1);  }
  97%, 99% { transform: scaleY(0.05); }
  100%     { transform: scaleY(1);  }
}

/* gradient hue drift on seal stroke */
.seal stop.s1 { animation: hue1 12s linear infinite; }
.seal stop.s2 { animation: hue2 12s linear infinite; }
.seal stop.s3 { animation: hue3 12s linear infinite; }
.seal stop.s4 { animation: hue4 12s linear infinite; }
@keyframes hue1 { 0%,100% { stop-color: #5BE3D8; } 50% { stop-color: #A6FFC9; } }
@keyframes hue2 { 0%,100% { stop-color: #7BA9FF; } 50% { stop-color: #5BE3D8; } }
@keyframes hue3 { 0%,100% { stop-color: #A586FF; } 50% { stop-color: #7BA9FF; } }
@keyframes hue4 { 0%,100% { stop-color: #FF7BD2; } 50% { stop-color: #A586FF; } }

/* ─────────────────────────────────────────────────────────────────────
   REDUCED MOTION
   ─────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .aurora-layer,
  .snow span,
  .seal .seal-halo,
  .seal .pupil,
  .seal stop {
    animation: none !important;
  }
  .seal .seal-halo { opacity: 0.12; }
}

/* ─────────────────────────────────────────────────────────────────────
   REVEAL ON SCROLL (subtle)
   ─────────────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────────────────────────────────────────────
   PERSONAS — caller / provider / verifier (split cards)
   ─────────────────────────────────────────────────────────────────── */

.personas {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}

.persona {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  background: linear-gradient(180deg, rgba(26, 36, 56, 0.5), rgba(14, 20, 34, 0.5));
  border: 1px solid rgba(124, 134, 148, 0.18);
  border-radius: 2px;
  overflow: hidden;
}
.persona::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(91, 227, 216, 0.10), transparent 45%);
  pointer-events: none;
}
.persona:nth-child(2)::before {
  background: radial-gradient(circle at 0% 0%, rgba(165, 134, 255, 0.10), transparent 45%);
}
.persona:nth-child(3)::before {
  background: radial-gradient(circle at 0% 0%, rgba(255, 123, 210, 0.10), transparent 45%);
}

@media (max-width: 880px) {
  .persona { grid-template-columns: 1fr; }
}

.persona-info {
  position: relative;
  z-index: 1;
  padding: 36px 36px 36px 40px;
  border-right: 1px solid rgba(124, 134, 148, 0.14);
}
@media (max-width: 880px) {
  .persona-info {
    border-right: none;
    border-bottom: 1px solid rgba(124, 134, 148, 0.14);
    padding: 32px 28px;
  }
}

.persona-info .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--aurora-1);
  letter-spacing: 0.18em;
  margin-bottom: 22px;
}
.persona:nth-child(2) .num { color: var(--aurora-3); }
.persona:nth-child(3) .num { color: var(--aurora-4); }

.persona-info h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 14px 0;
  color: var(--birch);
}

.persona-info p {
  font-size: 15px;
  color: var(--ash);
  line-height: 1.65;
  margin: 0 0 22px 0;
}

.persona-tag {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ice);
  letter-spacing: 0.04em;
  display: inline-block;
  padding-top: 4px;
  border-top: 1px solid rgba(124, 134, 148, 0.18);
  width: 100%;
}

.persona-code {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 10, 20, 0.85), rgba(7, 10, 20, 0.96));
  display: flex;
  flex-direction: column;
}
.persona-code .code-head {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(124, 134, 148, 0.14);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.04em;
}
.persona-code pre {
  margin: 0;
  padding: 26px 28px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ice);
  overflow-x: auto;
  flex: 1;
}
.persona-code pre .com  { color: var(--ash); }
.persona-code pre .key  { color: var(--aurora-2); }
.persona-code pre .str  { color: var(--aurora-1); }
.persona-code pre .fn   { color: var(--aurora-3); }
.persona-code pre .ok   { color: var(--aurora-1); font-weight: 500; }
.persona-code pre .meta { color: var(--ash); }

/* ─────────────────────────────────────────────────────────────────────
   ENVIRONMENT — Seedance Northern Lights (full-bleed video bg)
   ─────────────────────────────────────────────────────────────────── */

.env {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #02040c;
}

.env-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
  filter: saturate(1.05) contrast(1.02) brightness(0.92);
}

/* Subtle palette tint to anchor the video into HULDR brand */
.env-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 20%, rgba(91, 227, 216, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 30% at 65% 10%, rgba(255, 123, 210, 0.05), transparent 60%),
    linear-gradient(180deg, rgba(2, 4, 12, 0.0) 0%, rgba(2, 4, 12, 0.45) 75%, rgba(2, 4, 12, 0.85) 100%);
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  .env-video { display: none; }
  .env { background: linear-gradient(180deg, #0a1228 0%, #03060f 60%, #01020a 100%); }
}

/* Vignette to anchor content readability over the video */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 35%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, transparent 8%, transparent 60%, rgba(0,0,0,0.30) 100%);
}

/* Body content sits above the env + vignette */
.site-header,
.hero,
main,
footer { position: relative; z-index: 5; }

/* ─────────────────────────────────────────────────────────────────────
   SEAL — img-based logo (Nano-banana generated, transparent PNG)
   ─────────────────────────────────────────────────────────────────── */

img.seal-mini {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(165, 134, 255, 0.45));
}

img.seal-large {
  display: block;
  width: clamp(220px, 26vw, 320px);
  height: clamp(220px, 26vw, 320px);
  margin-bottom: 56px;
  margin-left: -8px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(165, 134, 255, 0.32))
          drop-shadow(0 0 44px rgba(91, 227, 216, 0.18));
  animation: seal-breathe 7s ease-in-out infinite;
}

@keyframes seal-breathe {
  0%, 100% { transform: scale(1);     filter: drop-shadow(0 0 24px rgba(165,134,255,0.32)) drop-shadow(0 0 44px rgba(91,227,216,0.18)); }
  50%      { transform: scale(1.012); filter: drop-shadow(0 0 32px rgba(165,134,255,0.48)) drop-shadow(0 0 56px rgba(91,227,216,0.28)); }
}

/* Editorial accent: hero eyebrow */
.hero .eyebrow {
  font-family: "Cormorant Garamond", var(--f-editorial);
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  img.seal-large { animation: none !important; }
}
