/* ───────────────────────────────────────────────────────────────
   California Smart Valve — Editorial Seismograph
   ─────────────────────────────────────────────────────────────── */

:root {
  --navy:      #0A1628;
  --navy-2:    #11203A;
  --navy-3:    #1A2942;
  --bone:      #F5F1E8;
  --bone-2:    #E9E2D2;
  --ink:       #07101F;
  --orange:    #FF6B1A;
  --orange-2:  #FF8A4A;
  --red:       #E63946;
  --pulse:     #7FFFD4;
  --rule:      rgba(245,241,232,.18);
  --rule-dk:   rgba(10,22,40,.14);

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --serif:   "Fraunces", "Georgia", serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --max:     1320px;
  --pad:     clamp(20px, 4vw, 56px);

  --noise:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(15px, 1vw + 0.5rem, 18px);
  line-height: 1.55;
  color: var(--bone);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
em { font-style: italic; font-feature-settings: "ss01"; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

/* ───────── tag ───────── */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid currentColor;
  margin-right: 0.6em;
  vertical-align: 1px;
}
.tag--orange { background: var(--orange); color: var(--navy); border-color: var(--orange); }

/* ───────── STATION BAR ───────── */
.station {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.station__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--pad);
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(245,241,232,.7);
  white-space: nowrap;
  overflow: hidden;
}
.station__badge {
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  flex-shrink: 0;
}
.station__pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255,107,26,.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,107,26,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255,107,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,26,0); }
}
.station__readout { display: inline-flex; gap: 10px; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; }
.station__readout em { color: var(--bone); font-style: normal; font-weight: 600; }
.station__sep { opacity: .35; }
.station__time { margin-left: auto; color: var(--bone); flex-shrink: 0; }
.station__seg { display: inline; }

@media (max-width: 720px) {
  .station__seg:nth-child(1),
  .station__seg:nth-child(5),
  .station__sep { display: none; }
  .station__seg:nth-child(7) { display: inline; }
}
@media (max-width: 480px) {
  .station__readout { display: none; }
}

/* ───────── NAV ───────── */
.nav {
  position: sticky;
  top: 31px;
  z-index: 49;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(10,22,40,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 38px; height: 38px; }
.nav__brand-text {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--bone);
}
.nav__brand-text em {
  font-style: normal; color: var(--orange); font-weight: 700;
}
.nav__links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0; padding: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__links a {
  color: rgba(245,241,232,.75);
  transition: color .2s;
  position: relative;
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--orange);
}
.nav__cta {
  color: var(--navy) !important;
  background: var(--orange);
  padding: 8px 14px;
  border-radius: 2px;
  font-weight: 600;
}
.nav__cta:hover { background: var(--orange-2); }
.nav__cta:hover::after { display: none; }

.nav__toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--bone); transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s, opacity .25s;
  }
  .nav__links li a {
    display: block;
    padding: 14px var(--pad);
  }
  .nav__links li a::after { display: none; }
  .nav__cta {
    margin: 12px var(--pad);
    text-align: center;
  }
  .nav.is-open .nav__links {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
}

/* ───────── BUTTONS ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 22px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  position: relative;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn__arrow { transition: transform .25s; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
}
.btn--primary:hover { background: var(--orange-2); border-color: var(--orange-2); }
.btn--ghost {
  border-color: var(--bone);
  color: var(--bone);
  background: transparent;
}
.btn--ghost:hover { background: var(--bone); color: var(--navy); }
.btn--ghost-light { border-color: rgba(245,241,232,.6); }
.btn--block { display: flex; width: 100%; }

/* ───────── HERO ───────── */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  padding: clamp(40px, 8vw, 96px) var(--pad) clamp(40px, 8vw, 80px);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255,107,26,.10), transparent 60%),
    radial-gradient(900px 600px at -10% 100%, rgba(230,57,70,.08), transparent 60%),
    var(--navy);
  overflow: hidden;
  isolation: isolate;
}
.hero__noise {
  position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  margin: 0 auto;
}
.hero__eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,241,232,.65);
  margin: 0 0 clamp(28px, 5vw, 56px);
}
.hero__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.2rem, 11vw, 10.5rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--bone);
}
.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__line:nth-child(1) { animation-delay: .05s; }
.hero__line:nth-child(2) { animation-delay: .15s; }
.hero__line:nth-child(3) { animation-delay: .30s; }
.hero__line:nth-child(4) { animation-delay: .42s; }
.hero__line:nth-child(5) { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__line--quake { color: var(--orange); position: relative; }
.hero__line--fire  { color: var(--red);    position: relative; display: inline-block; }
.hero__line--amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.55em;
  color: var(--bone);
  margin: 0.05em 0;
  text-transform: none;
  padding-left: 0.1em;
}
.hero__period { color: var(--bone); }

