/* Tremaux Brand components. Loads after tokens.css; every colour, radius and timing is a token. Slides, one-pagers and social cards size in their own units (--u) so they scale as one picture. */
:root, [data-theme="stage"] { color-scheme: dark; }
[data-theme="paper"] { color-scheme: light; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--font-sans); font-size: 19px; line-height: 1.5; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.tb-ground { background: var(--ground); color: var(--text); }
.tb-pad { padding: var(--space-6); }
.tb-stack { display: flex; flex-direction: column; gap: var(--space-3); }
.tb-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.tb-2 { color: var(--text-2); }
:root, [data-theme="stage"] { --tb-show-stage: block; --tb-show-paper: none; }
[data-theme="paper"] { --tb-show-stage: none; --tb-show-paper: block; }
:where(.tb-cta, .tb-nav a, .tb-nav-menu, .tb-story-step, .tb-footer a, a.tb-tile, .tb-wordmark):focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: var(--radius-chip); }
:where(a.tb-tile):focus-visible { border-radius: var(--radius-tile); }
@media (prefers-reduced-motion: reduce) {
  [class^="tb-"], [class*=" tb-"], [class^="tb-"]::before, [class^="tb-"]::after, .tb-frame-screen img, .tb-mark path { transition-duration: 1ms !important; transition-delay: 0s !important; animation-duration: 1ms !important; animation-delay: 0s !important; }
}
@media print {
  .tb-frame-screen, .tb-reveal, .tb-trace li::before, .tb-trace-pt, .tb-trace-id, .tb-trace-text { opacity: 1 !important; transform: none !important; }
}

/* Wordmark and Mark: the shared core */
.tb-wordmark { font-family: var(--font-sans); font-weight: 500; font-size: 20px; letter-spacing: -.025em; line-height: 1; color: inherit; text-decoration: none; white-space: nowrap; }
.tb-wordmark i { font-style: normal; color: var(--accent); }
.tb-mark { width: 48px; height: 48px; display: inline-block; vertical-align: middle; fill: none; overflow: visible; }
.tb-mark-path { stroke: currentColor; stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; }
.tb-mark-trace { stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.tb-mark-dot { fill: var(--accent); transform-origin: 150px 150px; }
.tb-mark.tb-draw .tb-mark-trace { stroke-dasharray: 1 1; stroke-dashoffset: -1; animation: tb-draw var(--dur-scene) var(--ease-reveal) 200ms forwards; }
.tb-mark.tb-draw .tb-mark-dot { transform: scale(0); animation: tb-pop var(--dur-reveal) var(--ease-reveal) calc(var(--dur-scene) - 100ms) forwards; }
@keyframes tb-draw { to { stroke-dashoffset: 0; } }
@keyframes tb-pop { to { transform: scale(1); } }

/* Headline */
.tb-headline { margin: 0; }
.tb-headline > :is(h1, h2, h3) { margin: 0; font-weight: 600; color: var(--text); text-wrap: balance; }
.tb-headline .tb-sub, .tb-tile .tb-sub, .tb-slide .tb-sub, .tb-onepager .tb-sub, .tb-social .tb-sub { color: var(--text-2); }
.tb-eyebrow { margin: 0 0 var(--space-2); font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--text-2); }
.tb-accent { color: var(--accent); }
.tb-h-hero > h1, .tb-h-hero > h2 { font-size: var(--fluid-hero); line-height: .94; letter-spacing: -.05em; }
.tb-h-hero .tb-sub { display: block; }
.tb-h-hero .tb-eyebrow { font-size: var(--fluid-lead); margin-bottom: var(--space-3); }
.tb-h-display > :is(h1, h2, h3) { font-size: var(--fluid-display); line-height: .98; letter-spacing: -.045em; }
.tb-h-headline > :is(h1, h2, h3) { font-size: var(--fluid-headline); line-height: 1.04; letter-spacing: -.035em; }
.tb-h-title > :is(h1, h2, h3) { font-size: var(--fluid-title); line-height: 1.12; letter-spacing: -.02em; }
.tb-h-title .tb-eyebrow { font-size: 17px; }
.tb-lede { margin: var(--space-3) 0 0; max-width: 34em; font-size: var(--fluid-lead); line-height: 1.4; font-weight: 500; letter-spacing: -.015em; color: var(--text-2); text-wrap: pretty; }
.tb-actions { margin-top: var(--space-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.tb-center { text-align: center; }
.tb-center > :is(h1, h2, h3), .tb-center .tb-lede { margin-inline: auto; }
.tb-center .tb-actions { justify-content: center; }

/* CTA */
.tb-cta { display: inline-flex; align-items: center; justify-content: center; gap: .25em; box-sizing: border-box; height: 2.75em; padding: 0 1.35em; border: 0; border-radius: var(--radius-chip); font-family: var(--font-sans); font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--dur-hover) var(--ease-out), opacity var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out), background-color var(--dur-hover) var(--ease-out); }
.tb-cta:active { transform: scale(.97); }
.tb-cta.tb-sm { font-size: 14px; height: 2.3em; padding: 0 1.05em; }
.tb-cta.tb-lg { font-size: 19px; }
.tb-cta.tb-primary { background: var(--cta); color: var(--on-cta); }
.tb-cta.tb-primary:hover { opacity: .86; }
.tb-cta.tb-secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--text-2); }
.tb-cta.tb-secondary:hover { box-shadow: inset 0 0 0 1px var(--text); }
.tb-cta.tb-link { height: auto; padding: 0; background: none; color: var(--text); border-radius: 4px; }
.tb-cta.tb-link:hover span { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.tb-chev { width: .9em; height: .9em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-hover) var(--ease-out); }
.tb-cta.tb-link:hover .tb-chev { transform: translateX(2px); }

