:root {
  --navy: #10243e;
  --navy-deep: #0b1a2e;
  --ink: #1c2833;
  --muted: #5c6975;
  --line: #e4ddd3;
  --paper: #f6f3ee;
  --white: #fffcf8;
  --gold: #9a7340;
  --gold-dark: #7a592e;
  --gold-soft: #f4ecdf;
  --danger: #8c2f2f;
  --ok: #1d6a43;
  --max: 1120px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.45rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: white;
  padding: 0.6rem 0.9rem;
  z-index: 50;
}
.skip:focus { top: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: white;
}
.utility {
  background: var(--navy-deep);
  color: rgba(255, 252, 248, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.utility-inner,
.nav-inner,
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.utility-inner { min-height: 2.2rem; }
.utility a { color: #f0e2c8; text-decoration: none; }
.utility a:hover { text-decoration: underline; }

.nav-bar { position: relative; }
.nav-inner { min-height: 4.6rem; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: white;
}
.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228, 201, 154, 0.7);
  color: #e4c99a;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
}
.brand-sub {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 252, 248, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1rem;
}
#site-nav a {
  color: rgba(255, 252, 248, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}
#site-nav a:hover,
#site-nav a[aria-current="page"] { color: white; }
.nav-cta {
  background: var(--gold) !important;
  color: white !important;
  padding: 0.55rem 0.9rem;
}
.nav-cta:hover { background: var(--gold-dark) !important; }
.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  padding: 0.55rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: white;
}

