/* ============================================
   TRANSDIGITAL — futuristic data-terminal
   Dark cinematic, industrial grotesk, mono labels
   ============================================ */

:root {
  /* Ground tones — near-black with a cool desaturated cast */
  --td-bg: oklch(0.13 0.012 240);
  --td-bg-2: oklch(0.16 0.013 240);
  --td-bg-3: oklch(0.19 0.014 240);
  --td-panel: oklch(0.17 0.012 240);
  --td-panel-2: oklch(0.21 0.013 240);

  /* Foregrounds */
  --td-fg: oklch(0.97 0.005 230);
  --td-fg-dim: oklch(0.78 0.008 230);
  --td-fg-mute: oklch(0.55 0.01 240);
  --td-fg-faint: oklch(0.38 0.011 240);

  /* Hairlines */
  --td-line: oklch(0.28 0.012 240);
  --td-line-strong: oklch(0.36 0.012 240);
  --td-line-faint: oklch(0.22 0.012 240);

  /* Accent — neon orange-red, matched to logo */
  --td-accent: oklch(0.68 0.22 32);
  --td-accent-dim: oklch(0.58 0.20 32);
  --td-accent-glow: oklch(0.68 0.22 32 / 0.45);
  --td-accent-warm: oklch(0.78 0.16 55);

  /* Vendor hairline tints (very subtle) */
  --td-tint-fluxo: oklch(0.74 0.16 145);
  --td-tint-daon: oklch(0.78 0.12 195);
  --td-tint-autodesk: oklch(0.72 0.16 32);
  --td-tint-bentley: oklch(0.74 0.13 90);
  --td-tint-prokon: oklch(0.72 0.16 18);
  --td-tint-snow: oklch(0.78 0.10 220);
  --td-tint-adobe: oklch(0.72 0.20 18);

  /* Type scale */
  --td-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --td-sans: "Inter Tight", "Söhne", "Neue Haas Grotesk", "Helvetica Neue", system-ui, sans-serif;

  /* Spacing */
  --td-gut: clamp(20px, 4vw, 64px);
  --td-density: 1;
}

/* Density modes */
[data-density="compact"] { --td-density: 0.78; }
[data-density="airy"] { --td-density: 1.18; }

* { box-sizing: border-box; }

html {
  scroll-padding-top: 56px;
}
@media (max-width: 860px) {
  html { scroll-padding-top: 94px; }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--td-bg);
  color: var(--td-fg);
  font-family: var(--td-sans);
  font-feature-settings: "ss01", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

::selection { background: var(--td-accent); color: var(--td-bg); }

/* =========================
   Layout
   ========================= */

.td-page {
  position: relative;
  min-height: 100vh;
}

.td-container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--td-gut);
}

/* =========================
   Nav
   ========================= */

.td-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: oklch(0.13 0.012 240 / 0.6);
  border-bottom: 1px solid var(--td-line-faint);
  transition: background 240ms ease, border-color 240ms ease;
}

.td-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--td-gut);
}

.td-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--td-sans);
  letter-spacing: -0.01em;
  font-weight: 600;
  font-size: 16px;
  color: var(--td-fg);
  text-decoration: none;
}

.td-brand-mark {
  width: 28px; height: 28px;
  display: block;
  background-image: url("assets/logo-dark.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 8px var(--td-accent-glow));
}

.td-brand-name { letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px; }
.td-brand-sub  { font-family: var(--td-mono); font-size: 10px; color: var(--td-fg-mute); margin-left: 6px; }

.td-nav-links {
  display: flex; gap: 28px; align-items: center;
}
@media (max-width: 860px) {
  .td-nav-links { display: none; }
}

.td-nav-mobile {
  display: none;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--td-line-faint);
  padding: 0 16px;
  gap: 0;
}
.td-nav-mobile::-webkit-scrollbar { display: none; }
@media (max-width: 860px) {
  .td-nav-mobile { display: flex; }
}
.td-nav-mobile-link {
  font-family: var(--td-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-fg-mute);
  text-decoration: none;
  padding: 10px 16px;
  white-space: nowrap;
  transition: color 180ms ease;
  flex-shrink: 0;
}
.td-nav-mobile-link::before { content: "//"; color: var(--td-fg-faint); margin-right: 5px; }
.td-nav-mobile-link:hover { color: var(--td-fg); }

.td-nav-link {
  font-family: var(--td-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--td-fg-dim);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 180ms ease;
}
.td-nav-link::before {
  content: "//"; color: var(--td-fg-faint); margin-right: 6px;
}
.td-nav-link:hover { color: var(--td-fg); }

.td-nav-right { display: flex; align-items: center; gap: 14px; }

.td-lang {
  display: inline-flex;
  border: 1px solid var(--td-line);
  font-family: var(--td-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.td-lang button {
  background: transparent;
  border: 0;
  color: var(--td-fg-mute);
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
}
.td-lang button.active { background: var(--td-fg); color: var(--td-bg); }

.td-cta-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--td-accent);
  color: var(--td-bg);
  text-decoration: none;
  padding: 8px 14px;
  font-family: var(--td-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.td-cta-mini:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 8px 30px var(--td-accent-glow); }

/* =========================
   Hero
   ========================= */

.td-hero {
  position: relative;
  padding: calc(120px + var(--td-gut)) 0 calc(80px * var(--td-density));
  overflow: hidden;
}

.td-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}

