@import url('https://fonts.googleapis.com/css2?family=Anybody:wdth,wght@50..200,400;50..200,700;50..200,900&family=Commissioner:wght@300;400;500;600;700&family=Red+Hat+Mono:wght@400;500&display=swap');

:root {
  --infrared-black: #06060f;
  --sensor-graphite: #12121c;
  --cold-void: #0a0e1a;
  --thermal-purple: #2a1045;
  --hot-magma: #ff3d8a;
  --lava-orange: #ff6b2b;
  --solar-yellow: #ffd23f;
  --arctic-cyan: #3dd9e8;
  --frost-white: #f0eef5;
  --text-muted: #9a96a8;
  --heat-glow: rgba(255, 61, 138, 0.35);
  --cold-glow: rgba(61, 217, 232, 0.2);
  --font-display: 'Anybody', sans-serif;
  --font-body: 'Commissioner', sans-serif;
  --font-mono: 'Red Hat Mono', monospace;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  max-width: 100vw;
  position: relative;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--frost-white);
  background: var(--infrared-black);
  overflow-x: hidden !important;
  max-width: 100vw;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--arctic-cyan);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--hot-magma);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sensor-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.thermal-bg {
  position: relative;
  background: var(--infrared-black);
}

.thermal-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 30%, rgba(255, 61, 138, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 80% 70%, rgba(255, 107, 43, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 35% 35% at 50% 50%, rgba(42, 16, 69, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse 25% 30% at 90% 15%, rgba(61, 217, 232, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: heatShift 18s ease-in-out infinite alternate;
}

.thermal-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

@keyframes heatShift {
  0% { background-position: 0% 0%; opacity: 1; }
  100% { background-position: 5% 3%; opacity: 0.92; }
}

.scan-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(61, 217, 232, 0.06), rgba(255, 61, 138, 0.08), transparent);
  pointer-events: none;
  z-index: 2;
  animation: scanOnce 2.8s ease-out 0.4s forwards;
}

@keyframes scanOnce {
  0% { left: -40%; opacity: 0; }
  10% { opacity: 1; }
  100% { left: 140%; opacity: 0; }
}

.sensor-corners {
  position: relative;
}

.sensor-corners::before,
.sensor-corners::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--arctic-cyan);
  border-style: solid;
  opacity: 0;
  animation: cornerDraw 0.8s ease forwards 1s;
}

.sensor-corners::before {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
}

.sensor-corners::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 2px 2px 0;
}

@keyframes cornerDraw {
  to { opacity: 0.8; }
}

.container {
  width: min(1280px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(6, 6, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61, 217, 232, 0.1);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(255, 61, 138, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1280px, 92vw);
  margin: 0 auto;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--arctic-cyan), var(--hot-magma));
  transition: width 0.3s ease;
}

.nav-desktop a:hover {
  color: var(--frost-white);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.heat-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--hot-magma);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.heat-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hot-magma);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--heat-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 8px 2px var(--heat-glow); }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, var(--hot-magma), var(--lava-orange));
  color: var(--infrared-black);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--solar-yellow), 0 0 20px rgba(255, 61, 138, 0.2);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-primary::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--arctic-cyan);
  flex-shrink: 0;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  box-shadow: inset 0 0 0 1px var(--solar-yellow), 0 0 35px rgba(255, 61, 138, 0.45);
  transform: translateY(-1px);
  color: var(--infrared-black);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-secondary {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arctic-cyan);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding-bottom: 4px;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--arctic-cyan), var(--cold-void), var(--arctic-cyan));
  transition: background 0.3s ease;
}

.btn-secondary:hover::after {
  background: linear-gradient(90deg, var(--arctic-cyan), var(--hot-magma), var(--lava-orange), var(--solar-yellow));
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--frost-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--infrared-black);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--frost-white);
  text-transform: uppercase;
}

body.menu-open {
  overflow: hidden !important;
}

.hero {
  min-height: 100vh;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 1.5rem 2rem;
  align-items: start;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: luminosity;
}

.hero-heat-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(255, 61, 138, 0.25) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 20% 80%, rgba(61, 217, 232, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, rgba(6, 6, 15, 0.3) 0%, rgba(6, 6, 15, 0.85) 100%);
  animation: heatShift 20s ease-in-out infinite alternate;
}

.hero-headline {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  position: relative;
  z-index: 3;
  padding-left: 4vw;
}

.hero-headline .cold-line {
  display: block;
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  font-weight: 400;
  font-stretch: 75%;
  color: var(--arctic-cyan);
  opacity: 0.85;
}

.hero-headline .hot-line {
  display: block;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  font-stretch: 50%;
  color: var(--hot-magma);
  text-shadow: 0 0 60px rgba(255, 61, 138, 0.4);
  margin-top: -0.1em;
}