/* ProductFrame */
.tb-frame { position: relative; margin: 0; isolation: isolate; container-type: inline-size; }
.tb-frame.tb-wide { width: min(calc(100vw - 2 * var(--web-gutter)), 1440px); margin-inline: calc((100% - min(calc(100vw - 2 * var(--web-gutter)), 1440px)) / 2); }
.tb-frame-screen { position: relative; overflow: hidden; border-radius: max(4px, 1.53cqw); background: var(--ground-2); box-shadow: 0 0 0 1px var(--frame-edge), var(--shadow-frame); transform-origin: 50% 100%; transition: opacity var(--dur-scene) var(--ease-reveal), transform var(--dur-scene) var(--ease-reveal); }
.tb-frame:not(.tb-in) .tb-frame-screen { opacity: 0; transform: translateY(6cqw) scale(.94); }
.tb-frame-screen > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tb-frame-live { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: var(--ground-2); }
.tb-frame.tb-spotlit::before { content: ""; position: absolute; z-index: -1; inset: -8% 0 -14%; background: radial-gradient(closest-side, var(--spot), transparent); pointer-events: none; }
.tb-frame figcaption { margin-top: 1.4em; display: flex; flex-direction: column; align-items: center; gap: .25em; text-align: center; font-size: .74em; line-height: 1.45; color: var(--text-2); }
.tb-frame .tb-caption { color: var(--text); font-weight: 500; }

/* ScreenStory */
.tb-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: var(--space-8); align-items: start; }
.tb-story.tb-reverse .tb-story-steps { order: 2; }
.tb-story-steps { display: flex; flex-direction: column; padding-top: var(--space-2); }
.tb-story-item { display: block; }
.tb-story-step { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-direction: column; gap: 6px; padding: var(--space-2) 0 var(--space-2) var(--space-3); border-left: 2px solid var(--line); cursor: pointer; transition: border-color var(--dur-hover) var(--ease-out); }
.tb-story-step.tb-on { border-left-color: var(--text); }
.tb-story-eyebrow { font-size: 14px; font-weight: 600; color: var(--text-2); }
.tb-story-title { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: var(--text-2); transition: color var(--dur-hover) var(--ease-out); }
.tb-story-step:hover .tb-story-title, .tb-story-step.tb-on .tb-story-title { color: var(--text); }
.tb-story-text { display: grid; grid-template-rows: 0fr; opacity: 0; font-size: 17px; line-height: 1.5; color: var(--text-2); transition: grid-template-rows var(--dur-reveal) var(--ease-reveal), opacity var(--dur-reveal) var(--ease-reveal); }
.tb-story-text > span { overflow: hidden; }
.tb-story-step.tb-on .tb-story-text { grid-template-rows: 1fr; opacity: 1; }
.tb-story-stage { position: relative; }
.tb-story-stage .tb-frame-screen img { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-reveal) var(--ease-reveal); }
.tb-story-stage .tb-frame-screen img.tb-on { opacity: 1; }
.tb-story-note { margin-top: var(--space-4); text-align: center; margin-inline: auto; }
.tb-story.tb-scroll .tb-story-step { min-height: 60vh; justify-content: center; }
.tb-story.tb-scroll .tb-story-text { grid-template-rows: 1fr; }
.tb-story.tb-scroll .tb-story-stage { position: sticky; top: calc(var(--web-nav) + var(--space-6)); }
@media (max-width: 900px) {
  .tb-story { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .tb-story-stage { order: -1; }
  .tb-story.tb-scroll .tb-story-stage { top: var(--web-nav); z-index: 1; }
  .tb-story.tb-scroll .tb-story-step { min-height: 40vh; }
}

/* Trace */
.tb-trace { container-type: inline-size; font-size: 17px; }
.tb-trace ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 1em; }
.tb-trace li { position: relative; padding: 2.1em .25em 0 0; }
.tb-trace li::before { content: ""; position: absolute; top: .38em; left: .45em; width: calc(100% + 1em); height: .16em; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform calc(var(--dur-scene) / var(--n)) linear calc(var(--i) * var(--dur-scene) / var(--n)); }
.tb-trace li:last-child::before { display: none; }
.tb-trace-pt { position: absolute; z-index: 1; top: 0; left: 0; box-sizing: border-box; width: .92em; height: .92em; border-radius: 50%; border: .16em solid var(--accent); background: var(--ground); transform: scale(0); transition: transform var(--dur-reveal) var(--ease-reveal) calc(var(--i) * var(--dur-scene) / var(--n)); }
.tb-trace li:last-child .tb-trace-pt { background: var(--accent); }
.tb-trace-id, .tb-trace-text { display: block; opacity: 0; transition: opacity var(--dur-reveal) var(--ease-reveal) calc(var(--i) * var(--dur-scene) / var(--n) + 120ms); }
.tb-trace-id { font-family: var(--font-sans); font-size: .82em; line-height: 1.4; letter-spacing: 0; color: var(--text); }
.tb-trace-text { margin-top: .35em; font-size: .82em; line-height: 1.4; color: var(--text-2); text-wrap: pretty; }
.tb-trace.tb-in li::before { transform: scaleX(1); }
.tb-trace.tb-in :is(.tb-trace-pt) { transform: scale(1); }
.tb-trace.tb-in :is(.tb-trace-id, .tb-trace-text) { opacity: 1; }
.tb-trace.tb-vertical ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
.tb-trace.tb-vertical li { padding: 0 0 1.3em 2em; }
.tb-trace.tb-vertical li::before { top: .9em; left: .38em; width: .16em; height: 100%; transform: scaleY(0); transform-origin: center top; }
.tb-trace.tb-vertical .tb-trace-pt { top: .2em; }
.tb-trace.tb-vertical.tb-in li::before { transform: scaleY(1); }
@container (max-width: 640px) {
  .tb-trace:not(.tb-horizontal) ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tb-trace:not(.tb-horizontal) li { padding: 0 0 1.3em 2em; }
  .tb-trace:not(.tb-horizontal) li::before { top: .9em; left: .38em; width: .16em; height: 100%; transform: scaleY(0); transform-origin: center top; }
  .tb-trace:not(.tb-horizontal) .tb-trace-pt { top: .2em; }
  .tb-trace.tb-in:not(.tb-horizontal) li::before { transform: scaleY(1); }
}

