[data-theme="tfm"] {
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Chivo', sans-serif;
  --font-mono: 'Chivo Mono', monospace;
  --ink: #f4f0e8;
  --paper: #0e0d0c;
  --panel: #171513;
  --muted: #8f897d;
  --faint: #5f5a50;
  --line: rgba(244, 240, 232, 0.12);
  --line-strong: rgba(244, 240, 232, 0.24);
  --accent: #e5692c;
  --accent-hover: #f08a52;
  color-scheme: dark;
}

html[data-theme="tfm"] {
  scroll-behavior: smooth;
}

html[data-theme="tfm"] body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-theme="tfm"] ::selection {
  color: var(--paper);
  background-color: var(--accent);
}

html[data-theme="tfm"] a {
  transition: color .25s ease;
}

/* Typography helpers */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

/* Colors */
.text-ink { color: var(--ink); }
.text-muted { color: var(--muted); }
.text-faint { color: var(--faint); }
.text-accent { color: var(--accent); }
.bg-accent { background-color: var(--accent); }
.bg-panel { background-color: var(--panel); }
.border-line { border-color: var(--line); }
.border-line-strong { border-color: var(--line-strong); }

.hover\:text-ink:hover { color: var(--ink); }
.hover\:text-accent:hover { color: var(--accent); }
.hover\:bg-accent:hover { background-color: var(--accent-hover); }
.hover\:border-accent:hover { border-color: var(--accent); }

/* Kicker label */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Buttons — dark UI: no drop shadows, hairline edge + subtle top-light on solid */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: auto;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: none;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
  outline: none;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}
.btn-solid {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--paper);
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-solid:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Arrows */
.arrow { display: inline-block; transition: transform .25s ease; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.arrow-link:hover { color: var(--accent); }
.arrow-link:hover .arrow { transform: translateX(4px); }

/* Hairline */
.hairline { border-top: 1px solid var(--line); }

/* Noise overlay */
.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* Topographic contour lines (Tirol signature) */
.topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='460' viewBox='0 0 460 460' fill='none'%3E%3Cg stroke='%23f4f0e8' stroke-width='1'%3E%3Cpath d='M-30 70 C 90 25 140 130 230 80 S 410 45 490 90'/%3E%3Cpath d='M-30 160 C 90 115 140 220 230 170 S 410 135 490 180'/%3E%3Cpath d='M-30 250 C 90 205 140 310 230 260 S 410 225 490 270'/%3E%3Cpath d='M-30 340 C 90 295 140 400 230 350 S 410 315 490 360'/%3E%3Cpath d='M-30 430 C 90 385 140 490 230 440 S 410 405 490 450'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 460px 460px;
}

/* Reveal on scroll */
html.js .reveal,
html.js .hero-reveal {
  opacity: 0;
  transform: translateY(20px);
}
html.js .reveal.is-visible,
html.js .hero-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal { transition: opacity .6s ease, transform .6s ease; }
.hero-reveal { transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .hero-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .arrow-link:hover .arrow { transform: none; }
}