:root {
  color-scheme: dark;
  --ink: #030707;
  --ink-soft: #07110f;
  --paper: #eefcf8;
  --muted: rgba(224, 244, 237, 0.60);
  --dim: rgba(222, 243, 236, 0.34);
  --line: rgba(147, 255, 226, 0.14);
  --line-strong: rgba(147, 255, 226, 0.34);
  --mint: #8fffe5;
  --teal: #24d2b2;
  --deep-teal: #0a8d79;
  --ease: cubic-bezier(.2,.75,.2,1);
  --mx: 50vw;
  --my: 50vh;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(16, 130, 107, 0.13), transparent 32%),
    linear-gradient(150deg, #020404 0%, #05100d 52%, #020505 100%);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

::selection {
  background: rgba(143, 255, 229, 0.95);
  color: #04100d;
}

.experience {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
}

#entity-field {
  position: fixed;
  z-index: -7;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.background-grid {
  position: fixed;
  z-index: -6;
  inset: -12%;
  background-image:
    linear-gradient(rgba(126, 255, 224, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 255, 224, 0.025) 1px, transparent 1px);
  background-size: clamp(52px, 5.6vw, 92px) clamp(52px, 5.6vw, 92px);
  mask-image: radial-gradient(circle at 50% 48%, #000 4%, transparent 69%);
  transform: perspective(800px) rotateX(61deg) translateY(29%);
  transform-origin: 50% 70%;
  opacity: .72;
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -5;
  width: min(58vw, 860px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .17;
  pointer-events: none;
  will-change: transform;
}

.ambient--one {
  top: -35%;
  left: -22%;
  background: radial-gradient(circle, rgba(76, 255, 208, .68), transparent 65%);
  transform: translate(calc((var(--mx) - 50vw) * .015), calc((var(--my) - 50vh) * .015));
}

.ambient--two {
  right: -27%;
  bottom: -42%;
  background: radial-gradient(circle, rgba(19, 150, 128, .66), transparent 68%);
  transform: translate(calc((var(--mx) - 50vw) * -.012), calc((var(--my) - 50vh) * -.012));
}

.grain {
  position: fixed;
  z-index: 40;
  inset: -70%;
  pointer-events: none;
  opacity: .055;
  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='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}

.vignette {
  position: fixed;
  z-index: 30;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, transparent 26%, rgba(0, 3, 3, .18) 62%, rgba(0, 2, 2, .72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .15), transparent 24%, transparent 78%, rgba(0, 0, 0, .25));
  pointer-events: none;
}

.topbar,
.footer {
  position: relative;
  z-index: 12;
  display: grid;
  align-items: center;
  width: 100%;
  padding-inline: clamp(22px, 4vw, 70px);
}

.topbar {
  grid-template-columns: 1fr auto 1fr;
  padding-top: max(22px, env(safe-area-inset-top));
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  width: max-content;
  letter-spacing: .28em;
}

.brand__mark {
  width: 25px;
  height: 25px;
  filter: drop-shadow(0 0 11px rgba(104, 255, 218, .24));
}

.brand__name {
  font-size: 12px;
  font-weight: 650;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: .23em;
  white-space: nowrap;
}

.status__pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(143, 255, 229, .48);
  animation: status-pulse 2.4s ease-out infinite;
}

.contact {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: rgba(231, 250, 244, .72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .18em;
  transition: color .35s var(--ease);
}

.contact::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

.contact:hover,
.contact:focus-visible {
  color: var(--paper);
}

.contact:hover::after,
.contact:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact--top {
  justify-self: end;
}

.stage {
  position: relative;
  z-index: 10;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(32px, 4vh, 60px) clamp(22px, 4vw, 70px);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 1040px);
  text-align: center;
}

.sigil {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(96px, 10vw, 144px);
  aspect-ratio: 1;
  margin-bottom: clamp(18px, 2.8vh, 32px);
  border: 0;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  transform: translateZ(0);
}

.sigil::before,
.sigil::after {
  position: absolute;
  content: "";
  border-radius: inherit;
  pointer-events: none;
}

.sigil::before {
  inset: -18%;
  border: 1px solid rgba(132, 255, 225, .09);
  box-shadow: inset 0 0 38px rgba(98, 255, 216, .025);
}

.sigil::after {
  inset: 16%;
  background: radial-gradient(circle, rgba(165, 255, 235, .14), transparent 68%);
  filter: blur(9px);
}

.sigil img {
  position: relative;
  z-index: 3;
  width: 52%;
  filter:
    drop-shadow(0 0 9px rgba(128, 255, 226, .4))
    drop-shadow(0 0 28px rgba(32, 214, 176, .23));
  transition: transform .75s var(--ease), filter .75s var(--ease);
}

.sigil:hover img,
.sigil:focus-visible img {
  transform: scale(1.08) rotate(.5deg);
  filter:
    drop-shadow(0 0 13px rgba(192, 255, 240, .58))
    drop-shadow(0 0 42px rgba(32, 214, 176, .32));
}

.sigil:focus-visible {
  box-shadow: 0 0 0 2px rgba(143, 255, 229, .58), 0 0 0 8px rgba(143, 255, 229, .08);
}

.sigil__orbit {
  position: absolute;
  border: 1px solid transparent;
  border-top-color: rgba(141, 255, 228, .45);
  border-right-color: rgba(141, 255, 228, .08);
  border-radius: 50%;
  pointer-events: none;
}

.sigil__orbit--a {
  inset: -5%;
  animation: orbit 14s linear infinite;
}

.sigil__orbit--b {
  inset: 8%;
  border-top-color: rgba(255, 255, 255, .2);
  transform: rotate(112deg);
  animation: orbit-reverse 9s linear infinite;
}

.sigil__orbit--c {
  inset: -21%;
  border-top-color: rgba(69, 231, 194, .16);
  transform: rotate(210deg);
  animation: orbit 22s linear infinite;
}

.sigil__glow {
  position: absolute;
  inset: -44%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 240, 201, .15), rgba(14, 109, 90, .025) 41%, transparent 68%);
  filter: blur(8px);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
}

