:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #6d6a61;
  --line: #c7bfaf;
  --accent: #6f7f4f;
  --danger: #b8663a;
  --display: "Space Grotesk", "Manrope", sans-serif;
  --body: "Manrope", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
}

a {
  color: inherit;
}

.site {
  min-height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(1440px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.brand-lockup,
.site-nav nav,
.actions,
.contact-band,
.visual-label,
.directory-grid a {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 12px;
  text-decoration: none;
}

.brand-lockup img {
  width: 38px;
  height: 38px;
}

.brand-lockup strong {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
}

.brand-lockup small,
.visual-label,
.eyebrow,
.contact-band span,
.story-grid small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav nav {
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
}

.site-nav nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav-cta,
.primary,
.secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius, 8px);
  padding: 0 18px;
  text-decoration: none;
  transition: transform 160ms ease;
}

.nav-cta,
.primary {
  border: 1px solid color-mix(in srgb, var(--accent) 76%, var(--ink));
  background: var(--accent);
  color: var(--button-ink, var(--surface));
  font-weight: 800;
}

.secondary {
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  color: var(--ink);
}

.nav-cta:active,
.primary:active,
.secondary:active {
  transform: translateY(1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(400px, 1.08fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: center;
  width: min(1440px, calc(100% - 32px));
  min-height: calc(100dvh - 78px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 100px) 0 clamp(34px, 5vw, 76px);
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
}

.eyebrow::before {
  width: 36px;
  height: 2px;
  background: var(--accent);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(42px, 5.8vw, 80px);
  font-weight: var(--hero-weight, 800);
  line-height: var(--hero-leading, 0.95);
  letter-spacing: 0;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.product-visual {
  position: relative;
  min-height: clamp(480px, 58vw, 720px);
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: var(--panel-radius, 8px);
  background: var(--surface);
  box-shadow: var(--shadow, 0 28px 90px color-mix(in srgb, var(--ink) 14%, transparent));
  overflow: hidden;
}

.visual-label {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 20px;
  z-index: 3;
  justify-content: space-between;
  gap: 12px;
}

.map-visual {
  background:
    repeating-linear-gradient(18deg, transparent 0 32px, color-mix(in srgb, var(--line) 42%, transparent) 33px 34px),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, var(--bg)), var(--surface));
}

.topo-layer {
  position: absolute;
  inset: 70px 34px 34px;
}

.path {
  position: absolute;
  border: 4px solid var(--accent);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.path.one {
  width: 54%;
  height: 70%;
  left: 8%;
  top: 8%;
  transform: rotate(-28deg);
}

.path.two {
  width: 42%;
  height: 44%;
  right: 9%;
  top: 14%;
  border-color: color-mix(in srgb, var(--danger) 84%, var(--accent));
  border-left-color: transparent;
}

.path.three {
  width: 60%;
  height: 34%;
  left: 20%;
  bottom: 6%;
  border-color: color-mix(in srgb, var(--line) 84%, var(--accent));
  border-top-color: transparent;
}

.pin {
  position: absolute;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.p1 {
  left: 28%;
  top: 28%;
}

.p2 {
  right: 22%;
  top: 45%;
}

.p3 {
  left: 54%;
  bottom: 20%;
  background: var(--danger);
}

.map-card {
  position: absolute;
  right: 26px;
  bottom: 24px;
  width: min(330px, calc(100% - 52px));
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 8px;
  padding: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
}

.map-card strong,
.phone-shell h3,
.protocol-list b,
.sequence-panel b,
.mirror-sheet strong,
.code-panel b,
.registry-panel b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 22px;
}

.map-card p,
.phone-shell p,
.signal-readout p,
.mirror-sheet p {
  color: var(--muted);
  line-height: 1.5;
}

.map-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-card span,
.care-timeline span,
.protocol-list span,
.sequence-panel span,
.code-panel span,
.registry-panel span {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.care-visual {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 26%),
    var(--surface);
}

.phone-shell {
  width: min(330px, 72%);
  border: 9px solid var(--ink);
  border-radius: 34px;
  padding: 20px;
  background: var(--surface);
  transform: rotate(-4deg);
}

.pet-photo {
  height: 160px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 55% 32%, color-mix(in srgb, var(--danger) 40%, white), transparent 23%),
    radial-gradient(circle at 36% 38%, color-mix(in srgb, var(--accent) 42%, white), transparent 19%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, var(--bg)), var(--surface));
}

.phone-shell ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.care-timeline {
  position: absolute;
  right: 30px;
  bottom: 30px;
  display: grid;
  gap: 10px;
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: color-mix(in srgb, var(--bg) 90%, white);
}

.signal-visual {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 30%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--line) 22%, transparent) 1px, transparent 1px),
    var(--surface);
  background-size: 72px 72px;
}

.room-frame {
  position: absolute;
  inset: 76px 34px 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--bg));
}

.room-frame span {
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 68%, var(--surface));
}

