@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --bg-base:      #2E4A50;
  --bg-raised:    #354F56;
  --bg-deep:      #22393E;
  --bg-panel:     #1A2E32;
  --accent:       #F0C9A0;
  --accent-dim:   #C8A07A;
  --accent-faint: rgba(240, 201, 160, 0.10);
  --text-primary: #E0D5C8;
  --text-muted:   #8BADA8;
  --border:       rgba(240, 201, 160, 0.15);
  --border-dim:   rgba(240, 201, 160, 0.07);
  --green:        #7EB89A;
  --yellow:       #D4A84B;
  --red:          #C87070;
  --font-sans:    'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Blueprint grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 201, 160, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 201, 160, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

/* ── Atmosphere: sky → ground scene ── */
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.scene-sky,
.scene-ground {
  position: absolute;
  inset: 0;
}
.scene-sky {
  background: linear-gradient(180deg, #6E97A3 0%, #3C5D64 45%, var(--bg-base) 100%);
}
.scene-ground {
  background: linear-gradient(180deg, var(--bg-base) 0%, #4A3B2A 55%, #2A2018 100%);
  opacity: 0;
}
.cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 201, 160, 0.28), rgba(240, 201, 160, 0));
  filter: blur(6px);
  will-change: opacity, transform;
}
.cloud-1 { top: 8%;  left: 8%;  width: 260px; height: 110px; }
.cloud-2 { top: 16%; left: 62%; width: 320px; height: 130px; }
.cloud-3 { top: 5%;  left: 40%; width: 190px; height: 90px;  }
.cloud-4 { top: 24%; left: 20%; width: 220px; height: 100px; }
.cloud-5 { top: 12%; left: 82%; width: 160px; height: 80px;  }

@media (max-width: 720px) {
  .cloud-2, .cloud-5 { display: none; }
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 600; line-height: 1.15; }
h1  { font-size: clamp(2.4rem, 5.5vw, 4.2rem); color: var(--accent); letter-spacing: -0.025em; }
h2  { font-size: clamp(1.5rem, 3vw, 2.2rem);   color: var(--accent); }
h3  { font-size: 1.1rem; color: var(--accent); font-weight: 500; }
p   { color: var(--text-primary); }
a   { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dim); }

.mono  { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Layout ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
section    { position: relative; z-index: 1; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(34, 57, 62, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 34px; width: auto; display: block; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 28px;
    gap: 18px;
    z-index: 199;
  }
  .nav-links.open { display: flex; }
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 11px 26px;
  background: var(--accent);
  color: var(--bg-deep);
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--bg-deep); }

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 28px 32px;
  margin-top: 96px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img { height: 44px; }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.06em;
}
.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul  { list-style: none; }
.footer-col li  { margin-bottom: 9px; }
.footer-col a   { font-size: 0.88rem; color: var(--text-primary); opacity: 0.65; transition: opacity 0.2s, color 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  max-width: 1080px;
  margin: 28px auto 0;
  border-top: 1px solid var(--border-dim);
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0.7;
}
.sponsor-badge { display: inline-flex; align-items: center; gap: 6px; }
.sponsor-badge img { height: 16px; width: auto; }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  padding: 80px 28px;
  position: relative;
  z-index: 1;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}