/* Tile and TileGrid */
.tb-tiles { display: grid; gap: var(--space-3); }
.tb-tiles.tb-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tb-tiles.tb-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-tile); background: var(--ground-2); color: var(--text); text-decoration: none; }
.tb-tile.tb-plain { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.tb-tile.tb-span2 { grid-column: span 2; }
.tb-tile.tb-link { transition: transform var(--dur-hover) var(--ease-out); }
.tb-tile.tb-link:hover { transform: scale(1.01); }
.tb-tile-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-6) var(--space-6) 0; }
.tb-tile-text:last-child { padding-bottom: var(--space-6); }
.tb-tile .tb-eyebrow { margin: 0; font-size: 17px; }
.tb-tile-title { margin: 0; font-size: var(--fluid-title); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.tb-tile-body { font-size: 17px; line-height: 1.5; color: var(--text-2); max-width: 36em; }
.tb-tile-body p { margin: 0; }
.tb-tile-body p + p { margin-top: .6em; }
.tb-tile-text .tb-cta { margin-top: var(--space-1); }
.tb-tile-media { margin-top: auto; padding: var(--space-6) 0 0 var(--space-6); max-height: 400px; overflow: hidden; }
.tb-tile-media > img { display: block; width: 100%; height: auto; object-fit: cover; object-position: top left; border-top-left-radius: 14px; box-shadow: 0 0 0 1px var(--frame-edge); }
.tb-tile-media.tb-inset { padding: var(--space-6); max-height: none; }
.tb-tile-media.tb-inset > img { border-radius: 14px; }
@media (max-width: 860px) {
  .tb-tiles.tb-cols-2, .tb-tiles.tb-cols-3 { grid-template-columns: minmax(0, 1fr); }
  .tb-tile.tb-span2 { grid-column: auto; }
  .tb-tile-text { padding: var(--space-4) var(--space-4) 0; }
  .tb-tile-text:last-child { padding-bottom: var(--space-4); }
  .tb-tile-media { padding: var(--space-4) 0 0 var(--space-4); }
}

/* Stat */
.tb-stat { display: flex; flex-direction: column; align-items: flex-start; gap: .35em; }
.tb-stat-value { font-size: var(--fluid-headline); line-height: 1; font-weight: 600; letter-spacing: -.045em; color: var(--text); }
.tb-stat-label { font-size: 19px; line-height: 1.35; color: var(--text-2); max-width: 18em; }
.tb-stat-tag { margin-top: .3em; padding: .2em .75em; border-radius: var(--radius-chip); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text-2); }

/* Note */
.tb-note { margin: 0; max-width: 70ch; font-size: 14px; line-height: 1.45; color: var(--text-2); }

/* Section, container and Reveal */
.tb-section { background: var(--ground); color: var(--text); padding-block: var(--web-section); }
.tb-section.tb-raised { background: var(--ground-2); }
.tb-section.tb-pad-compact { padding-block: calc(var(--web-section) / 2); }
.tb-section.tb-pad-none { padding-block: 0; }
.tb-container { box-sizing: border-box; width: 100%; max-width: calc(var(--web-container) + 2 * var(--web-gutter)); margin-inline: auto; padding-inline: var(--web-gutter); }
.tb-container.tb-wide { max-width: calc(1440px + 2 * var(--web-gutter)); }
.tb-container.tb-full { max-width: none; padding-inline: 0; }
.tb-section > .tb-container > * + * { margin-top: var(--space-8); }
.tb-reveal { transition: opacity var(--dur-reveal) var(--ease-reveal), transform var(--dur-reveal) var(--ease-reveal); transition-delay: calc(var(--i, 0) * var(--dur-stagger)); }
.tb-reveal:not(.tb-in) { opacity: 0; transform: translateY(32px); }

