/* ==========================================================================
   Altura Systems
   Dark navy is the canonical treatment; light alabaster is the alternate.

   Gold (#D4A355) measures 2.05:1 on Alabaster, well under WCAG AA, so it is
   NEVER text in light mode. It appears there only as a graphic: rules, the
   mark's accent chevron, borders. On Navy it measures 7.2:1 and is safe as
   text, so --accent-ink resolves per-mode rather than being a fixed gold.
   ========================================================================== */

:root{
  /* Brand constants */
  --navy:#0A1E3F;
  --gold:#D4A355;
  --alabaster:#F5F2EC;
  --obsidian:#0D0D0F;
  --horizon:#8892A6;
  --mist:#DCDEE4;

  /* Dark treatment (canonical) */
  --bg:var(--navy);
  --surface:#0E2447;
  --surface-2:#13305A;
  --ink:var(--alabaster);
  --ink-muted:var(--mist);
  --ink-faint:var(--horizon);
  --rule:rgba(245,242,236,.14);
  --rule-strong:rgba(245,242,236,.26);
  --accent:var(--gold);
  --accent-ink:var(--gold);
  --focus:var(--gold);
  --shadow:0 1px 2px rgba(0,0,0,.28), 0 12px 32px -12px rgba(0,0,0,.55);

  --mark-base:var(--gold);
  --mark-accent:var(--alabaster);

  --ok:#4FC79A;
  --warn:#E0B667;
  --down:#E5695B;
  --unknown:var(--horizon);

  /* Scale */
  --shell:72rem;
  --prose:38rem;
  --step:clamp(3.5rem,9vw,6.5rem);
  --radius:4px;

  color-scheme:dark;
}

@media (prefers-color-scheme: light){
  :root{
    --bg:var(--alabaster);
    --surface:#FFFFFF;
    --surface-2:#EDE9E1;
    --ink:var(--navy);
    --ink-muted:#2C3E5C;
    --ink-faint:#5A6880;
    --rule:rgba(10,30,63,.16);
    --rule-strong:rgba(10,30,63,.30);
    --accent-ink:var(--navy);
    --focus:var(--navy);
    --shadow:0 1px 2px rgba(10,30,63,.06), 0 12px 32px -14px rgba(10,30,63,.22);

    --mark-base:var(--navy);
    --mark-accent:var(--gold);

    --ok:#1E7A55;
    --warn:#8A5A12;
    --down:#B03A2E;
    --unknown:#5A6880;

    color-scheme:light;
  }
}

/* --------------------------------------------------------------- Reset --- */

*,*::before,*::after{box-sizing:border-box}

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:6rem;
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}

body{
  margin:0;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size:1rem;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img,svg{max-width:100%}
img{height:auto}

:where(a){color:inherit}

:where(a,button,input,textarea,select,summary):focus-visible{
  outline:2px solid var(--focus);
  outline-offset:3px;
  border-radius:2px;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:60;
  padding:.75rem 1.25rem;
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--accent);
  border-radius:var(--radius);
  text-decoration:none;
  font-weight:600;
}
.skip-link:focus{left:1rem;top:1rem}

.visually-hidden{
  position:absolute;
  width:1px;height:1px;
  margin:-1px;padding:0;border:0;
  clip-path:inset(50%);
  overflow:hidden;
  white-space:nowrap;
}

/* ---------------------------------------------------------------- Shell -- */

.shell{
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-inline:clamp(1.25rem,5vw,2.5rem);
}

main{flex:1 0 auto}

/* --------------------------------------------------------------- Header -- */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:saturate(180%) blur(12px);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--rule);
}

@supports not (backdrop-filter: blur(1px)){
  .site-header{background:var(--bg)}
}

.site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
  min-height:4.5rem;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:.75rem;
  text-decoration:none;
  padding:.35rem .25rem;
  transition:opacity 200ms ease;
}
.brand:hover{opacity:.75}

.brand__mark{width:26px;height:auto;flex:none}
.brand__mark .base{fill:var(--mark-base)}
.brand__mark .accent{fill:var(--mark-accent)}

.brand__text{display:flex;flex-direction:column;line-height:1}
.brand__name{
  font-weight:700;
  font-size:1rem;
  letter-spacing:.12em;
}
.brand__sub{
  margin-top:.28em;
  font-weight:400;
  font-size:.5rem;
  letter-spacing:.34em;
  color:var(--ink-faint);
}

/* Nav */

.site-nav ul{
  display:flex;
  align-items:center;
  gap:.25rem;
  margin:0;
  padding:0;
  list-style:none;
}

