/* TensorLynx product pages. Shared components and motion; each page adds its own drawings in
   css/product/<slug>.css. Tokens come from oltrion.css (:root). Scope: everything under .tx.

   Motion rules: transforms and opacity only on scroll; no layout animation. Everything that hides content for a
   reveal does so only under html.js, and html.tx-reduced (prefers-reduced-motion) shows every final state. */

.tx {
  --tx-ink: var(--text-primary);
  --tx-muted: var(--text-secondary);
  --tx-line: var(--border-subtle);
  --tx-grid: rgba(57, 208, 224, 0.06);
  --tx-cyan: var(--accent);
  --tx-amber: var(--accent-2);
  --tx-red: var(--diag);
  --tx-violet: #9b8cff;
  --tx-green: #4fd18b;
  --tx-gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  position: relative;
  overflow-x: clip;
  color: var(--tx-ink);
}

/* ---- Page frame ------------------------------------------------------------------------------------------------- */
.tx-section {
  position: relative;
  padding-block: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.tx-section + .tx-section { border-top: 1px solid var(--tx-line); }
.tx-section--petrol { background: linear-gradient(180deg, var(--petrol-deep), var(--surface-0) 85%); }
.tx-section--raised { background: var(--surface-1); }
.tx-wrap { width: min(100% - 2rem, var(--container-max)); margin-inline: auto; }
.tx-narrow { max-width: 68ch; }
.tx-grid-bg {
  background-image:
    linear-gradient(var(--tx-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--tx-grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

.tx-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: var(--step-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--tx-cyan);
}
.tx-eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.tx-h1 { font-size: var(--step-3xl); line-height: 1.04; letter-spacing: -0.025em; margin: .9rem 0 1.2rem; max-width: 18ch; }
.tx-h2 { font-size: var(--step-2xl); line-height: 1.08; letter-spacing: -0.02em; margin: .7rem 0 1rem; max-width: 22ch; }
.tx-h3 { font-size: var(--step-lg); line-height: var(--leading-snug); margin: 0 0 .5rem; }
.tx-lede { font-size: var(--step-md); line-height: var(--leading-normal); color: var(--tx-muted); max-width: 62ch; }
.tx p { line-height: var(--leading-normal); }
.tx-muted { color: var(--tx-muted); }
.tx-mono { font-family: var(--font-mono); }
.tx-accent { color: var(--tx-cyan); }
.tx-amber { color: var(--tx-amber); }
.tx-gradient-text {
  background: linear-gradient(100deg, var(--tx-ink) 10%, var(--tx-cyan) 55%, var(--tx-amber) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Hero ------------------------------------------------------------------------------------------------------- */
.tx-hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(3rem, 2rem + 4vw, 6rem); position: relative; isolation: isolate; }
.tx-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(57, 208, 224, .14), transparent 60%),
    radial-gradient(40rem 26rem at 5% 90%, rgba(242, 163, 58, .08), transparent 60%);
}
.tx-hero-grid { display: grid; gap: var(--tx-gap); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .tx-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.tx-hero-figure { position: relative; aspect-ratio: 1 / 0.86; min-height: 280px; }
.tx-hero-figure svg { width: 100%; height: 100%; overflow: visible; }
.tx-crumbs { font-size: var(--step-xs); color: var(--tx-muted); font-family: var(--font-mono); }
.tx-crumbs a { color: inherit; text-decoration: none; }
.tx-crumbs a:hover { color: var(--tx-cyan); }
.tx-cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.tx-proofline { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; font-size: var(--step-sm); color: var(--tx-muted); }
.tx-proofline span::before { content: "\25C6"; color: var(--tx-cyan); margin-right: .5rem; font-size: .7em; }

/* ---- Cards, grids ----------------------------------------------------------------------------------------------- */
.tx-cols { display: grid; gap: var(--tx-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tx-cols--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.tx-split { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
@media (min-width: 1000px) { .tx-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } .tx-split--rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.tx-card {
  position: relative; padding: clamp(1.2rem, 1rem + .8vw, 1.8rem); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)) , var(--surface-1);
  border: 1px solid var(--tx-line);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.tx-card:hover { border-color: var(--accent-border); transform: translateY(-3px); box-shadow: var(--shadow-accent); }
.tx-card .tx-card-ico { width: 44px; height: 44px; color: var(--tx-cyan); margin-bottom: 1rem; }
.tx-card h3 { font-size: var(--step-md); margin: 0 0 .45rem; }
.tx-card p { margin: 0; color: var(--tx-muted); font-size: var(--step-sm); }
.tx-card-link { position: absolute; inset: 0; border-radius: inherit; }
.tx-card-link:focus-visible { outline: 2px solid var(--tx-cyan); outline-offset: 3px; }

.tx-spot { --spot-x: 50%; --spot-y: 50%; }
.tx-spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--spot-x) var(--spot-y), rgba(57, 208, 224, .14), transparent 60%);
  transition: opacity var(--dur-base);
}
.tx-spot:hover::after { opacity: 1; }

/* ---- Evidence labels (every number and figure on these pages carries one) ---------------------------------------- */
.tx-badge {
  display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .6rem; border-radius: var(--radius-full);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--tx-line); color: var(--tx-muted); background: var(--surface-2);
}
.tx-badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.tx-badge--measured { color: var(--tx-green); border-color: rgba(79, 209, 139, .35); }
.tx-badge--synthetic { color: var(--tx-amber); border-color: rgba(242, 163, 58, .35); }
.tx-badge--method { color: var(--tx-cyan); border-color: var(--accent-border); }
.tx-badge--schematic { color: var(--tx-violet); border-color: rgba(155, 140, 255, .35); }

/* ---- Figures ---------------------------------------------------------------------------------------------------- */
.tx-figure { position: relative; margin: 0; border-radius: var(--radius-lg); border: 1px solid var(--tx-line); background: var(--surface-1); overflow: hidden; }
.tx-figure svg { display: block; width: 100%; height: auto; }
.tx-figure figcaption { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .75rem 1.1rem; border-top: 1px solid var(--tx-line); font-size: var(--step-xs); color: var(--tx-muted); }
.tx-svg-label { font-family: var(--font-mono); font-size: 11px; fill: var(--tx-muted); letter-spacing: .04em; }
.tx-svg-title { font-family: var(--font-sans); font-size: 13px; font-weight: 600; fill: var(--tx-ink); }
[data-tx-tilt] { transform: perspective(1100px) rotateX(var(--tx-rx, 0deg)) rotateY(var(--tx-ry, 0deg)); transition: transform 600ms var(--ease-out); transform-style: preserve-3d; }

/* SVG drawing: paths with pathLength="1" and .tx-draw draw in when an ancestor is revealed;
   [data-tx-scrub-path] follows the nearest [data-tx-progress] instead. */
.js .tx-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) calc(var(--i, 0) * 120ms); }
.js .is-in .tx-draw, .js .tx-draw.is-in { stroke-dashoffset: 0; }
[data-tx-scrub-path] { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); }
.tx-flow { stroke-dasharray: .04 .06; animation: tx-flow 2.4s linear infinite; }
@keyframes tx-flow { to { stroke-dashoffset: -1; } }
.tx-pulse { transform-box: fill-box; transform-origin: center; animation: tx-pulse 2.6s var(--ease-out) infinite; }
@keyframes tx-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.tx-float { animation: tx-float 7s ease-in-out infinite; }
@keyframes tx-float { 50% { transform: translateY(-8px); } }
.tx-spin { transform-box: fill-box; transform-origin: center; animation: tx-spin 24s linear infinite; }
@keyframes tx-spin { to { transform: rotate(360deg); } }
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* ---- Reveal ----------------------------------------------------------------------------------------------------- */
.js [data-tx-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out) calc(var(--i, 0) * 90ms), transform .9s var(--ease-out) calc(var(--i, 0) * 90ms); }
.js [data-tx-reveal="left"] { transform: translateX(-28px); }
.js [data-tx-reveal="right"] { transform: translateX(28px); }
.js [data-tx-reveal="scale"] { transform: scale(.96); }
.js [data-tx-reveal].is-in { opacity: 1; transform: none; }