.td-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, oklch(0.68 0.22 32 / 0.14), transparent 60%),
              radial-gradient(ellipse 60% 50% at 100% 0%, oklch(0.78 0.16 55 / 0.10), transparent 70%),
              linear-gradient(to bottom, transparent 60%, var(--td-bg) 100%);
}

.td-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--td-line-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--td-line-faint) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
  opacity: 0.6;
}

.td-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
@media (max-width: 1100px) {
  .td-hero-inner { grid-template-columns: 1fr; }
}

.td-hero-kicker {
  margin-bottom: 36px;
}

.td-h1 {
  font-family: var(--td-sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
  font-size: clamp(56px, 8.6vw, 132px);
  margin: 0;
  color: var(--td-fg);
}

.td-h1 .accent { color: var(--td-accent); font-style: normal; }

.td-h1-line {
  display: block;
  overflow: hidden;
}
.td-h1-line span {
  display: inline-block;
  transform: translateY(110%);
  animation: td-rise 1100ms cubic-bezier(.2,.7,.1,1) forwards;
}
.td-h1-line:nth-child(1) span { animation-delay: 80ms; }
.td-h1-line:nth-child(2) span { animation-delay: 200ms; }
.td-h1-line:nth-child(3) span { animation-delay: 320ms; }
.td-h1-line:nth-child(4) span { animation-delay: 440ms; }
.td-h1-line:nth-child(5) span { animation-delay: 560ms; }

@keyframes td-rise {
  to { transform: translateY(0); }
}

.td-hero-sub {
  margin-top: 36px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  color: var(--td-fg-dim);
  max-width: 56ch;
}

.td-hero-ctas {
  margin-top: 44px;
  display: flex; gap: 14px;
  flex-wrap: wrap;
}

.td-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--td-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  border: 1px solid var(--td-line);
  background: transparent;
  color: var(--td-fg);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}
.td-btn::after {
  content: "→";
  font-family: var(--td-sans);
  font-size: 16px;
  transition: transform 220ms ease;
}
.td-btn:hover { border-color: var(--td-fg); }
.td-btn:hover::after { transform: translateX(4px); }

.td-btn-primary {
  background: var(--td-accent);
  color: var(--td-bg);
  border-color: var(--td-accent);
}
.td-btn-primary:hover {
  background: var(--td-fg);
  color: var(--td-bg);
  border-color: var(--td-fg);
  box-shadow: 0 12px 40px var(--td-accent-glow);
}

/* Hero terminal panel (right) */
.td-hero-panel {
  position: relative;
  border: 1px solid var(--td-line);
  background:
    linear-gradient(180deg, oklch(0.17 0.012 240 / 0.9), oklch(0.13 0.012 240 / 0.7));
  padding: 22px;
  font-family: var(--td-mono);
  font-size: 12px;
  color: var(--td-fg-dim);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.td-panel-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--td-line);
  margin-bottom: 14px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--td-fg-mute);
}
.td-panel-bar .dots { display: inline-flex; gap: 5px; }
.td-panel-bar .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--td-fg-faint);
}
.td-panel-bar .dot.live { background: var(--td-accent); box-shadow: 0 0 12px var(--td-accent); animation: td-pulse 1.6s ease-in-out infinite; }

@keyframes td-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.td-panel-readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 18px;
}
.td-readout-row {
  display: flex; flex-direction: column;
  padding: 10px 0;
  border-top: 1px dashed var(--td-line-faint);
}
.td-readout-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--td-fg-mute);
}
.td-readout-value {
  font-size: 22px;
  color: var(--td-fg);
  letter-spacing: -0.01em;
  margin-top: 4px;
  font-family: var(--td-sans);
  font-weight: 500;
}
.td-readout-value .accent { color: var(--td-accent); }

.td-wave {
  width: 100%;
  display: block;
}

.td-codestream {
  margin-top: auto;
  font-family: var(--td-mono);
  font-size: 10.5px;
  color: var(--td-fg-faint);
  padding-top: 14px;
  border-top: 1px dashed var(--td-line-faint);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 90px;
  overflow: hidden;
  position: relative;
}
.td-codestream::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--td-bg-2) 0%, transparent 30%, transparent 70%, var(--td-bg-2) 100%);
  pointer-events: none;
}
.td-codestream-line {
  animation: td-stream-fade 4s ease-in-out infinite alternate;
  white-space: nowrap;
}
@keyframes td-stream-fade {
  0%   { opacity: 0.2; transform: translateX(0); }
  50%  { opacity: 0.6; }
  100% { opacity: 0.2; transform: translateX(-12px); }
}

/* =========================
   Kicker (mono label)
   ========================= */

.td-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--td-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-fg-dim);
}
.td-kicker-bracket { color: var(--td-fg-faint); }
.td-kicker-index { color: var(--td-accent); font-variant-numeric: tabular-nums; }
.td-kicker-sep { color: var(--td-fg-faint); }
.td-kicker-label { color: var(--td-fg); }
.td-kicker-accent .td-kicker-label { color: var(--td-accent); }

/* =========================
   Stats strip (under hero)
   ========================= */

.td-stats {
  border-top: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
  background: var(--td-bg);
  position: relative;
  z-index: 2;
}

.td-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
@media (max-width: 1100px) { .td-stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .td-stats-grid { grid-template-columns: repeat(2, 1fr); } }