.site-nav a{
  display:block;
  padding:.6rem .75rem;
  font-size:.9375rem;
  font-weight:500;
  color:var(--ink-muted);
  text-decoration:none;
  border-radius:var(--radius);
  transition:color 180ms ease, background-color 180ms ease;
}
.site-nav a:hover{color:var(--ink);background:var(--surface)}
.site-nav a[aria-current="page"]{
  color:var(--ink);
  box-shadow:inset 0 -2px 0 var(--accent);
}

.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;height:44px;
  margin-right:-.5rem;
  padding:0;
  background:none;
  border:1px solid var(--rule);
  border-radius:var(--radius);
  color:var(--ink);
  cursor:pointer;
  transition:border-color 180ms ease, background-color 180ms ease;
}
.nav-toggle:hover{border-color:var(--rule-strong);background:var(--surface)}
.nav-toggle__icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.nav-toggle__cross{display:none}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars{display:none}
.nav-toggle[aria-expanded="true"] .nav-toggle__cross{display:block}

@media (max-width:56rem){
  .nav-toggle{display:inline-flex}

  .site-nav{
    position:absolute;
    inset-inline:0;
    top:100%;
    background:var(--bg);
    border-bottom:1px solid var(--rule);
    box-shadow:var(--shadow);
    display:none;
  }
  .site-nav.is-open{display:block}

  .site-nav ul{
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:.5rem clamp(1.25rem,5vw,2.5rem) 1.25rem;
  }
  .site-nav a{
    padding:.85rem .25rem;
    font-size:1rem;
    border-bottom:1px solid var(--rule);
    border-radius:0;
  }
  .site-nav li:last-child a{border-bottom:0}
  .site-nav a[aria-current="page"]{box-shadow:inset 3px 0 0 var(--accent);padding-left:.9rem}
}

/* ----------------------------------------------------------- Typography -- */

.display,h1,h2,h3{
  font-family:Newsreader,Georgia,"Times New Roman",serif;
  font-optical-sizing:auto;
  font-weight:300;
  letter-spacing:-.015em;
  line-height:1.12;
  text-wrap:balance;
  margin:0;
}

h1{font-size:clamp(2.25rem,6vw,3.75rem)}
h2{font-size:clamp(1.75rem,4vw,2.5rem)}
h3{
  font-size:clamp(1.125rem,2.2vw,1.3125rem);
  font-weight:500;
  line-height:1.3;
  letter-spacing:-.005em;
}

.eyebrow{
  display:block;
  margin:0 0 1.25rem;
  font-family:Inter,sans-serif;
  font-size:.6875rem;
  font-weight:600;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--ink-faint);
}

.lede{
  margin:1.5rem 0 0;
  max-width:var(--prose);
  font-size:clamp(1.0625rem,2.2vw,1.25rem);
  line-height:1.6;
  color:var(--ink-muted);
  text-wrap:pretty;
}

p{margin:0 0 1.15em;text-wrap:pretty}
p:last-child{margin-bottom:0}

.rule{
  width:2.5rem;
  height:2px;
  margin:2rem 0;
  border:0;
  background:var(--accent);
}
.rule--center{margin-inline:auto}

/* -------------------------------------------------------------- Section -- */

.section{padding-block:var(--step)}
.section--tight{padding-block:calc(var(--step) * .6)}
.section--ruled{border-top:1px solid var(--rule)}
.section--surface{background:var(--surface)}

.section__head{max-width:var(--prose);margin-bottom:clamp(2.5rem,5vw,3.5rem)}
.section__head p{color:var(--ink-muted);margin-top:1rem}
.section__head p:last-child{margin-bottom:0}

/* ----------------------------------------------------------------- Hero -- */

.hero{
  padding-block:clamp(4rem,12vw,8.5rem) clamp(3.5rem,9vw,6.5rem);
}
.hero__mark{
  width:clamp(52px,7vw,68px);
  height:auto;
  display:block;
  margin-bottom:clamp(2rem,4vw,2.75rem);
}
.hero__mark .base{fill:var(--mark-base)}
.hero__mark .accent{fill:var(--mark-accent)}

.hero h1{max-width:18ch}
.hero .lede{margin-top:1.75rem}

.hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:.875rem;
  margin-top:clamp(2rem,4vw,2.75rem);
}