/* SiteNav */
.tb-nav { position: sticky; top: 0; z-index: 50; background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: inset 0 -1px 0 var(--line); color: var(--text); }
.tb-nav.tb-static { position: relative; }
.tb-nav-in { box-sizing: border-box; display: flex; align-items: center; gap: var(--space-4); height: var(--web-nav); max-width: calc(var(--web-container) + 2 * var(--web-gutter)); margin-inline: auto; padding-inline: var(--web-gutter); }
.tb-nav-links { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; }
.tb-nav-links a { font-size: 14px; color: var(--text-2); text-decoration: none; transition: color var(--dur-hover) var(--ease-out); }
.tb-nav-links a:hover, .tb-nav-links a[aria-current] { color: var(--text); }
.tb-nav-cta-m { display: none; }
.tb-nav-end { display: flex; align-items: center; gap: var(--space-2); }
.tb-nav-menu { display: none; border: 0; background: none; padding: 6px 0; font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; }
@media (max-width: 760px) {
  .tb-nav-links { display: none; position: absolute; top: var(--web-nav); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-1) var(--web-gutter) var(--space-3); background: var(--ground); box-shadow: inset 0 -1px 0 var(--line); }
  .tb-nav-links a { padding: 12px 0; font-size: 19px; font-weight: 500; color: var(--text); }
  .tb-nav.tb-open .tb-nav-links { display: flex; }
  .tb-nav-menu { display: inline-flex; }
  .tb-nav-end { margin-left: auto; }
}
@media (max-width: 520px) {
  .tb-nav-end .tb-cta { display: none; }
  .tb-nav-cta-m { display: block; padding-top: var(--space-2); }
}

/* Footer */
.tb-footer { background: var(--ground); color: var(--text-2); padding-block: var(--space-4) var(--space-6); box-shadow: inset 0 1px 0 var(--line); font-size: 13px; line-height: 1.5; }
.tb-footer-notes { display: flex; flex-direction: column; gap: var(--space-1); padding-block: var(--space-2) var(--space-3); }
.tb-footer-notes p, .tb-footer-base p { margin: 0; max-width: 90ch; }
.tb-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-3); padding-block: var(--space-3); box-shadow: inset 0 1px 0 var(--line); }
.tb-footer-cols h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.tb-footer-cols ul { list-style: none; margin: 0; padding: 0; }
.tb-footer a { color: var(--text-2); text-decoration: none; line-height: 2; }
.tb-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
.tb-footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-3); box-shadow: inset 0 1px 0 var(--line); color: var(--text-2); }
.tb-footer-base .tb-wordmark { color: var(--text); }

/* Slide: designed at 1920 by 1080; 1u is one design pixel */
.tb-slide { container-type: inline-size; width: 100%; }
.tb-slide-in { --u: calc(100cqw / 1920); position: relative; box-sizing: border-box; aspect-ratio: 16 / 9; overflow: hidden; display: flex; flex-direction: column; padding: calc(var(--u) * 120); background: var(--ground); color: var(--text); font-size: calc(var(--u) * 36); line-height: 1.35; letter-spacing: -.01em; }
.tb-slide-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; min-height: calc(var(--u) * 40); font-size: calc(var(--u) * 24); color: var(--text-2); }
.tb-slide-top .tb-wordmark { font-size: calc(var(--u) * 44); color: var(--text); }
.tb-slide-main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.tb-slide-foot { position: relative; z-index: 2; font-size: calc(var(--u) * 24); line-height: 1.35; color: var(--text-2); }
.tb-slide-foot p, .tb-slide-foot .tb-note { margin: 0; font-size: inherit; max-width: calc(var(--u) * 1400); }
.tb-slide h1, .tb-slide h2 { margin: 0; font-weight: 600; color: var(--text); text-wrap: balance; }
.tb-slide-eyebrow { margin: 0 0 calc(var(--u) * 32); font-size: calc(var(--u) * 32); font-weight: 600; letter-spacing: -.01em; color: var(--text-2); }
.tb-slide-hero { font-size: calc(var(--u) * 160); line-height: .92; letter-spacing: -.05em; }
.tb-slide-t { font-size: calc(var(--u) * 104); line-height: .98; letter-spacing: -.045em; max-width: calc(var(--u) * 1560); }
.tb-slide-h { font-size: calc(var(--u) * 64); line-height: 1.06; letter-spacing: -.03em; max-width: calc(var(--u) * 1400); }
.tb-slide-sub { margin: calc(var(--u) * 40) 0 0; color: var(--text-2); max-width: calc(var(--u) * 1200); }
.tb-slide-body { list-style: none; margin: calc(var(--u) * 48) 0 0; padding: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 16); color: var(--text-2); max-width: calc(var(--u) * 1200); }
.tb-slide-fine { margin: calc(var(--u) * 24) 0 0; font-size: calc(var(--u) * 24); color: var(--text-2); }
.tb-slide-screen { position: absolute; z-index: 0; font-size: calc(var(--u) * 26); }
.tb-l-title .tb-slide-main { justify-content: flex-end; }
.tb-l-product .tb-slide-main { flex: none; align-items: center; text-align: center; padding-top: calc(var(--u) * 8); }
.tb-l-product .tb-slide-head { display: flex; flex-direction: column; align-items: center; }
.tb-l-product .tb-slide-screen { left: calc(var(--u) * 240); top: calc(var(--u) * 450); width: calc(var(--u) * 1440); }
.tb-l-split .tb-slide-main { max-width: calc(var(--u) * 640); }
.tb-l-split .tb-slide-h { font-size: calc(var(--u) * 64); }
.tb-l-split .tb-slide-body { font-size: calc(var(--u) * 32); }
.tb-l-split .tb-slide-screen { left: calc(var(--u) * 880); top: calc(var(--u) * 170); width: calc(var(--u) * 1360); }
.tb-slide-stats { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: calc(var(--u) * 80); width: 100%; margin-top: calc(var(--u) * 96); }
.tb-slide .tb-stat-value { font-size: calc(var(--u) * 96); text-wrap: balance; }
.tb-slide .tb-stat-label { font-size: calc(var(--u) * 30); max-width: none; }
.tb-slide .tb-stat-tag { font-size: calc(var(--u) * 20); }
.tb-slide .tb-trace { width: 100%; margin-top: calc(var(--u) * 112); font-size: calc(var(--u) * 30); }
.tb-l-close .tb-slide-main { align-items: center; text-align: center; }
.tb-l-close .tb-mark { width: calc(var(--u) * 132); height: calc(var(--u) * 132); margin-bottom: calc(var(--u) * 64); color: var(--text); }
.tb-l-close .tb-slide-sub { margin-inline: auto; }

