/* ============================================================
   Trinity Engineering — site styles
   Built on the Claude Design System. Tokens come from
   /colors_and_type.css.
   ============================================================ */

* { box-sizing: border-box; }
html, body, #root { margin: 0; padding: 0; }
body {
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Container width — slightly tighter than Claude marketing,
   for the editorial feel of the source screenshot. */
.tx-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------------------------------------------------------
   Top nav  —  cream bar, brand left, menu + dark/coral CTA right
   --------------------------------------------------------------- */
.tx-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-hairline);
}
.tx-nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 76px;
}
.tx-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--color-ink);
}
.tx-brand .word {
  font-family: var(--font-display);
  font-weight: 400; font-size: 22px;
  letter-spacing: -0.4px;
  color: var(--color-ink);
}
.tx-brand .word strong { font-weight: 500; }
.tx-nav-menu { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.tx-nav-menu a {
  font-family: var(--font-body);
  font-weight: 500; font-size: 14px;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: 0;
  cursor: pointer;
}
.tx-nav-menu a:hover { color: var(--color-primary); }
.tx-nav-menu a.is-active { color: var(--color-primary); }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.tx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 14px; line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .12s ease;
}
.tx-btn-primary { background: var(--color-primary); color: #fff; }
.tx-btn-primary:hover, .tx-btn-primary:active { background: var(--color-primary-active); }
.tx-btn-dark { background: var(--color-ink); color: var(--color-on-dark); }
.tx-btn-dark:hover { background: #000; }
.tx-btn-secondary { background: var(--color-canvas); color: var(--color-ink); border-color: var(--color-hairline); }
.tx-btn-secondary:hover { background: var(--color-surface-soft); }
.tx-btn-on-cream { background: var(--color-canvas); color: var(--color-ink); }
.tx-btn-on-cream:hover { background: var(--color-surface-soft); }
.tx-btn-text {
  background: transparent;
  color: var(--color-ink);
  height: auto; padding: 0;
  font-weight: 500;
}
.tx-btn-text .arrow { font-size: 16px; line-height: 1; transition: transform .12s ease; }
.tx-btn-text:hover { color: var(--color-primary); }
.tx-btn-text:hover .arrow { transform: translateX(2px); }

/* ---------------------------------------------------------------
   Hero  —  full-bleed image w/ overlay copy, matching screenshot
   --------------------------------------------------------------- */
.tx-hero {
  padding: 18px 0 0;
}
.tx-hero-frame {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 600px;
  max-height: 820px;
  overflow: hidden;
  background:
    /* Subtle blueprint grid */
    linear-gradient(rgba(250,249,245,0.05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(250,249,245,0.05) 1px, transparent 1px) 0 0 / 64px 64px,
    /* Warm radial highlight to suggest sun */
    radial-gradient(ellipse 70% 50% at 28% 30%, rgba(204,120,92,0.18), transparent 70%),
    /* Base */
    linear-gradient(180deg, #1f1e1b 0%, #181715 100%);
  color: #fff;
}
.tx-hero-frame::before {
  /* Decorative coral accent corner — pure CSS, no images required */
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 240px; height: 240px;
  background:
    radial-gradient(circle at 100% 100%, rgba(204,120,92,0.55), transparent 60%);
  pointer-events: none;
}
.tx-hero-frame::after {
  /* Protection gradient — focused on the bottom-left where the headline
     and lede sit, so the drawing in the rest of the frame stays crisp. */
  content: "";
  position: absolute; inset: 0;
  background:
    /* Strong fade behind the bottom-left copy block */
    radial-gradient(ellipse 60% 55% at 25% 80%, rgba(20,20,19,0.85) 0%, rgba(20,20,19,0.55) 45%, rgba(20,20,19,0) 75%),
    /* Soft bottom-edge darkening */
    linear-gradient(180deg, rgba(20,20,19,0) 50%, rgba(20,20,19,0.35) 100%);
  pointer-events: none;
}
.tx-hero-frame image-slot { position: absolute; inset: 0; }
.tx-hero-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  transform-origin: center center;
  will-change: transform;
}

/* ============================================================
   CAD scroll/load draw animation
   --cad-progress is set on .tx-hero-frame by JS (load timer + scroll).
   Each cad-step-N maps its own draw range against the global progress.
   ============================================================ */
@property --cad-progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.tx-hero-frame { --cad-progress: 0; }

/* Pathlength normalisation — use a stroke budget larger than any path
   length in the SVG. JS could set per-path lengths for perfect even speed,
   but a generous dash budget is enough for the "drafting in" effect. */
.tx-hero-svg [class*="cad-step-"] path,
.tx-hero-svg [class*="cad-step-"] line,
.tx-hero-svg [class*="cad-step-"] rect {
  stroke-dasharray: 3000;
  stroke-dashoffset: calc((1 - var(--p, 0)) * 3000);
}

/* Local progress per step — clamp(global progress mapped to step range) */
.tx-hero-svg .cad-step-1 { --p: clamp(0, calc((var(--cad-progress) - 0.00) / 0.18), 1); }
.tx-hero-svg .cad-step-2 { --p: clamp(0, calc((var(--cad-progress) - 0.05) / 0.22), 1); }
.tx-hero-svg .cad-step-3 { --p: clamp(0, calc((var(--cad-progress) - 0.22) / 0.18), 1); }
.tx-hero-svg .cad-step-4 { --p: clamp(0, calc((var(--cad-progress) - 0.36) / 0.22), 1); }
.tx-hero-svg .cad-step-5 { --p: clamp(0, calc((var(--cad-progress) - 0.55) / 0.22), 1); }
.tx-hero-svg .cad-step-6 { --p: clamp(0, calc((var(--cad-progress) - 0.75) / 0.22), 1); }

/* Fills, circles (bolts), text — fade in by step instead of dashing */
.tx-hero-svg [class*="cad-step-"] text,
.tx-hero-svg [class*="cad-step-"] circle {
  opacity: var(--p, 0);
  transition: opacity .15s linear;
}
/* Filled coral plates also fade their fill in */
.tx-hero-svg .cad-step-2 rect[fill^="url"],
.tx-hero-svg .cad-step-3 rect[fill^="url"] { fill-opacity: var(--p, 0); }

/* ============================================================
   Drifting particles  —  light dust rising slowly through the frame
   ============================================================ */
.cad-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.cad-particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(204, 120, 92, 0.7);
  box-shadow: 0 0 6px rgba(204, 120, 92, 0.5);
  animation: cadDrift linear infinite;
  will-change: transform, opacity;
}
.cad-particle:nth-child(3n) { background: rgba(250, 249, 245, 0.6); box-shadow: 0 0 4px rgba(250, 249, 245, 0.35); }
.cad-particle:nth-child(5n) { width: 1px; height: 1px; }
.cad-particle:nth-child(7n) { width: 3px; height: 3px; }
@keyframes cadDrift {
  0%   { transform: translateY(0)     translateX(0);  opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translateY(-50vh) translateX(8px); }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(-6px); opacity: 0; }
}

/* ============================================================
   Scanning line  —  a soft coral sweep that moves down once per cycle
   ============================================================ */
.cad-scan {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.cad-scan::before {
  content: "";
  position: absolute;
  left: -10%; right: -10%;
  top: -160px;
  height: 160px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(204, 120, 92, 0.18) 48%, rgba(204, 120, 92, 0.35) 50%, rgba(204, 120, 92, 0.18) 52%, transparent 100%);
  filter: blur(0.5px);
  animation: cadScan 14s linear infinite;
}
@keyframes cadScan {
  0%   { top: -180px;          opacity: 0; }
  8%   { opacity: 1; }
  60%  { top: calc(100% + 40px); opacity: 0.9; }
  62%  { opacity: 0; }
  100% { top: calc(100% + 40px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cad-particle, .cad-scan::before { animation: none; }
  .cad-particle { opacity: 0; }
  .cad-scan::before { display: none; }
  .tx-hero-svg { transform: none !important; }
}
.tx-hero-content {
  position: absolute; z-index: 2;
  left: 56px; right: 56px; bottom: 48px;
  display: block;
  color: #fff;
  max-width: 720px;
}
.tx-hero-stamp-tr {
  position: absolute;
  top: 36px; right: 56px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(20,20,19,0.5);
  backdrop-filter: blur(6px);
}
.tx-hero-stamp-tr .plus {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.8);
  font-size: 12px; line-height: 0;
}
.tx-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -2px;
  margin: 0 0 24px;
  color: #fff;
  text-wrap: balance;
}
.tx-hero-lede {
  max-width: 460px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin: 0;
}
.tx-hero-stamp {
  align-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: #fff;
  text-decoration: none;
}
.tx-hero-stamp .plus {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.8);
  font-size: 12px; line-height: 0;
}

