:root {
  --bg: #fbfbfa;
  --surface: #f3f3f1;
  --text: #0a0f14;
  --text-muted: #54606e;
  --text-soft: #8b95a2;
  --accent: #1f6b86;
  --accent-soft: #4a9bb8;
  --border: rgba(10, 15, 20, 0.08);
  --border-strong: rgba(10, 15, 20, 0.18);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --container: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--text); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(251, 251, 250, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  max-width: var(--container);
  margin: 0 auto;
  gap: 2rem;
}
.site-header .logo {
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.site-header .logo::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 10px;
  background-image: url("/images/waveform.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
}
.site-header .logo span { font-weight: 400; color: var(--text-muted); }
.site-header .main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.25rem; }
.site-header .main-nav a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 450;
  opacity: 0.78;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.site-header .main-nav a:hover { opacity: 1; color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 22px; height: 1.5px; background: currentColor; position: relative;
}
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
/* Whisper-thin waveform at hero bottom */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background-image: url("/images/waveform-main.svg"), url("/images/waveform-soft.svg");
  background-size: 200% 100%, 200% 100%;
  background-repeat: repeat-x, repeat-x;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: wave-drift 18s linear infinite;
  will-change: background-position;
}

@keyframes wave-drift {
  from { background-position: 0% 50%, 200% 50%; }
  to   { background-position: 200% 50%, 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 14rem;
  padding-bottom: 5rem;
  width: 100%;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2rem;
  font-weight: 500;
}
.hero .eyebrow::before {
  content: "";
  width: 24px;
  height: 10px;
  background-image: url("/images/waveform.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.hero h1 {
  font-weight: 500;
  font-size: clamp(2.5rem, 6.2vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 0 -0.06em;
  max-width: 16ch;
  color: var(--text);
}

.hero-headline {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 0 2rem;
}
.hero-headline h1 {
  flex: 1 1 auto;
  min-width: 0;
}
.hero-skyline {
  display: block;
  flex: 0 0 auto;
  width: min(46%, 560px);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}

.hero .tagline {
  font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 0 3rem;
}

.hero .meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  max-width: 780px;
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.hero .meta-item { display: flex; flex-direction: column; gap: 0.35rem; }
.hero .meta-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.hero .meta-value {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
}

/* ─── Sections ───────────────────────────────────────── */
.section {
  padding: 6.5rem 0 6rem;
  background: var(--bg);
  position: relative;
}
/* Waveform divider replaces flat border-top */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 40px;
  background-image: url("/images/waveform.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.3;
  pointer-events: none;
  transform: translateY(-50%);
}
.section:nth-of-type(even) { background: var(--surface); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 3rem 4rem;
  align-items: start;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 0;
  position: sticky;
  top: 6rem;
}
.section-label .num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.section h2 {
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  max-width: 24ch;
  color: var(--text);
}

.section-body { color: var(--text); }
.section-body p { margin: 0 0 1rem; max-width: 62ch; color: var(--text-muted); }

.placeholder {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.placeholder::before {
  content: "";
  width: 28px;
  height: 8px;
  background-image: url("/images/waveform.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.55;
}
.placeholder::after { content: none; }

/* Archive */
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.archive-list li { border-bottom: 1px solid var(--border); }
.archive-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}
.archive-list a::before {
  content: "";
  width: 48px;
  height: 14px;
  background-image: url("/images/waveform.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.45;
  transition: opacity .3s var(--ease);
}
.archive-list a::after {
  content: "→";
  font-size: 1rem;
  color: var(--text-soft);
  transition: transform .3s var(--ease), color .2s var(--ease);
}
.archive-list a:hover { color: var(--accent); }
.archive-list a:hover::before { opacity: 0.9; }
.archive-list a:hover::after { transform: translateX(6px); color: var(--accent); }

/* Contact */
.contact {
  margin: 0;
  display: grid;
  gap: 1.5rem;
  max-width: 480px;
}
.contact-item { display: flex; flex-direction: column; gap: 0.35rem; }
.contact dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.contact dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
}
.contact a { border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; }
.contact a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Not found ──────────────────────────────────────── */
.notfound {
  min-height: 72vh;
  min-height: 72dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8rem 0 4rem;
}
.notfound .eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.notfound h1 {
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
}
.notfound p { color: var(--text-muted); margin: 0 0 2rem; max-width: 50ch; }
.notfound a.back {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  background: #0a0f14;
  color: #e6ebf0;
  padding: 5rem 0 2rem;
  font-size: 0.88rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 40px;
  background-image: url("/images/waveform.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.35;
  transform: translateY(-50%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(230, 235, 240, 0.12);
}
.footer-brand {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}
.footer-brand em { font-style: normal; font-weight: 400; color: rgba(230, 235, 240, 0.6); }
.footer-tag { color: rgba(230, 235, 240, 0.6); max-width: 38ch; margin: 0; }
.footer-heading {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(230, 235, 240, 0.5);
  font-weight: 500;
  margin: 0 0 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0 0 0.4rem; color: rgba(230, 235, 240, 0.75); }
.footer-grid a { color: #e6ebf0; }
.footer-grid a:hover { color: var(--accent-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  color: rgba(230, 235, 240, 0.5);
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ─── Variant switcher ───────────────────────────────── */
.variant-switcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.5rem 0.4rem 0.9rem;
  background: var(--text);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(10, 15, 20, 0.25);
  font-size: 0.78rem;
}
.variant-switcher-label {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.66rem;
  margin-right: 0.45rem;
  font-weight: 500;
  font-family: var(--mono);
}
.variant-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.variant-switcher a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.variant-switcher a.is-active { background: var(--bg); color: var(--text); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  .section { padding: 5rem 0; }
  .section-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .section-label { position: static; top: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .container { padding: 0 1.25rem; }
  .site-header .header-inner { padding: 0.95rem 1.25rem; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(251, 251, 250, 0.98);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.25rem 1.75rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 1rem; }
  .hero .container { padding-top: 4rem; padding-bottom: 3.5rem; }
  .hero-headline { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero-skyline { width: min(80%, 360px); }
  .hero .meta { gap: 1rem 2rem; }
}
