/* ============================================================================
   TactForce — Console Dark design system (V3 Hybrid)
   - Default theme: dark (matches design)
   - Light variant: derived from V1 Editorial Tech
   - Tokens applied via [data-theme="dark|light"] on <html>
   ============================================================================ */

/* Default = dark tokens (rendered before any JS runs to prevent flash).
   Scoped to [data-theme] only — never :root — so tool sub-pages with their own
   :root tokens keep their internal design system intact. The pre-paint script
   on every page sets data-theme before CSS loads, so there's never a flash. */
[data-theme="dark"] {
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  --bg:           oklch(0.16 0.012 250);
  --bg-2:         oklch(0.20 0.012 250);
  --bg-3:         oklch(0.23 0.012 250);
  --bg-elev:      oklch(0.23 0.012 250 / 0.85);
  --fg:           oklch(0.96 0.005 250);
  --dim-2:        oklch(0.72 0.01  250);
  --dim:          oklch(0.55 0.012 250);
  --rule:         oklch(0.28 0.012 250);
  --rule-strong:  oklch(0.36 0.012 250);
  --accent:       oklch(0.75 0.15  200);
  --accent-soft:  oklch(0.75 0.15  200 / 0.18);
  --accent-fg:    #08080c;
  --warn:         oklch(0.82 0.16 75);

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 0.45);
  --shadow-lg: 0 16px 40px rgb(0 0 0 / 0.55);

  color-scheme: dark;
}

[data-theme="light"] {
  --bg:           oklch(0.985 0.005 240);
  --bg-2:         oklch(0.965 0.006 240);
  --bg-3:         oklch(0.94  0.008 240);
  --bg-elev:      oklch(1 0 0 / 0.92);
  --fg:           oklch(0.18  0.01  240);
  --dim-2:        oklch(0.38  0.01  240);
  --dim:          oklch(0.50  0.01  240);
  --rule:         oklch(0.88  0.005 240);
  --rule-strong:  oklch(0.78  0.008 240);
  --accent:       oklch(0.55  0.18  240);
  --accent-soft:  oklch(0.55  0.18  240 / 0.1);
  --accent-fg:    #ffffff;
  --warn:         oklch(0.62 0.18 75);

  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow-md: 0 8px 20px rgb(15 23 42 / 0.10);
  --shadow-lg: 0 20px 50px rgb(15 23 42 / 0.14);

  color-scheme: light;
}

/* Bridge old Tailwind `dark:` classes — body element responds via inherited tokens.
   We keep .dark on <html> in sync via app.js so existing dark: utilities still work. */

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[id] { scroll-margin-top: 90px; }

/* ============================================================================
   Animations
   ============================================================================ */
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-blink     { animation: blink 1.1s steps(1) infinite; }
.animate-pulse-dot { animation: pulse 2s ease-in-out infinite; }
.animate-fade-in-up { animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-fade-in    { animation: fade-in 0.6s ease-out both; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================================
   Scrollbar
   ============================================================================ */
::-webkit-scrollbar        { width: 10px; height: 10px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: var(--rule-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================================
   Layout primitives
   ============================================================================ */
.tf-wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .tf-wrap { padding: 0 20px; } }

.tf-section {
  padding: 120px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
@media (max-width: 768px) { .tf-section { padding: 72px 0; } }

.tf-grid-gutter {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
}
@media (max-width: 900px) {
  .tf-grid-gutter { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================================
   Mono labels (// 01 APPS, § About, > 02 SHIPPING)
   ============================================================================ */
.tf-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.tf-mono.tf-mono--accent { color: var(--accent); }
.tf-mono-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.tf-h1 {
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0;
  color: var(--fg);
}
.tf-h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  color: var(--fg);
}
.tf-h3 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  color: var(--fg);
}
.tf-lead {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin: 0;
  font-weight: 400;
}
.tf-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--dim-2);
  margin: 0;
}
.tf-accent { color: var(--accent); }
.tf-italic-accent { color: var(--accent); font-style: italic; font-weight: 400; }

/* ============================================================================
   Buttons (mono accent-filled & ghost outlined)
   ============================================================================ */
.tf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.tf-btn:hover { transform: translateY(-1px); }
.tf-btn:active { transform: translateY(0); }

.tf-btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.tf-btn--primary:hover { box-shadow: 0 0 0 4px var(--accent-soft); }

.tf-btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule-strong);
}
.tf-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.tf-btn--pill {
  border-radius: 999px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.tf-btn--pill:hover { background: var(--accent-soft); }

/* ============================================================================
   Status pill
   ============================================================================ */
.tf-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim-2);
}
.tf-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================================================
   Nav (sticky, mono, live UTC)
   ============================================================================ */
.tf-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 50;
  padding: 16px 48px;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.tf-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.tf-nav__dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}
