:root {
  --sg-shell: #243551;
  --sg-brand: #1b2a4a;
  --sg-ink: #23272f;
  --sg-muted: #6e7684;
  --sg-gold: #b08d2e;
  --sg-paper: #f5f4f0;
  --sg-white: #ffffff;
  --sg-line: rgba(27, 42, 74, 0.13);
  --sg-glass: rgba(255, 255, 255, 0.66);
  --sg-glass-strong: rgba(255, 255, 255, 0.8);
  --sg-glass-edge: rgba(255, 255, 255, 0.82);
  --sg-shadow: 0 18px 50px rgba(27, 42, 74, 0.09), 0 3px 12px rgba(27, 42, 74, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --sg-width: min(1080px, 86vw);
  color-scheme: light dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sg-paper);
  color: var(--sg-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(176, 141, 46, 0.28); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--sg-white);
  color: var(--sg-brand);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(36, 53, 81, 0.94);
  color: #fff;
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
}
.site-header__inner {
  display: flex;
  width: var(--sg-width);
  min-height: 82px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 23px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}
.site-brand img {
  width: 43px;
  height: 43px;
  border-radius: 10px;
}
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--sg-gold);
  content: "";
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.site-footer {
  background: var(--sg-shell);
  color: rgba(255, 255, 255, 0.74);
}
.site-footer__inner {
  display: grid;
  width: var(--sg-width);
  margin: 0 auto;
  padding: 54px 0 34px;
  grid-template-columns: 1.3fr 1fr;
  gap: 42px;
}
.site-footer__brand { color: #fff; font-size: 22px; font-weight: 600; }
.site-footer p { max-width: 560px; margin: 9px 0 0; font-size: 14px; line-height: 1.7; }
.site-footer__links { display: flex; flex-wrap: wrap; align-content: start; justify-content: flex-end; gap: 10px 22px; }
.site-footer__links a { color: rgba(255, 255, 255, 0.76); font-size: 14px; text-decoration: none; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom {
  width: var(--sg-width);
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sg-gold);
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 19px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
  color: #1b2a4a;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button--outline { border-color: rgba(255, 255, 255, 0.42); background: transparent; color: #fff; }
.button--brand { background: var(--sg-brand); color: #fff; }

.home { background: var(--sg-shell); color: #fff; }
.home .site-header { position: absolute; top: 0; right: 0; left: 0; }
.hero {
  display: grid;
  width: var(--sg-width);
  min-height: min(790px, 92vh);
  margin: 0 auto;
  padding: 130px 0 74px;
  align-items: center;
  grid-template-columns: minmax(300px, 0.9fr) minmax(350px, 1.1fr);
  gap: clamp(36px, 7vw, 96px);
}
.hero__visual { position: relative; min-height: 560px; }
.hero__visual img {
  position: relative;
  width: min(100%, 560px);
  height: 570px;
  margin: 0 auto;
  object-fit: contain;
}
.hero h1 { margin: 0 0 20px; color: #fff; font-size: clamp(46px, 7vw, 78px); font-weight: 650; line-height: 1; }
.hero h2 { margin: 0 0 24px; color: #fff; font-size: clamp(29px, 4vw, 49px); font-weight: 500; line-height: 1.12; }
.hero h2 span { display: block; color: rgba(255, 255, 255, 0.58); }
.hero__tagline { margin: 0 0 22px; color: #d8bd67; font-size: 14px; font-weight: 600; }
.hero__copy { max-width: 680px; margin: 0; color: rgba(255, 255, 255, 0.79); font-size: 17px; line-height: 1.72; }

.home-band { background: #f4f3ef; color: var(--sg-ink); }
.home-band__inner { width: var(--sg-width); margin: 0 auto; padding: 92px 0; }
.home-band__header { display: grid; margin-bottom: 48px; grid-template-columns: 0.8fr 1.2fr; gap: 54px; }
.home-band h2 { margin: 0; color: var(--sg-brand); font-size: clamp(31px, 4.5vw, 47px); line-height: 1.12; }
.home-band__header p { margin: 0; font-size: 17px; line-height: 1.8; }
.product-panel {
  overflow: hidden;
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: 8px;
  background: #0a0b0e;
  box-shadow: 0 22px 60px rgba(27, 42, 74, 0.12);
}
.product-panel img { width: 100%; max-height: 520px; object-fit: contain; }
.product-grid { display: grid; margin-top: 22px; grid-template-columns: 1fr 1fr; gap: 22px; }
.product-grid img { width: 100%; height: 330px; object-fit: contain; }

.page-shell {
  position: relative;
  overflow: hidden;
  background: var(--sg-paper);
}
.page-shell::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 350px;
  background: rgba(27, 42, 74, 0.055);
  content: "";
  pointer-events: none;
}
.page-intro { position: relative; width: var(--sg-width); margin: 0 auto; padding: 78px 0 55px; }
.page-intro h1 { margin: 8px 0 16px; color: var(--sg-brand); font-size: clamp(37px, 6vw, 58px); line-height: 1.08; }
.page-intro p { max-width: 720px; margin: 0; color: var(--sg-muted); font-size: 17px; }

.story-page { background: var(--sg-shell); color: rgba(255, 255, 255, 0.84); }
.story-notes { width: min(830px, 86vw); margin: 0 auto; padding: 88px 0 94px; text-align: center; }
.story-notes h1 { margin: 8px 0 36px; color: #fff; font-size: clamp(38px, 6vw, 59px); line-height: 1.08; }
.story-notes p { margin: 0 0 18px; font-size: 17px; line-height: 1.8; }
.story-section {
  display: grid;
  width: var(--sg-width);
  margin: 0 auto;
  padding: 76px 0;
  align-items: center;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: clamp(44px, 7vw, 100px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.story-section--reverse { grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr); }
.story-section--reverse .story-section__image { order: -1; }
.story-section__image img { width: 100%; max-height: 660px; border-radius: 8px; object-fit: cover; box-shadow: 0 25px 70px rgba(0, 0, 0, 0.24); }
.story-section__image--tall img { aspect-ratio: 1 / 2; object-position: center; }
.story-section h2 { margin: 0 0 24px; color: #fff; font-size: 30px; line-height: 1.2; }
.story-section__lead { color: #fff; font-size: 18px; font-weight: 500; }
.story-section p { margin: 0 0 18px; }
.story-section code { padding: 2px 6px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 5px; color: #fff; }
.story-quote { margin-top: 28px !important; padding: 20px 0 0 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); border-left: 3px solid var(--sg-gold); color: #fff; font-weight: 500; }
.commitment {
  margin: 32px 0;
  padding: 24px;
  border: 1px solid rgba(203, 168, 78, 0.32);
  border-left: 4px solid #d8b33c;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}
.commitment__label { color: #d8b33c; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.commitment__main { display: grid; margin: 13px 0; grid-template-columns: 92px 1fr; gap: 20px; align-items: center; }
.commitment__number { color: #d8b33c; font-size: 46px; font-weight: 700; line-height: 1; }
.commitment__main p { margin: 0; }
.commitment__note { color: rgba(255, 255, 255, 0.6); font-size: 14px; }

.status-layout, .contact-layout { position: relative; width: var(--sg-width); margin: 0 auto; padding: 0 0 96px; }
.glass-card {
  border: 1px solid var(--sg-glass-edge);
  border-radius: 8px;
  background: var(--sg-glass);
  box-shadow: var(--sg-shadow);
  backdrop-filter: saturate(140%) blur(22px);
  -webkit-backdrop-filter: saturate(140%) blur(22px);
}
.status-summary { display: flex; padding: 26px 28px; align-items: center; justify-content: space-between; gap: 28px; }
.status-summary--world { display: grid; grid-template-columns: minmax(250px, 0.7fr) minmax(560px, 1.3fr); align-items: start; }
.status-summary h2 { margin: 0 0 3px; color: var(--sg-brand); font-size: 25px; }
.status-summary p { margin: 0; color: var(--sg-muted); }
.overall-state { display: inline-flex; margin-top: 22px; padding: 7px 11px; align-items: center; gap: 8px; border: 1px solid rgba(54, 164, 101, 0.3); border-radius: 999px; background: rgba(54, 164, 101, 0.11); color: #28764a; font-size: 12.5px; font-weight: 700; line-height: 1; }
.overall-state::before { width: 9px; height: 9px; border-radius: 50%; background: #36a465; content: ""; box-shadow: 0 0 0 4px rgba(54, 164, 101, 0.12); }
.overall-state[data-state="checking"], .overall-state[data-state="unknown"] { border-color: rgba(141, 150, 164, 0.28); background: rgba(141, 150, 164, 0.1); color: var(--sg-muted); }
.overall-state[data-state="checking"]::before, .overall-state[data-state="unknown"]::before { background: #8d96a4; box-shadow: 0 0 0 4px rgba(141, 150, 164, 0.12); }
.overall-state[data-state="degraded"] { border-color: rgba(210, 116, 62, 0.32); background: rgba(210, 116, 62, 0.11); color: #a34e25; }
.overall-state[data-state="degraded"]::before { background: #d2743e; box-shadow: 0 0 0 4px rgba(210, 116, 62, 0.13); }
.status-tag { white-space: nowrap; color: var(--sg-gold); font-size: 12px; font-weight: 650; text-transform: uppercase; }
.status-summary--world .status-tag { white-space: normal; }
.status-meta { min-width: 0; }
.status-times { display: grid; margin-top: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.status-time { min-width: 0; padding: 9px 0; border-top: 1px solid var(--sg-line); color: var(--sg-muted); font-size: 12.5px; line-height: 1.5; }
.status-time span { display: block; color: var(--sg-brand); font-weight: 600; }
.status-time time { display: block; overflow-wrap: anywhere; }
.service-list { margin-top: 28px; overflow: hidden; }
.service-row { display: grid; padding: 22px 25px; grid-template-columns: 1fr auto; gap: 28px; align-items: center; border-bottom: 1px solid var(--sg-line); }
.service-row:last-child { border-bottom: 0; }
.service-row h3 { margin: 0; color: var(--sg-brand); font-size: 17px; }
.service-row p { margin: 2px 0 0; color: var(--sg-muted); font-size: 14px; line-height: 1.55; }
.service-state { display: inline-flex; align-items: center; gap: 8px; color: #28764a; font-size: 13.5px; font-weight: 600; }
.service-state::before { width: 9px; height: 9px; border-radius: 50%; background: #36a465; content: ""; box-shadow: 0 0 0 4px rgba(54, 164, 101, 0.11); }
.service-state[data-state="checking"], .service-state[data-state="unknown"] { color: var(--sg-muted); }
.service-state[data-state="checking"]::before, .service-state[data-state="unknown"]::before { background: #8d96a4; box-shadow: 0 0 0 4px rgba(141, 150, 164, 0.12); }
.service-state[data-state="degraded"] { color: #a34e25; }
.service-state[data-state="degraded"]::before { background: #d2743e; box-shadow: 0 0 0 4px rgba(210, 116, 62, 0.13); }
.preview-note { margin-top: 22px; color: var(--sg-muted); font-size: 13.5px; }

.contact-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 34px; }
.contact-copy, .contact-form { padding: 28px; }
.contact-copy h2, .contact-form h2 { margin: 0 0 13px; color: var(--sg-brand); font-size: 25px; }
.contact-copy p { margin: 0 0 18px; color: var(--sg-muted); }
.contact-email { color: var(--sg-brand); font-weight: 600; text-decoration-color: var(--sg-gold); text-underline-offset: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--sg-brand); font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--sg-line);
  border-radius: 6px;
  outline: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--sg-ink);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sg-gold); box-shadow: 0 0 0 3px rgba(176, 141, 46, 0.13); }
.form-note { margin: 16px 0 0; color: var(--sg-muted); font-size: 12.5px; line-height: 1.55; }

.error-page { display: grid; min-height: 70vh; padding: 70px 20px; place-items: center; text-align: center; }
.error-page h1 { margin: 4px 0 14px; color: var(--sg-brand); font-size: clamp(52px, 12vw, 104px); line-height: 1; }
.error-page p { max-width: 540px; color: var(--sg-muted); }

/* Legal pages retain their authoritative document styles while sharing the site shell. */
.legal-page .site-header + .wrap { padding-top: 72px; }
.legal-page .wrap { width: min(1080px, 86vw); max-width: none; }
.legal-page .lede, .legal-page nav.toc {
  border: 1px solid var(--sg-glass-edge) !important;
  border-radius: 8px !important;
  background: var(--sg-glass) !important;
  box-shadow: var(--sg-shadow);
  backdrop-filter: saturate(140%) blur(22px);
  -webkit-backdrop-filter: saturate(140%) blur(22px);
}
.legal-page .lede { border-left: 3px solid var(--sg-gold) !important; }
.legal-page main.wrap > footer { margin-bottom: 0; }
.legal-page .site-footer { margin-top: 0; }

@media (max-width: 940px) {
  .site-header__inner { min-height: 72px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 7vw 25px;
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--sg-shell);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a[aria-current="page"]::after { bottom: -4px; }
  .hero { grid-template-columns: 0.9fr 1.1fr; gap: 35px; }
  .hero__visual { min-height: 450px; }
  .hero__visual img { height: 465px; }
  .story-section, .story-section--reverse { grid-template-columns: 1fr 0.72fr; gap: 44px; }
  .story-section--reverse { grid-template-columns: 0.72fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .status-summary--world { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --sg-width: min(100% - 36px, 1080px); }
  .site-brand { font-size: 20px; }
  .hero { min-height: auto; padding-top: 112px; grid-template-columns: 1fr; text-align: center; }
  .hero__content { order: -1; }
  .hero__copy { margin-right: auto; margin-left: auto; }
  .hero .button-row { justify-content: center; }
  .hero__visual { min-height: 390px; }
  .hero__visual img { height: 405px; }
  .home-band__inner { padding: 70px 0; }
  .home-band__header { grid-template-columns: 1fr; gap: 22px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-grid img { height: auto; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__links { justify-content: flex-start; }
  .story-notes { padding: 65px 0 72px; text-align: left; }
  .story-section, .story-section--reverse { padding: 60px 0; grid-template-columns: 1fr; }
  .story-section--reverse .story-section__image { order: initial; }
  .story-section__image img { max-height: 520px; }
  .story-section__image--tall img { max-height: 720px; }
  .status-summary { align-items: flex-start; flex-direction: column; gap: 14px; }
  .status-meta { width: 100%; min-width: 0; }
  .status-times { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .commitment__main { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --sg-brand: #d9e2f5;
    --sg-ink: #e6e4df;
    --sg-muted: #9da5b2;
    --sg-gold: #cba84e;
    --sg-paper: #10141c;
    --sg-line: rgba(217, 226, 245, 0.12);
    --sg-glass: rgba(29, 35, 46, 0.67);
    --sg-glass-strong: rgba(31, 38, 50, 0.82);
    --sg-glass-edge: rgba(255, 255, 255, 0.1);
    --sg-shadow: 0 22px 60px rgba(0, 0, 0, 0.3), 0 3px 14px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
  .home-band { background: #10141c; }
  .product-panel { border-color: rgba(255, 255, 255, 0.1); }
  .field input, .field select, .field textarea { background: rgba(255, 255, 255, 0.055); color: var(--sg-ink); }
  .service-state { color: #70c995; }
  .service-state[data-state="checking"], .service-state[data-state="unknown"] { color: #aab1bd; }
  .service-state[data-state="degraded"] { color: #efa177; }
  .overall-state { color: #70c995; }
  .overall-state[data-state="checking"], .overall-state[data-state="unknown"] { color: #aab1bd; }
  .overall-state[data-state="degraded"] { color: #efa177; }
  .button--brand { background: #d9e2f5; color: #1b2a4a; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .glass-card, .legal-page .lede, .legal-page nav.toc { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass-card, .legal-page .lede, .legal-page nav.toc { background: var(--sg-glass-strong) !important; }
}
@media print {
  .site-header, .site-footer, .nav-toggle { display: none !important; }
}