.td-stat {
  padding: 28px var(--td-gut);
  border-right: 1px solid var(--td-line);
  display: flex; flex-direction: column;
  gap: 6px;
}
.td-stat:last-child { border-right: 0; }
@media (max-width: 1100px) {
  .td-stat:nth-child(3) { border-right: 0; }
}

.td-stat-label {
  font-family: var(--td-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--td-fg-mute);
}
.td-stat-value {
  font-size: clamp(28px, 2.4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1;
  font-weight: 500;
  color: var(--td-fg);
}
.td-stat-value .accent { color: var(--td-accent); }
.td-stat-value .unit { font-size: 0.55em; color: var(--td-fg-mute); margin-left: 4px; letter-spacing: 0; }

/* =========================
   Section frame
   ========================= */

.td-section {
  position: relative;
  border-top: 1px solid var(--td-line);
  padding: calc(100px * var(--td-density)) 0 calc(100px * var(--td-density));
}

.td-section-meta {
  position: absolute;
  top: 24px; left: var(--td-gut);
  width: calc(100% - var(--td-gut) * 2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.td-section-body {
  max-width: 1480px;
  margin: 64px auto 0;
  padding: 0 var(--td-gut);
}

.td-h2 {
  font-family: var(--td-sans);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.96;
  font-size: clamp(40px, 5.4vw, 80px);
  margin: 0;
  max-width: 18ch;
}
.td-h2 .accent { color: var(--td-accent); }

.td-sub {
  margin-top: 28px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--td-fg-dim);
  max-width: 60ch;
  line-height: 1.5;
}

/* =========================
   Vendor marquee + grid
   ========================= */

.td-vendor-marquee {
  border-top: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
  padding: 22px 0;
  background: var(--td-bg);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.td-ticker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.td-ticker-track {
  display: inline-flex;
  gap: 36px;
  animation: td-marquee linear infinite;
  font-family: var(--td-mono);
  font-size: 12px;
  color: var(--td-fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-items: center;
}
.td-ticker-item { display: inline-flex; align-items: center; gap: 36px; }
.td-ticker-sep { color: var(--td-fg-faint); }

@keyframes td-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

.td-vendors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border: 1px solid var(--td-line);
  position: relative;
  z-index: 1;
}
@media (max-width: 1100px) { .td-vendors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .td-vendors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .td-vendors-grid { grid-template-columns: 1fr; } }

.td-vendor-cell {
  position: relative;
  padding: 32px;
  border-right: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--td-bg);
  color: var(--td-fg);
  text-decoration: none;
  cursor: default;
  transition: background 220ms ease;
  overflow: hidden;
}
a.td-vendor-cell { cursor: pointer; }
/* Default 4-col grid (≥ 1101px): clear right edge of cells in column 4 */
.td-vendor-cell:nth-child(4n) { border-right: 0; }
/* 7 cells in 4-col grid → last row has 3 cells; clear bottom border on those */
.td-vendor-cell:nth-last-child(-n+3) { border-bottom: 0; }
@media (max-width: 1100px) {
  .td-vendor-cell { border-right: 1px solid var(--td-line) !important; border-bottom: 1px solid var(--td-line) !important; }
  .td-vendor-cell:nth-child(3n) { border-right: 0 !important; }
  /* 7 cells in 3-col → last row has 1 cell */
  .td-vendor-cell:last-child { border-bottom: 0 !important; }
  .td-vendor-cell:nth-last-child(-n+1) { border-bottom: 0 !important; }
}
@media (max-width: 900px) {
  .td-vendor-cell:nth-child(3n) { border-right: 1px solid var(--td-line) !important; }
  .td-vendor-cell:nth-child(2n) { border-right: 0 !important; }
  /* 7 cells in 2-col → last row has 1 cell */
}
@media (max-width: 600px) {
  .td-vendor-cell { border-right: 0 !important; }
  .td-vendor-cell:last-child { border-bottom: 0 !important; }
}

.td-vendor-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--td-vendor-tint, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}
.td-vendor-cell:hover::before { opacity: 0.18; }
.td-vendor-cell:hover { background: var(--td-bg-2); }

.td-vendor-num {
  font-family: var(--td-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--td-fg-mute);
}
.td-vendor-num .id { color: var(--td-accent); }
.td-vendor-wm {
  font-family: var(--td-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 2.4vw, 36px);
  color: var(--td-fg);
  margin-top: 28px;
  line-height: 1;
}
.td-vendor-sub {
  font-family: var(--td-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--td-fg-mute);
  margin-top: 8px;
  text-transform: uppercase;
}

.td-vendor-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--td-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--td-fg-dim);
  margin-top: 20px;
  text-transform: uppercase;
}
.td-vendor-tag::before {
  content: ""; width: 6px; height: 6px; background: var(--td-vendor-tint, var(--td-accent));
  display: inline-block;
}

.td-vendor-arrow {
  position: absolute;
  bottom: 24px; right: 24px;
  font-size: 18px;
  color: var(--td-fg-faint);
  transition: transform 220ms ease, color 220ms ease;
}
.td-vendor-cell:hover .td-vendor-arrow { color: var(--td-fg); transform: translate(4px, -4px); }

/* =========================
   Solutions (sticky scenes)
   ========================= */

.td-sols {
  position: relative;
}

.td-sols-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 96px;
}