.hero__mark {
  display: inline-block;
  vertical-align: 0.05em;
  margin-left: 0.18em;
  width: 0.6em;
  height: 0.45em;
  background-repeat: no-repeat;
  background-size: contain;
}
.hero__mark--quake {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'><path d='M2 20 L10 20 L14 5 L20 35 L26 8 L32 32 L38 14 L46 26 L52 20 L58 20' fill='none' stroke='%23FF6B1A' stroke-width='3'/></svg>");
}
.hero__mark--fire {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 50'><path d='M20 48 C8 42 6 30 12 22 C12 28 16 28 18 24 C20 14 16 10 22 2 C22 12 30 14 30 24 C32 22 36 28 34 36 C32 44 28 48 20 48 Z' fill='%23E63946'/></svg>");
}

.hero__lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  max-width: 60ch;
  color: rgba(245,241,232,.85);
  margin: clamp(36px, 5vw, 60px) 0 clamp(28px, 4vw, 40px);
  opacity: 0;
  animation: rise 1s .9s forwards;
}
.hero__lede em { color: var(--orange); font-style: italic; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: rise 1s 1.05s forwards;
}

.hero__stats {
  margin-top: clamp(48px, 8vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--rule);
  padding-top: clamp(28px, 4vw, 40px);
  opacity: 0;
  animation: rise 1s 1.2s forwards;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--bone);
}
.stat__num em { color: var(--orange); font-style: normal; }
.stat__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,241,232,.6);
}

/* ───────── SEISMOGRAPH ───────── */
.seismo {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: clamp(140px, 18vw, 220px);
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  background:
    linear-gradient(180deg, transparent 0%, rgba(10,22,40,.6) 100%);
}
.seismo__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,107,26,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,107,26,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.seismo__svg {
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 100%;
  animation: seismo-scroll 24s linear infinite;
}
@keyframes seismo-scroll {
  to { transform: translateX(-50%); }
}
.seismo__svg path { stroke: var(--orange); filter: drop-shadow(0 0 6px rgba(255,107,26,.5)); }
.seismo__scan {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(127,255,212,.6), transparent);
  box-shadow: 0 0 12px rgba(127,255,212,.5);
  animation: scan 6s linear infinite;
}
@keyframes scan {
  0%   { left: 0%; }
  100% { left: 100%; }
}
.seismo__axis {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  display: flex;
  justify-content: space-around;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: rgba(245,241,232,.35);
  letter-spacing: 0.1em;
  padding: 0 var(--pad);
}

/* ───────── SECTION SCAFFOLD ───────── */
.section {
  position: relative;
  padding: clamp(72px, 10vw, 140px) var(--pad);
  background: var(--bone);
  color: var(--navy);
}
.section--mission { background: var(--bone); }
.section--dual { background: var(--navy); color: var(--bone); }
.section--device { background: var(--bone-2); }
.section--leadership { background: var(--navy-2); color: var(--bone); }
.section--spec { background: var(--bone); }
.section--about { background: var(--navy); color: var(--bone); }
.section--start { background: var(--ink); color: var(--bone); }

.section__head {
  max-width: var(--max);
  margin: 0 auto clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(20px, 3vw, 40px);
  row-gap: 12px;
  align-items: start;
}
.section__num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  padding-top: 18px;
  grid-row: 1 / span 2;
  border-top: 2px solid var(--orange);
  padding-right: 8px;
}
.section__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.6vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0;
}
.section__kicker {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  max-width: 60ch;
  margin: 0;
  color: inherit;
  opacity: 0.75;
}
.section__head--dark .section__title { color: var(--bone); }
.section__head--dark .section__kicker { color: rgba(245,241,232,.75); }

@media (max-width: 640px) {
  .section__head {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
  .section__num { grid-row: auto; padding-top: 10px; padding-bottom: 8px; padding-right: 0; display: inline-block; max-width: max-content; }
}

/* ───────── MISSION CARDS ───────── */
.cards-3 {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-dk);
  border-bottom: 1px solid var(--rule-dk);
}
.card-mission {
  position: relative;
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--rule-dk);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bone);
  transition: background .25s;
}
.card-mission:last-child { border-right: 0; }
.card-mission:hover { background: var(--bone-2); }
.card-mission__num {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.card-mission__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--navy);
}
.card-mission__body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(10,22,40,.78);
}
.card-mission__bar {
  display: block;
  height: 4px;
  background: var(--orange);
  width: 36px;
  margin-top: auto;
  transition: width .3s;
}
.card-mission:hover .card-mission__bar { width: 100%; }

