/* ─── Root vars ─────────────────────────────────── */
:root {
  --bg: #15181c;
  --bg-panel: #1c2026;
  --line: rgba(255,255,255,0.08);
  --ink-1: #e6ebf2;
  --ink-2: #8a99ad;
  --ink-3: #566578;
  --accent: #5b7a9a;
  --font-head: 'Newsreader', 'Source Serif 4', Georgia, serif;
  --font-body: 'Geist', 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --head-weight: 400;
  --section-py: 144px;
  --gutter: 56px;
  --hero-image: url('assets/hero-operators.png');
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

.tauf-root {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-body);
  position: relative;
  overflow-x: clip;
}

.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); font-weight: 400; }
.dim  { color: var(--ink-3); }
.muted { color: var(--ink-2); }

/* ─── Nav ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { display: block; height: 64px; width: auto; }
.nav-links { display: flex; justify-content: center; gap: 36px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--ink-1); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-spacer { }

/* ─── Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  padding: 120px 56px 160px;
  max-width: 1400px;
  margin: 0 auto;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: -2;
  opacity: 0.85;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 80%, transparent 100%);
          mask-composite: intersect;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, var(--bg) 26%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 80%, var(--bg) 100%),
    linear-gradient(to bottom, var(--bg) 0%, rgba(0,0,0,0) 14%, rgba(0,0,0,0) 78%, var(--bg) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero-inner { max-width: 980px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 56px; }
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.hero-title {
  margin: 0 0 48px;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.hero-title .hero-line { display: block; }
.hero-title .hero-line.muted { color: var(--ink-2); }
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 0 64px;
}
.hero-meta { display: flex; align-items: center; gap: 20px; }
.hero-meta-rule { flex: 0 0 64px; height: 1px; background: var(--line); }
.hero-frame-marker { position: absolute; right: 56px; bottom: 40px; }

/* ─── Interstitial ──────────────────────────────── */
.interstitial {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  height: clamp(360px, 56vh, 620px);
  overflow: hidden;
  isolation: isolate;
}
.interstitial-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85;
}
.interstitial-light .interstitial-img {
  opacity: 0.55;
  filter: grayscale(0.4) brightness(0.7) contrast(1.05);
  mix-blend-mode: luminosity;
}
.interstitial-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.55;
  z-index: 0;
}
.interstitial::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 72%, var(--bg) 100%),
    linear-gradient(to right, var(--bg) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, var(--bg) 100%);
  pointer-events: none;
}

/* ─── Section primitives ────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-py) 56px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--gutter);
  margin-bottom: 80px;
  align-items: start;
}
.section-kicker { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.rule-short { width: 24px; height: 1px; background: var(--accent); }
.section-heading {
  margin: 0;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  max-width: 920px;
}
.section-heading span { display: block; }
.section-heading .muted { color: var(--ink-2); }

/* ─── Services ──────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.service-card {
  padding: 56px 40px 64px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.service-card:last-child { border-right: none; padding-right: 0; }
.service-card:not(:first-child) { padding-left: 40px; }
.service-num { color: var(--accent); margin-bottom: 32px; }
.service-title {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink-1);
}
.service-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 360px;
}

/* ─── Clients ───────────────────────────────────── */
.clients-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: start;
}
.clients-body {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 520px;
}
.clients-list { list-style: none; margin: 0; padding: 0; }
.clients-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-1);
}
.clients-list li:last-child { border-bottom: 1px solid var(--line); }

/* ─── Confidentiality ───────────────────────────── */
.conf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.conf-card {
  padding: 48px 40px 56px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.3s ease;
}
.conf-card:hover { background: var(--bg-panel); }
.conf-label { color: var(--accent); margin-bottom: 28px; }
.conf-title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-1);
}
.conf-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 440px;
}

/* ─── Contact ───────────────────────────────────── */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: start;
}
.contact-body {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 460px;
}
.contact-card { border-top: 1px solid var(--line); }
.contact-row-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 22px 0;
  align-items: baseline;
}
.contact-rule { height: 1px; background: var(--line); }
.contact-label { padding-top: 4px; }
.contact-value {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-1);
}
.contact-value.link {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.contact-value.link:hover { border-bottom-color: var(--accent); }

/* ─── Disclaimer ────────────────────────────────── */
.disclaimer {
  padding-top: calc(var(--section-py) * 0.6);
  padding-bottom: calc(var(--section-py) * 0.4);
}
.disclaimer-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--gutter);
  align-items: start;
}
.disclaimer-kicker { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.disclaimer-body { max-width: 760px; }
.disclaimer-body p {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}
.disclaimer-body p:last-child { margin-bottom: 0; }

/* ─── Footer ────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  padding: 64px 56px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-rule { height: 1px; background: var(--line); margin-bottom: 36px; }
.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}
.footer-row > :nth-child(2) { text-align: center; }
.footer-row > :nth-child(3) { text-align: right; }
.footer-legal { display: flex; gap: 28px; justify-content: flex-end; }
.footer-legal a { color: var(--ink-3); transition: color 0.2s; }
.footer-legal a:hover { color: var(--ink-1); }

/* ─── Legal pages ──────────────────────────────── */
.legal-page { max-width: 1400px; margin: 0 auto; padding: 80px 56px 144px; }
.legal-head {
  display: grid; grid-template-columns: 200px 1fr; gap: 56px;
  margin-bottom: 80px; align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.legal-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.legal-body {
  display: grid; grid-template-columns: 200px 1fr; gap: 56px;
  align-items: start;
}
.legal-body h2 {
  grid-column: 1 / -1;
  margin: 56px 0 24px;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body h3 {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 400;
  padding-top: 4px;
}
.legal-body .block {
  grid-column: 2;
  margin-bottom: 28px;
}
.legal-body p, .legal-body address, .legal-body ul {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  color: #d4dae3;
  font-style: normal;
  max-width: 760px;
}
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body p.fineprint { font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.legal-body a.link {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.legal-body a.link:hover { border-bottom-color: var(--accent); }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-inner, .hero, .section, .footer, .legal-page { padding-left: 32px; padding-right: 32px; }
  .hero-frame-marker { right: 32px; top: 32px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--line); padding: 40px 0 !important; }
  .service-card:last-child { border-bottom: none; }
  .conf-grid { grid-template-columns: 1fr; }
  .clients-row, .contact-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-row > * { text-align: left !important; }
  .legal-head, .legal-body { grid-template-columns: 1fr; gap: 24px; }
  .legal-body h3 { padding-top: 0; }
  .legal-body .block { grid-column: 1; }
  .disclaimer-inner { grid-template-columns: 1fr; gap: 24px; }
}

::selection { background: var(--accent); color: #000; }