.sigil.is-resonating img {
  animation: mark-resonance 1.1s var(--ease);
}

.sigil.is-resonating .sigil__orbit--a {
  animation-duration: 1.2s;
}

.eyebrow,
.question,
.countdown-caption,
.footer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.eyebrow {
  margin: 0 0 clamp(12px, 1.8vh, 20px);
  color: rgba(143, 255, 229, .68);
  font-size: clamp(8px, .7vw, 10px);
  letter-spacing: .38em;
  text-transform: uppercase;
}

h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: clamp(42px, 7.1vw, 110px);
  font-weight: 420;
  letter-spacing: -.06em;
  line-height: .86;
  text-wrap: balance;
}

h1 span {
  display: block;
}

h1 .accent {
  color: transparent;
  background: linear-gradient(105deg, #f5fffc 4%, #a3ffea 38%, #44d8b9 66%, #d9fff7 96%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 26px rgba(91, 241, 206, .11));
}

.thesis {
  max-width: 620px;
  margin: clamp(18px, 2.8vh, 30px) auto 0;
  color: rgba(231, 248, 242, .60);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 350;
  letter-spacing: .035em;
  line-height: 1.65;
  text-wrap: balance;
}

.question {
  min-height: 1.45em;
  margin: clamp(16px, 2.3vh, 25px) auto 0;
  color: rgba(233, 252, 246, .86);
  font-size: clamp(8px, .8vw, 11px);
  letter-spacing: .28em;
  line-height: 1.45;
  text-transform: uppercase;
  transition: opacity .35s var(--ease), transform .35s var(--ease), filter .35s var(--ease);
}

.question.is-changing {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(4px);
}

.countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(22px, 3.6vh, 40px);
}

.countdown-caption {
  margin: 0 0 13px;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: .30em;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px clamp(15px, 2vw, 26px) 10px;
  border: 1px solid rgba(159, 255, 231, .12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 42, 35, .31), rgba(3, 10, 9, .17));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .025),
    0 18px 60px rgba(0, 0, 0, .16);
  backdrop-filter: blur(15px) saturate(115%);
  -webkit-backdrop-filter: blur(15px) saturate(115%);
}

.time-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(54px, 6vw, 84px);
}