@media (max-width: 880px) {
  .cards-3 { grid-template-columns: 1fr; }
  .card-mission { border-right: 0; border-bottom: 1px solid var(--rule-dk); }
  .card-mission:last-child { border-bottom: 0; }
}

/* ───────── DUAL THREAT ───────── */
.dual {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.dual__panel {
  position: relative;
  padding: clamp(36px, 5vw, 64px);
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(360px, 50vh, 520px);
  display: flex;
  flex-direction: column;
}
.dual__panel--quake { background: linear-gradient(180deg, #102542 0%, #0A1628 100%); }
.dual__panel--fire  { background: linear-gradient(180deg, #2A1410 0%, #0A1628 100%); }
.dual__bg {
  position: absolute; inset: 0;
  z-index: 1;
  opacity: 0.18;
  pointer-events: none;
}
.dual__bg svg { width: 100%; height: 100%; }
.dual__bg--quake .quake-bars rect {
  fill: var(--orange);
  transform-origin: bottom;
  animation: quake-bar 1.4s ease-in-out infinite;
}
.dual__bg--quake .quake-bars rect:nth-child(odd)  { animation-duration: 1.2s; }
.dual__bg--quake .quake-bars rect:nth-child(3n)   { animation-duration: 1.6s; }
.dual__bg--quake .quake-bars rect:nth-child(5n)   { animation-duration: 1.0s; }
.dual__bg--quake .quake-bars rect:nth-child(2n)   { animation-delay: -0.3s; }
.dual__bg--quake .quake-bars rect:nth-child(3n)   { animation-delay: -0.7s; }
.dual__bg--quake .quake-bars rect:nth-child(7n)   { animation-delay: -1.1s; }
@keyframes quake-bar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.0); }
}

.dual__bg--fire .flame__outer { fill: var(--red); animation: flicker 1.3s ease-in-out infinite alternate; transform-origin: bottom; }
.dual__bg--fire .flame__mid   { fill: var(--orange); animation: flicker 0.9s ease-in-out infinite alternate; transform-origin: bottom; }
.dual__bg--fire .flame__core  { fill: #FFD56B; animation: flicker 0.6s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes flicker {
  0%   { transform: scale(0.96, 1.0) translateX(-2px); opacity: 0.85; }
  100% { transform: scale(1.04, 0.94) translateX(2px); opacity: 1; }
}

.dual__panel > * { position: relative; z-index: 2; }
.dual__tag {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: clamp(20px, 3vw, 32px);
  display: inline-block;
}
.dual__panel--fire .dual__tag { color: var(--red); }
.dual__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 clamp(16px, 2vw, 24px);
  color: var(--bone);
}
.dual__title em { font-style: italic; font-family: var(--serif); font-weight: 400; color: var(--orange); text-transform: none; font-size: 0.95em; }
.dual__panel--fire .dual__title em { color: var(--red); }
.dual__body {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(245,241,232,.85);
  max-width: 38ch;
  margin: 0 0 clamp(20px, 3vw, 28px);
}
.dual__list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,241,232,.7);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.dual__list li {
  padding: 6px 0 6px 24px;
  position: relative;
}
.dual__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange);
}
.dual__panel--fire .dual__list li::before { color: var(--red); }

.dual__footnote {
  max-width: var(--max);
  margin: clamp(36px, 5vw, 56px) auto 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: rgba(245,241,232,.85);
  line-height: 1.5;
}

@media (max-width: 880px) {
  .dual { grid-template-columns: 1fr; }
}

/* ───────── DEVICE ───────── */
.device {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.device__art {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.device__stage {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 42%, #1A2942 0%, var(--navy) 65%, #060E1C 100%);
  border: 1px solid var(--rule-dk);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.35);
}
.device__stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,107,26,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,107,26,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}
.device__stage img {
  width: 82%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.5));
  position: relative; z-index: 2;
  animation: deviceFade .35s ease-out;
}
@keyframes deviceFade {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.device__corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--orange);
  z-index: 3;
}
.device__corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.device__corner--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.device__corner--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.device__corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.device__label {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  z-index: 3;
  background: rgba(10,22,40,.85);
  padding: 4px 12px;
  border-radius: 2px;
  border: 1px solid rgba(255,107,26,.3);
}
.device__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.device__thumb {
  position: relative;
  aspect-ratio: 1;
  background: var(--navy);
  border: 1px solid var(--rule-dk);
  border-radius: 3px;
  padding: 6px 6px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, transform .2s, background .2s;
  overflow: hidden;
}
.device__thumb img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.4));
}
.device__thumb span {
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,241,232,.55);
}
.device__thumb:hover { transform: translateY(-2px); border-color: var(--orange); }
.device__thumb.is-active { border-color: var(--orange); background: var(--navy-2); }
.device__thumb.is-active span { color: var(--orange); }

