/* ==========================================================================
   SEF PUBLICATIONS — COMING SOON
   1. Tokens          5. Editorial ghost type
   2. Base            6. Abstract object
   3. Atmosphere      7. Stage: head / main / foot
   4. Reveal system   8. Responsive
   ========================================================================== */

/* 1. TOKENS ─────────────────────────────────────────────────────────────── */
:root{
  --bg:        #08090B;
  --bg-2:      #0D0F12;
  --bg-3:      #15181D;

  --fg:        #F2F3F5;
  --fg-soft:   rgba(242,243,245,.62);
  --fg-dim:    rgba(242,243,245,.40);
  --fg-faint:  rgba(242,243,245,.22);

  --line:      rgba(242,243,245,.11);
  --line-soft: rgba(242,243,245,.045);

  --accent:    #E9A23B;
  --accent-dim: rgba(233,162,59,.30);

  --ease:      cubic-bezier(.16,1,.3,1);
  --pad:       clamp(20px, 3.2vw, 52px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* 2. BASE ───────────────────────────────────────────────────────────────── */
*,*::before,*::after{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100svh;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--font);
  font-size:16px;
  font-weight:400;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

h1,h2,p,ul,ol,figure{ margin:0; }
ul,ol{ padding:0; list-style:none; }
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }
b{ font-weight:500; }

::selection{ background:var(--accent); color:#08090B; }

:focus-visible{
  outline:1px solid var(--accent);
  outline-offset:4px;
  border-radius:2px;
}

.sr-only{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}

/* Shared micro type — the technical voice of the page */
.micro{
  margin:0;
  font-size:clamp(9.5px, .68vw, 10.5px);
  font-weight:500;
  line-height:1.4;
  letter-spacing:.19em;
  text-transform:uppercase;
  color:var(--fg-dim);
}
.micro.dim{ color:var(--fg-faint); }

/* 3. ATMOSPHERE ─────────────────────────────────────────────────────────── */
.atmos{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:0;
  transition:opacity 1.4s var(--ease);
}
body.is-ready .atmos{ opacity:1; }

/* very subtle radial lighting */
.atmos__light{
  position:absolute; inset:-20%;
  background:
    radial-gradient(58% 46% at 22% 30%, rgba(90,104,126,.16) 0%, transparent 62%),
    radial-gradient(46% 40% at 84% 68%, rgba(233,162,59,.055) 0%, transparent 60%),
    radial-gradient(90% 80% at 50% 120%, #0D0F12 0%, transparent 70%);
  animation:drift 34s var(--ease) infinite alternate;
}
@keyframes drift{
  from{ transform:translate3d(-1.2%, -0.8%, 0) scale(1); }
  to  { transform:translate3d( 1.2%,  0.8%, 0) scale(1.05); }
}

/* thin technical grid — shifts a few px with the cursor */
.atmos__grid{
  position:absolute; inset:-80px;
  background-image:
    linear-gradient(to right,  var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size:88px 88px;
  transform:translate3d(var(--gx,0px), var(--gy,0px), 0);
  transition:transform 1.1s var(--ease);
  mask-image:radial-gradient(78% 68% at 40% 45%, #000 20%, transparent 100%);
  -webkit-mask-image:radial-gradient(78% 68% at 40% 45%, #000 20%, transparent 100%);
  opacity:0;
  animation:gridIn 1.6s var(--ease) .25s forwards;
}
@keyframes gridIn{ to{ opacity:1; } }

/* fine guide rules */
.rule{ position:absolute; background:var(--line-soft); }
.rule--v{ left:var(--p); top:0; bottom:0; width:1px; }
.rule--h{ top:var(--p); left:0; right:0; height:1px; }

/* occasional tiny particles */
.atmos__dust i{
  position:absolute;
  left:var(--x); top:var(--y);
  width:2px; height:2px; border-radius:50%;
  background:var(--fg-faint);
  animation:float var(--t,22s) ease-in-out var(--d,0s) infinite alternate;
}
@keyframes float{
  from{ transform:translate3d(0,0,0);      opacity:.20; }
  to  { transform:translate3d(14px,-26px,0); opacity:.62; }
}

/* grain */
.atmos__noise{
  position:absolute; inset:0;
  opacity:.038;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 4. REVEAL SYSTEM ──────────────────────────────────────────────────────── */
.reveal{
  opacity:0;
  transform:translate3d(0,14px,0);
  filter:blur(6px);
}
body.is-ready .reveal{
  opacity:1;
  transform:none;
  filter:blur(0);
  transition:
    opacity   .9s var(--ease) calc(var(--d,0) * 1ms),
    transform 1.2s var(--ease) calc(var(--d,0) * 1ms),
    filter    .9s var(--ease) calc(var(--d,0) * 1ms);
}

/* 5. EDITORIAL GHOST TYPE ───────────────────────────────────────────────── */
.ghost{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.ghost__word{
  position:absolute;
  top:50%; right:-.10em;
  transform:translate3d(0,-46%,0) rotate(-5deg);
  font-size:clamp(15rem, 30vw, 34rem);
  font-weight:700;
  line-height:.8;
  letter-spacing:-.05em;
  color:transparent;
  -webkit-text-stroke:1px rgba(242,243,245,.11);
  white-space:nowrap;
}
body.is-ready .ghost__word{
  transform:translate3d(0,-46%,0) rotate(-5deg);
}
.ghost__word.reveal{ transform:translate3d(0,-42%,0) rotate(-5deg); }

/* 6. ABSTRACT OBJECT ────────────────────────────────────────────────────── */
.object{
  position:fixed;
  z-index:1;
  top:50%; right:calc(var(--pad) * -1.4);
  width:min(48vw, 620px);
  aspect-ratio:1/1;
  transform:translate3d(0,-50%,0);
  pointer-events:none;
}
body.is-ready .object.reveal{ transform:translate3d(0,-50%,0); }
.object canvas{ width:100%; height:100%; display:block; }

.object__tag{
  position:absolute;
  font-size:9.5px;
  font-weight:500;
  letter-spacing:.19em;
  text-transform:uppercase;
  color:var(--fg-faint);
  white-space:nowrap;
}
.object__tag--a{ top:12%; left:4%; }
.object__tag--b{ bottom:14%; right:22%; }

/* 7A. COORDINATE READOUT ────────────────────────────────────────────────── */
.coords{
  position:fixed;
  z-index:5;
  top:0; left:0;
  display:flex; gap:5px;
  padding:3px 0 0 16px;
  font-size:9.5px;
  font-weight:500;
  letter-spacing:.14em;
  font-variant-numeric:tabular-nums;
  color:var(--fg-faint);
  opacity:0;
  pointer-events:none;
  transition:opacity .5s var(--ease);
  will-change:transform;
}
.coords.is-on{ opacity:1; }
.coords i{ font-style:normal; opacity:.5; }

/* 7B. STAGE ─────────────────────────────────────────────────────────────── */
.stage{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:clamp(22px, 3vh, 42px);
  min-height:100svh;
  padding:var(--pad);
}

/* — HEAD — */
.head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
.brand img{ height:clamp(20px,1.5vw,24px); width:auto; opacity:.95; }
.brand__state{ margin-top:12px; color:var(--fg-soft); }

.head__meta{ text-align:right; display:grid; gap:12px; justify-items:end; }
.status{ display:flex; align-items:center; gap:9px; color:var(--fg-soft); }
.status__dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 0 var(--accent-dim);
  animation:pulse 2.8s var(--ease) infinite;
}
@keyframes pulse{
  0%  { box-shadow:0 0 0 0 var(--accent-dim); opacity:1; }
  70% { box-shadow:0 0 0 7px rgba(233,162,59,0); opacity:.65; }
  100%{ box-shadow:0 0 0 0 rgba(233,162,59,0); opacity:1; }
}

/* — MAIN — */
.main{
  align-self:center;
  display:grid;
  justify-items:start;
  gap:clamp(13px,1.8vh,22px);
  max-width:min(58vw, 1000px);
  padding-left:clamp(0px, 2.5vw, 56px);
}

.specs{
  display:flex;
  flex-wrap:wrap;
  gap:clamp(14px,2vw,30px);
  font-size:9.5px;
  font-weight:500;
  letter-spacing:.19em;
  text-transform:uppercase;
  color:var(--fg-faint);
}
.specs b{ color:var(--fg-dim); }

.eyebrow{
  position:relative;
  padding-left:26px;
  font-size:clamp(10px,.74vw,11px);
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--fg-soft);
}
.eyebrow::before{
  content:"";
  position:absolute; left:0; top:.55em;
  width:16px; height:1px;
  background:var(--accent);
  opacity:.8;
}

.title{
  margin:0;
  font-size:clamp(3rem, 9.4vw, 9.5rem);
  font-weight:700;
  line-height:.845;
  letter-spacing:-.045em;
  text-transform:uppercase;
}
.line{
  display:block;
  overflow:hidden;
  padding-bottom:.045em;
  margin-bottom:-.045em;
}
.line > span{
  display:block;
  transform:translate3d(0,108%,0);
  opacity:0;
}
body.is-ready .line > span{
  transform:none;
  opacity:1;
  transition:
    transform 1.25s var(--ease) calc(var(--d,0) * 1ms),
    opacity    .7s var(--ease) calc(var(--d,0) * 1ms);
}
.line:last-child > span{ color:var(--fg-soft); }

.lede{
  display:flex;
  gap:16px;
  max-width:46ch;
  margin-top:clamp(4px,1vh,10px);
}
.lede__bar{
  flex:0 0 1px;
  background:linear-gradient(to bottom, var(--line), transparent);
}
.lede p{
  font-size:clamp(13px,1vw,15px);
  line-height:1.6;
  color:var(--fg-dim);
}

/* — FOOT — */
.foot{
  display:grid;
  gap:clamp(18px,2.6vh,32px);
}
.foot__row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:clamp(24px,5vw,90px);
  flex-wrap:wrap;
}
.foot__row--end{ align-items:flex-end; }

/* Countdown — a digital instrument, not a set of cards */
.count h2{ margin-bottom:clamp(8px,1.4vh,14px); }
.count__grid{
  display:flex;
  align-items:stretch;
  gap:clamp(9px,1.4vw,20px);
}
.count__unit{
  display:grid;
  gap:5px;
  justify-items:start;
}
.count__num{
  font-size:clamp(1.9rem,4.2vw,3.25rem);
  font-weight:500;
  line-height:.92;
  letter-spacing:-.035em;
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
  color:var(--fg);
}
.count__unit:last-child .count__num{ color:var(--fg-soft); }
.count__unit .micro{ color:var(--fg-faint); letter-spacing:.16em; }
.count__sep{
  width:1px;
  align-self:stretch;
  margin-bottom:18px;
  background:linear-gradient(to bottom, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

/* Notify — one horizontal line, nothing more */
.notify{ width:min(380px,100%); }
.notify h2{ margin-bottom:clamp(6px,1vh,10px); }
.notify__form{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
}
.notify__input{
  flex:1 1 auto;
  min-width:0;
  height:44px;
  padding:0 0 2px;
  border:0;
  background:none;
  color:var(--fg);
  font-family:inherit;
  font-size:15px;
  letter-spacing:.01em;
}
.notify__input::placeholder{ color:var(--fg-faint); }
.notify__input:focus{ outline:none; }

.notify__btn{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:44px; height:44px;
  margin-right:-8px;
  border:0;
  background:none;
  color:var(--fg-dim);
  cursor:pointer;
  transition:color .5s var(--ease), transform .5s var(--ease);
}
.notify__btn svg{ width:24px; height:12px; overflow:visible; }
.notify__form:hover .notify__btn,
.notify__btn:focus-visible{ color:var(--accent); transform:translateX(4px); }
.notify__form:focus-within .notify__btn{ color:var(--accent); }

.notify__line{
  position:absolute;
  left:0; right:0; bottom:0;
  height:1px;
  background:var(--line);
}
.notify__line::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(to right, var(--fg-dim), var(--accent));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 1s var(--ease);
}
.notify__form:hover .notify__line::after{ transform:scaleX(.35); }
.notify__form:focus-within .notify__line::after{ transform:scaleX(1); }

.notify__msg{
  min-height:1.4em;
  margin-top:12px;
  color:var(--fg-faint);
  opacity:0;
  transform:translateY(-4px);
  transition:opacity .6s var(--ease), transform .6s var(--ease);
}
.notify__msg.is-on{ opacity:1; transform:none; }
.notify__msg.is-err{ color:var(--accent); }

/* Launch timeline */
.track{
  position:relative;
  padding-top:14px;
}
.track__rail{
  position:absolute;
  top:17px; left:3px; right:3px;
  height:1px;
  background:var(--line);
  overflow:hidden;
}
.track__fill{
  position:absolute;
  inset:0 auto 0 0;
  width:62%;
  background:linear-gradient(to right, var(--fg-faint), var(--accent));
  transform-origin:left;
  animation:railBreathe 5.5s var(--ease) infinite alternate;
}
@keyframes railBreathe{
  from{ opacity:.55; transform:scaleX(.985); }
  to  { opacity:1;   transform:scaleX(1); }
}
.track__list{
  position:relative;
  display:flex;
  justify-content:space-between;
  gap:8px;
}
.track__step{
  display:grid;
  gap:10px;
  justify-items:center;
}
.track__step:first-child{ justify-items:start; }
.track__step:last-child{ justify-items:end; }
.track__step .micro{ color:var(--fg-faint); font-size:9.5px; }
.track__step.is-done .micro{ color:var(--fg-dim); }
.track__step.is-active .micro{ color:var(--fg); }

.track__dot{
  width:7px; height:7px;
  border-radius:50%;
  background:var(--bg);
  box-shadow:inset 0 0 0 1px var(--fg-faint);
}
.track__step.is-done .track__dot{ background:var(--fg-faint); box-shadow:none; }
.track__step.is-active .track__dot{
  background:var(--accent);
  box-shadow:0 0 0 0 var(--accent-dim);
  animation:pulse 2.8s var(--ease) infinite;
}

/* Bottom information */
.tagline{
  max-width:25ch!important;
  font-size:clamp(13px,1.05vw,16px);
  font-weight:500;
  line-height:1.35;
  letter-spacing:-.015em;
  color:var(--fg-soft);
}
.colophon{ display:grid; gap:8px; justify-items:end; text-align:right; }

/* 8. RESPONSIVE ─────────────────────────────────────────────────────────── */

/* Wide-but-short screens (1366×768, 1024×768) */
@media (max-height:820px) and (min-width:721px){
  .title{ font-size:clamp(2.8rem, 7.6vw, 7rem); }
  .count__num{ font-size:clamp(1.8rem,3.4vw,2.6rem); }
  .stage{ gap:clamp(18px,2.4vh,30px); }
  .main{ gap:clamp(10px,1.4vh,18px); }
  .foot{ gap:clamp(14px,2.2vh,26px); }
  .count h2{ margin-bottom:8px; }
  .lede{ margin-top:0; }
}

/* Laptop / small desktop */
@media (max-width:1280px){
  .main{ max-width:min(64vw, 860px); }
  .object{ width:min(52vw,540px); opacity:.85; }
}

/* Tablet — keep the asymmetry, simplify the object */
@media (max-width:1024px){
  .main{ max-width:78vw; padding-left:0; }
  .object{ width:min(64vw,520px); right:-14vw; opacity:.5; }
  .object__tag{ display:none; }
  .ghost__word{ font-size:34vw; }
  .coords{ display:none; }
}

@media (max-width:860px){
  .main{ max-width:100%; }
  .foot__row{ align-items:flex-start; }
  .notify{ width:100%; }
}

/* Mobile — a composition of its own, not a shrunken desktop */
@media (max-width:720px){
  :root{ --pad:22px; }

  .stage{
    grid-template-rows:auto auto auto;
    gap:32px;
    min-height:100svh;
    padding-block:22px 26px;
  }

  .head{ align-items:flex-start; }
  .brand img{ height:20px; }
  .brand__state{ margin-top:9px; }
  .head__meta{ gap:9px; }

  .main{
    align-self:start;
    margin-top:1.4vh;
    gap:15px;
  }
  .specs{ display:none; }
  .eyebrow{ max-width:24ch; line-height:1.6; }
  .title{
    font-size:clamp(2.9rem, 14.4vw, 4.6rem);
    line-height:.88;
    letter-spacing:-.04em;
  }
  .lede{ max-width:34ch; }

  /* object slips behind the typography */
  .object{
    top:31%;
    right:-24vw;
    width:96vw;
    opacity:.28;
  }
  .ghost__word{
    top:auto; bottom:6%;
    right:-.06em;
    font-size:46vw;
    transform:translate3d(0,0,0) rotate(-4deg);
  }
  body.is-ready .ghost__word,
  .ghost__word.reveal{ transform:translate3d(0,0,0) rotate(-4deg); }

  .foot{ gap:22px; }
  .foot__row{ gap:26px; }
  .foot__row--end{ flex-direction:column; align-items:flex-start; gap:16px; }

  .count__grid{ gap:12px; }
  .count__num{ font-size:clamp(1.9rem,10.5vw,2.6rem); }
  .count__sep{ margin-bottom:16px; }

  .colophon{ justify-items:start; text-align:left; }
  .tagline{ max-width:18ch; font-size:16px; }

  .track__step .micro{ font-size:8.5px; letter-spacing:.1em; }
  .track__step{ gap:8px; }
}

@media (max-width:380px){
  .track__step .micro{ font-size:8px; letter-spacing:.06em; }
  .count__grid{ gap:9px; }
}

/* Motion preferences */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .reveal,
  .line > span,
  .atmos,
  .atmos__grid{ opacity:1 !important; transform:none !important; filter:none !important; }
  .ghost__word{ transform:translate3d(0,-46%,0) rotate(-5deg) !important; }
  @media (max-width:720px){
    .ghost__word{ transform:rotate(-4deg) !important; }
  }
}
