/* === TAS26 Graduation Countdown === */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@keyframes drift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Base */
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  color: #ffd470;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  background-color: #0a1336;
}

body {
  position: fixed;
  inset: 0;
  width: 100%;
  background:
    radial-gradient(ellipse at 20% 0%,  rgba(255, 183, 27, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 113, 206, 0.18),  transparent 55%),
    linear-gradient(135deg, #0a1336 0%, #1a2358 40%, #131a4a 70%, #0a1336 100%);
  background-size: 100% 100%, 100% 100%, 300% 300%;
  animation: drift 45s ease-in-out infinite;
}

/* Starfield */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Hero */
.hero {
  height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(16px, 3vh, 48px) 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  gap: clamp(20px, 4vh, 44px);
}

/* Eyebrow: ── Class of 2026 ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 26px);
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
  opacity: 0.75;
  color: #ffb71b;
  animation: fadeUp 1s ease both;
}

.eyebrow .line {
  display: inline-block;
  width: clamp(42px, 9vw, 96px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 183, 27, 0.55), transparent);
}

/* Masthead */
.masthead {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 7.5vmin, 5.6rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: #ffd470;
  text-shadow: 0 0 60px rgba(255, 183, 27, 0.18);
  animation: fadeUp 1s ease 0.12s both;
}

.masthead em {
  font-style: italic;
  font-weight: 500;
  color: #ffb71b;
}

/* Timebox */
.timebox {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  animation: fadeUp 1s ease 0.28s both;
}

.time {
  position: relative;
  text-align: center;
  padding: 0 clamp(10px, 3.2vw, 40px);
  min-width: clamp(56px, 10vw, 110px);
}

.time + .time::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  height: 56%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 183, 27, 0.35), transparent);
}

.time h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 8.5vmin, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  color: #ffd470;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.time h2.pulse {
  animation: pulse 0.35s ease;
}

.time p {
  font-size: clamp(0.52rem, 1vw, 0.7rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: clamp(10px, 1.6vh, 18px) 0 0;
  opacity: 0.6;
  color: #ffb71b;
}

/* Ornament: ── ✦ ── */
.ornament {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 22px);
  margin: 0;
  opacity: 0.55;
  animation: fadeUp 1s ease 0.44s both;
}

.ornament .line {
  display: inline-block;
  width: clamp(36px, 7vw, 70px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 183, 27, 0.5), transparent);
}

.ornament .diamond {
  font-size: clamp(0.55rem, 1.1vw, 0.78rem);
  color: #ffb71b;
}

/* Tagline */
.tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.8vmin, 1.3rem);
  letter-spacing: 0.02em;
  margin: 0;
  color: #ffd470;
  opacity: 0.85;
  animation: fadeUp 1s ease 0.58s both;
}

/* Stream button */
.stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: clamp(10px, 1.6vh, 14px) clamp(18px, 3vw, 28px);
  font-family: 'Inter', system-ui, Arial, sans-serif;
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffd470;
  background: rgba(255, 183, 27, 0.06);
  border: 1px solid rgba(255, 183, 27, 0.45);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  animation: fadeUp 1s ease 0.72s both;
}

.stream-btn:hover,
.stream-btn:focus-visible {
  background: rgba(255, 183, 27, 0.14);
  border-color: rgba(255, 183, 27, 0.85);
  color: #fff3d0;
  box-shadow: 0 0 30px rgba(255, 183, 27, 0.25);
  transform: translateY(-1px);
  outline: none;
}

.stream-btn .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 8px rgba(255, 59, 59, 0.7);
  animation: livePulse 1.6s ease-in-out infinite;
}

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

/* Disclaimer */
.disclaimer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #ffd470;
  opacity: 0.32;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.disclaimer:hover { opacity: 0.7; }

@media (max-width: 480px) {
  .disclaimer { font-size: 0.55rem; white-space: normal; max-width: 90vw; text-align: center; }
}

/* Utilities */
img { border: 0; outline: none; text-decoration: none; display: block; }
a   { text-decoration: none; color: inherit; }

/* Short / landscape screens */
@media (max-height: 560px) {
  .hero { gap: clamp(10px, 2vh, 20px); }
  .masthead { font-size: clamp(1.6rem, 8vmin, 3.2rem); }
  .time h2  { font-size: clamp(1.7rem, 9vmin, 3.6rem); }
  .stream-btn { padding: 8px 18px; font-size: 0.7rem; letter-spacing: 0.22em; }
}

/* Narrow phones */
@media (max-width: 380px) {
  .eyebrow .line { width: 30px; }
  .time { padding: 0 8px; min-width: 0; }
  .time p { letter-spacing: 0.22em; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .eyebrow, .masthead, .timebox, .ornament, .tagline, .stream-btn {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .time h2.pulse { animation: none; }
  .stream-btn .dot { animation: none; }
}