.hero-delta {
  grid-column: 2 / 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  position: relative;
  z-index: 3;
  padding-right: 4vw;
  text-align: right;
}

.delta-value {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  font-stretch: 50%;
  color: var(--lava-orange);
  line-height: 0.9;
}

.delta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--solar-yellow);
  margin-top: 0.25rem;
}

.hero-readout {
  grid-column: 1 / 2;
  grid-row: 3;
  position: relative;
  z-index: 3;
  padding-left: 4vw;
  max-width: 420px;
}

.readout-panel {
  background: rgba(240, 238, 245, 0.06);
  border: 1px solid rgba(61, 217, 232, 0.15);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(8px);
  position: relative;
}

.readout-panel::before {
  content: 'THERMAL READOUT';
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--arctic-cyan);
  background: var(--infrared-black);
  padding: 0 6px;
}

.readout-panel p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-visual {
  grid-column: 2 / 3;
  grid-row: 2 / 4;
  position: relative;
  z-index: 2;
  padding-right: 4vw;
  align-self: center;
}

.hero-visual-frame {
  position: relative;
  border: 1px solid rgba(255, 61, 138, 0.2);
  overflow: hidden;
}

.hero-visual-frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-visual-frame .sensor-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--solar-yellow);
  letter-spacing: 0.1em;
}

.hero-chips {
  grid-column: 1 / 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 4vw;
  position: relative;
  z-index: 3;
}

.hot-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem;
  background: rgba(42, 16, 69, 0.7);
  border: 1px solid rgba(255, 61, 138, 0.3);
  color: var(--frost-white);
  opacity: 0;
  animation: chipGlow 0.6s ease forwards;
}

.hot-chip:nth-child(1) { animation-delay: 1.2s; }
.hot-chip:nth-child(2) { animation-delay: 1.5s; }
.hot-chip:nth-child(3) { animation-delay: 1.8s; }

@keyframes chipGlow {
  0% { opacity: 0; box-shadow: none; }
  100% { opacity: 1; box-shadow: 0 0 15px rgba(255, 61, 138, 0.3); }
}

.hero-cta-row {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 4vw 0;
  position: relative;
  z-index: 3;
}

.hot-zone-strip {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 61, 138, 0.1);
  border-bottom: 1px solid rgba(61, 217, 232, 0.1);
  overflow-x: hidden;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.strip-item {
  flex: 1 1 160px;
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--lava-orange);
  background: rgba(18, 18, 28, 0.6);
}

.strip-item .sensor-mono {
  color: var(--hot-magma);
  margin-bottom: 0.35rem;
  display: block;
}

.strip-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cold-noise {
  padding: 6rem 0;
  position: relative;
  overflow-x: hidden;
}

.cold-noise-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.thermal-panel-dark {
  background: linear-gradient(145deg, var(--thermal-purple), var(--sensor-graphite));
  padding: 3rem;
  position: relative;
  border: 1px solid rgba(255, 61, 138, 0.15);
}

.thermal-panel-dark h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.5rem;
  color: var(--frost-white);
}

.thermal-panel-dark p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.readout-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.frost-card {
  background: var(--frost-white);
  color: var(--infrared-black);
  padding: 1.25rem 1.5rem;
  position: relative;
}

.frost-card .sensor-mono {
  color: var(--hot-magma);
  margin-bottom: 0.5rem;
  display: block;
}

.frost-card p {
  font-size: 0.88rem;
  line-height: 1.55;
}

.heat-connector {
  position: absolute;
  width: 1px;
  background: linear-gradient(180deg, var(--hot-magma), transparent);
  opacity: 0.3;
}

.detected-outcomes {
  padding: 6rem 0;
  overflow-x: hidden;
}

.outcome-map {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
  position: relative;
}

.outcome-primary {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  position: relative;
}

.outcome-primary img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.outcome-primary .outcome-data {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(6, 6, 15, 0.95) 0%, transparent 100%);
}

.outcome-secondary {
  position: relative;
  overflow: hidden;
}

.outcome-secondary img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.outcome-secondary .outcome-data {
  padding: 1rem;
  background: var(--sensor-graphite);
}

.outcome-data h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--hot-magma);
}

.outcome-data .sensor-mono {
  color: var(--arctic-cyan);
  margin-bottom: 0.35rem;
  display: block;
}

.outcome-data p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hotspot-note {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--solar-yellow);
  letter-spacing: 0.08em;
  padding: 0.35rem 0.6rem;
  background: rgba(6, 6, 15, 0.8);
  border: 1px solid rgba(255, 210, 63, 0.3);
}