.time-cell strong {
  display: block;
  color: #effffb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(18px, 2.2vw, 31px);
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 420;
  letter-spacing: -.045em;
  line-height: 1;
  text-shadow: 0 0 18px rgba(124, 255, 225, .12);
  transition: opacity .18s ease, transform .18s ease;
}

.time-cell strong.is-ticking {
  opacity: .58;
  transform: translateY(-2px);
}

.time-cell span {
  margin-top: 7px;
  color: rgba(224, 247, 240, .32);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 6px;
  letter-spacing: .24em;
}

.time-separator {
  padding: 1px 1px 0;
  color: rgba(148, 255, 226, .30);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(15px, 1.9vw, 26px);
  animation: separator-pulse 2s ease-in-out infinite;
}

.threshold {
  margin: 0;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .3em;
}

.footer {
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  color: rgba(219, 241, 234, .34);
  font-size: 8px;
  letter-spacing: .16em;
}

.footer p {
  margin: 0;
  text-align: center;
}

.footer .contact {
  justify-self: start;
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: lowercase;
}

.footer__code {
  justify-self: end;
  text-align: right !important;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 1.05s var(--ease),
    transform 1.05s var(--ease);
}

body.is-ready [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

body.is-ready [data-reveal]:nth-child(2) { transition-delay: .07s; }
body.is-ready [data-reveal]:nth-child(3) { transition-delay: .13s; }
body.is-ready [data-reveal]:nth-child(4) { transition-delay: .19s; }
body.is-ready [data-reveal]:nth-child(5) { transition-delay: .25s; }
body.is-ready [data-reveal]:nth-child(6) { transition-delay: .31s; }

.boot {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  background: #020504;
  transition: opacity .75s var(--ease), visibility .75s;
}

.boot__mark {
  width: 54px;
  opacity: .88;
  filter: drop-shadow(0 0 22px rgba(94, 255, 216, .28));
  animation: boot-mark 1.5s var(--ease) both;
}

.boot__mark img {
  display: block;
  width: 100%;
}

.boot__line {
  width: 144px;
  height: 1px;
  margin-top: 25px;
  overflow: hidden;
  background: rgba(139, 255, 226, .10);
}

.boot__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  transform: translateX(-100%);
  animation: boot-line 1.55s var(--ease) both;
}

.boot p {
  margin: 12px 0 0;
  color: rgba(220, 246, 238, .32);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7px;
  letter-spacing: .28em;
}

body.is-ready .boot {
  visibility: hidden;
  opacity: 0;
}

.cursor {
  display: none;
}

.noscript {
  position: fixed;
  z-index: 1100;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 12px;
  border: 1px solid rgba(143, 255, 229, .25);
  background: #07110f;
  color: #eafcf7;
  font: 12px/1.4 ui-monospace, monospace;
  text-align: center;
}

@media (pointer: fine) {
  body,
  a,
  .sigil {
    cursor: none;
  }

  .cursor {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(151, 255, 229, .46);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(calc(var(--mx) - 17px), calc(var(--my) - 17px), 0);
    transition: width .25s var(--ease), height .25s var(--ease), border-color .25s ease, opacity .25s ease;
    mix-blend-mode: screen;
  }

  .cursor span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 12px var(--mint);
  }

  body.has-pointer .cursor {
    opacity: .82;
  }

  body.cursor-active .cursor {
    width: 52px;
    height: 52px;
    border-color: rgba(218, 255, 247, .72);
    transform: translate3d(calc(var(--mx) - 26px), calc(var(--my) - 26px), 0);
  }
}

@media (max-width: 760px) {
  .experience {
    min-height: 100svh;
    overflow: clip;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .status {
    display: none;
  }

  .stage {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 72px);
  }

  .thesis {
    max-width: 92%;
  }

  .footer {
    grid-template-columns: 1fr auto;
  }

  .footer > p:nth-child(2) {
    text-align: right;
  }

  .footer__code {
    display: none;
  }
}