.device__features {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(40px, 5vw, 56px);
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
}
.device__features li {
  padding: 0 0 clamp(20px, 2.5vw, 28px);
  border-bottom: 1px solid var(--rule-dk);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
}
.device__features li:last-child { border-bottom: 0; padding-bottom: 0; }
.device__feature-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--orange);
  padding-top: 4px;
}
.device__features h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--navy);
}
.device__features p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(10,22,40,.78);
}

.price {
  background: var(--navy);
  color: var(--bone);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.price::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
}
.price__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,241,232,.6);
  margin-bottom: 16px;
}
.price__sku { color: var(--orange); }
.price__num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4.5rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--bone);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.price__currency {
  font-size: 0.45em;
  color: var(--orange);
  padding-top: 0.3em;
}
.price__note {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: rgba(245,241,232,.7);
  line-height: 1.5;
  margin: 0 0 24px;
}
.price__phone {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--orange);
}
.price__phone:hover { color: var(--orange-2); }

@media (max-width: 880px) {
  .device { grid-template-columns: 1fr; }
  .device__art { position: relative; top: 0; max-width: 360px; margin: 0 auto; }
  .device__features li { grid-template-columns: 60px 1fr; }
}

/* ───────── LEADERSHIP ───────── */
.leaders {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.leader {
  background: var(--navy-3);
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(255,107,26,.15);
  border-radius: 2px;
  position: relative;
  transition: transform .25s, border-color .25s;
}
.leader:hover { transform: translateY(-4px); border-color: var(--orange); }
.leader__photo {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,107,26,.15), transparent 60%),
    var(--navy);
  border: 1px solid var(--rule);
  margin-bottom: clamp(16px, 2vw, 24px);
  overflow: hidden;
  border-radius: 2px;
}
.leader__photo::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,107,26,.05) 0 1px, transparent 1px 6px);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.leader__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.05) brightness(.95);
  transition: filter .35s ease-out, transform .5s ease-out;
}
.leader:hover .leader__photo img {
  filter: grayscale(1) contrast(1.05) brightness(1.05);
  transform: scale(1.04);
}
/* Derek — photo is a 2:3 portrait; shrink it to fit inside the square,
   centered, no top/bottom crop. Navy stage fills the surrounding space. */
.leader.leader--featured .leader__photo img {
  width: 72% !important;
  height: auto !important;
  max-height: 88%;
  object-fit: contain !important;
  object-position: center !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}
.leader.leader--featured:hover .leader__photo img {
  transform: translate(-50%, -50%) scale(1.03) !important;
}
.leader__photo--accent {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange) inset;
  background-image: url('img/derek-beda.jpg');
  background-size: cover;
  background-position: center;
}
/* Blurred fill of Derek's own photo so the side gaps read as
   a full-bleed portrait instead of letterboxing. */
.leader__photo--accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: 140%;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(18px) grayscale(1) brightness(.55);
  transform: scale(1.1);
  z-index: 0;
  pointer-events: none;
}
.leader__photo--accent img {
  z-index: 2;
}
.leader__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 4px;
  color: var(--bone);
}
.leader__role {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 16px;
}
.leader__meta {
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(245,241,232,.7);
}
.leader__meta li { display: flex; gap: 8px; }
.leader__meta span { color: rgba(245,241,232,.4); min-width: 36px; }

.leader--featured {
  background:
    linear-gradient(180deg, rgba(255,107,26,.1) 0%, transparent 60%),
    var(--navy-3);
  border-color: var(--orange);
}