.intensity-thesis {
  padding: 7rem 0;
  background: linear-gradient(160deg, var(--thermal-purple) 0%, var(--infrared-black) 60%);
  position: relative;
  overflow-x: hidden;
}

.thesis-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.thesis-headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  font-stretch: 50%;
  background: linear-gradient(135deg, var(--hot-magma), var(--lava-orange), var(--solar-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.thesis-headline-mask {
  position: relative;
  padding: 2rem;
}

.thesis-headline-mask::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(ellipse at center, rgba(255, 61, 138, 0.15) 0%, transparent 70%);
  z-index: -1;
}

.service-heatmaps {
  padding: 6rem 0;
  overflow-x: hidden;
}

.service-heatmaps h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  padding-left: 2vw;
}

.section-intro {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3rem;
  padding-left: 2vw;
}

.heat-field-map {
  position: relative;
  min-height: 600px;
  background:
    radial-gradient(ellipse 40% 35% at 30% 40%, rgba(255, 61, 138, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 70% 60%, rgba(255, 107, 43, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 25% 25% at 50% 20%, rgba(61, 217, 232, 0.08) 0%, transparent 50%),
    var(--cold-void);
  border: 1px solid rgba(61, 217, 232, 0.1);
}

.service-island {
  position: absolute;
  padding: 1.5rem;
  background: rgba(18, 18, 28, 0.85);
  border: 1px solid rgba(255, 61, 138, 0.2);
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 280px;
}

.service-island:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 61, 138, 0.2);
}

.service-island.primary-zone {
  width: 320px;
  border-color: var(--hot-magma);
  box-shadow: 0 0 40px rgba(255, 61, 138, 0.15);
}

.service-island h3 {
  font-size: 1rem;
  color: var(--hot-magma);
  margin-bottom: 0.75rem;
}

.service-island .island-meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--arctic-cyan);
  margin-bottom: 0.5rem;
  display: block;
}

.service-island p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.service-island .island-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--lava-orange);
  letter-spacing: 0.08em;
}

.island-1 { top: 8%; left: 5%; }
.island-2 { top: 15%; right: 8%; width: 260px; }
.island-3 { top: 45%; left: 15%; }
.island-4 { bottom: 12%; right: 12%; width: 300px; }
.island-5 { bottom: 20%; left: 40%; width: 240px; }
.island-6 { top: 55%; right: 25%; width: 220px; }

.pressure-proof {
  padding: 6rem 0;
  overflow-x: hidden;
}

.proof-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
}

.proof-block-invisible {
  background: var(--cold-void);
  padding: 3rem;
  border: 1px solid rgba(61, 217, 232, 0.15);
  position: relative;
}

.proof-block-visible {
  background: linear-gradient(135deg, rgba(255, 61, 138, 0.12), rgba(255, 107, 43, 0.08));
  padding: 2rem;
  border: 1px solid rgba(255, 61, 138, 0.25);
}

.proof-block-invisible h3,
.proof-block-visible h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.proof-block-invisible h3 { color: var(--arctic-cyan); }
.proof-block-visible h3 { color: var(--hot-magma); }

.proof-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.proof-marker {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 61, 138, 0.3);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.about-detection {
  padding: 6rem 0;
  overflow-x: hidden;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

.about-image-wrap .hotspot-note {
  top: 20px;
  right: -10px;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.thermal-response {
  padding: 6rem 0;
  background: var(--sensor-graphite);
  overflow-x: hidden;
}

.response-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.response-step {
  padding: 1.5rem 1rem;
  background: rgba(6, 6, 15, 0.6);
  border-top: 2px solid var(--lava-orange);
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.response-step:hover {
  border-color: var(--hot-magma);
  box-shadow: 0 0 20px rgba(255, 61, 138, 0.15);
}

.response-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--arctic-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.response-step h4 {
  font-size: 0.95rem;
  color: var(--frost-white);
  margin-bottom: 0.5rem;
}

.response-step p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.marquee-section {
  padding: 2rem 0;
  overflow: hidden;
  max-width: 100vw;
  background: var(--infrared-black);
  border-top: 1px solid rgba(255, 61, 138, 0.1);
  border-bottom: 1px solid rgba(61, 217, 232, 0.1);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeLeft 40s linear infinite;
}

.marquee-track-reverse {
  display: flex;
  width: max-content;
  animation: marqueeRight 35s linear infinite;
  margin-top: 0.5rem;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0 2rem;
  white-space: nowrap;
}

.marquee-item span {
  color: var(--hot-magma);
  margin-right: 0.5rem;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.priority-cta {
  padding: 6rem 0;
  position: relative;
  overflow-x: hidden;
}

.cta-hot-panel {
  background: linear-gradient(135deg, rgba(255, 61, 138, 0.15), rgba(255, 107, 43, 0.1));
  border: 1px solid rgba(255, 61, 138, 0.3);
  padding: 4rem;
  text-align: left;
  max-width: 800px;
  position: relative;
}

.cta-hot-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  color: var(--frost-white);
}

.cta-hot-panel p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.cta-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--arctic-cyan);
  margin-top: 1rem;
  letter-spacing: 0.08em;
}

.contact-preview {
  padding: 4rem 0;
  overflow-x: hidden;
}

.contact-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-preview-item h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--hot-magma);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.contact-preview-item p,
.contact-preview-item address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 4rem 0 2rem;
  background: var(--sensor-graphite);
  border-top: 1px solid rgba(61, 217, 232, 0.1);
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--arctic-cyan);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--hot-magma);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  position: relative;
  overflow-x: hidden;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.page-hero .cold-line {
  display: block;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--arctic-cyan);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.page-content {
  padding: 3rem 0 5rem;
  overflow-x: hidden;
}

