:root {
  --ink: #07060b;
  --paper: #f4f1ea;
  --mute: rgba(244, 241, 234, 0.66);
  --lime: #c8ff3d;
  --violet: #7a5cff;
  --gutter: clamp(20px, 4vw, 56px);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--ink); color-scheme: dark; }

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(122, 92, 255, 0.45), transparent 70%),
    radial-gradient(45% 40% at 20% 85%, rgba(200, 255, 61, 0.18), transparent 70%),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* WebGL field sits behind everything and owns one job: the ambient contour field. */
.field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.field.is-live { opacity: 1; }

/* Keeps type readable over the field. */
.veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(7, 6, 11, 0.88) 0%, rgba(7, 6, 11, 0.35) 45%, rgba(7, 6, 11, 0) 70%),
    linear-gradient(to bottom, rgba(7, 6, 11, 0.55), rgba(7, 6, 11, 0) 22%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(var(--gutter), env(safe-area-inset-top)) var(--gutter) max(var(--gutter), env(safe-area-inset-bottom));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  min-height: 44px;
}
.brand__name { font-weight: 600; letter-spacing: 0.01em; }

.status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 241, 234, 0.2);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(7, 6, 11, 0.4);
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.55); }
  80%, 100% { box-shadow: 0 0 0 12px rgba(200, 255, 61, 0); }
}

.hero {
  align-self: end;
  padding-block: clamp(48px, 10vh, 120px) clamp(28px, 5vh, 56px);
  max-width: 1200px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 11.5vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Split words: the mask clips the rise, the inner span moves. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; will-change: transform; }
.w--ital .wi { font-style: italic; color: var(--lime); }

.lede {
  margin: clamp(20px, 3vw, 32px) 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: var(--mute);
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 241, 234, 0.14);
  font-size: 0.8125rem;
  color: var(--mute);
}
.foot p { margin: 0; }

/* Hidden-until-revealed states exist only when motion is allowed and JS runs. */
.anim .status,
.anim .eyebrow,
.anim .lede,
.anim .foot,
.anim .brand { opacity: 0; }
.anim .wi { transform: translateY(110%); }

a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 6px; }

/* Header mark and name. Mark motion is defined below. */
.brand__mark { flex: none; overflow: visible; }
.brand { gap: 14px; }
.brand__name { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; padding: 0 0.04em 0.22em 0; margin-bottom: -0.22em; display: inline-block; }
/* The i's keep their stem in the name colour; only the dot is lime, like the icon's bowl. */
.bl--i { position: relative; }
.ii-dot { position: absolute; left: 50%; top: 0.12em; width: 0.17em; height: 0.17em; border-radius: 50%; background: var(--lime); transform: translateX(-50%); }
/* The name opens left to right with the same timing as the bowl, so the two read as one motion. */
.brand__name { animation: nameOpen 1.3s cubic-bezier(.16,1,.3,1) 1.4s both; }
@keyframes nameOpen { from { clip-path: inset(-0.3em 100% -0.3em -0.3em); opacity: 0; } 30% { opacity: 1; } to { clip-path: inset(-0.3em -0.3em -0.3em -0.3em); opacity: 1; } }
@media (max-width: 560px) { .brand__mark { width: 46px; height: 46px; } .brand__name { font-size: 1.2rem; } }
/* Digital build, about 1.4s, then the name takes over:
   1. the stem loads as four pixel blocks, bottom to top, each flickering on (stepped, no easing);
   2. a lime scan line sweeps right and draws the bowl behind it;
   3. a three-frame glitch settles the mark;
   4. idle: every 7s a dark refresh line passes through the shapes. */
.bm-px { animation: bmPx .16s steps(1, end) both; animation-delay: calc(.1s + var(--k) * .11s); }
@keyframes bmPx { 0% { opacity: 0; } 35% { opacity: 1; } 55% { opacity: .25; } 100% { opacity: 1; } }
/* Once the blocks are in, a solid stem covers their anti-aliased seams. */
.bm-solid { animation: bmSolid .01s steps(1, end) .58s both; }
@keyframes bmSolid { from { opacity: 0; } to { opacity: 1; } }

.bm-reveal { transform-box: fill-box; transform-origin: 0 50%; animation: bmReveal .7s cubic-bezier(.2,0,0,1) .6s both; }
@keyframes bmReveal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bm-scan { opacity: 0; animation: bmScan .7s cubic-bezier(.2,0,0,1) .6s both; }
@keyframes bmScan { 0% { transform: translateX(0); opacity: 0; } 3% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(52px); opacity: 0; } }

.bm-glitch { animation: bmGlitch .24s steps(1, end) 1.32s both; }
@keyframes bmGlitch { 0% { transform: translate(0, 0); } 25% { transform: translate(5px, 0); } 50% { transform: translate(-4px, 2px); } 75% { transform: translate(2px, 0); } 100% { transform: translate(0, 0); } }

.bm-sweep { opacity: 0; animation: bmSweep 7s linear 3s infinite; }
@keyframes bmSweep { 0% { transform: translateX(0); opacity: 0; } 1% { opacity: .55; } 13% { transform: translateX(92px); opacity: .55; } 14%, 100% { transform: translateX(92px); opacity: 0; } }

.bm-bowl { transition: transform .3s cubic-bezier(.2,0,0,1); }
.brand:hover .bm-bowl { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .bm-px, .bm-solid, .bm-reveal, .bm-scan, .bm-glitch, .bm-sweep, .brand__name { animation: none; } .bm-bowl { transition: none; } }

.status { white-space: nowrap; }

@media (max-width: 380px) {
  .brand__name { font-size: 0.9375rem; }
  .status { letter-spacing: 0.02em; gap: 8px; padding: 7px 10px; font-size: 0.6563rem; }
}

@media (max-width: 560px) {
  .foot__hint { display: none; }
  .status { font-size: 0.7188rem; padding: 7px 12px; }
}

@media (pointer: coarse) {
  .foot__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .status__dot { animation: none; }
  .field { display: none; }
  .anim .status, .anim .eyebrow, .anim .lede, .anim .foot, .anim .brand { opacity: 1; }
}