.td-sol {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--td-line);
  min-height: 70vh;
  align-items: stretch;
}
.td-sol:last-child { border-bottom: 1px solid var(--td-line); }
@media (max-width: 900px) { .td-sol { grid-template-columns: 1fr; min-height: auto; } }

.td-sol-text {
  padding: 64px var(--td-gut);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.td-sol-tag {
  font-family: var(--td-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--td-accent);
  text-transform: uppercase;
}
.td-sol-h {
  font-family: var(--td-sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.0;
  font-size: clamp(36px, 4.4vw, 64px);
  color: var(--td-fg);
}
.td-sol-d {
  font-size: 17px;
  line-height: 1.55;
  color: var(--td-fg-dim);
  max-width: 50ch;
}
.td-sol-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--td-line);
}
.td-sol-point {
  font-family: var(--td-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--td-fg-dim);
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--td-line);
  display: flex; align-items: center; gap: 10px;
  text-transform: uppercase;
}
.td-sol-point::before {
  content: ""; width: 6px; height: 6px; background: var(--td-accent);
  flex-shrink: 0;
}
.td-sol-point:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 700px) { .td-sol-points { grid-template-columns: 1fr; } .td-sol-point:nth-last-child(-n+2) { border-bottom: 1px solid var(--td-line); } .td-sol-point:last-child { border-bottom: 0; } }

.td-sol-vis {
  position: relative;
  border-left: 1px solid var(--td-line);
  background: var(--td-bg-2);
  overflow: hidden;
  min-height: 480px;
}
@media (max-width: 900px) { .td-sol-vis { border-left: 0; border-top: 1px solid var(--td-line); min-height: 380px; } }

.td-sol-vis::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, oklch(0.13 0.012 240 / 0.4) 100%);
  pointer-events: none;
}

.td-sol-vis img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05) brightness(0.85);
  transition: transform 1.2s ease;
}
.td-sol:hover .td-sol-vis img { transform: scale(1.04); }

.td-sol-vis-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  z-index: 2;
  display: flex; justify-content: space-between;
  font-family: var(--td-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--td-fg);
  text-transform: uppercase;
  border-top: 1px solid var(--td-line);
  background: oklch(0.13 0.012 240 / 0.7);
  backdrop-filter: blur(6px);
}
.td-sol-vis-meta .live::before {
  content: "● ";
  color: var(--td-accent);
  animation: td-pulse 1.6s ease-in-out infinite;
}

/* Solution scanline overlay */
.td-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, oklch(0.97 0.005 230 / 0.025) 2px, oklch(0.97 0.005 230 / 0.025) 3px);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

/* =========================
   Services
   ========================= */

.td-svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--td-line);
}
@media (max-width: 1000px) { .td-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .td-svc-grid { grid-template-columns: 1fr; } }

.td-svc {
  padding: 40px 32px 56px 0;
  border-right: 1px solid var(--td-line);
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.td-svc:last-child { border-right: 0; padding-right: 0; }
@media (max-width: 1000px) {
  .td-svc { padding: 32px; border-right: 1px solid var(--td-line) !important; border-bottom: 1px solid var(--td-line); }
  .td-svc:nth-child(2n) { border-right: 0 !important; }
  .td-svc:nth-last-child(-n+2) { border-bottom: 0; }
}

.td-svc-num {
  font-family: var(--td-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--td-accent);
}
.td-svc-t {
  font-family: var(--td-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 26px;
  line-height: 1.05;
  color: var(--td-fg);
}
.td-svc-d {
  font-size: 14px;
  line-height: 1.5;
  color: var(--td-fg-dim);
}

/* =========================
   Proof / case studies
   ========================= */

.td-cases {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--td-line);
}

.td-case {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 220px;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--td-line);
  align-items: start;
}
@media (max-width: 1000px) {
  .td-case { grid-template-columns: 80px 1fr; gap: 16px 24px; }
  .td-case-body { grid-column: 2; }
  .td-case-stat { grid-column: 1 / -1; padding-left: 104px; }
}
@media (max-width: 600px) { .td-case { grid-template-columns: 1fr; } .td-case-body, .td-case-stat { grid-column: 1; padding-left: 0; } }

.td-case-tag {
  font-family: var(--td-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--td-accent);
  text-transform: uppercase;
  padding-top: 4px;
}
.td-case-client {
  font-family: var(--td-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 22px;
  color: var(--td-fg);
}
.td-case-body { color: var(--td-fg-dim); font-size: 14.5px; line-height: 1.55; }
.td-case-stat {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.td-case-stat-num {
  font-family: var(--td-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 44px;
  line-height: 1;
  color: var(--td-fg);
}
.td-case-stat-num .accent { color: var(--td-accent); }
.td-case-stat-lbl {
  font-family: var(--td-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--td-fg-mute);
  text-transform: uppercase;
}
@media (max-width: 1000px) {
  .td-case-stat { text-align: left; align-items: flex-start; }
}

/* =========================
   Presence / map
   ========================= */

.td-presence {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  margin-top: 48px;
}
@media (max-width: 900px) { .td-presence { grid-template-columns: 1fr; } }

.td-presence-list {
  border-top: 1px solid var(--td-line);
}
.td-presence-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--td-line);
  align-items: baseline;
}
.td-presence-city {
  font-family: var(--td-sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.td-presence-role {
  font-family: var(--td-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--td-fg-dim);
}
.td-presence-coords {
  font-family: var(--td-mono);
  font-size: 11px;
  color: var(--td-fg-mute);
  text-align: right;
}

.td-map {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--td-line);
  background: var(--td-bg-2);
  overflow: hidden;
}

.td-map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--td-line-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--td-line-faint) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.7;
}