.page-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 72ch;
}

.page-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 2.5rem 0 1rem;
  color: var(--frost-white);
}

.page-content h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--hot-magma);
}

.content-image {
  margin: 2rem 0;
  position: relative;
}

.content-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.content-image .sensor-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--solar-yellow);
}

.faq-section {
  padding: 3rem 0;
  overflow-x: hidden;
}

.faq-item {
  border-bottom: 1px solid rgba(61, 217, 232, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--frost-white);
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--hot-magma);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-form-section {
  padding: 3rem 0 5rem;
  overflow-x: hidden;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.scan-intake-form {
  background: rgba(18, 18, 28, 0.8);
  border: 1px solid rgba(255, 61, 138, 0.2);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--arctic-cyan);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(6, 6, 15, 0.8);
  border: 1px solid rgba(61, 217, 232, 0.2);
  color: var(--frost-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--hot-magma);
  box-shadow: 0 0 15px rgba(255, 61, 138, 0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ff4444;
}

.form-group .error-msg {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #ff4444;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info-panel {
  padding: 2rem 0;
}

.contact-info-panel h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.info-block {
  margin-bottom: 2rem;
}

.info-block h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--hot-magma);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.info-block p,
.info-block address {
  color: var(--text-muted);
  font-style: normal;
}

.map-embed {
  margin-top: 2rem;
  border: 1px solid rgba(61, 217, 232, 0.15);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.thanks-panel {
  max-width: 560px;
  padding: 3rem;
  background: rgba(18, 18, 28, 0.9);
  border: 1px solid rgba(255, 61, 138, 0.25);
}

.thanks-panel h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--hot-magma);
  margin-bottom: 1rem;
}

.thanks-panel p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow-x: hidden;
}

.legal-content {
  background: var(--frost-white);
  color: var(--infrared-black);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--infrared-black);
}

.legal-content .legal-updated {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  color: var(--thermal-purple);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--infrared-black);
}

.legal-content p,
.legal-content li {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  color: #333;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.legal-nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--hot-magma);
  letter-spacing: 0.06em;
}

.services-accordion {
  display: none;
}

.portfolio-map {
  margin: 3rem 0;
  position: relative;
}

.portfolio-map-alt {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin: 3rem 0;
}

.portfolio-map-alt .outcome-primary {
  grid-column: 1;
  grid-row: 1 / 3;
}

.portfolio-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-top: calc(var(--header-h) + 2rem);
  }

  .hero-headline,
  .hero-delta,
  .hero-readout,
  .hero-visual,
  .hero-chips,
  .hero-cta-row {
    grid-column: 1;
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .hero-delta {
    justify-self: start;
    text-align: left;
    grid-row: auto;
  }

  .hero-visual {
    grid-row: auto;
  }

  .cold-noise-layout,
  .thesis-layout,
  .proof-layout,
  .about-layout,
  .form-layout,
  .footer-grid,
  .contact-preview-grid {
    grid-template-columns: 1fr;
  }

  .outcome-map {
    grid-template-columns: 1fr;
  }

  .outcome-primary {
    grid-column: 1;
    grid-row: auto;
  }

  .response-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .heat-field-map {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--cold-void);
  }

  .service-island {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .services-accordion {
    display: block;
  }

  .portfolio-map-alt {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop,
  .heat-status,
  .header-cta-desktop {
    display: none;
  }

  .burger {
    display: flex;
  }

  .response-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip-inner {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .legal-content {
    padding: 1.5rem;
  }
}

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1025px) and (hover: hover) {
  .parallax-layer {
    transition: transform 0.1s linear;
    will-change: transform;
  }
}