/* ---------------------------------------------------------------
   Section scaffolding
   --------------------------------------------------------------- */
section { padding: 112px 0; }
section.tight { padding: 80px 0; }
section.dark { background: var(--color-surface-dark); color: var(--color-on-dark); }
section.cream-strong { background: var(--color-surface-soft); }
.tx-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 18px;
  white-space: nowrap;
}
.tx-h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.05; letter-spacing: -1.5px;
  color: var(--color-ink); margin: 0 0 24px;
  text-wrap: balance;
  max-width: 18ch;
}
.tx-h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.1; letter-spacing: -1px;
  color: var(--color-ink); margin: 0 0 20px;
  text-wrap: balance;
  max-width: 22ch;
}
section.dark .tx-h1, section.dark .tx-h2 { color: var(--color-on-dark); }
.tx-lede {
  font-size: 19px; line-height: 1.55; color: var(--color-body);
  max-width: 640px; margin: 0;
}
section.dark .tx-lede { color: var(--color-on-dark-soft); }

.tx-section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.tx-section-header .right { padding-bottom: 10px; }

/* ---------------------------------------------------------------
   Service grid
   --------------------------------------------------------------- */
.tx-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-hairline);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  overflow: hidden;
}
.tx-service-cell {
  background: var(--color-canvas);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
  cursor: pointer;
  transition: background-color .12s ease;
  text-decoration: none;
  color: inherit;
}
.tx-service-cell:hover { background: var(--color-surface-soft); }
.tx-service-cell .num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--color-muted-soft);
  letter-spacing: 0.5px;
}
.tx-service-cell h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.4px;
  color: var(--color-ink);
  margin: 0;
  text-wrap: balance;
}
.tx-service-cell p {
  font-size: 15px; line-height: 1.55;
  color: var(--color-body);
  margin: 0;
  flex: 1;
}
.tx-service-cell .read {
  font-size: 13px; font-weight: 500;
  color: var(--color-primary);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------------------------------------------------------------
   Process strip
   --------------------------------------------------------------- */
.tx-process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--color-hairline);
}
.tx-process-step {
  padding: 28px 22px 24px 0;
  border-right: 1px solid var(--color-hairline);
  display: flex; flex-direction: column; gap: 12px;
}
.tx-process-step:last-child { border-right: 0; }
.tx-process-step .step-num {
  font-family: var(--font-display); font-weight: 400;
  font-size: 22px; color: var(--color-primary);
  letter-spacing: -0.3px;
}
.tx-process-step h4 {
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  color: var(--color-ink);
  margin: 0;
}
.tx-process-step p {
  font-size: 13.5px; line-height: 1.55; color: var(--color-body);
  margin: 0;
}