/* ---- Scrollytelling steps --------------------------------------------------------------------------------------- */
.tx-steps { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); }
@media (min-width: 1000px) {
  .tx-steps { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .tx-steps-stage { position: sticky; top: calc(var(--header-h) + 4vh); height: min(78vh, 640px); align-self: start; }
}
.tx-steps-stage { display: grid; place-items: center; border-radius: var(--radius-lg); border: 1px solid var(--tx-line); background: radial-gradient(circle at 50% 40%, rgba(57,208,224,.07), transparent 70%), var(--surface-1); overflow: hidden; }
.tx-steps-stage svg { width: 100%; height: 100%; }
.tx-steps-text { display: grid; gap: 0; }
.tx-step { padding-block: clamp(2rem, 8vh, 6rem); opacity: .38; transition: opacity var(--dur-slow) var(--ease-out); }
.tx-step.is-active, .tx-reduced .tx-step, html:not(.js) .tx-step { opacity: 1; }
.tx-step-n { font-family: var(--font-mono); font-size: var(--step-xs); color: var(--tx-cyan); letter-spacing: .12em; }
.tx-step h3 { font-size: var(--step-xl); line-height: 1.12; margin: .5rem 0 .8rem; }
.tx-step p { color: var(--tx-muted); max-width: 52ch; }
@media (max-width: 999px) { .tx-steps-stage { aspect-ratio: 4 / 3; position: sticky; top: calc(var(--header-h) + 8px); z-index: 1; } .tx-step { padding-block: 2rem; } }
/* A stage element shown only for one step: give it .tx-stage-part and data-show="1 2" (steps it belongs to). */
.tx-stage-part { transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }

/* ---- Comparison table (the old way vs. with TensorLynx) ---------------------------------------------------------- */
.tx-compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--step-sm); }
.tx-compare th, .tx-compare td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--tx-line); vertical-align: top; }
.tx-compare thead th { font-family: var(--font-mono); font-size: var(--step-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--tx-muted); }
.tx-compare tbody th { font-weight: 600; width: 22%; }
.tx-compare td.tx-yes { background: linear-gradient(90deg, var(--accent-soft), transparent); }
.tx-compare td.tx-yes::before { content: "\2713"; color: var(--tx-cyan); margin-right: .55rem; font-weight: 700; }
.tx-compare td.tx-no { color: var(--tx-muted); }
.tx-table-wrap { overflow-x: auto; border: 1px solid var(--tx-line); border-radius: var(--radius-lg); background: var(--surface-1); }