.td-map-pin {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--td-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px oklch(0.68 0.22 32 / 0.25), 0 0 24px var(--td-accent);
  animation: td-pulse 2s ease-in-out infinite;
}
.td-map-pin.hq {
  width: 18px; height: 18px;
  background: var(--td-accent);
  box-shadow: 0 0 0 6px oklch(0.68 0.22 32 / 0.18), 0 0 30px var(--td-accent);
}
.td-map-pin-label {
  position: absolute;
  font-family: var(--td-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--td-fg);
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(8px, -50%);
  pointer-events: none;
  background: oklch(0.13 0.012 240 / 0.7);
  padding: 2px 6px;
  border: 1px solid var(--td-line);
}

.td-map-scale {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
  font-family: var(--td-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--td-fg-mute);
  text-transform: uppercase;
}

/* =========================
   Insights
   ========================= */

.td-insights-list {
  margin-top: 48px;
  border-top: 1px solid var(--td-line);
}
.td-insight {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--td-line);
  align-items: center;
  transition: padding 220ms ease;
}
.td-insight--link {
  grid-template-columns: 140px 1fr 80px 32px;
  cursor: pointer;
}
.td-insight--link:hover { padding-left: 12px; }
@media (max-width: 700px) { .td-insight { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; } }

.td-insight-date {
  font-family: var(--td-mono);
  font-size: 11px;
  color: var(--td-fg-mute);
  letter-spacing: 0.06em;
}
.td-insight-title {
  font-family: var(--td-sans);
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--td-fg);
}
.td-insight--link:hover .td-insight-title { color: var(--td-accent); }
.td-insight-min {
  font-family: var(--td-mono);
  font-size: 11px;
  color: var(--td-fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.td-insight-arrow { color: var(--td-fg-faint); }
.td-insight--link:hover .td-insight-arrow { color: var(--td-accent); }
a.td-insight { text-decoration: none; color: inherit; }

/* =========================
   CTA
   ========================= */

.td-cta {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--td-gut);
  border-top: 1px solid var(--td-line);
  text-align: center;
  overflow: hidden;
}
.td-cta-h {
  font-family: var(--td-sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.0;
  font-size: clamp(40px, 6vw, 92px);
  max-width: 18ch;
  margin: 24px auto 0;
}
.td-cta-h .accent { color: var(--td-accent); }
.td-cta-sub {
  margin: 24px auto 0;
  color: var(--td-fg-dim);
  font-size: 16px;
  max-width: 50ch;
}
.td-cta-actions {
  margin-top: 48px;
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap;
}

.td-cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, oklch(0.68 0.22 32 / 0.14), transparent 60%);
  pointer-events: none;
}

/* =========================
   Footer
   ========================= */

.td-footer {
  border-top: 1px solid var(--td-line);
  padding: 44px var(--td-gut) 32px;
  font-family: var(--td-mono);
  font-size: 11px;
  color: var(--td-fg-mute);
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  text-transform: uppercase;
}
.td-footer .accent { color: var(--td-accent); }

/* =========================
   Cursor blink
   ========================= */

.td-cursor {
  display: inline-block;
  width: 0.45em;
  height: 1em;
  background: var(--td-accent);
  margin-left: 0.1em;
  vertical-align: -0.12em;
  animation: td-blink 1s steps(2, end) infinite;
}
@keyframes td-blink {
  0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; }
}

/* =========================
   Reveal on scroll
   ========================= */

.td-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 1000ms cubic-bezier(.2,.7,.1,1);
  transition-delay: var(--td-reveal-delay, 0ms);
  will-change: transform, opacity;
}
.td-reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Vendor color hairline
   ========================= */

.td-vendor-cell[data-tint="fluxo"]    { --td-vendor-tint: var(--td-tint-fluxo); }
.td-vendor-cell[data-tint="daon"]     { --td-vendor-tint: var(--td-tint-daon); }
.td-vendor-cell[data-tint="autodesk"] { --td-vendor-tint: var(--td-tint-autodesk); }
.td-vendor-cell[data-tint="bentley"]  { --td-vendor-tint: var(--td-tint-bentley); }
.td-vendor-cell[data-tint="prokon"]   { --td-vendor-tint: var(--td-tint-prokon); }
.td-vendor-cell[data-tint="snow"]     { --td-vendor-tint: var(--td-tint-snow); }
.td-vendor-cell[data-tint="adobe"]    { --td-vendor-tint: var(--td-tint-adobe); }

/* =========================
   Hero variant B — Cinematic full-bleed
   ========================= */

.td-hero-b {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: grid;
  grid-template-columns: 88px 1fr 88px;
  grid-template-rows: 88px 1fr 88px;
  overflow: hidden;
}

@media (max-width: 800px) {
  .td-hero-b {
    grid-template-columns: 36px 1fr 36px;
    grid-template-rows: 80px 1fr 80px;
  }
}

.td-hero-b-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 60%, oklch(0.68 0.22 32 / 0.18), transparent 70%),
    radial-gradient(ellipse 30% 50% at 20% 100%, oklch(0.78 0.16 55 / 0.10), transparent 70%);
  z-index: 0;
}

