:root {
  --olive: #7f7563;
  --olive-light: #aaa08c;
  --olive-dark: #49483e;
  --ink: #171914;
  --panel: #23261f;
  --panel-soft: #2d3028;
  --cream: #eee9df;
  --muted: #aaa99f;
  --gold: #d0a950;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 14% 10%, rgba(127, 117, 99, 0.2), transparent 27rem),
    radial-gradient(circle at 90% 78%, rgba(127, 117, 99, 0.12), transparent 24rem),
    linear-gradient(145deg, #1c1e19 0%, #11130f 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 23rem;
  height: 23rem;
  border: 1px solid rgba(127, 117, 99, 0.1);
  transform: rotate(45deg);
  pointer-events: none;
}

body::before {
  top: -15rem;
  right: -8rem;
}

body::after {
  bottom: -16rem;
  left: -8rem;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.institutional-header {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(238, 233, 223, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.crest {
  width: 64px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.35));
}

.eyebrow,
.institution,
.brand p {
  margin: 0;
}

.eyebrow {
  color: var(--cream);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.institution {
  margin-top: 5px !important;
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.course-badge {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(208, 169, 80, 0.35);
  border-radius: 3px;
  background: rgba(208, 169, 80, 0.06);
  color: var(--gold);
  font-family: "Barlow Condensed", sans-serif;
}

.course-badge span {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.course-badge small {
  color: var(--olive-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 0 46px;
}

.hero-copy {
  text-align: center;
}

.overline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--olive-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.overline span,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(208, 169, 80, 0.1);
}

h1 {
  margin: 0;
  color: var(--cream);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3.9rem, 10vw, 7.4rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 0.87;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

h1 span {
  color: var(--olive);
}

.subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  letter-spacing: 0.08em;
}

.timer-panel {
  position: relative;
  margin: 46px 0 34px;
  padding: 32px 36px 35px;
  border: 1px solid rgba(127, 117, 99, 0.29);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 38px 38px,
    rgba(35, 38, 31, 0.76);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.timer-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 220px;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  box-shadow: 0 0 25px rgba(208, 169, 80, 0.35);
}

.timer-label {
  margin: 0 0 21px;
  color: var(--olive-light);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: minmax(120px, 1.25fr) repeat(3, auto minmax(90px, 1fr));
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}

.time-unit {
  min-width: 0;
  text-align: center;
}

.time-unit strong {
  display: block;
  color: var(--cream);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 0.9;
}

.time-unit span {
  display: block;
  margin-top: 13px;
  color: var(--olive-light);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.separator {
  padding-top: 4px;
  color: rgba(170, 160, 140, 0.34);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.8;
}

.mission-progress {
  padding: 0 4px;
}

.progress-heading,
.date-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-heading {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.progress-heading > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.progress-heading strong {
  color: var(--gold);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.status-dot {
  width: 5px;
  height: 5px;
  animation: pulse 2s ease-in-out infinite;
}

.progress-track {
  height: 7px;
  padding: 1px;
  border: 1px solid rgba(127, 117, 99, 0.34);
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--olive), var(--gold));
  box-shadow: 0 0 14px rgba(208, 169, 80, 0.28);
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.date-range {
  margin-top: 13px;
}

.date-range div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.date-range span {
  color: #77796f;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.date-range strong {
  color: var(--olive-light);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
}

.finish-date {
  text-align: right;
}

footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid rgba(238, 233, 223, 0.08);
  color: #6f7167;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

footer span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--olive);
}

@keyframes pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.75);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 28px, 1160px);
  }

  .institutional-header {
    min-height: 98px;
  }

  .crest {
    width: 48px;
    height: 59px;
  }

  .eyebrow {
    font-size: 1rem;
  }

  .institution {
    font-size: 0.53rem;
  }

  .course-badge {
    padding: 8px 10px;
  }

  .course-badge span {
    font-size: 1rem;
  }

  .hero {
    padding: 44px 0 34px;
  }

  .timer-panel {
    margin: 36px 0 28px;
    padding: 28px 15px 26px;
  }

  .countdown {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
  }

  .separator {
    display: none;
  }

  .time-unit strong {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .time-unit span {
    margin-top: 9px;
    font-size: 0.47rem;
    letter-spacing: 0.1em;
  }

  footer {
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    line-height: 1.5;
  }

  footer span {
    display: none;
  }
}

@media (max-width: 410px) {
  .institution {
    display: none;
  }

  .brand {
    gap: 9px;
  }

  .course-badge small {
    display: none;
  }

  h1 {
    font-size: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