/* ---------------------------------------------------------------
   Audience / Who-we-work-with
   --------------------------------------------------------------- */
.tx-audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.tx-audience-cell {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 10px;
  padding: 20px 18px;
  font-size: 14px; font-weight: 500;
  color: var(--color-ink);
  min-height: 70px;
  display: flex; align-items: center;
}

/* ---------------------------------------------------------------
   Disclaimer / fine-print band
   --------------------------------------------------------------- */
.tx-disclaimer {
  background: var(--color-surface-cream-strong);
  border-radius: 12px;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px; align-items: center;
}
.tx-disclaimer .label {
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--color-primary);
  writing-mode: vertical-lr; transform: rotate(180deg);
  align-self: stretch;
  display: flex; align-items: center;
}
.tx-disclaimer p {
  font-size: 15px; line-height: 1.65;
  color: var(--color-body-strong);
  margin: 0;
  max-width: 80ch;
}

/* ---------------------------------------------------------------
   Coral CTA band
   --------------------------------------------------------------- */
.tx-callout-coral {
  background: var(--color-primary); color: #fff;
  border-radius: 12px;
  padding: 72px 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.tx-callout-coral h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1.08; letter-spacing: -1px;
  margin: 0; color: #fff;
  text-wrap: balance;
}
.tx-callout-coral p {
  font-size: 16px; line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0 0 24px;
}
.tx-callout-coral .right {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.tx-foot {
  background: var(--color-surface-dark);
  color: var(--color-on-dark-soft);
  padding: 72px 0 32px;
}
.tx-foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.tx-foot h4 {
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  color: var(--color-on-dark); margin: 0 0 16px;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.tx-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tx-foot li { font-size: 14px; color: var(--color-on-dark-soft); cursor: pointer; }
.tx-foot li:hover { color: var(--color-on-dark); }
.tx-foot .brand-block .word { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--color-on-dark); letter-spacing: -0.4px; }
.tx-foot .brand-block .word strong { font-weight: 500; }
.tx-foot .brand-block p { color: var(--color-on-dark-soft); font-size: 14px; line-height: 1.55; margin: 16px 0 0; max-width: 320px; }
.tx-foot .fine {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid #2a2926;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--color-on-dark-soft);
}
.tx-foot .fine a { color: var(--color-on-dark-soft); text-decoration: none; }
.tx-foot .fine a:hover { color: var(--color-on-dark); }

/* ---------------------------------------------------------------
   Service-detail page  —  hero, columns, sidebar
   --------------------------------------------------------------- */
.tx-detail-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--color-hairline);
}
.tx-detail-hero .crumb {
  font-size: 13px; font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 24px;
}
.tx-detail-hero .crumb a { color: var(--color-muted); text-decoration: none; cursor: pointer; }
.tx-detail-hero .crumb a:hover { color: var(--color-primary); }
.tx-detail-hero-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 64px; align-items: end;
}