@media (max-width: 520px) {
  .topbar,
  .footer {
    padding-inline: 18px;
  }

  .brand__name {
    font-size: 10px;
  }

  .contact--top {
    font-size: 8px;
  }

  .stage {
    padding-inline: 15px;
  }

  .sigil {
    width: 88px;
    margin-bottom: 17px;
  }

  .eyebrow {
    margin-bottom: 11px;
    font-size: 7px;
  }

  .thesis {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.55;
  }

  .question {
    max-width: 92%;
    margin-top: 14px;
    font-size: 7px;
    letter-spacing: .20em;
  }

  .countdown-wrap {
    margin-top: 20px;
  }

  .countdown-caption {
    margin-bottom: 9px;
    font-size: 6px;
  }

  .countdown {
    width: min(100%, 360px);
    padding: 10px 7px 8px;
    border-radius: 14px;
  }

  .time-cell {
    min-width: 0;
    flex: 1;
  }

  .time-cell strong {
    font-size: clamp(16px, 5.8vw, 24px);
  }

  .time-cell span {
    margin-top: 6px;
    font-size: 5px;
    letter-spacing: .15em;
  }

  .time-separator {
    padding-inline: 0;
    font-size: 16px;
  }

  .footer {
    gap: 12px;
    font-size: 6px;
  }

  .footer .contact {
    font-size: 7px;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .sigil {
    width: 92px;
    margin-bottom: 15px;
  }

  h1 {
    font-size: clamp(44px, 6.5vw, 80px);
  }

  .thesis,
  .question,
  .countdown-wrap {
    margin-top: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .grain {
    display: none;
  }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes orbit-reverse {
  to { transform: rotate(-248deg); }
}

@keyframes breathe {
  0%, 100% { opacity: .55; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 255, 229, .45); }
  75%, 100% { box-shadow: 0 0 0 9px rgba(143, 255, 229, 0); }
}

@keyframes separator-pulse {
  0%, 100% { opacity: .26; }
  50% { opacity: .72; }
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-4%, -8%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(6%, -12%); }
  40% { transform: translate(-5%, 13%); }
  50% { transform: translate(-12%, 6%); }
  60% { transform: translate(13%, 0); }
  70% { transform: translate(0, 11%); }
  80% { transform: translate(3%, 5%); }
  90% { transform: translate(-10%, 10%); }
}

@keyframes boot-mark {
  0% { opacity: 0; transform: scale(.72); filter: blur(8px); }
  70% { opacity: 1; transform: scale(1.04); filter: blur(0); }
  100% { opacity: .88; transform: scale(1); }
}

@keyframes boot-line {
  15% { transform: translateX(-100%); }
  75%, 100% { transform: translateX(100%); }
}

@keyframes mark-resonance {
  0% { transform: scale(1); }
  22% { transform: scale(.88) rotate(-4deg); }
  50% { transform: scale(1.16) rotate(2deg); }
  100% { transform: scale(1); }
}


/* Standalone 404 page */
body.not-found {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 28px;
  overflow: hidden;
}

.not-found::before {
  position: fixed;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 50% 45%, rgba(106, 220, 255, .10), transparent 34%);
  pointer-events: none;
}

.not-found__panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 700px;
  text-align: center;
}

.not-found__panel img {
  width: 82px;
  height: 82px;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 28px rgba(112, 227, 255, .22));
}

.not-found__panel p {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .28em;
}

.not-found__panel h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 88px);
  font-weight: 520;
  letter-spacing: -.055em;
}

.not-found__panel span {
  max-width: 540px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.not-found__panel a {
  margin-top: 36px;
  border-bottom: 1px solid var(--line-strong);
  padding: 0 0 8px;
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .22em;
  transition: border-color .25s ease, color .25s ease;
}

.not-found__panel a:hover,
.not-found__panel a:focus-visible {
  border-color: currentColor;
  color: var(--mint, #9edfff);
}


/* V1.1 — official brand integration */
.brand__official {
  display:block; width:clamp(128px, 10vw, 172px); height:auto;
  filter: drop-shadow(0 0 15px rgba(36,210,178,.18));
}
.hero-official-logo {
  width:clamp(220px, 26vw, 360px); height:auto; margin:0 0 clamp(14px,2vh,24px);
  filter: drop-shadow(0 0 28px rgba(36,210,178,.17));
}
.sigil img { object-fit: contain; }
@media (max-width: 640px) {
  .brand__official { width:118px; }
  .hero-official-logo { width:min(76vw, 300px); }
}