.td-hero-b-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--td-line-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--td-line-faint) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 90%);
  opacity: 0.5;
  z-index: 0;
}

/* logo glow center */
.td-hero-b-mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -56%);
  width: clamp(280px, 38vw, 520px);
  aspect-ratio: 1;
  background-image: url("assets/logo-dark.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 80px oklch(0.68 0.22 32 / 0.55));
  opacity: 0.18;
  z-index: 1;
  animation: td-mark-breathe 6s ease-in-out infinite;
}

@keyframes td-mark-breathe {
  0%, 100% { opacity: 0.13; filter: drop-shadow(0 0 60px oklch(0.68 0.22 32 / 0.45)); }
  50%      { opacity: 0.22; filter: drop-shadow(0 0 100px oklch(0.68 0.22 32 / 0.7)); }
}

/* ring frame (top/bottom/left/right hairlines around content) */
.td-hero-b-frame {
  position: absolute;
  top: 88px; left: 88px; right: 88px; bottom: 88px;
  border: 1px solid var(--td-line);
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 800px) {
  .td-hero-b-frame { top: 80px; left: 36px; right: 36px; bottom: 80px; }
}

/* Corner ticks */
.td-hero-b-tick {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--td-accent);
  z-index: 3;
}
.td-hero-b-tick.tl { top: 81px;    left: 81px; border-right: 0; border-bottom: 0; }
.td-hero-b-tick.tr { top: 81px;    right: 81px; border-left: 0; border-bottom: 0; }
.td-hero-b-tick.bl { bottom: 81px; left: 81px; border-right: 0; border-top: 0; }
.td-hero-b-tick.br { bottom: 81px; right: 81px; border-left: 0; border-top: 0; }
@media (max-width: 800px) {
  .td-hero-b-tick.tl, .td-hero-b-tick.tr { top: 73px; }
  .td-hero-b-tick.bl, .td-hero-b-tick.br { bottom: 73px; }
  .td-hero-b-tick.tl, .td-hero-b-tick.bl { left: 29px; }
  .td-hero-b-tick.tr, .td-hero-b-tick.br { right: 29px; }
}

/* Side rails - mono labels */
.td-hero-b-rail {
  position: absolute;
  font-family: var(--td-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--td-fg-mute);
  text-transform: uppercase;
  z-index: 3;
}
.td-hero-b-rail.left {
  top: 50%; left: 32px;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: left center;
  white-space: nowrap;
}
.td-hero-b-rail.right {
  top: 50%; right: 32px;
  transform: rotate(90deg) translateX(-50%);
  transform-origin: right center;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .td-hero-b-rail.left, .td-hero-b-rail.right { display: none; }
}

.td-hero-b-rail .accent { color: var(--td-accent); }

/* Top/bottom rails */
.td-hero-b-top, .td-hero-b-bot {
  position: absolute;
  left: 88px; right: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--td-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--td-fg-mute);
  text-transform: uppercase;
  z-index: 3;
  padding: 0 4px;
}
.td-hero-b-top { top: 0; }
.td-hero-b-bot { bottom: 0; }
@media (max-width: 800px) {
  .td-hero-b-top, .td-hero-b-bot {
    left: 36px; right: 36px; height: 80px;
    font-size: 9.5px; gap: 12px; flex-wrap: wrap;
  }
}
.td-hero-b-top .accent, .td-hero-b-bot .accent { color: var(--td-accent); }

/* Center content */
.td-hero-b-content {
  grid-column: 2; grid-row: 2;
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 56px 56px;
}
@media (max-width: 800px) { .td-hero-b-content { padding: 40px 24px; } }

.td-hero-b-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--td-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--td-fg-dim);
  text-transform: uppercase;
}
.td-hero-b-kicker .dot {
  width: 8px; height: 8px;
  background: var(--td-accent);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--td-accent);
  animation: td-pulse 1.6s ease-in-out infinite;
}

.td-hero-b-headline {
  font-family: var(--td-sans);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-size: clamp(48px, 8vw, 128px);
  margin: 0;
  color: var(--td-fg);
  text-wrap: balance;
}
.td-hero-b-headline .accent { color: var(--td-accent); }
.td-hero-b-headline .strike {
  position: relative;
  white-space: nowrap;
}
.td-hero-b-headline .strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  top: 52%;
  height: 6px;
  background: var(--td-accent);
  transform-origin: left;
  animation: td-strike 1.2s 1.2s cubic-bezier(.2,.7,.1,1) both;
  transform: scaleX(0);
}
@keyframes td-strike { to { transform: scaleX(1); } }

.td-hero-b-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
@media (max-width: 800px) { .td-hero-b-bottom { grid-template-columns: 1fr; gap: 28px; } }

.td-hero-b-sub {
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.55;
  color: var(--td-fg-dim);
  max-width: 56ch;
  margin: 0;
}

.td-hero-b-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.td-hero-b-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--td-line);
  margin-top: 36px;
}
.td-hero-b-mini-cell {
  padding: 16px 18px 6px 0;
  border-right: 1px solid var(--td-line);
}
.td-hero-b-mini-cell:last-child { border-right: 0; }
.td-hero-b-mini-label {
  font-family: var(--td-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--td-fg-mute);
  text-transform: uppercase;
}
.td-hero-b-mini-value {
  font-family: var(--td-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 22px;
  margin-top: 4px;
}
.td-hero-b-mini-value .accent { color: var(--td-accent); }

/* =========================
   Reduced motion
   ========================= */


/* =========================
   Decorative schematic background
   ========================= */
.td-schematic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--td-fg);
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
.td-schematic-vendors { opacity: 0.05; }
.td-schematic-cta { opacity: 0.06; }