@media (max-width: 1024px) {
  .leaders { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .leaders { grid-template-columns: 1fr; }
}

/* ───────── SPEC ───────── */
.spec {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--navy);
  color: var(--bone);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.86rem;
  border: 1px solid var(--rule);
}
.spec__row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.spec__row:last-child { border-bottom: 0; }
.spec__row > span {
  padding: 18px 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.spec__row--head {
  background: var(--ink);
  color: rgba(245,241,232,.55);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}
.spec__brand--us { color: var(--orange); }
.spec__cell { text-align: center; font-size: 1.1rem; }
.spec__cell--us { background: rgba(255,107,26,.06); }
.mark {
  font-style: normal;
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
}
.mark--ok   { color: var(--orange); }
.mark--no   { color: rgba(245,241,232,.25); }
.mark--warn { color: #FFD56B; }

@media (max-width: 720px) {
  .spec__row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .spec__row > span:nth-child(1) {
    grid-column: 1 / -1;
    background: var(--ink);
    color: var(--orange);
    font-size: 0.78rem;
    padding: 12px 18px;
  }
  .spec__row--head { display: none; }
  .spec__cell { text-align: left; padding-left: 18px; }
  .spec__cell::before {
    content: attr(data-brand);
    color: rgba(245,241,232,.4);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    margin-right: 8px;
  }
  .spec__row > span:nth-child(2)::before { content: "CSV"; }
  .spec__row > span:nth-child(3)::before { content: "PAC. SEISMIC"; }
  .spec__row > span:nth-child(4)::before { content: "L. FIREFIGHTER"; }
  .spec__row > span::before {
    color: rgba(245,241,232,.4);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    margin-right: 10px;
    display: inline-block;
    min-width: 110px;
  }
  .spec__row > span:nth-child(1)::before { content: ""; min-width: 0; }
}

/* ───────── ABOUT ───────── */
.about {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px) clamp(36px, 5vw, 64px);
}
.about__col--wide { grid-column: 1 / -1; }
.about__h {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--orange);
  letter-spacing: 0.02em;
}
.about__dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px 24px;
  font-family: var(--mono);
  font-size: 0.86rem;
}
.about__dl dt { color: rgba(245,241,232,.55); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.74rem; padding-top: 4px; }
.about__dl dd { margin: 0; color: var(--bone); font-family: var(--serif); font-size: 1.05rem; }
.about__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.about__list li {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(245,241,232,.85);
  padding-left: 20px;
  position: relative;
}
.about__list li::before {
  content: "▮";
  position: absolute; left: 0;
  color: var(--orange);
  font-size: 0.85em;
  top: 0.15em;
}
.about__list strong { color: var(--bone); font-weight: 700; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.05em; }

.about__bullets {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px 32px;
  font-family: var(--serif);
  font-size: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.about__bullets li {
  padding-left: 24px;
  position: relative;
  color: rgba(245,241,232,.85);
  line-height: 1.5;
}
.about__bullets li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--orange);
  font-family: var(--mono);
  font-weight: 700;
}

@media (max-width: 720px) {
  .about { grid-template-columns: 1fr; }
}

/* ───────── START ───────── */
.start {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.start__card {
  padding: clamp(32px, 4vw, 48px);
  background: var(--bone);
  color: var(--navy);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.start__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
}
.start__card--alt {
  background: var(--navy-2);
  color: var(--bone);
}
.start__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,107,26,.12);
  border-radius: 4px;
}
.start__card--alt .start__icon { background: rgba(255,107,26,.2); }
.start__icon svg { width: 32px; height: 32px; }
.start__card h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.005em;
}
.start__card p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 0 8px;
  opacity: 0.78;
}
.start__card .btn { margin-top: auto; }

@media (max-width: 720px) {
  .start { grid-template-columns: 1fr; }
}

/* ───────── FOOTER ───────── */
.foot {
  background: var(--ink);
  color: rgba(245,241,232,.75);
  padding: clamp(48px, 6vw, 72px) var(--pad) clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--rule);
}
.foot__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: clamp(36px, 5vw, 64px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.foot__brand {
  display: flex;
  gap: 18px;
}
.foot__logo { width: 48px; height: 48px; flex-shrink: 0; }
.foot__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--bone);
}
.foot__name em { font-style: normal; color: var(--orange); }
.foot__tag {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  max-width: 32ch;
}
.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.foot__cols h5 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 16px;
}
.foot__cols ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 8px;
  font-family: var(--serif);
  font-size: 0.95rem;
}
.foot__cols a:hover { color: var(--orange); }
.foot__mono { font-family: var(--mono) !important; font-size: 0.76rem !important; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,241,232,.55); }
.foot__pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pulse);
  margin-right: 8px;
  vertical-align: 1px;
  box-shadow: 0 0 8px var(--pulse);
}

.foot__rule { display: none; }

.foot__bottom {
  max-width: var(--max);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,241,232,.45);
}
.foot__mono-tag { color: var(--orange); }

@media (max-width: 720px) {
  .foot__inner { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

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

/* ───────── PRINT ───────── */
@media print {
  .station, .nav, .seismo, .hero__noise { display: none; }
  body { background: white; color: black; }
}
