:root {
  --gold: #f0ad2f;
  --line: rgba(231, 166, 48, .72);
  --panel: rgba(6, 6, 5, .96);
  --text: #fff8ec;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body { font-family: Inter, Arial, sans-serif; color: var(--text); background: #17110b; }

.page {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* Full-bleed colour/texture extension of the approved artwork.
   This removes black letterboxing without stretching David or the typography. */
.ambient-bg {
  position: fixed;
  inset: -7vh -5vw;
  z-index: -3;
  background-image: url('design-master.png');
  background-position: center center;
  background-size: cover;
  filter: blur(34px) saturate(.92) brightness(.72);
  transform: scale(1.08);
}

/* Soft side treatment makes the extended office environment feel intentional
   and prevents duplicate background details from competing with the master art. */
.ambient-shade {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(10,8,6,.56) 0%,
      rgba(10,8,6,.18) 20%,
      rgba(10,8,6,0) 35%,
      rgba(10,8,6,0) 67%,
      rgba(68,45,28,.08) 82%,
      rgba(48,31,19,.36) 100%);
}

.artboard {
  position: relative;
  margin: 0 auto;
  line-height: 0;
  z-index: 1;
}

.master-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 0 90px rgba(0,0,0,.16);
}


/* Clearer launch-state label. It covers the small static "UNDER CONSTRUCTION"
   wording baked into the master artwork and replaces it with a bolder message. */
.construction-label {
  position: absolute;
  left: 5.0%;
  top: 10.35%;
  width: 39.8%;
  height: 4.15%;
  display: flex;
  align-items: center;
  padding-left: .15%;
  color: var(--gold);
  background: rgba(12, 10, 8, .94);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(7px, .82vw, 14px);
  font-weight: 800;
  letter-spacing: .30em;
  line-height: 1;
  white-space: nowrap;
  z-index: 6;
}

/* One live countdown only. This overlay sits directly on top of the static
   countdown baked into the approved artwork, fully covering it. */
.countdown {
  position: absolute;
  left: 30.15%;
  top: 57.55%;
  width: 25.05%;
  height: 6.95%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.7%;
  padding: 0.35% 0.45%;
  line-height: 1;
  background: rgba(6, 6, 5, .995);
  border-radius: 6px;
  z-index: 5;
}

.countdown-box {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 5, .995);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
}

.countdown-box strong {
  color: var(--gold);
  font-size: clamp(10px, 1.95vw, 30px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
}

.countdown-box span {
  margin-top: 9%;
  color: rgba(255,255,255,.92);
  font-size: clamp(4px, .54vw, 9px);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Desktop: the complete approved square stays visible head-to-boots,
   while the office atmosphere fills every pixel to the left and right. */
@media (min-width: 721px) {
  html, body { height: 100%; overflow: hidden; }
  .page {
    height: 100vh;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .artboard {
    width: min(100vh, 100vw);
    height: min(100vh, 100vw);
    flex: 0 0 auto;
  }
}

/* Mobile/tablet: keep the artwork readable and let it occupy the available width. */
@media (max-width: 720px) {
  .page { min-height: 100svh; overflow-y: auto; }
  .ambient-bg { position: fixed; inset: -12%; }
  .ambient-shade { position: fixed; }
  .artboard { width: 100vw; height: auto; }
  .master-art { width: 100%; height: auto; }
  .countdown-box strong { font-size: clamp(8px, 2.1vw, 18px); }
  .countdown-box span { font-size: clamp(3px, .72vw, 7px); }
}
