:root {
  --bg:        #F2EDE3;
  --surface:   #EAE4D8;
  --surface-2: #E2DBD0;
  --dark:      #1C1814;
  --red:       #C41C1C;
  --red-light: #D93030;
  --text:      #1C1814;
  --muted:     #7A7165;
  --faint:     #D5CEBD;
  --border:    #CCC4B0;
  --mono:      'Azeret Mono', monospace;
  --display:   'Big Shoulders Display', sans-serif;
  --body:      'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 1.1rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(242,237,227,0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--red); }
.nav-logo-img {
  height: 28px; width: auto;
  vertical-align: middle;
  margin-right: 0.55rem;
  margin-bottom: 2px;
  mix-blend-mode: multiply;  /* blends cream bg of logo into nav background */
}
.nav-btn {
  background: var(--red); color: white; border: none;
  padding: 0.52rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.72rem; font-weight: 400;
  cursor: pointer; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none; display: inline-block;
}
.nav-btn:hover { background: var(--red-light); transform: translateY(-1px); }
.nav-btn:active { transform: translateY(0); }

/* ── LANG ── */
.lang-switcher { display: flex; align-items: center; gap: 0.5rem; }
.lang-link {
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.lang-link:hover { color: var(--text); }
.lang-link.active { color: var(--text); }
.lang-sep { font-size: 0.7rem; color: var(--border); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 57% 43%;
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
}

/* daylight haze */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 60% at 5% 85%, rgba(196,28,28,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 85% 10%, rgba(196,28,28,0.04) 0%, transparent 50%);
  animation: haze 9s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
@keyframes haze {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.05); }
}

/* ── SKYLINE ── */
.hero-skyline {
  position: absolute;
  bottom: 0; left: 0;
  width: 72%;
  height: auto;
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, black 48%),
    linear-gradient(to right, black 65%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, black 48%),
    linear-gradient(to right, black 65%, transparent 92%);
  mask-composite: intersect;
  animation: skylineFadeIn 1.4s ease 1.6s forwards;
}
@keyframes skylineFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 0.22; transform: translateY(0); }
}

/* ── SENSOR DOTS ── */
.hero-dots {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.sensor-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.sensor-dot--planned {
  width: 4px; height: 4px;
  background: rgba(196,28,28,0.5);
  opacity: 0;
  animation: dotFadeIn 0.4s ease forwards;
}
.sensor-dot--planned::after {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(196,28,28,0.18);
}
.sensor-dot--active {
  width: 5px; height: 5px;
  background: var(--red);
  opacity: 0;
  animation: dotFadeIn 0.3s ease forwards, sensorPulse 2.8s ease-in-out 0.3s infinite;
}
@keyframes dotFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes sensorPulse {
  0%, 100% { opacity: 0.8; box-shadow: 0 0 0 0 rgba(196,28,28,0.45); }
  50%       { opacity: 1;   box-shadow: 0 0 0 8px rgba(196,28,28,0); }
}

/* measurement-grid overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(28,24,20,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,24,20,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none; z-index: 0;
}

.hero-left {
  padding: 7.5rem 3rem 5rem 4.5rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 1;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.8rem;
  opacity: 0;
  animation: slideUp 0.7s ease 0.05s forwards;
}
.hero-tag::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px; background: var(--red);
}

h1 {
  font-family: var(--display);
  font-size: clamp(3.6rem, 5.6vw, 6.2rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideUp 0.8s ease 0.2s forwards;
}
h1 em { font-style: italic; color: var(--red); font-weight: 800; }

.hero-sub {
  font-size: 0.95rem; font-weight: 300;
  color: var(--muted); line-height: 1.85;
  max-width: 370px; margin-bottom: 3rem;
  opacity: 0;
  animation: slideUp 0.8s ease 0.38s forwards;
}

/* ── FORM ── */
.form-wrap {
  opacity: 0;
  animation: slideUp 0.8s ease 0.52s forwards;
}
.form-label {
  font-family: var(--mono);
  font-size: 0.63rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.7rem;
}
.form-row {
  display: flex; max-width: 400px;
  border: 1.5px solid var(--dark);
  background: white;
  transition: border-color 0.25s;
}
.form-row:focus-within { border-color: var(--red); }
.form-row input {
  flex: 1; padding: 0.85rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem; font-weight: 300;
  border: none; background: transparent; outline: none;
  color: var(--text);
}
.form-row input::placeholder { color: var(--faint); }
.form-row button {
  padding: 0.85rem 1.3rem;
  background: var(--dark); color: white;
  border: none; cursor: pointer;
  font-family: var(--mono);
  font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s;
  white-space: nowrap;
}
.form-row button:hover { background: var(--red); }
.form-note {
  font-family: var(--mono);
  font-size: 0.65rem; color: var(--muted);
  margin-top: 0.6rem; letter-spacing: 0.04em;
}

/* ── HERO RIGHT — data panel ── */
.hero-right {
  padding: 7.5rem 4rem 5rem 3.5rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 1;
  border-left: 1px solid var(--border);
  background: white;
}

/* Winterthur map ghost — Wikimedia Commons, CC BY-SA */
.hero-right::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('1024px-Karte_Winterthur_Waser.png');
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(0.35) brightness(1.4);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.live-indicator {
  font-family: var(--mono);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 0.55rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: slideUp 0.7s ease 0.3s forwards;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(196,28,28,0.35); }
  50%       { opacity: 0.5; box-shadow: 0 0 0 5px rgba(196,28,28,0); }
}