.tx-detail-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  padding: 80px 0;
}
.tx-detail-body .content > * + * { margin-top: 28px; }
.tx-detail-body h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.4px;
  color: var(--color-ink);
  margin: 0 0 12px;
}
.tx-detail-body p {
  font-size: 16.5px; line-height: 1.65;
  color: var(--color-body);
  margin: 0;
}
.tx-detail-body ul { padding-left: 20px; margin: 0; }
.tx-detail-body li {
  font-size: 16px; line-height: 1.65;
  color: var(--color-body);
  margin-bottom: 8px;
}
.tx-detail-body strong { color: var(--color-ink); font-weight: 500; }

.tx-detail-sidebar {
  position: sticky; top: 96px; align-self: start;
}
.tx-sidebar-card {
  background: var(--color-surface-card);
  border-radius: 12px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.tx-sidebar-card .ti {
  font-family: var(--font-display); font-weight: 400;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.3px;
  color: var(--color-ink);
  margin: 0;
}
.tx-sidebar-card .row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.tx-sidebar-card .row .k { color: var(--color-muted); }
.tx-sidebar-card .row .v { color: var(--color-ink); font-weight: 500; text-align: right; }
.tx-sidebar-card .divider { height: 1px; background: var(--color-hairline); margin: 4px 0; }

/* ---------------------------------------------------------------
   FAQ
   --------------------------------------------------------------- */
.tx-faq { display: flex; flex-direction: column; }
.tx-faq-item {
  border-top: 1px solid var(--color-hairline);
  padding: 28px 0;
  cursor: pointer;
}
.tx-faq-item:last-child { border-bottom: 1px solid var(--color-hairline); }
.tx-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--font-display); font-weight: 400;
  font-size: 24px; line-height: 1.25; letter-spacing: -0.3px;
  color: var(--color-ink);
}
.tx-faq-q .plus {
  flex: 0 0 32px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--color-hairline);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-ink);
  font-size: 18px; line-height: 1;
  transition: transform .15s ease, background-color .15s ease;
}
.tx-faq-item.is-open .plus { background: var(--color-primary); color: #fff; border-color: var(--color-primary); transform: rotate(45deg); }
.tx-faq-a {
  font-size: 16px; line-height: 1.65;
  color: var(--color-body);
  max-width: 80ch;
  margin-top: 16px;
  display: none;
}
.tx-faq-item.is-open .tx-faq-a { display: block; }

/* ---------------------------------------------------------------
   Contact form
   --------------------------------------------------------------- */
.tx-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  padding: 80px 0;
  align-items: start;
}
.tx-contact-left h2 { margin-top: 0; }
.tx-contact-left .info-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-hairline); }
.tx-contact-left .info-row:last-of-type { border-bottom: 1px solid var(--color-hairline); }
.tx-contact-left .info-row .k { width: 120px; font-size: 13px; color: var(--color-muted); font-weight: 500; flex: 0 0 120px; }
.tx-contact-left .info-row .v { font-size: 15px; color: var(--color-ink); }
.tx-form { display: flex; flex-direction: column; gap: 18px; }
.tx-form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.tx-field { display: flex; flex-direction: column; gap: 6px; }
.tx-field label {
  font-size: 12px; font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.3px;
  text-transform: none;
}
.tx-field input, .tx-field textarea, .tx-field select {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body); font-size: 15px; line-height: 1.4;
  color: var(--color-ink);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.tx-field textarea { min-height: 140px; resize: vertical; }