.tf-nav__name { color: var(--fg); font-weight: 500; letter-spacing: 0.04em; }
.tf-nav__ver  { color: var(--dim); }
.tf-nav__list {
  display: flex; gap: 28px; list-style: none; padding: 0; margin: 0;
}
.tf-nav__list > li { position: relative; }
.tf-nav__link {
  color: var(--dim-2);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  font: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tf-nav__link:hover, .tf-nav__link.is-open { color: var(--accent); }
.tf-nav__link .caret {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s;
  display: inline-block;
}
.tf-nav__link.is-open .caret { transform: rotate(180deg); }

/* Dropdown panel */
.tf-nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 60;
}
.tf-nav__menu-item {
  display: block;
  padding: 10px 12px;
  color: var(--dim-2);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.tf-nav__menu-item:hover { background: var(--bg-3); color: var(--accent); }
.tf-nav__menu-item .meta {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.tf-nav__menu-sub {
  display: flex; gap: 8px; padding: 6px 12px 8px;
}
.tf-nav__menu-sub a {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dim);
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.tf-nav__menu-sub a:hover { color: var(--accent); border-color: var(--accent); }
.tf-nav__menu-divider {
  border-top: 1px solid var(--rule);
  margin: 4px -8px;
}
.tf-nav__time {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.tf-nav__icon-btn {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 6px;
  color: var(--dim-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.tf-nav__icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.tf-burger { display: none; }

@media (max-width: 900px) {
  .tf-nav { padding: 12px 20px; }
  .tf-nav__list, .tf-nav__time { display: none; }
  .tf-burger { display: inline-flex; }
}

.tf-mobile-panel {
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 49;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
  display: none;
}
.tf-mobile-panel.tf-open { display: block; }
.tf-mobile-list {
  list-style: none; padding: 12px 20px; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.tf-mobile-link {
  display: block;
  padding: 10px 12px;
  color: var(--dim-2);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: 6px;
}
.tf-mobile-link:hover { background: var(--bg-3); color: var(--accent); }

/* ============================================================================
   Hero
   ============================================================================ */
.tf-hero {
  position: relative;
  padding: 160px 0 100px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.tf-hero__grid-bg {
  position: absolute; inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.tf-hero__glow {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(40px);
}
.tf-hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .tf-hero__inner { padding: 0 20px; } }

.tf-hero__split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .tf-hero__split { grid-template-columns: 1fr; gap: 32px; }
}
.tf-hero__h1 {
  font-size: clamp(56px, 7vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0;
  color: var(--fg);
}
.tf-hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--dim-2);
  margin: 0 0 32px;
  max-width: 380px;
}

/* Terminal block (mac chrome) */
.tf-term {
  margin-top: 96px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow: hidden;
}
.tf-term__bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.tf-term__dot { width: 10px; height: 10px; border-radius: 999px; }
.tf-term__dot--r { background: #ff5f57; }
.tf-term__dot--y { background: #febc2e; }
.tf-term__dot--g { background: #28c840; }
.tf-term__title { margin-left: 12px; }
.tf-term__body {
  padding: 20px 24px;
  color: var(--dim-2);
}
.tf-term__body .prompt { color: var(--accent); margin-right: 6px; }
.tf-term__body .out { color: var(--fg); }
.tf-term__cursor {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

/* Stats */
.tf-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.tf-stats.tf-stats--2 { grid-template-columns: 1fr 1fr; }
.tf-stat {
  padding: 24px;
  border-right: 1px solid var(--rule);
  background: var(--bg-2);
}
.tf-stat:last-child { border-right: none; }
.tf-stat__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--dim);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.tf-stat__v {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
  font-family: var(--font-mono);
}
@media (max-width: 768px) {
  .tf-stats { grid-template-columns: 1fr 1fr; }
  .tf-stat:nth-child(2) { border-right: none; }
  .tf-stat:nth-child(1), .tf-stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* ============================================================================
   App / Product cards (alternating split rows)
   ============================================================================ */
.tf-app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}
.tf-app:first-child { border-top: 1px solid var(--rule); }
.tf-app--reverse > .tf-app__text  { order: 2; }
.tf-app--reverse > .tf-app__media { order: 1; }
@media (max-width: 900px) {
  .tf-app { grid-template-columns: 1fr; gap: 32px; }
  .tf-app--reverse > .tf-app__text { order: 1; }
  .tf-app--reverse > .tf-app__media { order: 2; }
}

.tf-app__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  flex-wrap: wrap;
}
.tf-app__meta .num    { color: var(--accent); }
.tf-app__meta .sep    { color: var(--dim); }
.tf-app__meta .ver,
.tf-app__meta .date   { color: var(--dim); }
.tf-app__meta .badge  {
  color: var(--accent);
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 4px;
}
.tf-app__meta .badge--warn {
  color: var(--warn);
  border-color: var(--warn);
}

.tf-app__title {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--fg);
}
.tf-app__tagline {
  font-size: 22px;
  line-height: 1.4;
  color: var(--fg);
  margin: 0 0 16px;
  font-weight: 400;
}
.tf-app__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--dim-2);
  margin: 0 0 28px;
}
.tf-app__features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 10px;
}
.tf-app__features li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 14px;
  color: var(--dim-2);
  font-family: var(--font-mono);
}
.tf-app__features li::before {
  content: "▸";
  color: var(--accent);
}

.tf-app__media {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.tf-app__media-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-3);
  color: var(--dim);
}
.tf-app__media-bar .d { width: 8px; height: 8px; border-radius: 999px; background: var(--rule-strong); }
.tf-app__media-bar .label { margin-left: 8px; }
.tf-app__media-canvas {
  flex: 1;
  position: relative;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgb(255 255 255 / 0.015) 14px 15px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
[data-theme="light"] .tf-app__media-canvas {
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgb(15 23 42 / 0.025) 14px 15px);
}
.tf-app__media-canvas img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgb(0 0 0 / 0.4));
}