/* Make sure section content sits above the schematic */
.td-section-body { position: relative; z-index: 1; }
.td-cta > .td-reveal { position: relative; z-index: 2; }

/* =========================
   Rich footer
   ========================= */
.td-footer-rich {
  border-top: 1px solid var(--td-line);
  padding: 56px var(--td-gut) 28px;
  background: var(--td-bg);
}
.td-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1fr 1fr;
  gap: 48px;
  max-width: 1480px;
  margin: 0 auto;
}
@media (max-width: 1000px) {
  .td-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .td-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.td-footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.td-footer-col--brand { gap: 14px; }
.td-footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--td-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--td-fg);
  text-transform: uppercase;
}
.td-footer-dot {
  width: 8px; height: 8px; background: var(--td-accent); display: inline-block;
}
.td-footer-tag {
  font-family: var(--td-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--td-fg-dim);
  max-width: 38ch;
  text-transform: none;
  letter-spacing: 0;
}
.td-footer-h {
  font-family: var(--td-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--td-fg-mute);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.td-footer-line {
  font-family: var(--td-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--td-fg);
}
.td-footer-mute { color: var(--td-fg-mute); font-family: var(--td-mono); font-size: 11px; letter-spacing: 0.06em; }
.td-footer-link {
  font-family: var(--td-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--td-fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
  align-self: flex-start;
}
.td-footer-link:hover { color: var(--td-accent); border-color: var(--td-accent); }

.td-footer-bot {
  margin: 48px auto 0;
  max-width: 1480px;
  padding-top: 18px;
  border-top: 1px solid var(--td-line);
  display: flex;
  justify-content: space-between;
  font-family: var(--td-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--td-fg-mute);
  text-transform: uppercase;
}
@media (max-width: 600px) { .td-footer-bot { flex-direction: column; gap: 8px; } }

/* ── Contact section ───────────────────────────────────── */
.td-contact {
  background: var(--td-bg-2);
  border-top: 1px solid var(--td-line);
  padding: clamp(64px, 10vw, 120px) var(--td-gut);
}
.td-contact-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}
.td-contact-title {
  font-family: var(--td-sans);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--td-fg);
  margin: 14px 0 18px;
}
.td-contact-sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--td-fg-dim);
  max-width: 420px;
}
.td-contact-details {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--td-line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.td-contact-detail { display: flex; flex-direction: column; gap: 3px; }
.td-contact-detail-label {
  font-family: var(--td-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--td-fg-mute);
}
.td-contact-detail-value {
  font-size: 14px;
  color: var(--td-fg);
  text-decoration: none;
  transition: color 150ms ease;
}
a.td-contact-detail-value:hover { color: var(--td-accent); }

.td-contact-form {
  background: var(--td-panel);
  border: 1px solid var(--td-line);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.td-contact-row { display: flex; gap: 16px; }
.td-contact-row--2 > * { flex: 1; min-width: 0; }
.td-contact-field { display: flex; flex-direction: column; gap: 8px; }
.td-contact-label {
  font-family: var(--td-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--td-fg-mute);
}
.td-contact-input {
  background: var(--td-bg);
  border: 1px solid var(--td-line);
  color: var(--td-fg);
  font-family: var(--td-sans);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  border-radius: 0;
  transition: border-color 150ms ease;
  width: 100%;
  box-sizing: border-box;
}
.td-contact-input:focus { border-color: var(--td-accent); }
.td-contact-textarea { resize: vertical; min-height: 96px; }

.td-contact-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.td-contact-pill {
  padding: 7px 14px;
  border: 1px solid var(--td-line);
  background: transparent;
  color: var(--td-fg-dim);
  font-family: var(--td-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 150ms ease;
}
.td-contact-pill:hover { border-color: var(--td-fg-mute); color: var(--td-fg); }
.td-contact-pill--active {
  background: var(--td-accent);
  border-color: var(--td-accent);
  color: #fff;
}

.td-contact-submit {
  background: var(--td-accent);
  border: none;
  color: #fff;
  font-family: var(--td-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 150ms ease;
}
.td-contact-submit:hover:not(:disabled) { background: var(--td-accent-dim); }
.td-contact-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.td-contact-error {
  font-family: var(--td-mono);
  font-size: 11px;
  color: oklch(0.65 0.18 18);
  margin: 0;
}

.td-contact-success {
  background: var(--td-panel);
  border: 1px solid var(--td-accent);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.td-contact-success-icon {
  font-size: 28px;
  color: var(--td-accent);
}
.td-contact-success p {
  font-family: var(--td-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--td-fg-dim);
  margin: 0;
}

@media (max-width: 860px) {
  .td-contact-inner { grid-template-columns: 1fr; }
  .td-contact-sub { max-width: 100%; }
}
@media (max-width: 560px) {
  .td-contact-row { flex-direction: column; }
}

/* ── Chat widget ───────────────────────────────────────── */
.td-chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  background: var(--td-accent);
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: var(--td-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 14px 22px;
  cursor: pointer;
  box-shadow: 0 0 32px var(--td-accent-glow), 0 4px 20px rgba(0,0,0,0.6);
  transition: background 160ms ease, box-shadow 160ms ease, transform 120ms ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.td-chat-fab::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.9);
  animation: td-pulse 2.4s ease infinite;
  flex-shrink: 0;
}
.td-chat-fab:hover { background: var(--td-accent-dim); box-shadow: 0 0 48px var(--td-accent-glow), 0 4px 24px rgba(0,0,0,0.7); transform: translateY(-1px); }
.td-chat-fab--open { background: var(--td-panel); color: var(--td-fg-mute); box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.td-chat-fab--open::before { background: var(--td-fg-mute); box-shadow: none; animation: none; }

.td-chat-panel {
  position: fixed;
  bottom: 84px;
  right: 28px;
  z-index: 8999;
  width: 360px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  background: var(--td-panel);
  border: 1px solid var(--td-line);
  box-shadow: 0 8px 48px rgba(0,0,0,0.55);
  font-family: var(--td-mono);
  animation: td-chat-in 180ms ease;
}
@keyframes td-chat-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.td-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--td-line);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--td-fg-mute);
  flex-shrink: 0;
}
.td-chat-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--td-accent);
  margin-right: 8px;
  box-shadow: 0 0 6px var(--td-accent-glow);
  animation: td-pulse 2.4s ease infinite;
}
@keyframes td-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.td-chat-close {
  background: none;
  border: none;
  font-family: var(--td-mono);
  font-size: 12px;
  color: var(--td-fg-mute);
  cursor: pointer;
  padding: 2px 4px;
  transition: color 140ms ease;
}
.td-chat-close:hover { color: var(--td-fg); }