/* OnePager: A4 portrait; 1u is one millimetre */
.tb-onepager { container-type: inline-size; width: 100%; }
.tb-onepager-in { --u: calc(100cqw / 210); position: relative; box-sizing: border-box; aspect-ratio: 210 / 297; overflow: hidden; display: flex; flex-direction: column; padding: calc(var(--u) * 15) calc(var(--u) * 15) calc(var(--u) * 13); background: var(--ground); color: var(--text); font-size: calc(var(--u) * 3.7); line-height: 1.5; }
.tb-op-top { display: flex; justify-content: space-between; align-items: center; font-size: calc(var(--u) * 2.82); font-weight: 500; color: var(--text-2); }
.tb-op-top .tb-wordmark { font-size: calc(var(--u) * 6); color: var(--text); }
.tb-op-head { margin-top: calc(var(--u) * 12); }
.tb-op-eyebrow { margin: 0 0 calc(var(--u) * 3); font-size: calc(var(--u) * 3.7); font-weight: 600; color: var(--text-2); }
.tb-op-head h1 { margin: 0; font-size: calc(var(--u) * 16.9); line-height: 1; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.tb-op-lead { margin: calc(var(--u) * 6) 0 0; max-width: calc(var(--u) * 150); font-size: calc(var(--u) * 4.94); line-height: 1.4; font-weight: 500; letter-spacing: -.01em; color: var(--text-2); }
.tb-op-screen { margin-top: calc(var(--u) * 10); font-size: calc(var(--u) * 3.2); }
.tb-op-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--u) * 8); margin-top: calc(var(--u) * 10); }
.tb-op-cols h2 { margin: 0; font-size: calc(var(--u) * 4.94); line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.tb-op-cols p { margin: calc(var(--u) * 2) 0 0; color: var(--text-2); }
.tb-op-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: calc(var(--u) * 10); padding-top: calc(var(--u) * 6); box-shadow: inset 0 1px 0 var(--line); }
.tb-op-foot p { margin: 0; }
.tb-op-cta { font-size: calc(var(--u) * 4.94); font-weight: 600; letter-spacing: -.01em; }
.tb-op-contact { margin-top: calc(var(--u) * 1) !important; color: var(--text-2); }
.tb-op-note { max-width: calc(var(--u) * 80); font-size: calc(var(--u) * 2.82); line-height: 1.4; color: var(--text-2); text-align: right; }
@media print {
  @page { size: A4; margin: 0; }
  .tb-onepager { width: 210mm; break-after: page; }
}

