:root {
  color-scheme: dark;
  --ink: #070b14;
  --text: #eaf1f5;
  --muted: #a3adb9;
  --cyan: #a8e4df;
  --lilac: #c8bdf0;
  --focus-intensity: .56;
  --glint: 50%;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); overflow-x: clip; }
body {
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #8bdcd0; color: #061019; }
a { color: inherit; }

.environment, .ambient, .grid-texture, .atmospheric-vignette, .fine-noise,
#fabric-canvas { position: fixed; inset: 0; pointer-events: none; }
.environment { z-index: 0; overflow: hidden; background: #070b14; }
.environment::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 77% 47%, #101e2b 0%, transparent 48%),
              linear-gradient(118deg, #070b14 12%, #0a101b 50%, #070d18 100%);
}
.ambient { inset: auto; filter: blur(70px); opacity: .52; mix-blend-mode: screen; }
.ambient--cyan {
  width: min(70vw, 1050px); height: min(70vw, 900px); right: -21%; top: -24%;
  background: radial-gradient(ellipse, #397c88 0%, #1b4b65 33%, transparent 67%);
  animation: haze-one 23s ease-in-out infinite alternate;
}
.ambient--violet {
  width: min(66vw, 940px); height: min(64vw, 820px); left: -30%; bottom: -47%;
  background: radial-gradient(ellipse, #6b5387 0%, #31294e 38%, transparent 68%);
  opacity: .39; animation: haze-two 29s ease-in-out infinite alternate;
}
.ambient--sea {
  width: min(58vw, 850px); height: min(62vw, 800px); right: 2%; bottom: -49%;
  background: radial-gradient(ellipse, #2f7c83 0%, #204961 38%, transparent 68%);
  opacity: .32; animation: haze-three 27s ease-in-out infinite alternate;
}
.ambient--warm {
  width: 420px; height: 420px; left: 35%; top: 10%;
  background: radial-gradient(ellipse, #79678e 0%, transparent 67%);
  opacity: .11;
}
.grid-texture {
  opacity: .13;
  background-image: linear-gradient(rgba(184, 220, 229, .13) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(184, 220, 229, .13) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, transparent 10%, black 61%, black 100%);
}
#fabric-canvas { display: block; width: 100%; height: 100%; opacity: .98; }
.atmospheric-vignette {
  background: radial-gradient(ellipse at 67% 48%, transparent 14%, rgba(5,8,15,.07) 60%, rgba(5,8,15,.62) 112%),
              linear-gradient(90deg, rgba(7,11,20,.60) 0%, rgba(7,11,20,.32) 31%, transparent 66%);
}
.fine-noise {
  opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.page {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: 100%; min-height: 100svh;
  padding: clamp(27px, 3.3vw, 50px) clamp(26px, 5.15vw, 92px) clamp(25px, 3.3vw, 45px);
}
.masthead, .site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; }
.brand-mark { color: #90c8c9; flex: 0 0 auto; filter: drop-shadow(0 0 12px rgba(118,220,217,.16)); }
.brand-name { font-size: 15px; font-weight: 680; letter-spacing: .29em; }
.masthead-note, .eyebrow, .hero-footnote, .node-readout, .site-footer {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 400;
  letter-spacing: .13em;
}
.masthead-note { display: inline-flex; align-items: center; gap: 12px; color: #a5bbc2; font-size: 10px; white-space: nowrap; }
.status-light { width: 5px; height: 5px; border-radius: 100%; background: #b6e5d6; box-shadow: 0 0 12px #8adbd1; }
.hero { position: relative; flex: 1; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 2; width: min(1100px, 95%); padding: 10px 0 44px; }
.hero-content::before {
  content: "";
  position: absolute; z-index: -1;
  inset: -90px -30px -100px -90px;
  background: radial-gradient(ellipse at 38% 45%, rgba(6,10,18,.33), transparent 67%);
  pointer-events: none;
}
.eyebrow { display: flex; align-items: center; gap: 15px; color: #a7dcd8; font-size: 10px; margin: 0 0 clamp(24px, 3.4vw, 47px); }
.eyebrow-rule { width: 35px; height: 1px; background: #8ad0cf; box-shadow: 0 0 10px rgba(139,224,217,.4); }
h1 {
  margin: 0;
  font-weight: 480;
  letter-spacing: -.065em;
  line-height: 1.14;
  font-size: clamp(3.4rem, 6.35vw, 7.4rem);
  text-wrap: balance;
  color: #edf4f7;
  text-shadow: 0 3px 32px rgba(6,12,23,.38);
}
.focal-word {
  display: inline-block;
  /* Oxanium brings angled, instrument-panel letterforms to the focal message. */
  font-family: "Oxanium", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: -.042em;
  line-height: 1.16;
  /* Keep glyph descenders (especially g) inside the painted gradient box.
     The negative margin retains the original spacing below the headline. */
  padding: .035em .075em .16em 0;
  margin-bottom: -.16em;
  vertical-align: baseline;
  background: linear-gradient(102deg, #d9e8ee 4%, #a8e6db 37%, #c8c4ee 66%, #dce8f6 99%);
  background-size: 185% 100%;
  background-position: var(--glint) center;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 calc(16px * var(--focus-intensity)) rgba(140,219,214,.17));
  transition: background-position 1800ms ease, filter 1200ms ease;
}
.full-stop { color: #a7dcd7; -webkit-text-fill-color: #a7dcd7; }
.hero-description {
  margin: clamp(27px, 3.5vw, 47px) 0 0;
  color: #aebcc7;
  line-height: 1.92;
  font-size: clamp(14px, 1.22vw, 17px);
  font-weight: 390;
  letter-spacing: .005em;
}
.return-message { color: #dae8ec; }
.hero-footnote { display: flex; align-items: center; gap: 14px; margin-top: clamp(50px, 7vw, 104px); color: #718794; font-size: 9px; }
.hero-footnote-rule { width: 20px; height: 1px; background: rgba(155,202,206,.52); }
.node-readout {
  position: absolute; z-index: 1; top: 60%; left: 75%;
  display: flex; align-items: center; gap: 9px;
  color: rgba(182,218,222,.79); font-size: 9px;
  white-space: nowrap; opacity: 0;
  transition: opacity 1.4s ease;
  text-shadow: 0 0 18px rgba(6,10,18,1);
}
.node-readout.is-visible { opacity: .80; }
.readout-dot { width: 3px; height: 3px; border-radius: 50%; background: #a9e9dd; box-shadow: 0 0 9px 2px rgba(165,241,228,.7); }
.readout-separator { opacity: .34; }
.readout-state { color: #8aa7ac; }
.site-footer { color: #778b98; font-size: 9px; white-space: nowrap; }
.footer-right { display: flex; align-items: center; gap: 12px; }
.footer-pulse { width: 5px; height: 5px; border: 1px solid #a5d4d1; border-radius: 100%; box-shadow: 0 0 11px rgba(151,223,213,.6); animation: signal 3.6s ease-in-out infinite; }
.footer-divider { color: #536879; margin: 0 7px; }
.infinity { color: #a2bcca; font-size: 13px; letter-spacing: 0; }

@keyframes haze-one { from { transform: translate(-5%, -2%) scale(.95); } to { transform: translate(5%, 7%) scale(1.13); } }
@keyframes haze-two { from { transform: translate(0, -5%) scale(1); } to { transform: translate(8%, 3%) scale(1.12); } }
@keyframes haze-three { from { transform: translate(-8%, 5%) scale(1); } to { transform: translate(4%, -9%) scale(1.17); } }
@keyframes signal { 0%, 100% { opacity: .35; } 50% { opacity: 1; box-shadow: 0 0 12px 2px rgba(151,223,213,.6); } }

@media (max-width: 760px) {
  .page { padding: 26px 26px 24px; }
  .brand { gap: 10px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 12px; letter-spacing: .2em; }
  .masthead-note { font-size: 0; gap: 0; }
  .masthead-note .status-light { width: 6px; height: 6px; }
  .hero { align-items: center; }
  .hero-content { width: 100%; padding: 30px 0; }
  .eyebrow { font-size: 9px; margin-bottom: 28px; gap: 10px; letter-spacing: .10em; }
  .eyebrow-rule { width: 23px; }
  h1 { font-size: clamp(2.78rem, 9vw, 5.2rem); letter-spacing: -.066em; line-height: 1.13; }
  /* Inline on phones so the focal line can wrap freely without clipping. */
  .focal-word { display: inline; padding-bottom: .13em; margin-bottom: 0; }
  .hero-description { font-size: 14px; line-height: 1.78; margin-top: 27px; max-width: 460px; }
  .desktop-break { display: none; }
  .hero-footnote { font-size: 8px; margin-top: 52px; letter-spacing: .07em; }
  .node-readout { display: none; }
  .site-footer { font-size: 8px; letter-spacing: .055em; }
  .site-footer > span:first-child { max-width: 140px; line-height: 1.5; }
  .footer-right { gap: 6px; }
  .footer-divider, .footer-right > span:last-child { display: none; }
  .grid-texture { opacity: .07; }
  .ambient--cyan { width: 950px; height: 950px; right: -760px; top: -280px; }
  .ambient--violet { width: 690px; height: 690px; left: -530px; bottom: -300px; }
  .atmospheric-vignette { background: linear-gradient(90deg, rgba(7,11,20,.38), rgba(7,11,20,.15)); }
}
@media (max-width: 375px) {
  .page { padding-inline: 20px; }
  h1 { font-size: clamp(2.55rem, 9.2vw, 3.2rem); }
  .hero-description { font-size: 13px; }
  .site-footer { font-size: 7px; }
}
@media (max-height: 610px) and (min-width: 761px) {
  .page { min-height: 610px; }
  .hero-content { padding-block: 30px 20px; }
  .eyebrow { margin-bottom: 16px; }
  h1 { font-size: clamp(3.5rem, 5vw, 5.6rem); }
  .hero-description { margin-top: 20px; }
  .hero-footnote { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .node-readout { display: none; }
}