.td-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--td-line) transparent;
}
.td-chat-welcome {
  font-size: 12px;
  line-height: 1.65;
  color: var(--td-fg);
  margin: 0;
}

.td-chat-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 88%;
}
.td-chat-msg--user { align-self: flex-end; align-items: flex-end; }
.td-chat-msg--model { align-self: flex-start; align-items: flex-start; }

.td-chat-tag {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--td-accent);
}
.td-chat-text {
  font-family: var(--td-sans, 'Inter Tight', sans-serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--td-fg);
  white-space: pre-wrap;
  word-break: break-word;
}
.td-chat-msg--user .td-chat-text {
  background: var(--td-accent);
  color: #fff;
  padding: 7px 11px;
}
.td-chat-msg--model .td-chat-text {
  background: var(--td-panel-2);
  padding: 7px 11px;
}

.td-cursor {
  display: inline-block;
  width: 8px;
  height: 13px;
  background: var(--td-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: td-blink 0.9s step-end infinite;
}
@keyframes td-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.td-chat-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--td-line);
  flex-shrink: 0;
}
.td-chat-input {
  flex: 1;
  background: var(--td-panel-2);
  border: 1px solid var(--td-line);
  border-radius: 0;
  font-family: var(--td-sans, 'Inter Tight', sans-serif);
  font-size: 13px;
  color: var(--td-fg);
  padding: 8px 10px;
  outline: none;
  transition: border-color 150ms ease;
}
.td-chat-input::placeholder { color: var(--td-fg-mute); }
.td-chat-input:focus { border-color: var(--td-accent); }
.td-chat-input:disabled { opacity: 0.5; cursor: not-allowed; }

.td-chat-send {
  background: var(--td-accent);
  border: none;
  color: #fff;
  font-size: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease;
  flex-shrink: 0;
}
.td-chat-send:hover:not(:disabled) { background: var(--td-accent-dim); }
.td-chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 480px) {
  .td-chat-panel { right: 12px; left: 12px; width: auto; bottom: 76px; }
  .td-chat-fab   { right: 16px; bottom: 20px; }
}

/* ── Inline contact form inside chat ──────────────────────────────────────── */
.td-chat-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
  padding: 12px;
  background: var(--td-panel-2);
  border: 1px solid var(--td-border);
  border-radius: 3px;
  width: 100%;
  box-sizing: border-box;
}
.td-chat-form-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--td-fg);
  margin: 0 0 1px;
}
.td-chat-form-sub {
  font-size: 11px;
  color: var(--td-fg-3);
  margin: 0 0 4px;
}
.td-chat-form-field {
  font-family: var(--td-mono);
  font-size: 12px;
  background: var(--td-panel);
  border: 1px solid var(--td-border);
  color: var(--td-fg);
  padding: 7px 10px;
  border-radius: 2px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.td-chat-form-field:focus { border-color: var(--td-accent); }
.td-chat-form-field:disabled { opacity: 0.5; }
.td-chat-form-field option { background: var(--td-panel); }
.td-chat-form-textarea { resize: vertical; min-height: 68px; }
.td-chat-form-submit {
  font-family: var(--td-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--td-accent);
  color: #000;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.15s;
  align-self: flex-start;
  margin-top: 2px;
}
.td-chat-form-submit:hover:not(:disabled) { opacity: 0.85; }
.td-chat-form-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.td-chat-form-sent {
  font-size: 12px;
  color: var(--td-accent);
  margin: 6px 0 0;
  padding: 0;
}
.td-chat-form-err {
  font-size: 11px;
  color: #e55;
  margin: 2px 0 0;
}