.hero-brand          { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero-logo           { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.hero-text .label    { margin-bottom: 0; display: block; }
.hero-text h1        { margin-bottom: 18px; }
.hero-text .mission  { font-size: 1.08rem; color: var(--text-muted); max-width: 420px; margin-bottom: 36px; line-height: 1.65; }
.hero-cta            { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 56px 28px 64px; min-height: auto; }
}

/* ── Sensor Panel ── */
.sensor-unit {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 24px 20px;
  font-family: var(--font-mono);
  position: relative;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(240,201,160,0.05);
}
.sensor-unit::before {
  content: '';
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.45;
}

.sensor-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.sensor-id  { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.sensor-loc { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--accent); opacity: 0.6; margin-top: 3px; }
.sensor-status { display: flex; align-items: center; gap: 7px; }
.status-text   { font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.reading-display  { text-align: center; margin: 6px 0 12px; }
.reading-label    { font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.reading-value    {
  font-size: 5rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.reading-unit     { font-size: 0.76rem; color: var(--text-muted); letter-spacing: 0.1em; margin-top: 4px; }

.chart-label { font-size: 0.54rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); opacity: 0.6; margin-bottom: 5px; }
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 44px;
  margin-bottom: 14px;
}
.mini-bar { flex: 1; background: rgba(240,201,160,0.17); border-radius: 1px 1px 0 0; min-height: 3px; }
.mini-bar.b-spike   { background: rgba(200,112,112,0.65); }
.mini-bar.b-current { background: var(--accent); opacity: 0.9; }

.scale-section { margin-bottom: 14px; }
.scale-track-wrap { position: relative; }
.scale-track { display: flex; height: 5px; gap: 1px; }
.scale-seg   { border-radius: 2px; }
.seg-safe     { flex: 2; background: var(--green);  opacity: 0.55; }
.seg-moderate { flex: 2; background: var(--yellow); opacity: 0.55; }
.seg-action   { flex: 4; background: var(--red);    opacity: 0.45; }
.scale-marker {
  position: absolute;
  top: -4px;
  width: 2px; height: 13px;
  background: var(--accent);
  border-radius: 1px;
  left: 0%;
  transition: left 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(240,201,160,0.5);
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 0.54rem;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  opacity: 0.65;
}

.sensor-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  border-top: 1px solid var(--border-dim);
  padding-top: 14px;
}
.meta-lbl { font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }

.sensor-disclaimer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: center;
}
.sensor-disclaimer a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; opacity: 0.9; }
.sensor-disclaimer a:hover { color: var(--accent); opacity: 1; }
.meta-val { font-size: 0.74rem; color: var(--accent); }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 8px;
}
.section-title { margin-bottom: 14px; }
.section-sub   { font-size: 1rem; color: var(--text-muted); max-width: 560px; line-height: 1.65; }

.divider { height: 1px; background: var(--border); max-width: 1080px; margin: 0 auto; }

.page-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.unit-photo {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .page-header-flex { flex-direction: column; align-items: flex-start; }
  .unit-photo { width: 100%; height: auto; max-height: 340px; }
}

/* ── Stat cards ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
}
.stat-number { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 300; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.stat-card h3 { margin-bottom: 6px; }
.stat-card p  { font-size: 0.86rem; color: var(--text-muted); line-height: 1.55; }

/* ── Problem strip ── */
.problem-strip {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 0 4px 4px 0;
  padding: 32px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.strip-num { font-family: var(--font-mono); font-size: 3rem; font-weight: 300; color: var(--red); opacity: 0.75; line-height: 1; white-space: nowrap; }
.problem-strip p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }
.problem-strip strong { color: var(--text-primary); }

/* ── Pipeline ── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 32px;
}
.pipeline-step { padding: 24px 20px; border-right: 1px solid var(--border); }
.pipeline-step:last-child { border-right: none; }
.step-index { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.step-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  background: var(--accent-faint);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 10px;
}
.pipeline-step h3 { font-size: 0.9rem; margin-bottom: 6px; }
.pipeline-step p  { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 720px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline-step:nth-child(2) { border-right: none; }
  .pipeline-step:nth-child(1),
  .pipeline-step:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-step { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .pipeline-step:last-child { border-bottom: none !important; }
}

/* ── Deploy chips ── */
.deploy-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  background: var(--accent-faint);
  display: flex;
  align-items: center;
  gap: 7px;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 5px var(--green); flex-shrink: 0; }

/* ── 404 ── */
.error-page { text-align: center; padding: 120px 0; position: relative; z-index: 1; }
.error-code {
  font-family: var(--font-mono);
  font-size: 6rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}
.error-page p { color: var(--text-muted); max-width: 460px; margin: 14px auto 32px; }
@media (max-width: 600px) {
  .error-page { padding: 80px 0; }
  .error-code { font-size: 4rem; }
}

/* ── Page header ── */
.page-header {
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}
.page-header-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