/* -------------------------------------------------------------- Buttons -- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  min-height:44px;
  padding:.7rem 1.5rem;
  font-family:inherit;
  font-size:.9375rem;
  font-weight:600;
  letter-spacing:.01em;
  text-decoration:none;
  border-radius:var(--radius);
  border:1px solid transparent;
  cursor:pointer;
  transition:background-color 200ms ease, border-color 200ms ease, color 200ms ease, opacity 200ms ease;
}

.btn--primary{
  background:var(--accent);
  border-color:var(--accent);
  color:var(--navy);
}
.btn--primary:hover{background:#E0B87A;border-color:#E0B87A}

.btn--ghost{
  background:transparent;
  border-color:var(--rule-strong);
  color:var(--ink);
}
.btn--ghost:hover{border-color:var(--ink);background:var(--surface)}

.btn[disabled]{opacity:.55;cursor:not-allowed}

.link-arrow{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  min-height:44px;
  font-size:.9375rem;
  font-weight:600;
  color:var(--accent-ink);
  text-decoration:none;
  transition:gap 180ms ease, opacity 180ms ease;
}
.link-arrow::after{content:"\2192";transition:transform 180ms ease}
.link-arrow:hover{opacity:.78}
.link-arrow:hover::after{transform:translate3d(3px,0,0)}

@media (prefers-reduced-motion:reduce){
  .link-arrow:hover::after{transform:none}
}

/* ---------------------------------------------------------------- Cards -- */

.grid{
  display:grid;
  gap:clamp(1.25rem,2.5vw,1.75rem);
}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(min(100%,26rem),1fr))}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr))}

.card{
  padding:clamp(1.5rem,3vw,2rem);
  background:var(--surface);
  border:1px solid var(--rule);
  border-radius:var(--radius);
}
.section--surface .card{background:var(--bg)}

.card__icon{
  width:28px;height:28px;
  margin-bottom:1.25rem;
  fill:none;
  stroke:var(--accent);
  stroke-width:1.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.card h3{margin-bottom:.65rem}
.card p{color:var(--ink-muted);font-size:.9375rem}

.card__list{
  margin:1rem 0 0;
  padding:0;
  list-style:none;
  font-size:.9375rem;
  color:var(--ink-muted);
}
.card__list li{
  position:relative;
  padding-left:1.15rem;
  margin-bottom:.4rem;
}
.card__list li::before{
  content:"";
  position:absolute;
  left:0;top:.62em;
  width:5px;height:5px;
  border-radius:50%;
  background:var(--accent);
}

/* Numbered capability rows */

.rows{
  display:grid;
  gap:0;
  border-top:1px solid var(--rule);
}
.row{
  display:grid;
  grid-template-columns:4rem 1fr;
  gap:clamp(1rem,3vw,2.5rem);
  padding-block:clamp(2rem,4vw,2.75rem);
  border-bottom:1px solid var(--rule);
}
.row__num{
  font-family:Newsreader,Georgia,serif;
  font-size:1.125rem;
  font-weight:400;
  color:var(--accent-ink);
  line-height:1.4;
}
.row__body h3{margin-bottom:.75rem}
.row__body p{color:var(--ink-muted);max-width:var(--prose)}

@media (max-width:40rem){
  .row{grid-template-columns:1fr;gap:.5rem}
}

/* Stats */

.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));
  gap:clamp(1.5rem,3vw,2.5rem);
}
.stat__value{
  display:block;
  font-family:Newsreader,Georgia,serif;
  font-weight:300;
  font-size:clamp(2rem,4.5vw,2.75rem);
  line-height:1.05;
  letter-spacing:-.02em;
}
.stat__label{
  display:block;
  margin-top:.6rem;
  font-size:.875rem;
  color:var(--ink-faint);
}

/* Callout */

.callout{
  padding:clamp(1.5rem,3vw,2rem);
  background:var(--surface);
  border:1px solid var(--rule);
  border-left:3px solid var(--accent);
  border-radius:var(--radius);
}
.callout p{color:var(--ink-muted);font-size:.9375rem}
.callout h3{margin-bottom:.65rem}

/* ----------------------------------------------------------------- CTA --- */

.cta{
  padding:clamp(2.5rem,6vw,4rem);
  background:var(--surface);
  border:1px solid var(--rule);
  border-radius:var(--radius);
  text-align:center;
}
.cta h2{max-width:20ch;margin-inline:auto}
.cta p{
  max-width:34rem;
  margin:1.25rem auto 0;
  color:var(--ink-muted);
}
.cta__actions{
  display:flex;
  flex-wrap:wrap;
  gap:.875rem;
  justify-content:center;
  margin-top:2rem;
}

/* ---------------------------------------------------------------- Prose -- */

