:root {
  --ink: #101114;
  --ink-2: #191B20;
  --ink-3: #23262C;
  --gunmetal: #15181C;
  --bone: #F5F3EF;
  --bone-2: #E8E4DC;
  --amber: #D18F34;
  --amber-hi: #E5A44A;
  --gray: #7C808A;
  --gray-dk: #5C6069;
  --max: 1120px;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- primitives ---------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-dk);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
}
.dark .eyebrow { color: var(--amber); }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.02em; color: var(--gunmetal); }
h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
/* A heading that spells out an acronym runs ~15% longer than a normal h2 and
   sits in a 496px two-col column, so it costs an extra line at the standard
   size. Trade back the same 15% of size; balance keeps the trailing "(SIGMA)."
   off a line of its own. */
.acronym-title { font-size: clamp(26px, 3.1vw, 36px); text-wrap: balance; }
h3 { font-size: 21px; letter-spacing: -0.01em; }
h4 { font-size: 15px; letter-spacing: 0.02em; }

.lede { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; color: var(--gray-dk); max-width: 62ch; }
.dark .lede { color: #AAAEB6; }

.dark { background: var(--gunmetal); color: var(--bone); }
.dark h1, .dark h2, .dark h3 { color: var(--bone); }

section { padding: 96px 0; scroll-margin-top: 68px; }
section.tight { padding: 72px 0; }
.rule { height: 1px; background: var(--bone-2); border: 0; margin: 0; }

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gunmetal);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245, 243, 239, 0.1);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); }
.brand:hover { color: var(--bone); }
.brand svg, .brand img { width: 34px; height: 34px; color: var(--bone); }
.brand .word {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 500;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A8ACB4;
}
.site-nav a:hover, .site-nav a.active { color: var(--amber); }
.site-nav a { transition: color 0.15s; }

/* ---------- hero ---------- */

