:root {
  color-scheme: light;
  --navy: #1f4387;
  --ink: #172742;
  --page: #ffffff;
  --muted: #536780;
  --accent: #1f4387;
  --line: #d6e0ef;
  --grid: rgba(31, 67, 135, .055);
  --glow: rgba(121, 159, 222, .16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
html, body { min-width: 320px; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #4d6fae; outline-offset: 4px; }

.site-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--page);
}

.site-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4.1rem 0 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
  pointer-events: none;
}

.site-header, .site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  height: 4.1rem;
  flex: 0 0 4.1rem;
  padding-inline: max(1.5rem, calc((100vw - 1120px) / 2));
}

.site-header { color: #fff; background: var(--navy); }
/* Compensate for whitespace inside the SVG so the visible mark aligns with the footer copyright. */
.brand { display: inline-flex; align-items: center; min-width: 0; margin-left: -1rem; text-decoration: none; }
.brand-logo { display: block; width: 13rem; height: 3.2rem; object-fit: cover; object-position: left center; }

.hero { position: relative; display: grid; place-items: center; flex: 1; padding: 6rem 1.5rem 7rem; text-align: center; }
.hero-content { position: relative; z-index: 1; width: 100%; }
.status-light { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.animated-title { display: flex; align-items: baseline; justify-content: center; gap: .12em; margin: 0 auto; white-space: nowrap; font-size: clamp(2.5rem, 3.55vw, 4.55rem); font-weight: 750; line-height: 1.15; letter-spacing: -.06em; }
.title-stanbury, .title-product { display: inline-block; }
.title-insert { display: inline-block; width: 0; overflow: hidden; color: var(--accent); opacity: 0; vertical-align: baseline; transition: width 850ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease; }
.title-insert.is-visible { opacity: 1; }
.title-insert > span { display: inline-block; padding-inline: .18em; white-space: nowrap; }
.title-insert.is-visible > span { animation: reveal-word 850ms ease-in-out both; }
.title-period { color: var(--accent); }
.launch-row { display: flex; align-items: center; justify-content: center; gap: 1.15rem; margin-top: 3rem; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .24em; }
.launch-rule { width: 28px; height: 1px; background: var(--accent); opacity: .5; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; padding-block: 1.55rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.footer-identity { display: inline-flex; align-items: center; gap: .3rem; }
.footer-status { display: inline-flex; align-items: center; gap: .5rem; }
.site-footer a { justify-self: end; color: var(--accent); font-weight: 700; text-decoration: none; transition: opacity 200ms ease; }
.site-footer a:hover { opacity: .72; }
.site-footer a span { padding-left: .25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .animated-title { font-size: clamp(2.3rem, 4.3vw, 3.8rem); }
}

@media (max-width: 700px) {
  .brand { margin-left: -1.5rem; }
  .brand-logo { width: 11.5rem; height: 3.2rem; }
  .hero { padding-block: 5rem 7rem; }
  .animated-title { flex-direction: column; align-items: center; gap: 0; font-size: clamp(1.8rem, 8vw, 3.5rem); line-height: 1.14; }
  .title-insert { height: 0; width: auto !important; transition: height 700ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease; }
  /* Keep the middle line's space while its words swap; close it after the cycle. */
  .title-insert.is-reserved { height: 1.16em; }
}

@keyframes reveal-word {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@media (max-width: 700px) {
  .site-footer { grid-template-columns: auto auto auto; gap: .4rem; padding-inline: 1rem; font-size: .72rem; white-space: nowrap; }
  .footer-status { justify-self: center; }
  .site-footer a { justify-self: end; }
}

@media (max-width: 360px) {
  .site-footer { font-size: .69rem; }
  .footer-open { display: none; }
}

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