/* ── Recognition ── */
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.press-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
}
.photo-carousel {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}
.carousel-slide { flex: 0 0 100%; }
.carousel-slide img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: var(--bg-panel);
  display: block;
}
.carousel-caption { padding: 12px 16px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.04em; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(26, 46, 50, 0.75);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.carousel-btn:hover { background: var(--accent-faint); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active { background: var(--accent); }
.outlet-tag { font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.press-card p   { font-size: 0.86rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }
.press-link { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); opacity: 0.65; letter-spacing: 0.04em; }
.press-link:hover { opacity: 1; }

.award-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 64px; }
.award-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 28px;
}
.award-badge { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); opacity: 0.5; margin-bottom: 10px; }
.award-card h3 { font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.award-card .sponsor-icon { height: 24px; width: auto; border-radius: 5px; }
.award-card p  { font-size: 0.86rem; color: var(--text-muted); line-height: 1.55; }

/* ── Team ── */
.team-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.team-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.team-card h3 { font-size: 0.88rem; margin: 0; }
.team-location { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.04em; }

/* ── Setup ── */
.hardware-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin: 28px 0 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.hardware-table th {
  text-align: left;
  padding: 10px 18px;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
.hardware-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-dim);
  color: var(--text-primary);
  vertical-align: top;
  line-height: 1.5;
}
.hardware-table tr:last-child td { border-bottom: none; }
.hardware-table td:first-child    { color: var(--accent); white-space: nowrap; }
.hardware-table td:nth-child(3)   { color: var(--text-muted); font-size: 0.74rem; }

.cost-row { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin: 28px 0 48px; }
.cost-box {
  display: inline-flex;
  flex-direction: column;
  background: var(--accent-faint);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 28px;
}
.cost-num { font-family: var(--font-mono); font-size: 3rem; font-weight: 300; color: var(--accent); line-height: 1; }
.cost-lbl { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 6px; }
.cost-breakdown { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); line-height: 2.1; }
.cost-breakdown span { color: var(--text-primary); margin-left: 8px; }

.flow-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 28px;
}
.flow-node {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 18px 16px;
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--border);
}
.flow-node:last-child { border-right: none; }
.fn-label { font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.fn-name  { color: var(--accent); font-size: 0.76rem; }
.flow-arrow { display: flex; align-items: center; padding: 0 4px; color: var(--text-muted); opacity: 0.35; font-size: 0.8rem; flex-shrink: 0; }

@media (max-width: 600px) { .flow-row { flex-direction: column; } .flow-node { border-right: none; border-bottom: 1px solid var(--border); } .flow-node:last-child { border-bottom: none; } .flow-arrow { transform: rotate(90deg); align-self: center; padding: 4px 0; } }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); opacity: 0.45; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: rgba(240,201,160,0.45); }
.contact-form textarea { height: 140px; resize: vertical; }

.form-success {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  border: 1px solid rgba(126,184,154,0.3);
  background: rgba(126,184,154,0.07);
  border-radius: 3px;
  padding: 13px 16px;
  margin-top: 14px;
  letter-spacing: 0.03em;
}
.form-success.show { display: block; }

.contact-aside h3 { margin-bottom: 12px; }
.contact-aside p  { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.6; }
.social-links { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.social-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  transition: color 0.2s, border-color 0.2s;
}
.social-link:hover { color: var(--accent); border-color: var(--accent); }
.social-icon { display: inline-flex; width: 15px; height: 15px; }
.social-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* ── CTA block ── */
.cta-block {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 52px;
  text-align: center;
  margin-top: 72px;
}
.cta-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); margin: 0 auto 20px; display: block; }
.cta-block h2 { margin-bottom: 14px; }
.cta-block p  { color: var(--text-muted); margin-bottom: 28px; max-width: 460px; margin-left: auto; margin-right: auto; font-size: 0.94rem; }
.cta-block .btn-group { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Utils ── */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-24 { margin-bottom: 24px; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }

/* ── Scroll cue ── */
.scroll-cue {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.scroll-cue.hidden { opacity: 0; }
.scroll-cue-arrow {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: scrollCueBounce 1.6s ease-in-out infinite;
}
@keyframes scrollCueBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(4px, 4px); }
}
@media (max-width: 560px) {
  .problem-strip { grid-template-columns: 1fr; gap: 14px; }
  .cta-block { padding: 36px 24px; }
  .section   { padding: 56px 0; }
  .footer-nav { gap: 32px; }
}