/* SocialCard: 1u is one design pixel of the post */
.tb-social { container-type: inline-size; width: 100%; }
.tb-social-in { --u: calc(100cqw / 1080); position: relative; box-sizing: border-box; aspect-ratio: 1; overflow: hidden; display: flex; flex-direction: column; padding: calc(var(--u) * 72); background: var(--ground); color: var(--text); font-size: calc(var(--u) * 30); line-height: 1.35; }
.tb-social.tb-portrait .tb-social-in { aspect-ratio: 1080 / 1350; }
.tb-social.tb-landscape .tb-social-in { --u: calc(100cqw / 1200); aspect-ratio: 1200 / 627; }
.tb-social-top .tb-wordmark { font-size: calc(var(--u) * 40); color: var(--text); }
.tb-social-text { position: relative; z-index: 1; margin-top: auto; }
.tb-social.tb-has-screen .tb-social-text { margin-top: calc(var(--u) * 72); }
.tb-social-eyebrow { margin: 0 0 calc(var(--u) * 20); font-size: calc(var(--u) * 30); font-weight: 600; color: var(--text-2); }
.tb-social h2 { margin: 0; font-size: calc(var(--u) * 84); line-height: 1; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.tb-social-note { margin: calc(var(--u) * 24) 0 0; font-size: calc(var(--u) * 22); color: var(--text-2); }
.tb-social-screen { position: absolute; z-index: 0; left: calc(var(--u) * 140); top: calc(var(--u) * 540); width: calc(var(--u) * 1200); font-size: calc(var(--u) * 24); }
.tb-social.tb-portrait .tb-social-screen { top: calc(var(--u) * 760); width: calc(var(--u) * 1240); }
.tb-social.tb-landscape .tb-social-text { max-width: calc(var(--u) * 520); margin-top: auto; }
.tb-social.tb-landscape h2 { font-size: calc(var(--u) * 64); }
.tb-social.tb-landscape .tb-social-screen { left: calc(var(--u) * 640); top: calc(var(--u) * 96); width: calc(var(--u) * 900); }

/* Themed screens: { stage, paper } sources show the one that matches the nearest ground */
:is(img, picture).tb-for-stage { display: var(--tb-show-stage); }
:is(img, picture).tb-for-paper { display: var(--tb-show-paper); }

/* ================= Cinematic: scroll is the timeline =================
   Pinned scenes hold the stage while the reader scrolls; what is inside moves with the scroll, never on its own.
   Every scene is complete without script and under reduced motion. */

/* ScrollScene */
.tb-scene { position: relative; }
.tb-scene.tb-pinned { height: calc(var(--len, 3) * 100vh); height: calc(var(--len, 3) * 100svh); }
.tb-scene-stage { position: relative; }
.tb-scene.tb-pinned > .tb-scene-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* Parallax */
.tb-parallax { position: relative; }
.tb-parallax-in { will-change: transform; }

/* LitText */
.tb-lit { margin: 0; max-width: 21em; font-weight: 600; color: var(--text); text-wrap: balance; }
.tb-lit-display { font-size: var(--fluid-display); line-height: 1.02; letter-spacing: -.045em; }
.tb-lit-headline { font-size: var(--fluid-headline); line-height: 1.08; letter-spacing: -.035em; }
.tb-lit .tb-sub { color: var(--text-2); }
.tb-lit .tb-w { opacity: calc(.16 + .84 * clamp(0, var(--lit, 9999) - var(--i), 1)); transition: opacity 180ms linear; }
.tb-lit.tb-center { margin-inline: auto; text-align: center; }

/* ProductFrame tilt: the screen lies back and stands up as it scrolls into place */
.tb-frame.tb-tilt { perspective: 2400px; }
.tb-frame.tb-tilt .tb-frame-screen { opacity: 1; transition: none; transform-origin: 50% 100%; transform: rotateX(calc(var(--tilt, 0) * 24deg)) scale(calc(1 - var(--tilt, 0) * .08)); }

/* FilmFrame */
.tb-filmframe { position: relative; }
.tb-filmframe iframe { pointer-events: none; }
.tb-live-scale { position: absolute; inset: 0; }

/* FilmScene */
.tb-filmscene { background: var(--ground); color: var(--text); }
.tb-fs-grid { box-sizing: border-box; height: 100%; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; gap: var(--space-8); max-width: calc(1440px + 2 * var(--web-gutter)); margin-inline: auto; padding: calc(var(--web-nav) + var(--space-4)) var(--web-gutter) var(--space-4); }
.tb-filmscene.tb-reverse .tb-fs-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.tb-filmscene.tb-reverse .tb-fs-copy { order: 2; }
.tb-filmscene.tb-static .tb-fs-grid { padding-block: var(--web-section); }
.tb-fs-copy { min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.tb-fs-head { padding-bottom: var(--space-3); box-shadow: inset 0 -1px 0 var(--line); }
.tb-fs-head .tb-eyebrow { margin: 0 0 4px; font-size: 14px; }
.tb-fs-h { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.tb-fs-h .tb-sub { color: var(--text-2); font-weight: 500; }
.tb-fs-moments { display: grid; }
.tb-fs-moment { grid-area: 1 / 1; opacity: 0; transform: translateY(28px); pointer-events: none; transition: opacity 520ms var(--ease-reveal), transform 760ms var(--ease-reveal); }
.tb-fs-moment.tb-past { transform: translateY(-28px); }
.tb-fs-moment.tb-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 90ms; }
.tb-fs-eyebrow { margin: 0 0 var(--space-2); font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tb-fs-title { margin: 0; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.tb-fs-text { margin: var(--space-3) 0 0; max-width: 24em; font-size: var(--fluid-lead); line-height: 1.4; font-weight: 500; letter-spacing: -.015em; color: var(--text-2); text-wrap: pretty; }
.tb-fs-ticks { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.tb-fs-ticks li { flex: 1 1 0; max-width: 48px; }
.tb-fs-tick { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 12px 0; cursor: pointer; }
.tb-fs-track { display: block; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.tb-fs-fill { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--text); }
.tb-fs-tick.tb-past .tb-fs-fill { width: 100%; }
.tb-fs-tick.tb-on .tb-fs-fill { width: calc(var(--sp, 1) * 100%); }
.tb-filmscene.tb-static .tb-fs-tick.tb-on .tb-fs-fill { width: 100%; }
.tb-fs-tick:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.tb-fs-stage { min-width: 0; }
.tb-fs-stage .tb-frame { max-width: calc((100svh - var(--web-nav) - 150px) * var(--ar, 1.6)); margin-inline: auto; }
.tb-fs-stage iframe { pointer-events: none; }
.tb-fs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity var(--dur-reveal) var(--ease-reveal); }
.tb-fs-img.tb-on { opacity: 1; }
.tb-fs-note { margin: var(--space-3) auto 0; text-align: center; }
@media (max-width: 900px) {
  .tb-fs-grid { grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--space-3); padding-top: calc(var(--web-nav) + var(--space-2)); }
  .tb-fs-stage { order: -1; }
  .tb-filmscene.tb-reverse .tb-fs-grid { grid-template-columns: minmax(0, 1fr); }
  .tb-filmscene.tb-reverse .tb-fs-copy { order: 0; }
  .tb-fs-stage .tb-frame { max-width: max(calc(min(96px, 9svh) * var(--ar, 1.6)), calc((100svh - var(--web-nav) - var(--fs-copy, 230px) - 96px) * var(--ar, 1.6))); }
  .tb-fs-head { display: none; }
  .tb-fs-copy { gap: var(--space-2); }
  .tb-fs-title { font-size: var(--fluid-title); }
  .tb-fs-text { margin-top: var(--space-1); font-size: 17px; }
  .tb-fs-note { margin-top: var(--space-1); font-size: 12px; }
}

/* SystemsScene */
.tb-systems { background: var(--ground); color: var(--text); }
.tb-sys-stage { position: relative; height: 100%; overflow: hidden; }
.tb-systems.tb-static .tb-sys-stage { height: 100vh; min-height: 680px; }
.tb-sys-copies { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: grid; max-width: none; padding-inline: 0; padding-top: calc(var(--web-nav) + var(--space-6)); pointer-events: none; }
.tb-sys-copy { grid-area: 1 / 1; box-sizing: border-box; width: 100%; padding-inline: var(--web-gutter); text-align: center; opacity: 0; transform: translateY(28px); transition: opacity 520ms var(--ease-reveal), transform 760ms var(--ease-reveal); }
.tb-sys-copy.tb-past { transform: translateY(-28px); }
.tb-sys-copy.tb-on { opacity: 1; transform: none; transition-delay: 90ms; }
.tb-sys-copy .tb-eyebrow { margin-bottom: var(--space-1); }
.tb-sys-h { max-width: 22em; margin: 0 auto; font-size: clamp(28px, 3.1vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.tb-sys-h .tb-sub { color: var(--text-2); }
.tb-sys-lines { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tb-sys-line { fill: none; stroke: var(--text-3); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.tb-sys-trace { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.tb-sys-pieces { list-style: none; margin: 0; padding: 0; }
.tb-sys-piece { position: absolute; z-index: 2; left: 0; top: 0; box-sizing: border-box; width: 212px; padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 3px; border-radius: 18px; background: var(--ground-2); box-shadow: 0 0 0 1px var(--frame-edge); will-change: transform, opacity; transition: box-shadow var(--dur-hover) var(--ease-out); }
.tb-sys-piece.tb-key { box-shadow: 0 0 0 1.5px var(--accent); }
.tb-sys-system { font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--text-2); }
.tb-sys-id { font-family: var(--font-sans); font-size: 13px; line-height: 1.4; color: var(--text); }
.tb-sys-where { font-size: 13px; line-height: 1.4; color: var(--text-2); }
.tb-sys-text { font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; color: var(--text); }
.tb-sys-hub { position: absolute; z-index: 2; left: 0; top: 0; box-sizing: border-box; width: 300px; padding: 18px 22px 20px; border-radius: 22px; background: var(--ground-3); box-shadow: 0 0 0 1px var(--frame-edge); text-align: center; opacity: 0; will-change: transform, opacity; }
.tb-sys-hub.tb-traced { box-shadow: 0 0 0 1.5px var(--accent); }
.tb-sys-hub-e { margin: 0 0 6px; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--accent); }
.tb-sys-hub-t { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.tb-sys-hub-x { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.tb-sys-note { position: absolute; z-index: 3; left: 0; right: 0; bottom: var(--space-3); margin-inline: auto; padding-inline: var(--web-gutter); text-align: center; }
@media (max-width: 760px) {
  .tb-sys-piece { width: 112px; padding: 8px 10px 9px; border-radius: 12px; }
  .tb-sys-system { font-size: 12px; }
  .tb-sys-id { font-size: 11px; }
  .tb-sys-text, .tb-sys-where { display: none; }
  .tb-sys-hub { width: 144px; padding: 10px 12px; border-radius: 14px; }
  .tb-sys-hub-e { font-size: 11px; }
  .tb-sys-hub-t { font-size: 13px; }
  .tb-sys-hub-x { display: none; }
  .tb-sys-copies { padding-top: calc(var(--web-nav) + var(--space-3)); }
  .tb-sys-h { font-size: 24px; }
  .tb-sys-note { font-size: 12px; }
}

/* FilmPlayer: the films section */
.tb-films { --frame-w: 100%; }
.tb-films-picker { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-1) var(--space-2); margin-bottom: var(--space-3); }
.tb-films-picker-label { font-size: 15px; font-weight: 500; color: var(--text-2); }
.tb-seg { display: inline-flex; gap: 2px; max-width: 100%; padding: 4px; box-sizing: border-box; overflow-x: auto; scrollbar-width: none; border-radius: var(--radius-chip); background: var(--ground-2); box-shadow: inset 0 0 0 1px var(--line); }
.tb-seg::-webkit-scrollbar { display: none; }
.tb-seg button { flex: none; height: 40px; padding: 0 20px; border: 0; border-radius: var(--radius-chip); background: transparent; color: var(--text-2); font: 500 15px/1 var(--font-sans); letter-spacing: -.01em; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
.tb-seg button:hover { color: var(--text); }
.tb-seg button[aria-pressed="true"] { background: var(--ground-3); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.tb-films-frame { width: var(--frame-w); max-width: 100%; margin-inline: auto; }
.tb-films-frame .tb-frame-live { transform-origin: 0 0; }
.tb-films-start { position: absolute; z-index: 2; inset: 0; width: 100%; padding: 0; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); background: var(--scrim); color: var(--text); font: 500 17px var(--font-sans); cursor: pointer; }
.tb-films-start-dot { width: 76px; height: 76px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--cta); color: var(--on-cta); box-shadow: 0 12px 40px var(--scrim-shadow); transition: transform var(--dur-hover) var(--ease-out); }
.tb-films-start:hover .tb-films-start-dot { transform: scale(1.05); }
.tb-films-start svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.tb-films-player { width: var(--frame-w); max-width: 100%; margin: var(--space-3) auto 0; display: flex; flex-direction: column; gap: var(--space-2); }
.tb-films-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-2); font-size: 15px; }
.tb-films-company { font-weight: 600; color: var(--text); }
.tb-films-title { color: var(--text-2); }
.tb-films-title::before { content: "·"; margin-right: var(--space-1); }
.tb-films-chapters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.tb-films-ch { min-width: 0; padding: 6px 0; border: 0; display: flex; flex-direction: column; gap: 10px; background: none; color: var(--text-2); font: inherit; text-align: left; cursor: pointer; }
.tb-films-track { display: block; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.tb-films-fill { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--text); }
.tb-films-lbl { display: flex; gap: var(--space-1); font-size: 14px; line-height: 1.3; transition: color var(--dur-hover) var(--ease-out); }
.tb-films-lbl b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tb-films-ch:hover .tb-films-lbl, .tb-films-ch[aria-current] .tb-films-lbl { color: var(--text); }
.tb-films-bar { display: flex; align-items: flex-start; gap: var(--space-3); padding-top: var(--space-1); }
.tb-films-play { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cta); color: var(--on-cta); cursor: pointer; transition: transform var(--dur-hover) var(--ease-out), opacity var(--dur-hover) var(--ease-out); }
.tb-films-play:hover { opacity: .86; }
.tb-films-play:active { transform: scale(.97); }
.tb-films-play svg { width: 18px; height: 18px; fill: currentColor; }
.tb-films-caption { flex: 1 1 auto; min-width: 0; min-height: 2.7em; margin: 0; font-size: var(--fluid-lead); line-height: 1.35; font-weight: 500; letter-spacing: -.015em; color: var(--text); text-wrap: balance; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.tb-films-caption.tb-out { opacity: 0; transform: translateY(4px); }
.tb-films-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); padding-top: 10px; }
.tb-films-count { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-films-hint { margin: 0; font-size: 14px; color: var(--text-2); }
.tb-films-hint b { font-weight: 500; color: var(--text); }
:where(.tb-seg button, .tb-films-ch, .tb-films-play, .tb-films-start):focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
@media (max-width: 640px) {
  .tb-films-picker { flex-direction: column; align-items: stretch; }
  .tb-films-picker-label { text-align: center; }
  .tb-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 24px; }
  .tb-seg button { padding: 0 12px; }
  .tb-films-meta { flex-direction: column; gap: 2px; }
  .tb-films-title::before { display: none; }
  .tb-films-chapters { gap: 6px; }
  .tb-films-lbl { flex-direction: column; gap: 0; font-size: 12px; }
  .tb-films-bar { flex-wrap: wrap; }
  .tb-films-play { width: 44px; height: 44px; }
  .tb-films-caption { flex-basis: calc(100% - 60px); min-height: 4.1em; font-size: 18px; }
  .tb-films-side { width: 100%; flex-direction: row; align-items: center; justify-content: flex-start; padding-top: 0; }
  .tb-films-start-dot { width: 64px; height: 64px; }
}
@media (max-width: 360px) { .tb-films-lbl { font-size: 11px; } }
@media print {
  .tb-scene.tb-pinned { height: auto; }
  .tb-scene.tb-pinned > .tb-scene-stage { position: relative; height: auto; }
  .tb-lit .tb-w { opacity: 1; }
}
