:root {
  --bg:          #0a0b0d;
  --bg-elev:     #101114;
  --ink:         #f3f1ea;
  --ink-dim:     #8a8880;
  --ink-faint:   #3a3a38;
  --rule:        rgba(243, 241, 234, 0.08);
  --rule-strong: rgba(243, 241, 234, 0.16);
  --accent:      #ffffff;  /* pure white — quiet, Apple-style emphasis */
  --accent-dim:  #c8c6bf;
  --grid:        rgba(243, 241, 234, 0.035);

  --display: "Fraunces", "Times New Roman", serif;
  --mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Background: subtle grid + radial glow + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 90%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.035), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.02), transparent 35%);
  pointer-events: none;
  z-index: 0;
  animation: drift 20s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-30px, 20px); }
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Layout shell */
.shell {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 40px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Top bar */
header.bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.bar .left, .bar .right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar .right { justify-content: flex-end; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.mark svg { display: block; }

.mark-logo {
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}

/* Ghosted logo behind headline */
.brand-stage {
  position: relative;
}

.ghost-logo {
  position: absolute;
  left: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 580px;
  height: 580px;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: ghostFade 2.4s var(--ease) 0.3s forwards, ghostDrift 14s ease-in-out 2.5s infinite alternate;
}

@keyframes ghostFade {
  from { opacity: 0; transform: translateY(-50%) scale(0.92); }
  to   { opacity: 0.035; transform: translateY(-50%) scale(1); }
}

@keyframes ghostDrift {
  0%   { transform: translateY(-50%) translateX(0);    opacity: 0.035; }
  50%  { transform: translateY(-52%) translateX(-18px); opacity: 0.05; }
  100% { transform: translateY(-48%) translateX(12px);  opacity: 0.03; }
}

.brand-stage > :not(.ghost-logo) {
  position: relative;
  z-index: 1;
}

.dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

/* Main grid */
main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 80px 0 60px;
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Left column — headline */
.headline {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  margin-bottom: 36px;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: rgba(243, 241, 234, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: rise 0.9s var(--ease) 0.1s both;
}

.eyebrow .tag {
  color: var(--accent);
}

h1.brand {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 176px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 32px;
  font-feature-settings: "ss01", "ss02";
}

h1.brand .clear {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

h1.brand .bot {
  font-weight: 500;
  position: relative;
  display: inline-block;
}

h1.brand .bot::after {
  content: "";
  position: absolute;
  right: -0.18em;
  top: 0.18em;
  width: 0.13em;
  height: 0.7em;
  background: var(--accent);
  animation: cursor 1.1s steps(2) infinite;
}

@keyframes cursor {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.brand-char {
  display: inline-block;
  animation: rise 0.8s var(--ease) both;
}

@keyframes rise {
  0%   { opacity: 0; transform: translateY(26px); }
  100% { opacity: 1; transform: translateY(0); }
}

.lede {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 42ch;
  margin-bottom: 44px;
  letter-spacing: -0.005em;
  animation: rise 0.9s var(--ease) 0.7s both;
}

.lede em {
  font-style: italic;
  color: var(--ink-dim);
}

/* CTA row */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  animation: rise 0.9s var(--ease) 0.85s both;
}

.form {
  display: flex;
  align-items: stretch;
  background: var(--bg-elev);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
  min-width: 0;
  flex: 1 1 380px;
  max-width: 460px;
}

.form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 16px 18px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.form input::placeholder {
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
}

.form button {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: #0a0b0d;
  padding: 0 22px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.form button:hover    { background: #f5f5f5; }
.form button:active   { transform: scale(0.98); }
.form button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.form button svg {
  transition: transform 0.25s var(--ease);
}

.form button:hover svg {
  transform: translateX(3px);
}

.meta-note {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-note::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--ink-faint);
}

/* Right column — status panel */
.panel {
  position: relative;
  border: 1px solid var(--rule-strong);
  background: linear-gradient(180deg, rgba(243, 241, 234, 0.025), rgba(243, 241, 234, 0.005));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px;
  border-radius: 2px;
  animation: rise 1s var(--ease) 1s both;
}

.panel::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.panel::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
}

.panel-head .status-tag {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.unit {
  text-align: center;
  padding: 14px 6px;
  background: rgba(10, 11, 13, 0.4);
  border: 1px solid var(--rule);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.unit .num {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 6px;
}

.unit .label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
}

/* Progress log */
.log {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: var(--ink-dim);
}

.log-row.active { color: var(--ink); }
.log-row.done .text { color: var(--ink-dim); text-decoration: line-through; text-decoration-color: var(--ink-faint); }

.log-row .text {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
}

.log-row .pct {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
}

.log-row.active .pct { color: var(--accent); }

.tick {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid var(--ink-faint);
  position: relative;
  flex-shrink: 0;
}

.log-row.done .tick {
  background: var(--accent);
  border-color: var(--accent);
}

.log-row.done .tick::after {
  content: "";
  position: absolute;
  left: 3px; top: 1px;
  width: 3px; height: 6px;
  border: solid #0a0b0d;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.log-row.active .tick {
  border-color: var(--accent);
}
.log-row.active .tick::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

/* Logo visual in panel */
.orbit {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
  filter: blur(0.3px);
  animation: float 8s ease-in-out infinite alternate;
}

@keyframes float {
  0%   { transform: translateY(-50%) translateX(0); }
  100% { transform: translateY(-48%) translateX(-8px); }
}

/* Footer */
footer.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
}

footer.foot .right { justify-self: end; display: flex; gap: 22px; }

footer.foot a {
  color: var(--ink-dim);
  text-decoration: none;
  position: relative;
  transition: color 0.2s var(--ease);
}

footer.foot a:hover { color: var(--ink); }

footer.foot a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

footer.foot a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.copyright {
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--ink-dim);
}

/* Scrolling marquee */
.marquee {
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 -40px;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: slide 40s linear infinite;
}

.marquee span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 48px;
}

.marquee span::after {
  content: "✦";
  color: var(--accent);
  font-size: 10px;
}

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* SVG sprite sheet — hidden at root */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 960px) {
  .shell { padding: 20px 24px; }
  main { padding: 48px 0 40px; }
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .orbit { display: none; }
  .ghost-logo { display: none; }
  .marquee { margin: 0 -24px; }
}

@media (max-width: 560px) {
  .shell { padding: 18px 20px; }
  .marquee { margin: 0 -20px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.18em; padding: 7px 12px; }
  h1.brand { font-size: clamp(56px, 17vw, 100px); }
  .countdown { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .unit { padding: 12px 4px; }
  footer.foot { grid-template-columns: 1fr; text-align: center; }
  footer.foot .right { justify-self: center; flex-wrap: wrap; justify-content: center; }
}

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