/* ---- Before/after comparator ------------------------------------------------------------------------------------ */
.tx-compare-view { position: relative; --split: 50%; }
.tx-compare-view .tx-after { clip-path: inset(0 0 0 var(--split)); }
.tx-compare-view .tx-divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: var(--tx-cyan); box-shadow: 0 0 18px var(--tx-cyan); pointer-events: none; }
.tx-compare-view input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tx-compare-view input[type="range"]:focus-visible + .tx-divider { outline: 2px solid var(--tx-amber); }

/* ---- Tabs ------------------------------------------------------------------------------------------------------- */
.tx-tablist { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.tx-tab { appearance: none; border: 1px solid var(--tx-line); background: var(--surface-1); color: var(--tx-muted); padding: .55rem 1rem; border-radius: var(--radius-full); font: inherit; font-size: var(--step-sm); cursor: pointer; transition: all var(--dur-base); }
.tx-tab[aria-selected="true"] { color: var(--text-on-accent); background: var(--tx-cyan); border-color: var(--tx-cyan); }
.tx-tab:focus-visible { outline: 2px solid var(--tx-amber); outline-offset: 2px; }

/* ---- Chips and tooltips ----------------------------------------------------------------------------------------- */
.tx-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tx-chip { padding: .35rem .8rem; border-radius: var(--radius-full); border: 1px solid var(--tx-line); background: var(--surface-2); font-size: var(--step-xs); font-family: var(--font-mono); color: var(--tx-muted); }
[data-tx-tip] { cursor: help; }
[data-tx-tip]:focus-visible { outline: 2px solid var(--tx-amber); outline-offset: 2px; }
.tx-tooltip { position: fixed; left: 0; top: 0; z-index: 90; max-width: 280px; padding: .55rem .8rem; border-radius: var(--radius-sm); background: rgba(10, 12, 15, .96); border: 1px solid var(--accent-border); color: var(--text-primary); font-size: var(--step-xs); line-height: 1.45; pointer-events: none; opacity: 0; transition: opacity 160ms; box-shadow: var(--shadow-md); }
.tx-tooltip.is-on { opacity: 1; }

/* ---- Callouts, quotes, lists ------------------------------------------------------------------------------------ */
.tx-callout { border-left: 3px solid var(--tx-cyan); padding: 1rem 1.3rem; background: var(--accent-soft); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.tx-callout--amber { border-color: var(--tx-amber); background: var(--accent-2-soft); }
.tx-ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .65rem; }
.tx-ticks li { position: relative; padding-left: 1.6rem; color: var(--tx-muted); }
.tx-ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; border: 2px solid var(--tx-cyan); border-radius: 2px; transform: rotate(45deg); }
.tx-ticks strong { color: var(--tx-ink); }
.tx-kpis { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); background: var(--tx-line); border: 1px solid var(--tx-line); border-radius: var(--radius-lg); overflow: hidden; }
.tx-kpi { background: var(--surface-1); padding: 1.4rem; }
.tx-kpi-v { font-size: var(--step-2xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.tx-kpi-l { margin-top: .55rem; color: var(--tx-muted); font-size: var(--step-sm); }
.tx-sources { font-size: var(--step-xs); color: var(--tx-muted); }
.tx-sources ol { padding-left: 1.2rem; display: grid; gap: .35rem; }
.tx-sources a { color: var(--tx-muted); }
.tx-sources a:hover { color: var(--tx-cyan); }

/* ---- FAQ -------------------------------------------------------------------------------------------------------- */
.tx-faq { display: grid; gap: .8rem; }
.tx-faq details { border: 1px solid var(--tx-line); border-radius: var(--radius-md); background: var(--surface-1); transition: border-color var(--dur-base); }
.tx-faq details[open] { border-color: var(--accent-border); }
.tx-faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.tx-faq summary::-webkit-details-marker { display: none; }
.tx-faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--tx-cyan); transition: transform var(--dur-base); }
.tx-faq details[open] summary::after { transform: rotate(45deg); }
.tx-faq details > div { padding: 0 1.3rem 1.2rem; color: var(--tx-muted); }