.hero {
  background:
    radial-gradient(circle at 85% 0%, rgba(154, 115, 64, 0.22), transparent 36%),
    linear-gradient(165deg, #10243e 0%, #1a3d66 100%);
  color: white;
  padding: 5.2rem 0 4.4rem;
}
.hero-grid,
.split,
.contact-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  margin: 0 0 0.9rem;
  color: #e4c99a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lede {
  max-width: 38rem;
  color: rgba(255, 252, 248, 0.78);
  font-size: 1.15rem;
}
.hero-actions,
.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.15rem;
  background: var(--gold);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--gold);
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-dark {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.btn-dark:hover { background: var(--navy-deep); }

.hero-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.4rem 1.4rem 0.4rem;
}
.hero-panel h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.hero-panel a { color: #e4c99a; }
.fact {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.fact strong {
  color: #e4c99a;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}
.fact p { margin: 0; color: rgba(255, 252, 248, 0.78); font-size: 0.98rem; }

.section { padding: 5rem 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 40rem; margin-bottom: 2.2rem; }
.section-head p:last-child { color: var(--muted); margin: 0; }
.center { text-align: center; margin-inline: auto; }

.principles,
.cards,
.board-row,
.sectors {
  display: grid;
  gap: 1rem;
}
.principles { grid-template-columns: repeat(3, 1fr); }
.cards,
.sectors { grid-template-columns: repeat(3, 1fr); }
.board-row { grid-template-columns: repeat(5, 1fr); }

.principle,
.card,
.person-card,
.sector,
.step {
  background: white;
  border: 1px solid var(--line);
  padding: 1.35rem;
}
.section-paper .card,
.section-paper .sector { background: var(--white); }
.principle span,
.card .num,
.person-card .initials {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}
.card p,
.sector p,
.person-card p,
.principle p { color: var(--muted); margin: 0; }
.card h3,
.sector h3,
.person-card h3,
.principle h3 { font-family: var(--sans); font-size: 1.12rem; letter-spacing: 0; }

.person-card .initials {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #e4c99a;
  font-size: 1rem;
}
.role {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.band {
  background: var(--navy);
  color: white;
  padding: 3.4rem 0;
  scroll-margin-top: 6.5rem;
}
.band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.band h2 { margin: 0 0 0.4rem; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.band p { margin: 0; color: rgba(255, 252, 248, 0.75); }

.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 3.4rem 0 2.6rem;
}
.page-hero h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
.crumb { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.92rem; }
.crumb a { color: var(--gold-dark); }

.prose { max-width: 44rem; }
.prose p { color: var(--muted); }
.split { align-items: start; }
.split .panel {
  background: var(--navy);
  color: white;
  padding: 1.6rem;
}
.split .panel p { color: rgba(255, 252, 248, 0.78); }
.split .panel a { color: #e4c99a; }

.people { display: flex; flex-direction: column; }
.person {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.person:last-child { border-bottom: 1px solid var(--line); }
.person .initials {
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #e4c99a;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.person h2 { font-family: var(--sans); font-size: 1.45rem; margin-bottom: 0.15rem; }
.person p { color: var(--muted); margin: 0.4rem 0 0; }

.contact-grid { align-items: start; grid-template-columns: 0.85fr 1.15fr; }
.detail { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.detail span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.detail a { color: var(--navy); font-weight: 700; }
.steps { display: grid; gap: 0.8rem; margin-top: 1.4rem; }
.step strong { display: block; }

form { display: grid; gap: 0.9rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
label { display: grid; gap: 0.35rem; font-size: 0.92rem; font-weight: 600; }
input, textarea {
  width: 100%;
  border: 1px solid #d9d1c6;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 0.75rem 0.8rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(154, 115, 64, 0.15); }
.hp { position: absolute; left: -9999px; }
.form-note { color: var(--muted); font-size: 0.92rem; }
.notice {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--gold-soft);
}
.notice.ok { background: #e8f5ee; border-color: #b7dfc8; color: var(--ok); }
.notice.err { background: #fbeeee; border-color: #efc7c7; color: var(--danger); }
button.btn { cursor: pointer; }
button.btn[disabled] { opacity: 0.65; cursor: wait; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 252, 248, 0.78);
  padding-top: 3.2rem;
}
.footer-grid { grid-template-columns: 1.4fr 0.7fr 0.9fr 0.9fr; align-items: start; padding-bottom: 2rem; }
.footer-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: white;
}
.footer-legal { margin: 0.2rem 0 0.8rem; color: #e4c99a; font-size: 0.92rem; }
.footer-label {
  margin: 0 0 0.7rem;
  color: #e4c99a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 1.2rem;
  font-size: 0.9rem;
}
.footer-base p { margin: 0; }

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-grid,
  .footer-grid,
  .principles,
  .cards,
  .sectors { grid-template-columns: 1fr 1fr; }
  .board-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { gap: 1.6rem; }
}
@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  #site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-deep);
    padding: 0.4rem 1.25rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  #site-nav.is-open { display: flex; }
  #site-nav a { padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav-cta { text-align: center; margin-top: 0.6rem; }
  .hero-grid,
  .split,
  .contact-grid,
  .footer-grid,
  .principles,
  .cards,
  .sectors,
  .board-row,
  .fields,
  .person { grid-template-columns: 1fr; }
  .band .wrap,
  .footer-base { align-items: flex-start; flex-direction: column; }
  .utility-inner { gap: 0.6rem; font-size: 0.78rem; }
  .hero { padding: 3.4rem 0 2.8rem; }
  .section { padding: 3.4rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .stage { height: auto; }
  .stage-pin { position: relative; height: auto; }
  .stage-board { height: auto; }
  .stage-step { position: relative; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 3rem; }
  .stage-progress { display: none; }
  .cable, .led { animation: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

.stage { height: 420vh; background: var(--navy); scroll-margin-top: 6.5rem; }
.stage-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 7rem 0 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(154, 115, 64, .18), transparent 32%),
    var(--navy);
  color: white;
}
.stage-progress {
  position: absolute;
  left: max(1.2rem, calc(50% - 560px));
  top: 50%;
  width: 2px;
  height: 42vh;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .16);
}
.stage-progress span {
  display: block;
  width: 100%;
  height: 0;
  background: #e4c99a;
}
.stage-board {
  position: relative;
  width: min(1040px, calc(100% - 6rem));
  height: min(640px, 72vh);
}
.stage-step {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.stage-step.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.stage-copy h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.stage-copy p { color: rgba(255, 252, 248, .78); max-width: 28rem; }
.stage-place {
  color: #e4c99a !important;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.machine { display: grid; justify-items: center; }
.machine svg { width: 100%; max-width: 420px; height: auto; max-height: 62vh; }
.stage-step.is-on .cable {
  stroke-dasharray: 10 12;
  animation: cable-flow 1.1s linear infinite;
}
.stage-step.is-on .led { animation: led-pulse 1.6s ease-in-out infinite; }
@keyframes cable-flow { to { stroke-dashoffset: -44; } }
@keyframes led-pulse { 50% { opacity: .35; } }

@media (max-width: 800px) {
  .stage { height: auto; }
  .stage-pin { position: relative; height: auto; padding: 8.5rem 0 2rem; }
  .machine { display: grid; justify-items: center; }
  .machine svg { max-width: 280px; }
  .stage-progress { display: none; }
  .stage-board { height: auto; width: min(100% - 2.5rem, 1040px); }
  .stage-step {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .stage { height: auto; }
  .stage-pin { position: relative; height: auto; }
  .stage-board { height: auto; }
  .stage-step { position: relative; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 3rem; }
  .stage-progress { display: none; }
  .cable, .led { animation: none; }
}

.company-list { list-style: none; margin: 0; padding: 0; }
.directory-note { max-width: 44rem; }
.updated { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.92rem; }
.directory-nav { display: flex; flex-wrap: wrap; gap: 0.45rem 1.1rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.directory-nav a { color: var(--gold-dark); font-weight: 600; }
.kind-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.kind-groups article { border-top: 3px solid var(--gold); padding-top: 0.9rem; }
.kind-groups h2 { font-size: 1.25rem; margin: 0 0 0.45rem; }
.kind-groups p { margin: 0; color: var(--muted); }
.company-list li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 6.5rem;
}
.company-list li:last-child { border-bottom: 1px solid var(--line); }
.company-list h2 { font-family: var(--sans); font-size: 1.45rem; margin: 0; }
.company-list .rank {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
}
.company-list .kind {
  margin: 0.25rem 0 0.4rem;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.company-list p:last-child { margin: 0; color: var(--muted); }
@media (max-width: 800px) {
  .kind-groups { grid-template-columns: 1fr; }
}