.tx-field input:focus, .tx-field textarea:focus, .tx-field select:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus-coral);
}
.tx-form .submitted {
  background: var(--color-surface-card);
  border-radius: 12px; padding: 24px;
  font-size: 15px; line-height: 1.55; color: var(--color-body-strong);
}
.tx-form .submitted strong { color: var(--color-ink); font-weight: 500; }

/* ---------------------------------------------------------------
   Generic content page (Services overview, etc)
   --------------------------------------------------------------- */
.tx-page-hero {
  padding: 96px 0 64px;
}
.tx-page-hero .top {
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--color-primary);
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------
   Small helpers
   --------------------------------------------------------------- */
.tx-hairline { height: 1px; background: var(--color-hairline); margin: 0; }
.tx-mark-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: var(--color-surface-card);
  border-radius: 9999px;
  font-size: 12px; font-weight: 500;
  color: var(--color-ink);
  letter-spacing: 0.5px;
}

/* ---------------------------------------------------------------
   Responsive — collapses for narrower previews
   --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .tx-service-grid { grid-template-columns: repeat(2, 1fr); }
  .tx-process { grid-template-columns: repeat(3, 1fr); }
  .tx-process-step:nth-child(3n) { border-right: 0; }
  .tx-audience-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .tx-section-header,
  .tx-detail-hero-grid,
  .tx-detail-body,
  .tx-contact-grid,
  .tx-callout-coral { grid-template-columns: 1fr; }
  .tx-service-grid { grid-template-columns: repeat(2, 1fr); }
  .tx-process { grid-template-columns: repeat(2, 1fr); }
  .tx-process-step { border-right: 0; border-bottom: 1px solid var(--color-hairline); padding-right: 0; }
  .tx-process-step:nth-child(3n) { border-right: 0; }
  .tx-audience-grid { grid-template-columns: repeat(2, 1fr); }
  .tx-foot-grid { grid-template-columns: 1fr 1fr; }
  .tx-detail-sidebar { position: static; }
}
@media (max-width: 640px) {
  .tx-service-grid { grid-template-columns: 1fr; }
  .tx-audience-grid { grid-template-columns: 1fr; }
  .tx-hero-content { left: 24px; right: 24px; bottom: 28px; grid-template-columns: 1fr; }
  .tx-foot-grid { grid-template-columns: 1fr; }
}