/* ---- On-this-page rail ------------------------------------------------------------------------------------------ */
.tx-rail { display: none; }
@media (min-width: 1440px) {
  .tx-rail { display: block; position: fixed; left: max(12px, calc((100vw - var(--container-max)) / 2 - 150px)); top: 50%; transform: translateY(-50%); z-index: 5; }
  .tx-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
  .tx-rail a { display: flex; align-items: center; gap: .6rem; color: var(--tx-muted); text-decoration: none; font-size: .72rem; font-family: var(--font-mono); letter-spacing: .05em; }
  .tx-rail a::before { content: ""; width: 12px; height: 1px; background: currentColor; transition: width var(--dur-base), background var(--dur-base); }
  .tx-rail a span { opacity: 0; transition: opacity var(--dur-base); }
  .tx-rail:hover a span, .tx-rail a[aria-current] span { opacity: 1; }
  .tx-rail a[aria-current] { color: var(--tx-cyan); }
  .tx-rail a[aria-current]::before { width: 26px; background: var(--tx-cyan); }
}

/* ---- Loop map (shared: every page shows where it sits in the engineering loop) ----------------------------------- */
.tx-loop { display: grid; gap: var(--tx-gap); align-items: center; }
@media (min-width: 1000px) { .tx-loop { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.tx-loop-svg { width: 100%; height: auto; overflow: visible; }
.tx-loop-ring { fill: none; stroke: var(--tx-line); stroke-width: 1.5; }
.tx-loop-run { fill: none; stroke: var(--tx-cyan); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .06 .94; animation: tx-run 9s linear infinite; filter: drop-shadow(0 0 6px rgba(57,208,224,.8)); }
@keyframes tx-run { to { stroke-dashoffset: -1; } }
.tx-loop-node circle { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.5; transition: fill var(--dur-base), stroke var(--dur-base), r var(--dur-base); }
.tx-loop-node text { font-family: var(--font-mono); font-size: 10.5px; fill: var(--tx-muted); transition: fill var(--dur-base); }
.tx-loop-node:hover circle, .tx-loop-node:focus-visible circle { stroke: var(--tx-cyan); fill: var(--accent-soft); }
.tx-loop-node:hover text, .tx-loop-node:focus-visible text { fill: var(--tx-ink); }
.tx-loop-node:focus-visible { outline: none; }
.tx-loop-node.is-current circle { fill: var(--tx-cyan); stroke: var(--tx-cyan); }
.tx-loop-node.is-current text { fill: var(--tx-ink); font-weight: 600; }
.tx-loop-stage { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; fill: var(--tx-amber); }

/* ---- Engage band ------------------------------------------------------------------------------------------------ */
.tx-engage { background: radial-gradient(50rem 24rem at 80% 0%, rgba(57,208,224,.12), transparent 65%), linear-gradient(180deg, var(--surface-1), var(--surface-0)); }
.tx-routes { counter-reset: route; }
.tx-route { counter-increment: route; }
.tx-route::before { content: "0" counter(route); display: block; font-family: var(--font-mono); font-size: var(--step-xs); color: var(--tx-amber); margin-bottom: .8rem; letter-spacing: .1em; }
.tx-final { text-align: center; }
.tx-final .tx-h2 { margin-inline: auto; }
.tx-final .tx-lede { margin-inline: auto; }
.tx-final .tx-cta-row { justify-content: center; }

/* ---- Pager ------------------------------------------------------------------------------------------------------ */
.tx-pager { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.tx-pager a { display: block; padding: 1.3rem 1.5rem; border: 1px solid var(--tx-line); border-radius: var(--radius-lg); text-decoration: none; color: var(--tx-ink); background: var(--surface-1); transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-out); }
.tx-pager a:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.tx-pager small { display: block; font-family: var(--font-mono); color: var(--tx-muted); font-size: var(--step-xs); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.tx-pager .tx-next { text-align: right; }

/* ---- Reduced motion: final states, nothing moving ---------------------------------------------------------------- */
.tx-reduced .tx [data-tx-reveal], .tx-reduced [data-tx-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.tx-reduced .tx-draw { stroke-dashoffset: 0 !important; transition: none !important; }
.tx-reduced [data-tx-scrub-path] { stroke-dashoffset: 0 !important; }
.tx-reduced .tx *, .tx-reduced .tx *::before, .tx-reduced .tx *::after { animation: none !important; }
.tx-reduced [data-tx-tilt] { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .tx *, .tx *::before, .tx *::after { animation: none !important; transition: none !important; }
  .js .tx [data-tx-reveal] { opacity: 1; transform: none; }
  .js .tx .tx-draw { stroke-dashoffset: 0; }
}

/* ---- Small print ------------------------------------------------------------------------------------------------ */
.tx-legal { margin: 2.2rem 0 0; font-size: .74rem; line-height: 1.6; color: var(--text-tertiary); max-width: 110ch; }

/* Hero headline scale: capability H1s are full outcome sentences (60-85 characters), so they sit a step below the
   site's display size and run wider, keeping the lede and the first call to action above the fold at 1280x800. */
.tx-hero .tx-h1 { font-size: clamp(2.1rem, 1.55rem + 2.1vw, 3.35rem); line-height: 1.07; max-width: 21ch; }
@media (max-width: 640px) { .tx-hero .tx-h1 { font-size: clamp(1.9rem, 1.4rem + 3.4vw, 2.4rem); } }

/* The rail's labels need a gutter wide enough not to sit on the copy: below 1680px only the ticks show (hover still
   reveals every label), above it the current section's label shows too. */
@media (min-width: 1440px) and (max-width: 1679px) {
  .tx-rail a[aria-current] span { opacity: 0; }
  .tx-rail:hover a span, .tx-rail:focus-within a span { opacity: 1; }
  .tx-rail:hover, .tx-rail:focus-within { background: rgba(10, 12, 15, .92); border-radius: var(--radius-md); padding: .6rem .8rem .6rem 0; }
}