.prose{max-width:var(--prose)}
.prose h2{
  margin-top:clamp(2.5rem,5vw,3.5rem);
  margin-bottom:1rem;
  font-size:clamp(1.375rem,3vw,1.75rem);
}
.prose h3{
  margin-top:2rem;
  margin-bottom:.65rem;
}
.prose h2:first-child,.prose h3:first-child{margin-top:0}
.prose p,.prose li{color:var(--ink-muted)}
.prose ul,.prose ol{margin:0 0 1.15em;padding-left:1.25rem}
.prose li{margin-bottom:.45rem}
.prose a{color:var(--accent-ink);text-decoration:underline;text-underline-offset:.18em}
.prose a:hover{opacity:.78}
.prose strong{color:var(--ink);font-weight:600}

.meta-note{
  margin-top:2rem;
  padding-top:1.5rem;
  border-top:1px solid var(--rule);
  font-size:.875rem;
  color:var(--ink-faint);
}

/* ----------------------------------------------------------- Definition -- */

.facts{
  margin:0;
  border-top:1px solid var(--rule);
}
.facts > div{
  display:grid;
  grid-template-columns:minmax(9rem,14rem) 1fr;
  gap:1rem 2rem;
  padding-block:.9rem;
  border-bottom:1px solid var(--rule);
}
.facts dt{
  font-size:.8125rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink-faint);
}
.facts dd{margin:0;color:var(--ink-muted)}
.facts dd a{color:var(--accent-ink);text-decoration:none;border-bottom:1px solid var(--rule-strong)}
.facts dd a:hover{opacity:.78}

@media (max-width:40rem){
  .facts > div{grid-template-columns:1fr;gap:.2rem}
}

/* ----------------------------------------------------------------- Form -- */

.form{max-width:36rem}

.field{margin-bottom:1.5rem}

.field label{
  display:block;
  margin-bottom:.5rem;
  font-size:.875rem;
  font-weight:600;
  letter-spacing:.01em;
}
.field .hint{
  display:block;
  margin-top:.4rem;
  font-size:.8125rem;
  color:var(--ink-faint);
}

.field input,
.field select,
.field textarea{
  width:100%;
  min-height:48px;
  padding:.75rem .9rem;
  font-family:inherit;
  font-size:1rem;
  line-height:1.5;
  color:var(--ink);
  background:var(--surface);
  border:1px solid var(--rule-strong);
  border-radius:var(--radius);
  transition:border-color 180ms ease;
}
.field textarea{min-height:9rem;resize:vertical}
.field input::placeholder,.field textarea::placeholder{color:var(--ink-faint)}
.field input:hover,.field select:hover,.field textarea:hover{border-color:var(--ink-faint)}

.field select{
  appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-position:calc(100% - 1.15rem) 55%, calc(100% - .8rem) 55%;
  background-size:6px 6px,6px 6px;
  background-repeat:no-repeat;
  padding-right:2.5rem;
  cursor:pointer;
}

.field--invalid input,
.field--invalid textarea,
.field--invalid select{border-color:var(--down)}

.field__error{
  display:none;
  margin-top:.4rem;
  font-size:.8125rem;
  font-weight:500;
  color:var(--down);
}
.field--invalid .field__error{display:block}

/* Honeypot: hidden from humans, reachable by naive bots. */
.hp{
  position:absolute;
  left:-9999px;
  width:1px;height:1px;
  overflow:hidden;
}

.form__status{
  margin-top:1.5rem;
  padding:1rem 1.15rem;
  border:1px solid var(--rule);
  border-left:3px solid var(--ink-faint);
  border-radius:var(--radius);
  background:var(--surface);
  font-size:.9375rem;
}
.form__status[hidden]{display:none}
.form__status--ok{border-left-color:var(--ok)}
.form__status--error{border-left-color:var(--down)}

.form__footnote{
  margin-top:1.25rem;
  font-size:.8125rem;
  color:var(--ink-faint);
}
.form__footnote a{color:inherit}

/* --------------------------------------------------------------- Status -- */

.status-banner{
  display:flex;
  align-items:center;
  gap:.9rem;
  padding:1.15rem 1.35rem;
  background:var(--surface);
  border:1px solid var(--rule);
  border-radius:var(--radius);
}
.status-banner__text{font-weight:600}
.status-banner__meta{
  margin-left:auto;
  font-size:.8125rem;
  color:var(--ink-faint);
  text-align:right;
}

