/* 4K Jenga Group: responsive layout and original brand styles. */
:root {
    --ink: #17100B;
    --night: #150801;
    --yellow: #FEC72E;
    --logo: #FCEC00;
    --ember: #E85D1A;
    --soft: #CFC6BB;
    --muted: #8A8178;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { width: 100%; min-height: 100%; }
  body { width: 100%; min-height: 100%; }
  [hidden] { display: none !important; }
  body {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    background: radial-gradient(120% 90% at 50% 45%, #2a1206 0%, #150801 55%, #0b0400 100%);
    color: #FFFFFF;
    font-family: Montserrat, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    /* Supplied images contain no visible particle texture. */
    background: radial-gradient(ellipse at 65% 35%, rgba(232,93,26,.10), transparent 65%);
    opacity: .38;
    mix-blend-mode: screen;
    mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 85%);
  }
  .countdown-globe {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(125%, 1300px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: .68;
    pointer-events: none;
  }
  .countdown-globe canvas { display: block; width: 100%; height: 100%; }
  .page {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
    isolation: isolate;
  }
  .page::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 22vh;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(21,8,1,0) 0%, rgba(21,8,1,.85) 60%, #150801 100%);
  }
  a { color: inherit; text-decoration: none; }
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    padding: 14px clamp(24px, 4.5vw, 72px) 0;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
  }
  .site-nav { display: flex; align-items: center; gap: 24px; }
  .site-nav a {
    position: relative;
    padding: 6px 0;
    color: var(--soft);
    white-space: nowrap;
    transition: color .25s ease;
  }
  .site-nav a:hover, .site-nav a:focus-visible { color: #FFFFFF; }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
  }
  .site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
  .site-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    max-width: 100%;
  }
  .site-brand img { display: block; width: 54px; height: 48px; object-fit: contain; }
  .site-brand b { font-size: 11px; font-weight: 700; letter-spacing: .25em; }
  .site-brand i { display: block; width: 34px; height: 3px; background: var(--yellow); }
  .topbar-spacer { justify-self: end; }
  main {
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    min-height: 0;
    padding: clamp(32px, 5vh, 64px) clamp(16px, 4.5vw, 72px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
  }
  .eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
    color: var(--ember);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
  }
  .eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--ember); }
  h1 {
    max-width: 16ch;
    font-size: clamp(26px, 6vw, 78px);
    width: 100%;
    overflow-wrap: anywhere;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -.02em;
    text-wrap: balance;
  }
  h1 strong { color: var(--yellow); font-weight: 700; }
  .message {
    max-width: 590px;
    margin-top: 14px;
    color: var(--soft);
    font-size: 15px;
    line-height: 1.75;
  }
  .countdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: stretch;
    width: min(100%, 540px);
    gap: clamp(6px, 2vw, 24px);
    margin-top: 24px;
  }
  .unit { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .unit strong { font-size: clamp(30px, 4.5vw, 54px); line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
  .unit span { color: var(--muted); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
  .separator { width: 1px; background: rgba(255,255,255,.18); }
  .launch-note { min-height: 20px; margin-top: 24px; color: var(--soft); font-size: 12px; letter-spacing: .08em; }
  .launch-note.live { color: var(--yellow); }
  footer {
    padding: 10px clamp(24px, 4.5vw, 72px) 14px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    color: var(--soft);
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: .1em;
  }
  footer a:hover, footer a:focus-visible { color: var(--yellow); }
  .footer-contact, .footer-credit {
    display: grid;
    grid-template-rows: auto auto;
    gap: 7px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .footer-contact a { display: block; }
  .footer-credit span, .footer-credit strong { display: block; }
  .footer-credit { color: var(--muted); text-align: right; text-transform: uppercase; font-size: 10px; line-height: 1.76; letter-spacing: .18em; }
  .footer-credit strong { color: #FFFFFF; }
  a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 5px; }
  .site-brand b { line-height: 1.6; overflow-wrap: anywhere; }
  footer { width: 100%; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  @media (max-width: 760px) {
    .topbar { padding-top: 22px; }
    .countdown-globe { width: 145%; opacity: .52; }
    .countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
    .separator { display: none; }
    .unit span { font-size: 9px; letter-spacing: .12em; }
    footer { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .footer-credit { text-align: center; }
  }
  @media (max-width: 380px) {
    .site-brand b { font-size: 10px; letter-spacing: .16em; }
    .message { font-size: 14px; }
    .eyebrow { gap: 8px; letter-spacing: .2em; }
    .eyebrow::before, .eyebrow::after { width: 18px; }
    .unit strong { font-size: clamp(23px, 8vw, 30px); }
  }
  @media (max-height: 600px) and (min-width: 761px) {
    main { padding-block: 24px; }
    h1 { font-size: clamp(30px, 5vw, 54px); }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  }
/* Keep the countdown page within the visible phone, tablet, and laptop viewport. */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.page {
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
main { min-height: 0; padding-block: clamp(4px, 2vh, 22px); }
footer { padding: 6px clamp(12px, 4vw, 48px) max(6px, env(safe-area-inset-bottom)); }

@media (max-width: 760px) {
  .topbar { padding-top: 8px; }
  .site-brand { gap: 4px; }
  .site-brand img { width: 40px; height: 36px; }
  .site-brand b { font-size: 10px; letter-spacing: .16em; }
  main { padding: clamp(4px, 1.5vh, 12px) 14px; }
  .eyebrow { gap: 8px; margin-bottom: 6px; font-size: 9px; }
  .eyebrow::before, .eyebrow::after { width: 18px; }
  h1 { max-width: 24ch; font-size: clamp(24px, 7vw, 46px); }
  .message { max-width: 42ch; margin-top: 7px; font-size: clamp(12px, 2.6vw, 14px); line-height: 1.4; }
  .countdown { gap: 6px; margin-top: 12px; }
  .unit { gap: 5px; }
  .unit strong { font-size: clamp(22px, 6vw, 32px); }
  .unit span { font-size: 8px; letter-spacing: .08em; }
  .launch-note { min-height: 0; margin-top: 6px; font-size: 10px; }
  footer { gap: 5px; padding: 5px 12px max(6px, env(safe-area-inset-bottom)); font-size: 9px; }
  .footer-contact, .footer-credit { gap: 2px; }
  .footer-credit { font-size: 8px; line-height: 1.35; }
}

@media (max-height: 700px) {
  .topbar { padding-top: 5px; }
  .site-brand { gap: 2px; }
  .site-brand img { width: 32px; height: 28px; }
  main { padding-block: clamp(2px, 1vh, 8px); }
  .eyebrow { margin-bottom: 4px; }
  h1 { font-size: clamp(22px, 4.8vw, 40px); }
  .message { margin-top: 4px; line-height: 1.3; }
  .countdown { margin-top: 8px; }
  .unit { gap: 3px; }
  .unit strong { font-size: clamp(20px, 4vw, 28px); }
  .launch-note { min-height: 0; margin-top: 4px; }
  footer { gap: 3px; padding-top: 3px; }
  .footer-contact, .footer-credit { gap: 2px; }
}

@media (max-height: 520px) {
  .site-brand img { width: 24px; height: 21px; }
  .site-brand b { font-size: 8px; }
  .eyebrow { margin-bottom: 2px; font-size: 8px; }
  h1 { font-size: clamp(19px, 3.8vw, 30px); }
  .message { margin-top: 3px; font-size: 10px; line-height: 1.2; }
  .countdown { margin-top: 4px; }
  .unit strong { font-size: 19px; }
  .unit span { font-size: 7px; }
  .launch-note { margin-top: 2px; }
  footer { font-size: 8px; }
  .footer-credit { font-size: 7px; }
}
/* Slightly larger type, while keeping compact rules on small screens. */
@media (min-width: 761px) and (min-height: 701px) {
  h1 { font-size: clamp(28px, 6.2vw, 80px); }
  .message { font-size: 16px; }
  .unit strong { font-size: clamp(32px, 4.8vw, 56px); }
  .unit span { font-size: 11px; }
  .launch-note { font-size: 13px; }
  footer { font-size: 12px; }
}
@media (max-width: 760px) {
  h1 { font-size: clamp(25px, 7.2vw, 48px); }
  .message { font-size: clamp(12.5px, 2.8vw, 15px); }
  .unit strong { font-size: clamp(23px, 6.2vw, 34px); }
  .unit span { font-size: 8.5px; }
  footer { font-size: 9.5px; }
  .footer-credit { font-size: 8.5px; }
}
@media (max-height: 700px) {
  h1 { font-size: clamp(23px, 4.8vw, 42px); }
  .message { font-size: 12.5px; }
  .unit strong { font-size: clamp(21px, 4.2vw, 30px); }
  .unit span { font-size: 8.5px; }
  .launch-note { font-size: 10.5px; }
}
@media (max-height: 520px) {
  h1 { font-size: clamp(20px, 3.9vw, 32px); }
  .message { font-size: 10.5px; }
  .unit strong { font-size: 20px; }
  .unit span { font-size: 7.5px; }
  footer { font-size: 8.5px; }
  .footer-credit { font-size: 7.5px; }
}
/* Laptop-specific typography: larger at full height, scaled for short viewports. */
@media (min-width: 761px) and (min-height: 701px) {
  h1 { font-size: clamp(40px, 6.2vw, 88px); }
  .message { font-size: 18px; }
  .unit strong { font-size: clamp(34px, 4.8vw, 60px); }
  .unit span { font-size: 12px; }
  .launch-note { font-size: 14px; }
  footer { font-size: 13px; }
}
@media (min-width: 761px) and (max-height: 700px) and (min-height: 521px) {
  h1 { font-size: clamp(34px, 4.8vw, 58px); }
  .message { font-size: 16px; line-height: 1.35; }
  .unit strong { font-size: clamp(30px, 4.2vw, 48px); }
  .unit span { font-size: 10px; }
  .launch-note { font-size: 12px; }
  footer { font-size: 11px; }
}
@media (min-width: 761px) and (max-height: 520px) {
  h1 { font-size: clamp(28px, 4.2vw, 40px); }
  .message { font-size: 14px; line-height: 1.2; }
  .unit strong { font-size: 28px; }
  .unit span { font-size: 9px; }
  .launch-note { font-size: 11px; }
  footer { font-size: 10px; }
  .footer-credit { font-size: 9px; }
}
/* Full-screen image pre-loader */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--yellow);
  background: #080503 url("../images/preloader.jpg") center / cover no-repeat;
  transition: opacity .45s ease, visibility .45s ease;
}
.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-preloader__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(254, 199, 46, .28);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: site-loader-spin .9s linear infinite;
}
.site-preloader__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
@keyframes site-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .site-preloader__spinner { animation-duration: 2.5s; }
  .site-preloader { transition-duration: .01ms; }
}
