@font-face {
  font-family: "DB Helvethaica X";
  src: url("./assets/db-helvethaica-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "DB Helvethaica X";
  src: url("./assets/db-helvethaica-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --brand: #f04c23;
  --brand-deep: #c93617;
  --brand-pale: #fff0eb;
  --ink: #343a40;
  --muted: #6c757d;
  --line: rgba(57, 64, 71, 0.14);
  --paper: #fffdf9;
  --surface: #f7f2eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 44%, rgba(240, 76, 35, 0.1), transparent 28rem),
    linear-gradient(135deg, var(--paper) 0%, #fffaf5 48%, var(--surface) 100%);
  font-family: "DB Helvethaica X", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(57, 64, 71, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 64, 71, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 75%, transparent);
  content: "";
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  font-family: sans-serif;
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(1440px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 28px clamp(24px, 5vw, 76px) 24px;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
}

.site-header {
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  display: block;
  width: 126px;
  height: auto;
}

.header-note,
.eyebrow,
.site-footer {
  letter-spacing: 0.16em;
}

.header-note {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.maintenance {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(36px, 5vw, 90px);
  padding: clamp(52px, 7vh, 92px) 0 clamp(36px, 5vh, 64px);
}

.message-panel {
  position: relative;
  z-index: 5;
  min-width: 0;
  width: 100%;
  max-width: 650px;
  animation: reveal-up 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--brand-deep);
  font-size: 16px;
  font-weight: 700;
}

.eyebrow::before {
  width: 36px;
  height: 2px;
  background: var(--brand);
  content: "";
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(58px, 6.2vw, 94px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.88;
}

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

.lead {
  max-width: 580px;
  margin: 34px 0 0;
  color: #50575e;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 34px;
  padding: 9px 18px 8px;
  color: var(--brand-deep);
  background: rgba(255, 240, 235, 0.72);
  border: 1px solid rgba(240, 76, 35, 0.25);
  border-radius: 999px;
  font-size: 19px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(240, 76, 35, 0.13);
  animation: status-pulse 2.2s ease-in-out infinite;
}

.reassurance {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 510px;
  margin-top: 28px;
  padding: 16px 16px 14px 20px;
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid rgba(57, 64, 71, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(57, 64, 71, 0.08);
  backdrop-filter: blur(10px);
}

.contact-kicker {
  margin: 0;
  color: var(--brand-deep);
  font-size: 15px;
  font-weight: 700;
}

.contact-panel h2 {
  margin: 1px 0 9px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.contact-details {
  min-width: 0;
}

.contact-panel dl,
.contact-panel dd {
  margin: 0;
}

.contact-panel dl {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
}

.contact-panel dt {
  color: var(--muted);
  font-family: sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-panel dd {
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
}

.contact-panel a {
  text-decoration-color: rgba(240, 76, 35, 0.45);
  text-underline-offset: 3px;
}

.qr-code {
  margin: 0;
  text-align: center;
}

.qr-code img {
  display: block;
  width: 98px;
  height: 98px;
  margin: 0 auto 3px;
  background: #fff;
  border: 4px solid #fff;
  border-radius: 6px;
}

.qr-code figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.learning-orbit {
  position: relative;
  width: min(41vw, 570px);
  aspect-ratio: 1;
  justify-self: center;
  animation: reveal-scale 900ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.learning-orbit::after {
  position: absolute;
  right: 5%;
  bottom: 4%;
  width: 46%;
  height: 12%;
  background: rgba(62, 47, 41, 0.12);
  border-radius: 50%;
  filter: blur(22px);
  transform: rotate(-9deg);
  content: "";
}

.maintenance-code {
  position: absolute;
  top: -8%;
  right: -2%;
  color: rgba(240, 76, 35, 0.075);
  font-size: clamp(120px, 17vw, 250px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(240, 76, 35, 0.32);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
}

.orbit-outer {
  width: 96%;
  height: 62%;
  animation: orbit-float 7s ease-in-out infinite;
}

.orbit-middle {
  width: 76%;
  height: 76%;
  border-color: rgba(57, 64, 71, 0.2);
  transform: translate(-50%, -50%) rotate(42deg);
  animation: orbit-float-reverse 8s ease-in-out infinite;
}

.orbit-inner {
  width: 55%;
  height: 91%;
  transform: translate(-50%, -50%) rotate(76deg);
  animation: orbit-float 9s ease-in-out infinite;
}

.orbit-node {
  position: absolute;
  width: 17px;
  height: 17px;
  background: var(--brand);
  border: 4px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(188, 59, 26, 0.25);
}

.node-one {
  top: 9%;
  left: 19%;
}

.node-two {
  right: 3%;
  bottom: 27%;
  background: var(--ink);
}

.node-three {
  top: 20%;
  right: 7%;
}

.sun-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 34% 28%, #ff9b79 0%, #f04c23 40%, #c93617 100%);
  border-radius: 50%;
  box-shadow:
    0 36px 65px rgba(188, 59, 26, 0.24),
    inset -20px -22px 38px rgba(91, 22, 6, 0.16),
    inset 12px 12px 28px rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -50%);
}

.book-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 29%;
  color: white;
  filter: drop-shadow(0 12px 16px rgba(83, 22, 8, 0.2));
  transform: translate(-50%, -50%);
}

.book-mark svg {
  display: block;
  width: 100%;
}

.site-footer {
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.footer-line {
  width: 38px;
  height: 1px;
  background: var(--line);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-scale {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(240, 76, 35, 0.12);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(240, 76, 35, 0.03);
  }
}

@keyframes orbit-float {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-14deg);
  }
  50% {
    transform: translate(-50%, -52%) rotate(-10deg);
  }
}

@keyframes orbit-float-reverse {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(42deg);
  }
  50% {
    transform: translate(-48%, -50%) rotate(38deg);
  }
}

@media (max-width: 920px) {
  .page-shell {
    padding-inline: clamp(22px, 7vw, 60px);
  }

  .maintenance {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 54px 0 42px;
  }

  .message-panel {
    max-width: 700px;
  }

  h1 {
    font-size: clamp(56px, 11vw, 82px);
  }

  .learning-orbit {
    width: min(78vw, 500px);
    margin-top: -24px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    min-height: 100svh;
    padding: 20px 20px 18px;
  }

  .site-header {
    padding-bottom: 13px;
  }

  .brand-logo {
    width: 102px;
  }

  .header-note {
    font-size: 11px;
  }

  .maintenance {
    padding: 42px 0 28px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .eyebrow::before {
    width: 24px;
  }

  h1 {
    font-size: clamp(49px, 15vw, 68px);
    line-height: 0.92;
  }

  .lead {
    margin-top: 25px;
    font-size: 21px;
    overflow-wrap: anywhere;
  }

  .desktop-break {
    display: none;
  }

  .status {
    margin-top: 26px;
    padding: 8px 15px 7px;
    font-size: 17px;
  }

  .reassurance {
    margin-top: 19px;
    font-size: 17px;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px;
    margin-top: 24px;
    padding: 14px;
  }

  .contact-kicker {
    font-size: 13px;
  }

  .contact-panel h2 {
    font-size: 22px;
  }

  .contact-panel dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .contact-panel dd {
    font-size: 17px;
  }

  .qr-code img {
    width: 92px;
    height: 92px;
  }

  .qr-code figcaption {
    font-size: 10px;
  }

  .learning-orbit {
    width: min(88vw, 390px);
    margin-top: -18px;
  }

  .maintenance-code {
    top: -3%;
    right: 1%;
  }

  .site-footer {
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}

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