.hero { padding: 128px 0 104px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: url("../img/hex-grid.svg");
  background-size: 69px 120px;
  mask-image: radial-gradient(120% 90% at 20% 10%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 20% 10%, #000 20%, transparent 78%);
  z-index: 1;
  opacity: 0;
  animation: fade-in 2.4s ease-out 0.2s forwards;
}
@keyframes fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-grid { animation-duration: 0.01s; animation-delay: 0s; }
}
.hero h1 { max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-sub { margin-top: 28px; }
.hero-meta {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8C9098;
}
.hero-meta span { display: flex; align-items: center; gap: 10px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; background: var(--amber); }

/* ---------- layout blocks ---------- */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.split {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 64px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--bone-2);
  border: 1px solid var(--bone-2);
}
.dark .cards { background: var(--ink-3); border-color: var(--ink-3); }
.card { background: var(--bone); padding: 34px 30px; }
.dark .card { background: var(--gunmetal); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--gray-dk); font-size: 16px; }
.dark .card p { color: #9FA3AC; }
.card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
  display: block;
  margin-bottom: 18px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.stat .n { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; color: var(--amber); }
.stat .l { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-dk); margin-top: 6px; }
.dark .stat .l { color: #9FA3AC; }

.sensor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sensor-list li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--bone-2);
  padding: 9px 14px;
  color: var(--gray-dk);
}
.dark .sensor-list li { border-color: var(--ink-3); color: #9FA3AC; }

.figure { border: 1px solid var(--bone-2); background: transparent; padding: 20px; }
.dark .figure {
  border-color: transparent;
  background: radial-gradient(58% 62% at 50% 48%, rgba(209,143,52,0.14), transparent 72%);
  padding: 0;
  position: relative;
}
.figure .shot { position: relative; }
.dark .figure .shot::before {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  top: 26%;
  bottom: -10%;
  background: url("../img/hex-pad.svg") center bottom / contain no-repeat;
  mask-image: radial-gradient(78% 96% at 50% 88%, #000 18%, rgba(0,0,0,0.45) 56%, transparent 88%);
  -webkit-mask-image: radial-gradient(78% 96% at 50% 88%, #000 18%, rgba(0,0,0,0.45) 56%, transparent 88%);
  opacity: 0.85;
}
.figure .shot img { position: relative; z-index: 1; }
.dark .figure .shot { padding-top: 138px; }
.dark .figure .shot::before,
.dark .figure .shot > .sky {
  pointer-events: none;
}
.dark .figure .shot > .sky {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 72%;
  background: url("../img/tech-stars.svg") center top / 100% 100% no-repeat;
  mask-image: linear-gradient(#000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
  opacity: 0.9;
  z-index: 0;
}
.dark .figure .shot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 92px;
  height: 92px;
  margin-left: -46px;
  background: url("../img/reticle.svg") center / contain no-repeat;
  opacity: 0.75;
  z-index: 2;
  pointer-events: none;
}
.figure figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 16px;
}

/* ---------- caldor demo ---------- */

.caldor {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: stretch;
  border: 1px solid var(--ink-3);
  background: var(--ink-2);
  padding: 24px;
}
.caldor-map {
  position: relative;
  background: #0B0C0F url("../img/site-plan.svg") center / cover no-repeat;
}
.caldor canvas { width: 100%; height: auto; display: block; background: transparent; position: relative; }
.caldor-side { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.caldor-read { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: #9FA3AC; }
.caldor-read .big { display: block; font-size: 44px; letter-spacing: -0.02em; color: var(--bone); margin-bottom: 2px; }
.caldor-read .big.hot { color: var(--amber-hi); }
.caldor-scale { height: 8px; background: linear-gradient(90deg, #1B3A4A, #2E6E7E, #C8A24A, #D9561F); }
.caldor-legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 8px;
}
.caldor-log { font-family: var(--mono); font-size: 11px; line-height: 1.9; color: #8C9098; }
.caldor-log b { color: var(--amber-hi); font-weight: 500; }

/* ---------- team ---------- */

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; }
.team .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin: 6px 0 14px; }
.team h3 { margin-bottom: 0; }
.team p { font-size: 16px; color: var(--gray-dk); }
.team > div { border-top: 2px solid var(--amber); padding-top: 20px; }
.team .portrait { width: 108px; height: 135px; margin-bottom: 18px; }

.careers-reticle {
  display: block;
  width: 168px;
  height: 168px;
  margin: 8px auto 0;
  background: url("../img/reticle.svg") center / contain no-repeat;
  opacity: 0.7;
}

/* ---------- news ---------- */

.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--bone-2);
}
.news-item:last-child { border-bottom: 1px solid var(--bone-2); }
.news-item time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 5px;
}
.news-item h3 { margin-bottom: 10px; }
.news-item h3 a { color: var(--ink); }
.news-item h3 a:hover { color: var(--amber); }
.news-item p { color: var(--gray-dk); font-size: 16px; }

.prose { max-width: 64ch; font-size: 18px; }
.prose p { color: var(--gray-dk); }
/* Policy pages are the only prose here that uses lists or inline code. Without
   these the bullets inherit body ink and sit a shade darker than the paragraphs
   around them, and cookie names render at the browser's default mono size. */
.prose ul { color: var(--gray-dk); padding-left: 20px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 8px; }
.prose code { font-family: var(--mono); font-size: 0.88em; }

@media (max-width: 700px) {
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .news-item time { padding-top: 0; }
}

/* ---------- footer ---------- */

.site-footer { background: var(--gunmetal); color: #9FA3AC; padding: 72px 0 40px; font-size: 15px; }
.site-footer a { color: var(--bone); }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 48px; }
.footer-grid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--gray); }
.footer-legal a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(245,243,239,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-dk);
}

@media (min-width: 881px) and (max-width: 1090px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  section { padding: 72px 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .two-col, .split, .caldor { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero { padding: 88px 0 72px; }
  .wrap { padding: 0 22px; }
  .site-nav { gap: 18px; }
}