.room-frame span:nth-child(1) {
  width: 110px;
  height: 70px;
  left: 18%;
  bottom: 18%;
}

.room-frame span:nth-child(2) {
  width: 44px;
  height: 44px;
  right: 22%;
  top: 22%;
}

.room-frame span:nth-child(3) {
  width: 70px;
  height: 20px;
  right: 18%;
  bottom: 18%;
  border-radius: 999px;
}

.waveform {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 92px;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 5px;
  align-items: end;
  height: 72px;
}

.waveform i {
  display: block;
  min-height: 14px;
  border-radius: 999px;
  background: var(--accent);
  animation: wave 2.8s ease-in-out infinite;
}

.waveform i:nth-child(3n) {
  height: 64px;
}

.waveform i:nth-child(3n + 1) {
  height: 34px;
}

.waveform i:nth-child(3n + 2) {
  height: 50px;
}

.signal-readout {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 22px;
}

.research-visual,
.developer-visual {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 26%, transparent) 1px, transparent 1px),
    var(--surface);
  background-size: 52px 52px;
}

.paper-graph {
  position: absolute;
  inset: 86px 40px 230px;
}

.paper-graph i,
.threat-graph i {
  position: absolute;
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.paper-graph i:nth-child(1) { left: 6%; top: 22%; }
.paper-graph i:nth-child(2) { left: 42%; top: 4%; }
.paper-graph i:nth-child(3) { right: 8%; top: 35%; }
.paper-graph i:nth-child(4) { left: 35%; bottom: 4%; }

.paper-graph span {
  position: absolute;
  inset: 26% 18%;
  border-top: 4px solid var(--accent);
  border-left: 4px solid var(--accent);
  transform: rotate(22deg);
}

.protocol-list,
.sequence-panel,
.code-panel,
.registry-panel {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.protocol-list b,
.sequence-panel b,
.code-panel b,
.registry-panel b {
  flex-basis: 100%;
}

.security-visual {
  background: #0b0d0e;
  color: #e6ece8;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.28);
}

.security-visual .visual-label {
  color: #98a29d;
}

.threat-stream {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 72px;
  display: grid;
  gap: 10px;
}

.threat-stream span {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  min-height: 54px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, #394145);
  border-radius: 8px;
  padding: 0 14px;
  background: #131719;
  font-family: var(--mono);
}

.threat-stream b {
  color: var(--danger);
}

.threat-graph {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 38px;
  height: 180px;
  border: 1px solid #394145;
  border-radius: 8px;
}

.threat-graph i {
  width: 38px;
  height: 38px;
  border-color: var(--accent);
  background: #0b0d0e;
}

.threat-graph i:nth-child(1) { left: 14%; top: 28%; }
.threat-graph i:nth-child(2) { left: 42%; top: 12%; }
.threat-graph i:nth-child(3) { right: 20%; top: 42%; }
.threat-graph i:nth-child(4) { left: 54%; bottom: 14%; background: var(--danger); }

.bio-visual {
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 42%), var(--surface);
}

.protein-ribbon {
  position: absolute;
  inset: 18% 16% 32%;
  border: 22px solid color-mix(in srgb, var(--accent) 78%, var(--surface));
  border-left-color: transparent;
  border-bottom-color: color-mix(in srgb, var(--danger) 56%, var(--surface));
  border-radius: 48% 22% 52% 20%;
  animation: orbit 9s ease-in-out infinite alternate;
}

.reflection-visual {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 76px 34px 34px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%),
    var(--surface);
}

.mirror-sheet {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: color-mix(in srgb, var(--bg) 70%, white);
}

.mirror-sheet.alt {
  margin-left: clamp(24px, 7vw, 90px);
}

.hardware-visual {
  background: var(--ink);
}

.hardware-visual .visual-label {
  color: color-mix(in srgb, var(--surface) 72%, transparent);
}

.sticker-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background:
    linear-gradient(135deg, var(--surface) 25%, transparent 25% 50%, var(--surface) 50% 75%, transparent 75%);
  background-size: 28px 28px;
}

