/* ==========================================================================
   FrontRow — relaunching soon
   Dark, centred holding page. Mobile-first.

   Palette, grid pitch and type treatment are taken from the CHI.ECOSYSTEM
   reference: charcoal + rose, heavy uppercase display, monospace labels, a
   200px technical grid. Colours were sampled from the reference itself; the two
   dimmest greys in it fail WCAG AA, so those are lifted (see --ash-dim).
   ========================================================================== */

:root {
  /* Palette — sampled from the reference. Ratios are against --ink. */
  --ink:          #0e0e0e;   /* page                          */
  --chalk:        #ffffff;   /* display type         19.3:1   */
  --ash:          #a0a0a0;   /* secondary text        7.4:1   */
  --ash-dim:      #909090;   /* mono labels           6.1:1   */
  --accent:       #d54d70;   /* rose: mark, box, caret 4.7:1  */
  --accent-lift:  #ed80a1;   /* the accented display line 7.5:1 */
  --line:         rgba(255, 255, 255, .09);
  --line-strong:  rgba(255, 255, 255, .17);
  --grid:         rgba(255, 255, 255, .035);
  --grid-pitch:   200px;

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  /* Rhythm */
  --gutter: 20px;
}

/* --- Reset ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(to right,  var(--grid) 0 1px, transparent 1px var(--grid-pitch)),
    repeating-linear-gradient(to bottom, var(--grid) 0 1px, transparent 1px var(--grid-pitch));
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, p { margin: 0; }

img, svg { display: block; }

a { color: inherit; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Focus --------------------------------------------------------------- */

/* Nothing on the page is focusable right now. Kept so anything added later
   inherits a visible ring by default rather than needing to remember one. */
:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Backdrop: the seat bowl --------------------------------------------- */

.bowl {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;

  /* Stage glow. Lives here rather than in the canvas because it never changes:
     as a CSS background it is rasterised once, not on every frame. */
  background: radial-gradient(
    circle 88vh at 50% 102%,
    rgba(213, 77, 112, .10) 0%,
    rgba(213, 77, 112, .03) 50%,
    rgba(213, 77, 112, 0) 100%
  );

  /* Painted in idle time after the text, so it arrives rather than pops. */
  opacity: 0;
  transition: opacity .9s ease;

  /* The crowd lives in the lower half. Everything above the countdown stays
     clear so the hero type is never fighting texture. */
  --bowl-fade: linear-gradient(
    to bottom,
    transparent 34%,
    rgba(0, 0, 0, .45) 56%,
    #000 74%
  );
  -webkit-mask-image: var(--bowl-fade);
          mask-image: var(--bowl-fade);
}

.bowl.on { opacity: 1; }

/* --- Layout -------------------------------------------------------------- */

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: clamp(1.75rem, 5vw, 3rem) var(--gutter);
}

/* Scrim: holds a clean pocket of near-black under the copy column while the
   crowd stays visible out at the edges. */
.shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    min(34rem, 52%) 42% at 50% 58%,
    rgba(14, 14, 14, .9) 0%,
    rgba(14, 14, 14, .55) 58%,
    rgba(14, 14, 14, 0) 100%
  );
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(.75rem, 3vh, 2.5rem);
}

/* --- Eyebrow ------------------------------------------------------------- */

/* A hard-edged bordered tag, as the reference does with its version number. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .5em .85em;
  border: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--accent);
}

.pip {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(213, 77, 112, .6);
  animation: pulse 3.4s ease-out infinite;
}

@keyframes pulse {
  0%      { box-shadow: 0 0 0 0 rgba(213, 77, 112, .55); }
  60%,
  100%    { box-shadow: 0 0 0 8px rgba(213, 77, 112, 0); }
}

/* --- Mark ---------------------------------------------------------------- */

.mark {
  width: clamp(48px, 13vw, 60px);
  height: auto;
  margin-top: min(clamp(1.75rem, 7vw, 3rem), 4vh);
  border-radius: 14px;
  /* Lifts the tile off the charcoal field without a visible border. */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07),
              0 18px 50px -18px rgba(213, 77, 112, .40);
}

/* --- Headline ------------------------------------------------------------ */

.headline {
  margin-top: min(clamp(1.5rem, 5vw, 2.25rem), 3.5vh);
  font-size: clamp(2.125rem, 10.5vw, 4.75rem);
  font-weight: 800;
  line-height: .93;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

/* The reference puts its closing phrase in rose. Same move here. */
.headline .accent { color: var(--accent-lift); }

/* Terminal caret parked after the headline. */
.caret {
  display: inline-block;
  width: .5em;
  height: .075em;
  margin-left: .1em;
  background: var(--accent);
  animation: blink 1.15s steps(1, end) infinite;
}

@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}


/* --- Countdown: a departure-board strip ---------------------------------- */

.countdown {
  width: 100%;
  /* Wider than it was: with no line of copy between, this gap and the one under
     the mark are the only spacing holding the composition apart. */
  margin-top: min(clamp(2.5rem, 9vw, 4.5rem), 8vh);
  text-shadow: 0 0 12px var(--ink), 0 0 4px var(--ink);
}

/* The framed band, shared by the countdown and its SOON stand-in so both
   states sit in exactly the same place. */
.strip,
.soon {
  padding-block: clamp(1.1rem, 4vw, 1.5rem);
  border-block: 1px solid var(--line);
  max-width: 30rem;
  margin-inline: auto;
}

.strip {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(.5rem, 2.5vw, 1.1rem);
}

/* No date announced: one word, set like a status board. */
.soon {
  font-family: var(--mono);
  font-size: clamp(1.75rem, 8.5vw, 2.625rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .3em;
  text-indent: .3em;        /* cancels the trailing letter-space, so it centres */
  text-transform: uppercase;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55em;
  min-width: 2.6em;
}

.num {
  font-family: var(--mono);
  font-size: clamp(1.75rem, 8.5vw, 2.625rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.tag {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

/* A hairline reads cleaner than a colon at display sizes. Height matches the
   numerals exactly, since .num has line-height 1. */
.sep {
  align-self: flex-start;
  width: 1px;
  height: clamp(1.75rem, 8.5vw, 2.625rem);
  background: var(--line);
}

.doors {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--accent-lift);
}

/* --- Footer -------------------------------------------------------------- */

.foot {
  padding-top: clamp(1.5rem, 5vw, 2rem);
  text-align: center;
  /* Small type sitting over the crowd; a tight halo keeps it crisp without
     a scrim large enough to flatten the backdrop. */
  text-shadow: 0 0 10px var(--ink), 0 0 3px var(--ink);
}

.fine {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

/* --- Entrance ------------------------------------------------------------ */

.rise {
  animation: rise .72s cubic-bezier(.22, .68, .18, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms + 60ms);
}

/* Stagger, top of the page down. Kept here rather than in style attributes so
   the page needs no 'unsafe-inline' in its CSP. */
.eyebrow.rise   { --i: 0; }
.mark.rise      { --i: 1; }
.headline.rise  { --i: 2; }
.countdown.rise { --i: 3; }

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}

/* --- Wider screens ------------------------------------------------------- */

@media (min-width: 48rem) {
  :root { --gutter: 2.5rem; }
}

/* --- Motion preferences -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    /* Without this the staggered .rise delays survive, so content still
       pops in one piece at a time instead of just being there. */
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rise { opacity: 1; transform: none; }
  /* The blanket rule above would end the blink on its hidden keyframe. */
  .caret { animation: none; opacity: 1; }
}