.dot{
  width:10px;height:10px;
  flex:none;
  border-radius:50%;
  background:var(--unknown);
}
.dot--ok{background:var(--ok)}
.dot--warn{background:var(--warn)}
.dot--down{background:var(--down)}

.services{
  margin-top:1.5rem;
  border:1px solid var(--rule);
  border-radius:var(--radius);
  overflow:hidden;
}
.service{
  padding:1.35rem;
  border-bottom:1px solid var(--rule);
  background:var(--surface);
}
.service:last-child{border-bottom:0}

.service__head{
  display:flex;
  align-items:baseline;
  gap:.75rem;
  flex-wrap:wrap;
}
.service__name{font-weight:600}
.service__state{
  margin-left:auto;
  font-size:.8125rem;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.service__state--ok{color:var(--ok)}
.service__state--warn{color:var(--warn)}
.service__state--down{color:var(--down)}
.service__state--unknown{color:var(--unknown)}

.service__desc{
  margin:.3rem 0 0;
  font-size:.875rem;
  color:var(--ink-faint);
}

.uptime{
  display:flex;
  gap:2px;
  margin-top:1rem;
  height:26px;
}
.uptime__bar{
  flex:1 1 0;
  min-width:2px;
  border-radius:1px;
  background:var(--rule);
}
.uptime__bar--ok{background:var(--ok)}
.uptime__bar--warn{background:var(--warn)}
.uptime__bar--down{background:var(--down)}

.uptime__legend{
  display:flex;
  justify-content:space-between;
  margin-top:.5rem;
  font-size:.75rem;
  color:var(--ink-faint);
}

.status-empty{
  padding:1.35rem;
  background:var(--surface);
  border:1px solid var(--rule);
  border-radius:var(--radius);
  color:var(--ink-muted);
  font-size:.9375rem;
}

/* --------------------------------------------------------------- Footer -- */

.site-footer{
  margin-top:auto;
  padding-block:clamp(3rem,7vw,4.5rem) 2rem;
  border-top:1px solid var(--rule);
  background:var(--surface);
}

.site-footer__grid{
  display:grid;
  grid-template-columns:1.6fr repeat(3,1fr);
  gap:clamp(2rem,4vw,3rem);
}

@media (max-width:60rem){
  .site-footer__grid{grid-template-columns:repeat(2,1fr)}
  .site-footer__identity{grid-column:1 / -1}
}
@media (max-width:34rem){
  .site-footer__grid{grid-template-columns:1fr}
}

.site-footer__mark{width:30px;height:auto;display:block}
.site-footer__mark .base{fill:var(--mark-base)}
.site-footer__mark .accent{fill:var(--mark-accent)}

.site-footer__tagline{
  margin:1.15rem 0 .5rem;
  font-family:Newsreader,Georgia,serif;
  font-weight:300;
  font-size:1.375rem;
  line-height:1.2;
}
.site-footer__descriptor{
  max-width:22rem;
  font-size:.875rem;
  color:var(--ink-faint);
}

.site-footer__heading{
  margin:0 0 1rem;
  font-family:Inter,sans-serif;
  font-size:.6875rem;
  font-weight:600;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--ink-faint);
}

.site-footer__links{margin:0;padding:0;list-style:none}
.site-footer__links li{margin-bottom:.1rem}
.site-footer__links a{
  display:inline-block;
  padding:.35rem 0;
  font-size:.9375rem;
  color:var(--ink-muted);
  text-decoration:none;
  transition:color 180ms ease;
}
.site-footer__links a:hover{color:var(--ink)}

.site-footer__address{
  margin:0 0 .75rem;
  font-style:normal;
  font-size:.9375rem;
  line-height:1.7;
  color:var(--ink-muted);
}
.site-footer__legal-name{
  display:block;
  color:var(--ink);
  font-weight:600;
}

.site-footer__base{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem 2rem;
  justify-content:space-between;
  margin-top:clamp(2.5rem,5vw,3.5rem);
  padding-top:1.75rem;
  border-top:1px solid var(--rule);
  font-size:.8125rem;
  color:var(--ink-faint);
}
.site-footer__base p{margin:0}

/* -------------------------------------------------------------- Motion --- */

@media (prefers-reduced-motion:no-preference){
  .reveal{
    opacity:0;
    transform:translate3d(0,10px,0);
    animation:rise 800ms cubic-bezier(.2,.7,.3,1) forwards;
  }
  .d1{animation-delay:60ms}
  .d2{animation-delay:160ms}
  .d3{animation-delay:260ms}
  .d4{animation-delay:360ms}
  @keyframes rise{to{opacity:1;transform:none}}
}