/* ============================================================================
   Tools grid
   ============================================================================ */
.tf-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .tf-tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tf-tools { grid-template-columns: 1fr; } }

.tf-tool-card {
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg-2);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
  color: var(--fg);
}
.tf-tool-card:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  transform: translateY(-2px);
}
.tf-tool-card__cmd {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.tf-tool-card__name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--fg);
}
.tf-tool-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--dim-2);
  margin: 0;
  flex: 1;
}
.tf-tool-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.tf-tool-card__foot .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.tf-tool-card__foot .arrow { color: var(--accent); font-size: 18px; }

/* ============================================================================
   About (V1 editorial swap-in)
   ============================================================================ */
.tf-about {
  padding: 160px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
}
.tf-about__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}
@media (max-width: 768px) { .tf-about { padding: 80px 0; } .tf-about__inner { padding: 0 20px; } }

.tf-about__head, .tf-about__body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
}
@media (max-width: 900px) {
  .tf-about__head, .tf-about__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.tf-about__head { margin-bottom: 80px; }
.tf-about__label-block .label {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}
.tf-about__label-block .caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.tf-about__lead {
  max-width: 820px;
}
.tf-about__lead .lead {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin: 0 0 32px;
  font-weight: 400;
}
.tf-about__lead .body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--dim-2);
  margin: 0;
  max-width: 680px;
}
.tf-about__cta {
  margin-top: 56px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.tf-about__loc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.14em;
}

/* ============================================================================
   Principles (features) cards
   ============================================================================ */
.tf-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .tf-principles { grid-template-columns: 1fr; } }
.tf-principle {
  padding: 32px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tf-principle__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.tf-principle__title {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: var(--fg);
  letter-spacing: -0.015em;
}
.tf-principle__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--dim-2);
  margin: 0;
}

/* ============================================================================
   Contact form
   ============================================================================ */
.tf-form-card {
  max-width: 100%;
  padding: 32px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg-2);
}
.tf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 700px) { .tf-form-row { grid-template-columns: 1fr; } }
.tf-form-field { display: block; }
.tf-form-field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin-bottom: 8px;
  text-transform: lowercase;
}
.tf-form-field input,
.tf-form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg);
  background: var(--bg-3);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.tf-form-field input:focus,
.tf-form-field textarea:focus { border-color: var(--accent); }
.tf-form-field textarea { min-height: 140px; }

/* ============================================================================
   Footer
   ============================================================================ */
.tf-footer {
  padding: 56px 0 36px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.tf-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}
@media (max-width: 768px) {
  .tf-footer__cols { grid-template-columns: 1fr; gap: 28px; }
}
.tf-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  text-decoration: none;
}
.tf-footer__brand img { width: 40px; height: 40px; object-fit: contain; }
.tf-footer__brand-name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg);
}
.tf-footer__tag {
  font-size: 13px;
  color: var(--dim-2);
  line-height: 1.55;
  margin: 0;
  max-width: 320px;
}
.tf-footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--dim);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.tf-footer__nav {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.tf-footer__nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim-2);
  text-decoration: none;
  transition: color 0.15s;
}
.tf-footer__nav a:hover { color: var(--accent); }

.tf-footer__bmc img { height: 44px; }
.tf-footer__bmc { display: inline-block; transition: transform 0.15s; }
.tf-footer__bmc:hover { transform: translateY(-2px); }
.tf-footer__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--dim-2);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: color 0.15s;
}
.tf-footer__linkedin:hover { color: var(--accent); }
.tf-footer__linkedin svg { width: 16px; height: 16px; fill: currentColor; }

.tf-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
  flex-wrap: wrap;
  gap: 12px;
}
.tf-footer__bottom a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.15s;
}
.tf-footer__bottom a:hover { color: var(--accent); }

/* ============================================================================
   Hide/show helpers
   ============================================================================ */
[x-cloak] { display: none !important; }
.tf-hide-mobile { display: initial; }
.tf-show-mobile { display: none; }
@media (max-width: 768px) {
  .tf-hide-mobile { display: none; }
  .tf-show-mobile { display: initial; }
}
