:root {
  --ink: #111111;
  --muted: #3d3d3d;
  --paper: #ffffff;
  --wash: #f5f5f5;
  --line: #e4e4e4;
  --max: 1120px;
  --nav: 92px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(720px, 100%); }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  min-height: var(--nav);
  background: #fff;
  display: flex;
  align-items: center;
}
.nav-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a { text-decoration: none; padding: 8px 10px; font-size: 0.95rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 4px;
  padding: 12px 22px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
}
.btn-black { background: #111; color: #fff; }
.btn-white { background: #fff; color: #111; }
.menu-toggle {
  display: none;
  margin-left: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: #111;
  margin: 5px 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: calc(var(--nav) + 48px) 24px 72px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    var(--hero) center/cover no-repeat;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
}
.hero h1 {
  width: min(18ch, 100%);
  margin: 0 auto 16px;
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.035em;
}
.hero p {
  width: min(46rem, 100%);
  margin: 0 auto;
  font-size: 1.05rem;
}
.hero .btn { margin-top: 22px; }
.kicker {
  margin: 28px auto 0;
  width: min(40rem, 100%);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.section { padding: 5rem 0; }
.wash { background: var(--wash); }
h2 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 650;
}
.lead { margin: 0; max-width: 46rem; color: var(--muted); font-size: 1.05rem; }
.exact {
  margin: 22px 0 0;
  max-width: 42rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

.cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}
.cards article h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 650;
}
.cards article p { margin: 0; color: var(--muted); }

.model {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}
.panel {
  background: #111;
  color: #fff;
  min-height: 320px;
  border-radius: 2px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.panel strong { font-size: 1.05rem; font-weight: 650; }
.panel span { color: #cfcfcf; font-size: 0.95rem; }
.lanes { display: grid; gap: 10px; margin-top: 24px; }
.lane {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 10px;
  font-size: 0.95rem;
}
.model-copy p { margin: 0 0 1.1rem; font-size: 1.25rem; line-height: 1.65; }
.model-copy p:last-child { margin-bottom: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.steps article { background: #fff; padding: 24px; }
.step-no { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: #666; }
.steps h3 { margin: 8px 0; font-size: 1.35rem; }
.steps p { margin: 0; color: var(--muted); }

.band {
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  padding: calc(var(--nav) + 32px) 0 72px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)),
    var(--band) center/cover no-repeat;
}
.band ul { margin: 8px 0 0; padding: 0; list-style: none; max-width: 38rem; }
.band li { padding: 4px 0 4px 1rem; position: relative; }
.band li::before { content: "–"; position: absolute; left: 0; }

.posts { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.post {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}
.post h3 { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.35; }
.post p { margin: 0 0 16px; color: var(--muted); font-size: 0.98rem; }
.thumb {
  min-height: 180px;
  background: #1b1b1b;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.shot { width: 100%; height: 100%; object-fit: cover; min-height: 320px; border-radius: 2px; }
.page-relay { --hero: url("../assets/niche/relay-hero.jpg"); --band: url("../assets/niche/relay-depot.jpg"); }
.page-variational { --hero: url("../assets/niche/variational-hero.jpg"); --band: url("../assets/niche/variational-control.jpg"); }

.article { padding-top: 0; }
.article + .article { padding-top: 0; }
.article h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.article p { max-width: 46rem; color: var(--muted); font-size: 1.05rem; }

.faq-item { border-top: 1px solid var(--line); background: #fff; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  padding: 18px 16px;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 650;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-item button span { font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq-item p { display: none; margin: 0; padding: 0 16px 18px; color: var(--muted); }
.faq-item.open p { display: block; }

.contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.contact h3 { margin: 12px 0 8px; font-size: clamp(1.6rem, 2vw, 2.1rem); font-weight: 650; }
.contact p { margin: 0; font-size: 1.15rem; }
.contact a { color: #2a2a2a; }

.legal { padding-top: 0; }
.legal h2 { font-size: 1.6rem; }
.legal p, .legal li { color: var(--muted); max-width: 46rem; }
.legal ul { padding-left: 1.2rem; }

.footer {
  background: #111;
  color: #fff;
  padding: 28px 0;
}
.footer-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.footer a { color: #fff; }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  background: #fff;
  color: #424a4d;
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 16px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.cookie p { margin: 0; font-size: 0.95rem; max-width: 70ch; }
.cookie a { color: #424a4d; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie .reject { background: #fff; color: #111; border: 1px solid #ddd; }
.cookie[hidden] { display: none !important; }

.subpage { padding: calc(var(--nav) + 64px) 0 4.5rem; }
.subpage .prose { width: min(820px, calc(100% - 48px)); margin: 0 auto; }
.subpage .prose h2 { margin-bottom: 8px; }
.subpage h3 { font-size: 1.35rem; margin: 1.8rem 0 0.45rem; letter-spacing: -0.02em; }
.subpage p { color: var(--muted); font-size: 1.05rem; }
.article-figure { width: min(820px, calc(100% - 48px)); margin: 0 auto 1.25rem; }
.article-figure img { width: 100%; max-height: 480px; object-fit: cover; }
.map img { width: 100%; height: 380px; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 20px 20px;
    border-top: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .cards, .steps, .posts, .contact, .model { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .hero h1 { width: 100%; }
  .cookie { flex-direction: column; align-items: stretch; }
}