.stat-block { margin-bottom: 2.5rem; }
.stat-block:last-child { margin-bottom: 0; }
.stat-block:nth-child(2) { opacity: 0; animation: slideUp 0.8s ease 0.45s forwards; }
.stat-block:nth-child(3) { opacity: 0; animation: slideUp 0.8s ease 0.58s forwards; }
.stat-block:nth-child(4) { opacity: 0; animation: slideUp 0.8s ease 0.71s forwards; }

.stat-num {
  font-family: var(--display);
  font-size: 4rem; font-weight: 900;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1; margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.68rem; font-weight: 300;
  color: var(--muted); line-height: 1.65;
  max-width: 190px; letter-spacing: 0.03em;
}
.stat-divider {
  width: 32px; height: 1px;
  background: var(--border); margin: 1.5rem 0;
}

/* ── SECTION BASE ── */
.section-tag {
  font-family: var(--mono);
  font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 1.8rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.section-tag::before {
  content: ''; display: inline-block;
  width: 18px; height: 1px;
}

h2 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 2.8vw, 3.1rem);
  font-weight: 800; line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.body-text {
  font-size: 0.9rem; font-weight: 300;
  line-height: 1.88; color: var(--muted);
}

/* ── PROBLEM ── */
.section-problem {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.problem-left {
  padding: 5.5rem 3rem 5.5rem 4.5rem;
  background: var(--dark);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.problem-right {
  padding: 5.5rem 4.5rem 5.5rem 3rem;
}
.problem-left .section-tag { color: rgba(242,237,227,0.3); }
.problem-left .section-tag::before { background: rgba(242,237,227,0.2); }
.problem-right .section-tag { color: var(--red); }
.problem-right .section-tag::before { background: var(--red); }
.problem-left h2 { color: #F2EDE3; }
.problem-right h2 { color: var(--text); }
.problem-left .body-text { color: rgba(242,237,227,0.42); }

.highlight-box {
  margin-top: 2rem; padding: 1.3rem 1.5rem;
  border-left: 2px solid var(--red);
  background: rgba(196,28,28,0.06);
}
.highlight-box p {
  font-family: var(--mono);
  font-size: 0.78rem; font-weight: 300;
  color: var(--muted); line-height: 1.75;
  letter-spacing: 0.02em;
}

/* ── HOW IT WORKS ── */
.section-how {
  padding: 5.5rem 4.5rem;
  border-top: 1px solid var(--border);
}
.section-how .section-tag { color: var(--red); margin-bottom: 3rem; }
.section-how .section-tag::before { background: var(--red); }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.step {
  padding: 2.8rem 2.2rem;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.step:hover { background: white; }
.step:last-child { border-right: none; }

.step-num {
  font-family: var(--mono);
  font-size: 0.65rem; letter-spacing: 0.1em;
  color: var(--border);
  line-height: 1; margin-bottom: 1.6rem;
}
.step h3 {
  font-family: var(--display);
  font-size: 1.4rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 0.9rem; line-height: 1.05;
}
.step p {
  font-size: 0.85rem; font-weight: 300;
  color: var(--muted); line-height: 1.78;
}
.step-accent { color: var(--red); font-weight: 500; }

/* ── PARTNERS ── */
.section-partners {
  padding: 3.5rem 4.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 4rem; flex-wrap: wrap;
}
.partners-group {
  display: flex; align-items: center; gap: 2rem;
}
.partners-vsep {
  width: 1px; height: 40px; background: var(--border);
}
.partners-label {
  font-family: var(--mono);
  font-size: 0.63rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.partners-list {
  display: flex; gap: 3rem; align-items: center; flex-wrap: wrap;
}
.partner-item { font-size: 1rem; color: var(--muted); }
.partner-item img {
  filter: grayscale(1) opacity(0.45);
  transition: filter 0.35s;
  display: block;
}
.partner-item img:hover { filter: grayscale(0.2) opacity(0.9); }
.partner-divider { width: 1px; height: 20px; background: var(--border); }
.partner-more {
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.06em;
  color: var(--muted);
}
.partner-text-link {
  text-decoration: none;
  display: flex; flex-direction: column; gap: 0.15rem;
  transition: opacity 0.25s;
}
.partner-text-link:hover { opacity: 0.7; }
.partner-text-name {
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text);
}
.partner-text-sub {
  font-family: var(--mono);
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}

/* ── CTA ── */
.section-cta {
  padding: 6.5rem 4.5rem;
  border-top: 1px solid var(--border);
  background: var(--dark);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  position: relative; overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 90% at 105% 50%, rgba(196,28,28,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-left { position: relative; z-index: 1; }
.cta-right { position: relative; z-index: 1; }
.cta-left h2 { color: #F2EDE3; margin-bottom: 1.1rem; }
.cta-left p {
  font-size: 0.9rem; font-weight: 300;
  color: rgba(242,237,227,0.45); line-height: 1.85;
}
.cta-right .form-row {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}
.cta-right .form-row:focus-within { border-color: rgba(196,28,28,0.6); }
.cta-right .form-row input { color: #F2EDE3; }
.cta-right .form-row input::placeholder { color: rgba(242,237,227,0.3); }
.cta-right .form-row button { background: var(--red); }
.cta-right .form-row button:hover { background: var(--red-light); }
.cta-right .form-label { color: rgba(242,237,227,0.4); }
.cta-right .form-note { color: rgba(242,237,227,0.3); }

/* ── FOOTER ── */
footer {
  padding: 1.8rem 4.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: var(--dark);
  display: flex; justify-content: space-between; align-items: center;
}
footer p {
  font-family: var(--mono);
  font-size: 0.68rem; color: rgba(242,237,227,0.28);
  font-weight: 300; letter-spacing: 0.04em;
}
footer a {
  font-family: var(--mono);
  color: rgba(242,237,227,0.28); text-decoration: none;
  font-size: 0.68rem; letter-spacing: 0.04em;
  transition: color 0.2s;
}
footer a:hover { color: rgba(242,237,227,0.6); }

/* ── SUCCESS ── */
.success-msg {
  display: none; padding: 0.9rem 1rem;
  background: rgba(196,28,28,0.08);
  border-left: 2px solid var(--red);
  font-family: var(--mono);
  font-size: 0.7rem; color: var(--text);
  font-weight: 300; margin-top: 0.8rem;
  letter-spacing: 0.04em;
}
.success-msg.show { display: block; }

/* ── ANIMATIONS ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 6.5rem 1.5rem 3rem; }
  .hero-skyline { display: none; }
  .hero-right {
    padding: 2.5rem 1.5rem;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem; border-left: none;
    border-top: 1px solid var(--border);
  }
  .live-indicator { display: none; }
  .stat-divider { display: none; }
  .stat-num { font-size: 2.6rem; }
  .section-problem { grid-template-columns: 1fr; }
  .problem-left { padding: 3.5rem 1.5rem; }
  .problem-right { padding: 3.5rem 1.5rem; }
  .section-how { padding: 3.5rem 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
  .section-partners { padding: 2.5rem 1.5rem; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .partners-vsep { width: 40px; height: 1px; }
  .section-cta { padding: 4rem 1.5rem; grid-template-columns: 1fr; gap: 2.5rem; }
  footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}