.device-render {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(390px, 62%);
  aspect-ratio: 1.15;
  border: 18px solid #0f0f0f;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 40%, var(--accent) 0 12%, transparent 13%),
    linear-gradient(145deg, #fbfbf4, #c9c9bf);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%) rotate(-8deg);
  animation: float 5s ease-in-out infinite;
}

.speech-burst {
  position: absolute;
  right: 8%;
  top: 23%;
  max-width: 270px;
  border: 2px solid #0f0f0f;
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 900;
}

.developer-visual {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 16px;
  align-content: end;
  padding: 92px 28px 28px;
}

.developer-visual .code-panel,
.developer-visual .registry-panel {
  position: static;
  display: grid;
  align-content: start;
  min-height: 360px;
}

.code-panel span,
.registry-panel span {
  border-radius: 6px;
}

.section-band,
.careers-band,
.contact-band {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.section-band {
  padding: clamp(56px, 8vw, 110px) 0;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section-intro h2 {
  max-width: 840px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1;
}

.section-intro span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.95fr;
  gap: 16px;
}

.story-grid article {
  min-height: 280px;
  border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  padding-top: 20px;
}

.story-grid article:nth-child(2) {
  margin-top: 68px;
}

.story-grid h3 {
  max-width: 360px;
  margin: 20px 0 12px;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.04;
}

.story-grid p {
  max-width: 390px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-band {
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 42px 0 56px;
}

.careers-band {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(420px, 1.26fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  padding: clamp(54px, 8vw, 104px) 0;
}

.careers-copy {
  position: sticky;
  top: 104px;
}

.careers-copy span,
.careers-steps small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.careers-copy h2 {
  max-width: 640px;
  margin: 16px 0 18px;
  font-family: var(--display);
  font-size: clamp(34px, 4.8vw, 68px);
  line-height: 1;
}

.careers-copy p {
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.careers-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.careers-steps article {
  min-height: 250px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: var(--panel-radius, 8px);
  padding: 20px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.careers-steps article:nth-child(2),
.careers-steps article:nth-child(4) {
  transform: translateY(36px);
}

.careers-steps strong {
  display: block;
  margin: 48px 0 10px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.08;
}

.careers-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-band h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 80px);
}

.contact-band p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  line-height: 1.8;
  text-align: right;
}

.expedition-os {
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 28%),
    var(--bg);
}

.cartographic-guide .hero {
  grid-template-columns: minmax(360px, 0.72fr) minmax(480px, 1.28fr);
}

.cartographic-guide .product-visual {
  min-height: 760px;
}

.care-record {
  --panel-radius: 22px;
  --shadow: 0 24px 80px color-mix(in srgb, var(--ink) 10%, transparent);
}

.home-signal {
  --panel-radius: 18px;
}

.research-workbench .story-grid,
.developer-protocol .story-grid {
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
}

.soc-console {
  --button-ink: #0b0d0e;
  background: #0b0d0e;
}

.soc-console .site-nav,
.soc-console .section-band,
.soc-console .careers-band,
.soc-console .contact-band {
  color: #e6ece8;
}

.soc-console .hero {
  border-bottom: 1px solid #394145;
}

.private-reflection {
  --hero-weight: 400;
  --hero-leading: 1.02;
}

.private-reflection h1,
.memory-atlas h1 {
  font-family: "Instrument Serif", serif;
}

.memory-atlas .map-visual {
  border-radius: 2px;
}

.hardware-drop {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 32%, transparent) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
}

.hardware-drop h1 {
  font-size: clamp(52px, 7.2vw, 98px);
  line-height: 0.9;
}

.directory {
  min-height: 100dvh;
  padding: clamp(32px, 7vw, 86px);
  background: var(--bg);
}

.directory section {
  width: min(1180px, 100%);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.directory-grid a {
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  text-decoration: none;
}

.directory-grid img {
  width: 42px;
  height: 42px;
}

.directory-grid strong,
.directory-grid span {
  display: block;
}

.directory-grid span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.65); }
  50% { transform: scaleY(1); }
}

@keyframes orbit {
  from { transform: rotate(-16deg) translate3d(0, 0, 0); }
  to { transform: rotate(16deg) translate3d(12px, -8px, 0); }
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) rotate(-8deg); }
  50% { transform: translate(-50%, -55%) rotate(-3deg); }
}

@media (max-width: 1080px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .site-nav nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .hero,
  .cartographic-guide .hero,
  .section-intro,
  .careers-band,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .story-grid article:nth-child(2) {
    margin-top: 0;
  }

  .careers-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-nav,
  .hero,
  .section-band,
  .careers-band,
  .contact-band {
    width: min(100% - 24px, 1440px);
  }

  .site-nav {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .site-nav nav,
  .nav-cta {
    display: none;
  }

  h1,
  .hardware-drop h1 {
    font-size: clamp(42px, 13vw, 66px);
    line-height: 0.98;
  }

  .hero-copy {
    font-size: 17px;
  }

  .actions,
  .primary,
  .secondary {
    width: 100%;
  }

  .product-visual,
  .cartographic-guide .product-visual {
    min-height: 560px;
  }

  .map-card,
  .care-timeline {
    left: 18px;
    right: 18px;
    width: auto;
  }

  .phone-shell {
    width: 78%;
  }

  .developer-visual {
    grid-template-columns: 1fr;
  }

  .developer-visual .code-panel,
  .developer-visual .registry-panel {
    min-height: 220px;
  }

  .contact-band {
    display: block;
  }

  .careers-steps {
    grid-template-columns: 1fr;
  }

  .careers-steps article,
  .careers-steps article:nth-child(2),
  .careers-steps article:nth-child(4) {
    min-height: auto;
    transform: none;
  }

  .careers-steps strong {
    margin-top: 24px;
  }

  .contact-band p {
    margin-top: 18px;
    text-align: left;
  }
}
