/*
 * Timbereye platform identity (docs/timbereye-marketing-design.md), "Dark instrument":
 * true black ground, panels a step above it, hairline borders, one accent (ice cyan
 * #5ad7ff), real code and the model's own output as the product imagery. Dark only: no
 * light variant, and the system appearance is not consulted. Plain CSS scoped under `.te`,
 * `te-` class names. Inter, JetBrains Mono and Bricolage Grotesque are self-hosted
 * (public/fonts, SIL OFL).
 */

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("/fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
    color-scheme: dark;
}

html,
body {
    background: #000;
}

.te {
    --te-ink: #f0ece0;
    --te-text: #f0ece0;
    --te-text-2: #b9b4a6;
    --te-text-3: #9c978a;
    /* the faintest label (window title bars): 6.1:1 on black */
    --te-faint: #8f8a7d;
    --te-line: #242424;
    --te-line-2: #383838;
    --te-band: #0a0a0a;
    /* the ground: the name is the light theme's, the value is black */
    --te-white: #000000;
    /* panels and windows, and the wells behind images */
    --te-panel: #0c0c0c;
    --te-well: #050505;
    /* the one accent: blocks, buttons, links, kickers, overlays on the photographs (12.6:1 on black) */
    --te-accent: #5ad7ff;
    --te-accent-ink: #00141c;
    --te-focus: #5ad7ff;
    --te-on-dark: #f0ece0;
    --te-on-dark-2: #b9b4a6;
    --te-dark-line: #242424;
    --te-code-bg: #0c0c0c;
    --te-code-fg: #ebe6d6;
    --te-code-key: #9c978a;
    --te-code-str: #5ad7ff;
    --te-code-num: #86efac;
    --te-ph-bg: #06222c;
    --te-ph-fg: #5ad7ff;
    --te-ph-line: #5ad7ff;
    /* corrections and the "partial" status: the system's one warning colour (11.6:1 on black) */
    --te-warn: #f5c26b;
    /* data drawn over the photographs: the same panel as the "35 log ends detected" chips */
    --te-overlay: rgba(8, 8, 8, 0.94);
    --te-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
    --te-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --te-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    --te-max: 1200px;
    --te-gutter: 32px;

    font-family: var(--te-sans);
    color: var(--te-text);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 720px) {
    .te {
        --te-gutter: 16px;
    }
}

html,
body {
    overflow-x: clip;
}

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

:where(.te) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre, blockquote) {
    margin: 0;
    padding: 0;
}

:where(.te) :where(ul, ol) {
    list-style: none;
}

:where(.te) a {
    color: inherit;
    text-decoration: none;
}

.te a:hover {
    color: var(--te-accent);
}

.te :focus-visible {
    outline: 2px solid var(--te-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ------------------------------------------------------------- layout */

/* Sections break out of the kernel's page frame to the viewport edges. */
.te-bleed {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    scroll-margin-top: 16px;
}

.te-wrap {
    width: min(var(--te-max), 100%);
    margin: 0 auto;
    padding: 0 var(--te-gutter);
}

.te-section {
    padding: 72px 0;
}

.te-section[data-compact="true"] {
    padding: 40px 0;
}

.te-band {
    background: var(--te-band);
    border-top: 1px solid var(--te-line);
    border-bottom: 1px solid var(--te-line);
}

.te-dark {
    background: var(--te-ink);
    color: var(--te-on-dark);
}

.te-rule-top {
    border-top: 1px solid var(--te-line);
}

@media (max-width: 720px) {
    .te-section {
        padding: 64px 0;
    }
}

/* ---------------------------------------------------------------- type */

.te-kicker {
    font-family: var(--te-mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--te-accent);
}

.te-dark .te-kicker {
    color: var(--te-code-str);
}

.te-h1 {
    font-size: clamp(40px, 6vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 600;
    text-wrap: balance;
}

.te-h2 {
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 600;
    text-wrap: balance;
}

.te-h2[data-size="sm"] {
    font-size: clamp(28px, 3.6vw, 38px);
}

.te-h3 {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.te-lede {
    font-size: 20px;
    line-height: 1.5;
    color: var(--te-text-2);
    max-width: 540px;
    text-wrap: pretty;
}

.te-intro {
    font-size: 18px;
    color: var(--te-text-2);
    max-width: 760px;
    text-wrap: pretty;
}

.te-dark .te-intro {
    color: var(--te-on-dark-2);
}

.te-dark .te-h2 {
    color: #fff;
}

.te-body {
    font-size: 15px;
    color: var(--te-text-2);
}

.te-mono {
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-text-3);
}

.te-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 760px;
}

.te-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Placeholders the founder supplies: always visible, never styled as copy. */
.te-ph {
    background: var(--te-ph-bg);
    color: var(--te-ph-fg);
    border: 1px dashed var(--te-ph-line);
    border-radius: 4px;
    padding: 0 6px;
    font-family: var(--te-mono);
    font-size: 0.82em;
    font-weight: 500;
    letter-spacing: 0;
    font-style: normal;
    text-transform: none;
}

/* ------------------------------------------------------------- buttons */

.te-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    border: 1px solid transparent;
    min-height: 48px;
}

.te .te-btn-primary {
    background: var(--te-accent);
    color: var(--te-accent-ink);
}

.te .te-btn-primary:hover {
    background: #9a3412;
    color: #fff;
}

.te .te-btn-ghost {
    border-color: var(--te-line-2);
    background: var(--te-white);
}

.te .te-btn-ghost:hover {
    border-color: var(--te-ink);
    color: var(--te-ink);
}

.te .te-btn-dark {
    background: var(--te-ink);
    color: #fff;
    padding: 10px 18px;
    min-height: 44px;
    font-size: 15px;
}

.te .te-btn-dark:hover {
    background: #26302b;
    color: #fff;
}

.te-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.te-link {
    font-weight: 600;
    color: var(--te-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ------------------------------------------------------------ nav/logo */

.te-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.te-logo svg {
    flex: none;
}

.te-notice {
    background: var(--te-band);
    border-bottom: 1px solid var(--te-line);
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-text-2);
}

.te-notice .te-wrap {
    padding-top: 8px;
    padding-bottom: 8px;
}

.te-header {
    position: relative;
    z-index: 40;
    border-bottom: 1px solid var(--te-line);
    background: var(--te-white);
}

.te-nav {
    display: flex;
    align-items: center;
    gap: 4px 36px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.te-nav-links {
    display: flex;
    align-items: center;
    gap: 0 22px;
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 500;
    color: var(--te-text-2);
}

/* The panel is positioned against the header, not the item, so it spans the content width. */
.te-nav-item {
    display: flex;
    align-items: center;
}

.te-nav-top,
.te-nav-account {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.te-nav-more {
    appearance: none;
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 32px;
    margin-left: 2px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--te-text-3);
    cursor: pointer;
}

.te-nav-more svg {
    transition: transform 160ms ease;
}

.te-nav-more[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.te-nav-item[data-open="true"] > .te-nav-top,
.te-nav-more:hover,
.te-nav-more[aria-expanded="true"] {
    color: var(--te-ink);
}

.te-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.te-nav-account {
    padding: 0 8px;
    color: var(--te-text-2);
}

.te-nav a[aria-current="page"] {
    color: var(--te-ink);
    box-shadow: inset 0 -2px 0 var(--te-accent);
}

.te-nav-burger,
.te-nav-more[hidden] {
    display: none;
}

/* A panel: a white card under the header with a soft shadow. */
.te-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding-top: 8px;
}

.te-menu[hidden] {
    display: none;
}

.te-menu-card {
    background: var(--te-white);
    border: 1px solid var(--te-line);
    border-radius: 14px;
    box-shadow:
        0 24px 48px -24px rgba(0, 0, 0, 0.28),
        0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 22px 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (prefers-reduced-motion: no-preference) {
    .te-menu:not([hidden]) .te-menu-card {
        animation: te-menu-in 160ms ease-out;
    }
}

@keyframes te-menu-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.te-menu-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.te-menu-title {
    font-family: var(--te-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--te-accent);
}

.te-menu-intro {
    font-size: 14px;
    color: var(--te-text-3);
}

.te-menu-tiles {
    display: grid;
    grid-template-columns: repeat(var(--te-cols, 4), minmax(0, 1fr));
    gap: 8px;
}

.te-menu-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    height: 100%;
    padding: 10px 10px 12px;
    border-radius: 10px;
    color: var(--te-ink);
}

.te .te-menu-tile:hover,
.te .te-menu-tile:focus-visible {
    background: var(--te-band);
    color: var(--te-ink);
}

.te-menu-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--te-ink);
    margin-bottom: 8px;
}

.te-menu-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.te-menu-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--te-ink);
}

.te-menu-sub {
    font-family: var(--te-mono);
    font-size: 11.5px;
    color: var(--te-text-3);
}

.te-menu-hint {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--te-text-2);
}

.te-menu-chip {
    margin-top: 6px;
    font-family: var(--te-mono);
    font-size: 11px;
    line-height: 1.3;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--te-line-2);
    color: var(--te-text-2);
    background: var(--te-white);
}

.te-menu-chip[data-tone="off"] {
    border-color: #f3c3a8;
    color: #9a3412;
    background: #fff7f1;
}

.te-menu-chip[data-tone="partial"] {
    border-color: #e9d39a;
    color: #854d0e;
    background: #fffbeb;
}

.te-menu-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 28px;
}

.te-menu-coltitle {
    font-family: var(--te-mono);
    font-size: 11.5px;
    color: var(--te-text-3);
    padding: 0 10px 6px;
}

.te-menu-col ul {
    display: flex;
    flex-direction: column;
}

.te-menu-col a {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 10px;
    border-radius: 8px;
}

.te .te-menu-col a:hover {
    background: var(--te-band);
    color: var(--te-ink);
}

.te-menu-foot {
    align-self: flex-start;
    font-size: 14px;
    font-weight: 600;
    color: var(--te-ink);
    padding: 12px 10px 0;
    border-top: 1px solid var(--te-line);
    width: 100%;
}

/* Phones and narrow windows: the logo and one Menu button; the sheet holds the rest. */
/* (The static docs render the Menu button hidden and show it from their script: without JavaScript the links stay.) */
/* Five top links fit in one row from 1001px with the tighter gaps below; under that the Menu button takes over. */
@media (max-width: 1180px) {
    .te-nav {
        gap: 4px 24px;
    }
    .te-nav-links {
        gap: 0 16px;
    }
}

.te-nav-top {
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .te-nav:has(> .te-nav-burger:not([hidden])) :is(.te-nav-links, .te-nav-actions) {
        display: none;
    }
    .te-nav {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .te-nav-burger:not([hidden]) {
        appearance: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid var(--te-line-2);
        border-radius: 8px;
        background: var(--te-white);
        font: inherit;
        font-size: 15px;
        font-weight: 500;
        color: var(--te-ink);
        cursor: pointer;
    }
}

.te-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--te-white);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.te-sheet[hidden] {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .te-sheet:not([hidden]) {
        animation: te-menu-in 160ms ease-out;
    }
}

.te-sheet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px var(--te-gutter);
    border-bottom: 1px solid var(--te-line);
    position: sticky;
    top: 0;
    background: var(--te-white);
}

.te-sheet-close {
    appearance: none;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--te-line-2);
    border-radius: 8px;
    background: var(--te-white);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--te-ink);
    cursor: pointer;
}

.te-sheet-body {
    display: flex;
    flex-direction: column;
    padding: 8px var(--te-gutter) 32px;
}

.te-sheet-group {
    border-bottom: 1px solid var(--te-line);
}

.te-sheet-toggle,
.te-sheet-link {
    appearance: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    color: var(--te-ink);
    cursor: pointer;
    text-align: left;
}

.te-sheet-link {
    border-bottom: 1px solid var(--te-line);
}

.te-sheet-toggle svg {
    width: 14px;
    height: 14px;
    color: var(--te-text-3);
}

.te-sheet-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.te-sheet-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
}

.te-sheet-panel[hidden] {
    display: none;
}

.te-menu-tiles.is-compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.te-menu-tiles.is-compact .te-menu-tile {
    padding: 10px 0;
    border-radius: 0;
}

.te-menu-tiles.is-compact .te-menu-chip {
    margin-top: 4px;
}

.te-sheet .te-menu-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.te-sheet .te-menu-col a,
.te-sheet .te-menu-coltitle {
    padding-left: 0;
    padding-right: 0;
}

.te-sheet .te-menu-foot {
    padding-left: 0;
}

.te-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
}

.te-sheet-actions .te-btn {
    justify-content: center;
}

/* -------------------------------------------------------------- footer */

.te-footer {
    background: var(--te-ink);
    color: var(--te-on-dark-2);
}

.te-footer a:hover {
    color: #fff;
}

.te-footer-inner {
    padding-top: 64px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.te-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 36px;
    font-size: 15px;
}

.te-footer-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.te-footer-col p {
    color: #fff;
    font-weight: 600;
    padding-bottom: 6px;
}

.te-footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.te-footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--te-dark-line);
    padding-top: 24px;
    font-size: 14px;
}

.te-footer-base .te-logo {
    color: #fff;
    font-size: 17px;
}

.te-footer-note {
    font-size: 13px;
    color: var(--te-on-dark-2);
    max-width: 760px;
}

/* ---------------------------------------------------------------- hero */

.te-hero-inner {
    padding-top: 88px;
    padding-bottom: 72px;
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: center;
}

.te-hero-copy {
    flex: 1 1 440px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.te-hero-visual {
    flex: 1 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.te-preview-note {
    font-family: var(--te-mono);
    font-size: 13px;
    color: var(--te-text-2);
    background: var(--te-band);
    border: 1px solid var(--te-line);
    border-radius: 8px;
    padding: 12px 16px;
    max-width: 460px;
}

@media (max-width: 720px) {
    .te-hero-inner {
        padding-top: 48px;
        padding-bottom: 48px;
        gap: 40px;
    }
}

.te-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    font-size: 14px;
    color: var(--te-text-3);
}

.te-crumbs a,
.te-crumbs span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.te-crumbs [aria-current="page"] {
    color: var(--te-ink);
}

/*
 * Hero sequence (sequence.tsx): a looping illustration over two generated
 * images. The world layer zooms; overlays and HUD chips sit on top. Dark
 * media panel, 14px radius, "illustration" label, as every generated image.
 */
@property --te-k {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
}

.te-seq {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.te-seq-frame,
.te-seq-tile {
    border-radius: 14px;
    overflow: hidden;
    background: var(--te-ink);
}

.te-seq-view {
    position: relative;
    width: 100%;
    aspect-ratio: 2400 / 1792;
    overflow: hidden;
    container-type: inline-size;
    background: #15110d;
}

.te-seq-world {
    position: absolute;
    inset: 0;
    transform-origin: 0 0;
}

.te-seq-img,
.te-seq-close {
    position: absolute;
    display: block;
    max-width: none;
}

.te-seq-img {
    inset: 0;
    width: 100%;
    height: 100%;
}

.te-seq-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.te-seq-layer {
    opacity: 0;
}

.te-seq-layer.is-on {
    opacity: 1;
}

.te-seq-svg :where(rect, line, polygon, circle) {
    vector-effect: non-scaling-stroke;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Strokes are set in view pixels: divide by the zoom the world carries. */
.te-seq-box {
    stroke: #fff;
    stroke-width: calc(1.75px / var(--te-k));
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-seq-box.is-selected {
    stroke: var(--te-code-str);
    stroke-width: calc(3px / var(--te-k));
}

.te-seq-closebox {
    stroke: #fff;
    stroke-width: calc(2px / var(--te-k));
    stroke-dasharray: 10 8;
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-seq-tag {
    stroke: var(--te-code-str);
    stroke-width: calc(2.5px / var(--te-k));
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-seq-svg .te-seq-corner {
    fill: var(--te-code-str);
    stroke: var(--te-ink);
    stroke-width: calc(1.5px / var(--te-k));
}

.te-seq-ray line {
    stroke: var(--te-code-str);
    stroke-width: calc(1.5px / var(--te-k));
    stroke-opacity: 0.8;
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-seq-ray circle {
    stroke: var(--te-code-str);
    stroke-width: calc(2.5px / var(--te-k));
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

/* AR scale ignores the tag: it is dimmed, not measured. */
.te-seq-svg .te-seq-ignored {
    fill: rgba(0, 0, 0, 0.62);
    stroke: rgba(231, 236, 234, 0.7);
    stroke-width: calc(1.5px / var(--te-k));
    stroke-dasharray: 5 4;
}

.te-seq-svg .te-seq-hit {
    fill: var(--te-code-str);
}

.te-seq-dia {
    stroke: #fff;
    stroke-width: calc(2.5px / var(--te-k));
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-seq-dia.is-refined,
.te-seq-outline {
    stroke: #86efac;
    stroke-width: calc(2.5px / var(--te-k));
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.95));
}

.te-seq-pin {
    position: absolute;
    transform: translate(-50%, -135%) scale(calc(1 / var(--te-k)));
    transform-origin: 50% 100%;
    font-family: var(--te-mono);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    padding: 5px 7px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.88);
    color: var(--te-code-str);
}

.te-seq-chip {
    position: absolute;
    font-family: var(--te-mono);
    font-size: clamp(10px, 2.1cqw, 12px);
    line-height: 1.3;
    padding: 5px 9px;
    border-radius: 6px;
    color: var(--te-on-dark);
    background: rgba(0, 0, 0, 0.86);
    max-width: calc(100% - 24px);
}

.te-seq-chip-top {
    left: 12px;
    top: 12px;
}

.te-seq-chip-read {
    right: 12px;
    bottom: 12px;
    color: #fff;
}

.te-seq-chip-label {
    left: 12px;
    bottom: 12px;
}

.te-seq-view[data-phase="refine"] .te-seq-chip-read {
    color: #86efac;
}

.te-seq-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.te-seq-data {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: 44px;
    width: min(64%, 420px);
    display: flex;
    align-items: center;
}

.te-seq-data pre {
    margin: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid var(--te-dark-line);
    border-radius: 10px;
    padding: 2.6cqw 3cqw;
    color: var(--te-code-fg);
    font-family: var(--te-mono);
    font-size: clamp(8.5px, 1.9cqw, 12px);
    line-height: 1.5;
    white-space: pre;
    overflow: hidden;
}

.te-seq-data code {
    font: inherit;
}

@media (prefers-reduced-motion: no-preference) {
    .te-seq-view[data-animate="true"] .te-seq-world {
        transition:
            transform 1000ms cubic-bezier(0.45, 0, 0.2, 1),
            --te-k 1000ms cubic-bezier(0.45, 0, 0.2, 1);
    }
    .te-seq-view[data-animate="true"] .te-seq-layer {
        transition: opacity 420ms ease;
    }
    .te-seq-view[data-animate="true"] .te-seq-close {
        transition: opacity 600ms ease 500ms;
    }
    /* The scale step zooms in first (1 s), then shows the tag or the rays. */
    .te-seq-view[data-animate="true"][data-phase="tag"] .te-seq-layer.is-on:not(.te-seq-close) {
        transition-delay: 950ms;
    }
    .te-seq-view[data-animate="true"] .te-seq-box {
        opacity: 0;
        transition: opacity 160ms ease;
    }
    .te-seq-view[data-animate="true"] .is-on .te-seq-box {
        opacity: 1;
        transition-delay: calc(var(--i) * 42ms);
    }
    .te-seq-view[data-animate="true"] .te-seq-ray {
        opacity: 0;
        transition: opacity 240ms ease;
    }
    .te-seq-view[data-animate="true"] .is-on .te-seq-ray {
        opacity: 1;
        transition-delay: calc(200ms + var(--i) * 160ms);
    }
    .te-seq-view[data-animate="true"] .te-seq-outline {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        transition: stroke-dashoffset 1100ms ease;
    }
    .te-seq-view[data-animate="true"] .is-on .te-seq-outline {
        stroke-dashoffset: 0;
    }
    .te-seq-view[data-animate="true"] .te-seq-data {
        transform: translateY(8px);
        transition:
            opacity 420ms ease,
            transform 420ms ease;
    }
    .te-seq-view[data-animate="true"] .te-seq-data.is-on {
        transform: none;
    }
}

.te-seq-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.te-seq-steps,
.te-seq-controls {
    display: flex;
    gap: 4px;
}

.te-seq-step,
.te-seq-ctl {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--te-line-2);
    background: var(--te-white);
    color: var(--te-text-2);
    font-family: var(--te-mono);
    font-size: 13px;
    cursor: pointer;
}

.te-seq-step[aria-current="step"] {
    background: var(--te-ink);
    border-color: var(--te-ink);
    color: #fff;
}

.te-seq-ctl svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.te-seq-ctl .te-fill {
    fill: currentColor;
    stroke: none;
}

.te-seq-step:hover,
.te-seq-ctl:hover {
    border-color: var(--te-ink);
    color: var(--te-ink);
}

.te-seq-step[aria-current="step"]:hover {
    color: #fff;
}

.te-seq-caption {
    font-family: var(--te-mono);
    font-size: 13px;
    line-height: 1.5;
    color: var(--te-text-2);
    min-height: 3em;
}

.te-seq-caption strong {
    font-weight: 600;
    color: var(--te-ink);
}

.te-seq-num {
    color: var(--te-accent);
}

.te-seq-note {
    font-size: 12px;
    line-height: 1.5;
    color: var(--te-text-3);
}

.te-seq-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
}

.te-seq-tiles li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.te-seq-tilecap {
    font-family: var(--te-mono);
    font-size: 12px;
    line-height: 1.45;
    color: var(--te-text-2);
}

.te-seq-tilecap span {
    color: var(--te-accent);
}

@media (max-width: 720px) {
    .te-seq-step,
    .te-seq-ctl {
        min-width: 32px;
        height: 32px;
    }
    .te-seq-data {
        width: auto;
        left: 12px;
    }
}

/* ---------------------------------------------------------------- code */

.te-code {
    margin: 0;
    background: var(--te-code-bg);
    color: var(--te-code-fg);
    border-radius: 14px;
    padding: 20px 22px;
    font-family: var(--te-mono);
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    max-width: 100%;
    tab-size: 2;
}

.te-code code {
    font-family: inherit;
    white-space: pre;
}

.te-c-key,
.te-c-com {
    color: var(--te-code-key);
}

.te-c-str {
    color: var(--te-code-str);
}

.te-c-num {
    color: var(--te-code-num);
}

.te-tabs {
    background: var(--te-code-bg);
    border-radius: 14px;
    overflow: hidden;
    min-width: 0;
}

.te-tablist {
    display: flex;
    gap: 4px;
    padding: 10px 12px 0;
    border-bottom: 1px solid var(--te-dark-line);
    font-family: var(--te-mono);
    font-size: 12px;
}

.te-tab {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 10px 14px;
    background: transparent;
    color: var(--te-code-key);
    border-radius: 6px 6px 0 0;
    font: inherit;
    min-height: 44px;
}

.te-tab[aria-selected="true"] {
    background: var(--te-on-dark);
    color: var(--te-ink);
}

.te-tabs .te-code {
    border-radius: 0;
    padding: 22px;
}

.te-note {
    font-size: 15px;
    color: var(--te-text-2);
    max-width: 760px;
}

/* --------------------------------------------------------------- blocks */

.te-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--te-min, 230px), 1fr));
    gap: 20px;
}

.te-card {
    border: 1px solid var(--te-line);
    border-radius: 12px;
    padding: 28px;
    background: var(--te-white);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.te-card[data-compact="true"] {
    padding: 22px;
    gap: 8px;
}

.te-card-label {
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-text-3);
}

.te-card[data-accent="true"] .te-card-label {
    color: var(--te-accent);
}

.te-status {
    align-self: flex-start;
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-text-2);
    border: 1px solid var(--te-line-2);
    border-radius: 999px;
    padding: 2px 10px;
}

.te-col {
    border-top: 2px solid var(--te-ink);
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.te-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.te-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    color: var(--te-text-2);
}

.te-stat strong {
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 600;
    color: var(--te-ink);
}

.te-stat strong.te-ph-wrap {
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0;
}

/* Use cases: lanes of Timbereye and customer steps. */
.te-lane {
    border: 1px solid var(--te-line);
    border-radius: 16px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.te-lane-head {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 56px;
    align-items: flex-end;
}

.te-lane-head > * {
    flex: 1 1 380px;
    min-width: 0;
}

.te-lane-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.te-lane-title h3 {
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 600;
}

.te-steps-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.te-step {
    flex: 1 1 170px;
    min-width: 0;
    border: 1px solid var(--te-line-2);
    background: var(--te-band);
    padding: 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.te-step[data-who="te"] {
    background: var(--te-white);
    border: 2px solid var(--te-accent);
    padding: 15px;
}

.te-step-who {
    font-family: var(--te-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--te-text-3);
}

.te-step[data-who="te"] .te-step-who {
    color: var(--te-accent);
}

.te-step strong {
    font-size: 15px;
    font-weight: 600;
}

.te-step-body {
    font-size: 14px;
    color: var(--te-text-2);
}

.te-returns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
    font-size: 15px;
}

.te-returns strong {
    font-weight: 600;
}

.te-returns span {
    color: var(--te-text-2);
}

@media (max-width: 720px) {
    .te-lane {
        padding: 22px;
    }
}

/* Split: a heading beside paragraphs. */
.te-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.te-prose {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 17px;
    color: var(--te-text-2);
}

/* How it works: numbered steps beside tabbed code. */
.te-howto {
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: flex-start;
}

.te-howto > * {
    min-width: 0;
}

.te-howto-copy {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.te-howto-code {
    flex: 1 1 520px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.te-numbered {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.te-numbered li {
    display: flex;
    gap: 16px;
}

.te-numbered .te-mono {
    padding-top: 3px;
    font-size: 13px;
}

.te-numbered strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
}

.te-numbered span {
    color: var(--te-text-2);
    font-size: 15px;
}

/* Objects on dark. */
.te-objects .te-card {
    background: transparent;
    border-color: var(--te-dark-line);
    padding: 22px;
    gap: 8px;
    color: var(--te-on-dark-2);
}

.te-objects .te-card-label {
    font-size: 13px;
    color: var(--te-code-str);
}

/* Tiles. */
.te-tile {
    background: var(--te-white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    color: var(--te-text-2);
}

.te-tiles-on-white .te-tile {
    background: var(--te-band);
}

.te-two {
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: flex-start;
}

.te-two-copy {
    flex: 1 1 400px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.te-two-tiles {
    flex: 1 1 520px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

/* Tiers. */
.te-tier {
    border: 1px solid var(--te-line);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.te-tier[data-featured="true"] {
    border-color: var(--te-ink);
}

.te-price {
    font-size: 36px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.te-price small {
    font-size: 17px;
    font-weight: 500;
    color: var(--te-text-2);
    letter-spacing: 0;
}

.te-tier .te-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* Tables. */
.te-table-wrap {
    overflow-x: auto;
    max-width: 100%;
}

.te-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 15px;
}

.te-table th {
    font-weight: 500;
    color: var(--te-text-3);
    text-align: left;
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid var(--te-line);
}

.te-table td {
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid var(--te-line);
    vertical-align: top;
}

.te-table td .te-mono {
    display: block;
    color: var(--te-text-2);
    font-size: 13px;
}

/* Lists. */
.te-list {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    color: var(--te-text-2);
}

.te-list li {
    list-style: disc;
}

.te-list a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* FAQ. */
.te-faq {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px 48px;
}

.te-faq div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.te-faq h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.te-faq p {
    color: var(--te-text-2);
    font-size: 16px;
}

/* Docs index. */
.te-doclist {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.te-docgroup {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 3fr;
    gap: 16px 48px;
    border-top: 1px solid var(--te-line);
    padding-top: 24px;
}

.te-docgroup h3 {
    font-size: 16px;
    font-weight: 600;
}

.te-docitems {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px 32px;
}

.te-docitem {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
}

.te-docitem strong {
    font-weight: 600;
    font-size: 16px;
}

.te-docitem span {
    font-size: 14px;
    color: var(--te-text-2);
}

@media (max-width: 720px) {
    .te-docgroup {
        grid-template-columns: 1fr;
    }
}

/* Product figure: a tagged log end and its record card. */
.te-figure-panel {
    flex: 1 1 420px;
    min-width: 0;
    background: var(--te-band);
    border: 1px solid var(--te-line);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    justify-content: center;
}

.te-logend {
    position: relative;
    width: 260px;
    max-width: 100%;
    aspect-ratio: 1;
}

.te-logend > * {
    position: absolute;
}

.te-logend .te-log-disc {
    inset: 0;
    border-radius: 50%;
    border: 5px solid #6f4e2c;
    background: radial-gradient(
        circle,
        #a97843 0 9%,
        #c89b68 9% 24%,
        #bc8c58 24% 41%,
        #d2a877 41% 60%,
        #c39561 60% 80%,
        #b48551 80% 100%
    );
}

.te-logend .te-log-trace {
    inset: 5%;
    border-radius: 50%;
    border: 2px dashed var(--te-accent);
}

.te-logend .te-log-h {
    left: 5%;
    right: 5%;
    top: 50%;
    height: 2px;
    background: var(--te-accent);
}

.te-logend .te-log-v {
    top: 5%;
    bottom: 5%;
    left: 50%;
    width: 2px;
    background: var(--te-accent);
}

.te-logend .te-log-tag {
    left: 56%;
    top: 60%;
    width: 20%;
    aspect-ratio: 1;
    background: #fff;
    border: 3px solid var(--te-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.te-logend .te-log-tag::after {
    content: "";
    width: 45%;
    height: 45%;
    background: var(--te-ink);
}

.te-record {
    flex: 1 1 180px;
    min-width: 0;
    background: var(--te-white);
    border: 1px solid var(--te-line);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--te-mono);
    font-size: 13px;
}

.te-record pre {
    font: inherit;
    white-space: pre-wrap;
}

.te-record-vol {
    font-family: var(--te-sans);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.te-record-vol small {
    font-size: 13px;
    font-weight: 500;
    color: var(--te-text-3);
}

.te-record-stage {
    color: var(--te-code-num);
}

/* Page hero (pricing, docs). */
.te-pagehero {
    padding-top: 80px;
    padding-bottom: 56px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 720px) {
    .te-pagehero {
        padding-top: 48px;
    }
}

/* Closing call to action. */
.te-cta {
    padding-top: 88px;
    padding-bottom: 88px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.te-cta-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 620px;
}

.te-cta[data-left="true"] {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

@media (prefers-reduced-motion: no-preference) {
    .te a,
    .te .te-btn {
        transition:
            color 160ms ease,
            background-color 160ms ease,
            border-color 160ms ease;
    }
}

.te-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------- integrate */

.te-hero-seq {
    padding-top: 56px;
    padding-bottom: 64px;
    align-items: flex-start;
}

.te-hero-seq .te-hero-copy {
    flex: 1 1 400px;
    padding-top: 24px;
}

.te-hero-seq .te-hero-visual {
    flex: 1 1 560px;
}

@media (max-width: 720px) {
    .te-hero-seq {
        padding-top: 36px;
    }
    .te-hero-seq .te-hero-copy {
        padding-top: 0;
    }
}

.te-integrate {
    border-top: 1px solid var(--te-line);
}

.te-int-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.te-int-step {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 28px 40px;
    align-items: start;
}

.te-int-left {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.te-int-stephead {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.te-int-stephead > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.te-int-n {
    font-family: var(--te-mono);
    font-size: 13px;
    color: var(--te-accent);
    padding-top: 3px;
}

.te-int-where {
    font-family: var(--te-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--te-text-3);
}

.te-int-stephead .te-body {
    font-size: 16px;
}

.te-int-codecol {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.te-tab-lang {
    color: inherit;
    opacity: 0.7;
    margin-left: 4px;
}

.te-int-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 16px 0 22px;
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-code-key);
}

.te-int-status {
    border: 1px solid var(--te-dark-line);
    border-radius: 999px;
    padding: 2px 10px;
    color: var(--te-code-str);
}

.te .te-int-copybtn {
    appearance: none;
    margin-left: auto;
    min-height: 32px;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid var(--te-dark-line);
    background: transparent;
    color: var(--te-on-dark);
    font: inherit;
    cursor: pointer;
}

.te .te-int-copybtn:hover {
    border-color: var(--te-on-dark-2);
}

.te-integrate .te-tabs .te-code {
    padding-top: 14px;
    font-size: 12.5px;
}

.te-int-note {
    font-size: 14px;
    color: var(--te-text-2);
}

.te-int-aside {
    font-size: 14px;
    color: var(--te-text-2);
    margin: 0;
    padding-left: 12px;
    border-left: 2px solid var(--te-line-2);
}

.te-int-result {
    margin: 0;
    min-width: 0;
}

/* The scanner screen: a phone-width card, not a device mock-up. */
.te-phone {
    width: 100%;
    max-width: 380px;
    justify-self: center;
    border: 1px solid var(--te-line-2);
    border-radius: 22px;
    background: var(--te-white);
    overflow: hidden;
    box-shadow:
        0 1px 0 var(--te-line),
        0 18px 40px -28px rgba(0, 0, 0, 0.35);
}

.te-phone-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px 12px;
}

.te-phone-head .te-mono {
    font-size: 11px;
    color: var(--te-text-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.te-phone-head strong {
    font-size: 17px;
    font-weight: 600;
    color: var(--te-ink);
}

.te-phone-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px 16px;
}

.te-phone-label {
    font-family: var(--te-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--te-text-3);
}

.te-phone-spec {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
}

.te-phone-spec > div {
    border: 1px solid var(--te-line);
    border-radius: 8px;
    padding: 6px 9px;
    min-width: 0;
}

.te-phone-spec dt {
    font-size: 11px;
    color: var(--te-text-3);
}

.te-phone-spec dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--te-ink);
}

.te-phone-state {
    font-size: 13px;
    color: var(--te-text-2);
}

.te-phone-state::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #15803d;
    margin-right: 7px;
    vertical-align: 1px;
}

.te-phone-tally {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--te-mono);
    font-size: 12.5px;
}

.te-phone-tally th {
    text-align: right;
    font-weight: 400;
    font-size: 11px;
    color: var(--te-text-3);
    padding: 4px 0;
    border-bottom: 1px solid var(--te-line);
}

.te-phone-tally td {
    text-align: right;
    padding: 5px 0;
    border-bottom: 1px solid var(--te-line);
    color: var(--te-ink);
}

.te-phone-tally th:first-child,
.te-phone-tally td:first-child {
    text-align: left;
}

.te-phone-tally .te-phone-more td {
    text-align: left;
    color: var(--te-text-3);
    font-family: var(--te-sans);
    font-size: 12px;
}

.te-phone-total {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 12px;
}

.te-phone-total strong {
    font-size: 18px;
    font-weight: 600;
    color: var(--te-ink);
}

.te-phone-total span {
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-text-3);
}

.te-phone-caption {
    font-size: 12px;
    color: var(--te-text-3);
    padding: 10px 16px 14px;
    border-top: 1px solid var(--te-line);
    background: var(--te-band);
}

.te-int-record {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.te-int-reslabel {
    font-family: var(--te-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--te-text-3);
}

.te-int-record .te-code {
    font-size: 12.5px;
    padding: 16px 18px;
}

.te-int-rowtable {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--te-mono);
    font-size: 13px;
    border: 1px solid var(--te-line);
    border-radius: 10px;
}

.te-int-rowtable th {
    text-align: left;
    font-weight: 400;
    font-size: 12px;
    color: var(--te-text-3);
    padding: 8px 12px;
    background: var(--te-band);
    border-bottom: 1px solid var(--te-line);
}

.te-int-rowtable td {
    padding: 10px 12px;
    color: var(--te-ink);
}

.te-int-rowtable td + td,
.te-int-rowtable th + th {
    text-align: right;
}

.te-int-rescap {
    font-size: 14px;
    color: var(--te-text-2);
}

.te-int-foot {
    font-size: 15px;
    color: var(--te-text-2);
    max-width: 860px;
    padding-top: 22px;
    border-top: 1px solid var(--te-line);
}

@media (max-width: 900px) {
    .te-int-step {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ------------------------------------------------------------- media */

/* Every generated image: dark media panel, 14px radius, "illustration" label. */
.te-media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--te-ink);
}

.te-media img {
    display: block;
    width: 100%;
    height: auto;
}

.te-media-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-family: var(--te-mono);
    font-size: 12px;
    line-height: 1.3;
    padding: 5px 9px;
    border-radius: 6px;
    color: var(--te-on-dark);
    background: rgba(0, 0, 0, 0.86);
}

.te-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.te-lane-head[data-media="true"] {
    align-items: center;
}

.te-lane-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.te-lane-head[data-media="true"] > .te-lane-text {
    flex: 1 1 380px;
}

.te-lane-head[data-media="true"] > .te-lane-media {
    flex: 1 1 360px;
}

@media (max-width: 720px) {
    .te-hero-seq .te-lede {
        font-size: 18px;
    }
    .te-hero-seq .te-preview-note {
        font-size: 12px;
        padding: 10px 14px;
    }
}

.te-tablist {
    overflow-x: auto;
    scrollbar-width: none;
}

@media (max-width: 720px) {
    .te-integrate .te-tab {
        padding: 10px 10px;
        flex: none;
    }
    .te-integrate .te-tabs .te-code {
        font-size: 12px;
        padding: 14px 16px 18px;
    }
    .te-int-steps {
        gap: 44px;
    }
    .te-int-stephead {
        gap: 12px;
    }
}

.te-figure .te-media img {
    aspect-ratio: 21 / 9;
    object-fit: cover;
    object-position: 50% 62%;
}

/* Small screens: the sequence comes straight after the headline, so it is visible on arrival. */
@media (max-width: 720px) {
    .te-hero-seq {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 18px;
        padding-top: 24px;
        padding-bottom: 48px;
    }
    .te-hero-seq .te-hero-copy {
        display: contents;
    }
    .te-hero-seq .te-kicker {
        order: 1;
        font-size: 12px;
    }
    .te-hero-seq .te-h1 {
        order: 2;
        font-size: clamp(30px, 8.6vw, 36px);
        line-height: 1.05;
    }
    .te-hero-seq .te-hero-visual {
        order: 3;
        flex: none;
        margin-top: 4px;
    }
    .te-hero-seq .te-lede {
        order: 4;
    }
    .te-hero-seq .te-actions {
        order: 5;
    }
    .te-hero-seq .te-preview-note {
        order: 6;
    }
}

@media (max-width: 380px) {
    .te-nav {
        gap: 0 10px;
    }
    .te .te-nav .te-btn-dark {
        padding: 8px 12px;
        font-size: 14px;
    }
    .te-nav-account {
        padding: 0 4px;
    }
}

/* A path that needs no code (the Timbereye app): plain words in the code panel's place. */
.te-int-textpanel {
    padding: 14px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.te .te-int-textpanel p {
    color: var(--te-on-dark);
    font-size: 15px;
    line-height: 1.55;
    max-width: 560px;
}

/* Working offline: the heading beside two plain columns (docs/timbereye-marketing-design.md). */
.te-offline-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: 32px 56px;
    align-items: start;
}

.te-offline-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.te-offline-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.te-offline-col {
    background: var(--te-white);
    border: 1px solid var(--te-line);
    border-radius: 14px;
    padding: 20px 22px;
}

.te-offline-col[data-tone="offline"] {
    border-color: var(--te-ink);
}

.te-offline-col h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--te-ink);
    margin: 0 0 12px;
}

.te-offline-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.te-offline-col li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
}

.te-offline-col li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #15803d;
}

.te-offline-col[data-tone="online"] li::before {
    background: transparent;
    border: 1.5px solid var(--te-text-3);
}

.te-offline-notes {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .te-offline-grid,
    .te-offline-cols {
        grid-template-columns: minmax(0, 1fr);
    }
}

.te-returns .te-link {
    margin-left: auto;
}

/* ------------------------------------------------------------ products page */

/* The tab menu (Products, Use cases): a title, then one box per page, the current one marked. Links, one URL each. */
.te-ptabs-wrap {
    padding-top: 40px;
}

.te-ptabs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.te-ptabs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
}

.te-ptabs-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--te-ink);
}

.te-ptabs-intro {
    font-size: 15px;
    color: var(--te-text-2);
}

.te-ptabs ul {
    display: grid;
    grid-template-columns: repeat(var(--te-cols, 4), minmax(0, 1fr));
    gap: 10px;
}

.te-ptabs li {
    display: flex;
    min-width: 0;
}

.te-ptabs a {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 44px;
    padding: 14px 16px 14px;
    border: 1px solid var(--te-line-2);
    border-radius: 10px;
    background: var(--te-white);
    color: var(--te-text-2);
}

.te-ptabs a:hover {
    color: var(--te-ink);
    border-color: var(--te-ink);
}

.te-ptabs a[aria-current="page"] {
    color: var(--te-ink);
    border: 2px solid var(--te-ink);
    padding: 13px 15px;
    background: var(--te-band);
    box-shadow: inset 0 3px 0 var(--te-accent);
}

.te-ptab-name {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--te-ink);
}

.te-ptab-method {
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-accent);
}

.te-ptab-hint {
    font-size: 13px;
    line-height: 1.35;
    color: var(--te-text-3);
}

@media (prefers-reduced-motion: no-preference) {
    .te-ptabs a {
        transition:
            color 120ms ease,
            border-color 120ms ease;
    }
}

@media (max-width: 720px) {
    .te-ptabs-wrap {
        padding-top: 24px;
    }
    .te-ptabs ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .te-ptabs a,
    .te-ptabs a[aria-current="page"] {
        padding: 10px 12px;
    }
    .te-ptab-name {
        font-size: 15px;
    }
    .te-ptab-hint {
        display: none;
    }
}

/* The tab's head: name, one sentence, the status line, beside the product's image. */
.te-phead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 64px;
}

.te-phead-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.te-phead-media img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.te-pstatus {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 540px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--te-text-2);
    border-left: 3px solid var(--te-ink);
    background: var(--te-band);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.te-pstatus strong {
    color: var(--te-ink);
    font-weight: 600;
}

.te-pstatus[data-tone="off"] {
    border-left-color: var(--te-accent);
}

.te-pstatus[data-tone="partial"] {
    border-left-color: var(--te-warn);
}

.te-pstatus[data-tone="on"] {
    border-left-color: #15803d;
}

.te-psec {
    padding: 64px 0;
    border-top: 1px solid var(--te-line);
}

.te-psec.te-band {
    border-bottom: 0;
}

/* What the worker does: numbered steps, each with a still of the product working. */
.te-psteps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.te-pstill-cap {
    margin-top: -8px;
    font-family: var(--te-mono);
    font-size: 11px;
    line-height: 1.4;
    color: var(--te-text-3);
}

@media (min-width: 721px) {
    .te-psteps[data-count="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 28px;
    }
}

.te-psteps[data-count="3"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.te-pstep {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.te-pstep-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.te-pstep-text .te-mono {
    color: var(--te-accent);
}

.te-pstep h3 {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.te-pstep p {
    font-size: 15px;
    color: var(--te-text-2);
}

/* A still: a crop of a generated image with a drawn overlay, in the dark media panel. */
.te-pstill {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: var(--te-ink);
    container-type: inline-size;
}

.te-pstill img {
    position: absolute;
    display: block;
    max-width: none;
    height: auto;
}

.te-pstill-scene {
    aspect-ratio: auto;
}

.te-pstill-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.te-pstill-svg :where(rect, line, polygon, circle, path) {
    vector-effect: non-scaling-stroke;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.te-pv-box {
    stroke: var(--te-code-str);
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-pv-box.is-quiet {
    stroke: rgba(255, 255, 255, 0.75);
    stroke-width: 1.5px;
    stroke-dasharray: 6 5;
}

.te-pv-box.is-thin {
    stroke: #fff;
    stroke-width: 1.5px;
}

.te-pv-ray line {
    stroke: var(--te-code-str);
    stroke-width: 1.5px;
    stroke-opacity: 0.85;
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-pv-ray circle {
    fill: var(--te-code-str);
    stroke: var(--te-ink);
    stroke-width: 1.5px;
}

.te-pv-dia {
    stroke: #fff;
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-pv-tag polygon {
    stroke: #86efac;
    stroke-width: 2px;
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.95));
}

.te-pv-tag text {
    fill: #fff;
    font-family: var(--te-mono);
    paint-order: stroke;
    stroke: rgba(0, 0, 0, 0.9);
    stroke-width: 3px;
}

.te-pv-pin rect {
    fill: #16a34a;
    stroke: #fff;
    stroke-width: 2px;
}

.te-pv-pin path {
    fill: none;
    stroke: #fff;
    stroke-width: 3.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.te-pv-tag.is-unknown polygon {
    stroke: var(--te-code-str);
    stroke-width: 3px;
}

.te-pv-sweep {
    stroke: #fff;
    stroke-width: 2.5px;
    stroke-dasharray: 2 7;
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-pstill-svg .te-pv-arrowhead {
    fill: #fff;
    stroke: none;
}

.te-pv-frame path {
    stroke: #fff;
    stroke-width: 3px;
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-pstill-svg .te-pv-dot {
    fill: var(--te-code-str);
    stroke: var(--te-ink);
    stroke-width: 1px;
}

.te-pstill-chip,
.te-pstill-source {
    position: absolute;
    font-family: var(--te-mono);
    font-size: clamp(10px, 3.4cqw, 12px);
    line-height: 1.3;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--te-on-dark);
    background: rgba(0, 0, 0, 0.86);
    max-width: calc(100% - 20px);
}

.te-pstill-chip {
    left: 10px;
    top: 10px;
}

.te-pstill-read {
    left: auto;
    top: auto;
    right: 10px;
    bottom: 36px;
    color: #fff;
}

.te-pstill-source {
    left: 10px;
    bottom: 10px;
}

/* What you get: the API object beside a summary of the same figures. */
.te-pget {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.te-pget-code {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.te-pget-card {
    margin: 0;
    border: 1px solid var(--te-line-2);
    border-radius: 14px;
    background: var(--te-white);
    overflow: hidden;
    min-width: 0;
}

.te-pget-counts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
    margin: 0;
}

.te-pget-counts > div {
    border: 1px solid var(--te-line);
    border-top: 3px solid #15803d;
    border-radius: 8px;
    padding: 8px 10px;
}

.te-pget-counts > div[data-tone="warn"] {
    border-top-color: var(--te-accent);
}

.te-pget-counts > div[data-tone="muted"] {
    border-top-color: var(--te-line-2);
}

.te-pget-counts dt {
    font-size: 12px;
    color: var(--te-text-3);
}

.te-pget-counts dd {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--te-ink);
}

.te-pget-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.te-pget-list .te-mono {
    color: var(--te-ink);
    font-size: 13px;
}

/* When to use it: the four products side by side. */
.te-pcompare .te-table {
    min-width: 720px;
}

.te-pcompare th[scope="row"] {
    color: var(--te-ink);
    font-weight: 500;
    font-size: 15px;
    vertical-align: top;
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid var(--te-line);
}

.te-pcompare th[scope="row"] .te-mono {
    display: block;
    margin-top: 2px;
}

.te-pcompare tr[data-current="true"] > * {
    background: var(--te-band);
}

.te-pcompare tr[data-current="true"] > th {
    box-shadow: inset 3px 0 0 var(--te-accent);
    padding-left: 12px;
}

.te-pcompare-here {
    display: block;
    font-family: var(--te-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--te-accent);
}

.te-pinstead {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* The code: heading and guide links beside the Swift and Kotlin tabs. */
.te-pcode {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}

.te-pcode-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

@media (max-width: 960px) {
    .te-phead,
    .te-pget,
    .te-pcode {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

@media (max-width: 720px) {
    .te-phead {
        padding-top: 28px;
        padding-bottom: 48px;
    }
    .te-psec {
        padding: 48px 0;
    }
    .te-pstatus {
        font-size: 14px;
    }
}

/* Narrow screens: the comparison becomes one block per product, each value under its column name. */
@media (max-width: 720px) {
    .te-pcompare .te-table {
        min-width: 0;
    }
    .te-pcompare thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .te-pcompare tr,
    .te-pcompare th[scope="row"],
    .te-pcompare td {
        display: block;
    }
    .te-pcompare tr {
        border-bottom: 1px solid var(--te-line);
        padding: 12px 0;
    }
    .te-pcompare tr[data-current="true"] {
        background: var(--te-band);
        box-shadow: inset 3px 0 0 var(--te-accent);
        padding-left: 12px;
        padding-right: 12px;
    }
    .te-pcompare tr[data-current="true"] > * {
        background: none;
        box-shadow: none;
    }
    .te-pcompare tr[data-current="true"] > th {
        padding-left: 0;
    }
    .te-pcompare th[scope="row"],
    .te-pcompare td {
        border: 0;
        padding: 3px 0;
    }
    .te-pcompare td {
        display: grid;
        grid-template-columns: 9.5em minmax(0, 1fr);
        gap: 8px;
        font-size: 14px;
    }
    .te-pcompare td::before {
        content: attr(data-label);
        color: var(--te-text-3);
    }
}

/* The kernel's page frame pads its bottom for its own footer; the Timbereye footer is the page's last band, so
   nothing may show below it. */
/* (Whatever element holds the footer: the kernel's class names are hashed in production. Doubled for weight.) */
:has(> .te-footer):has(> .te-footer) {
    padding-bottom: 0;
}

/* --------------------------------------------------- home: strips and offline */

.te-strip-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
}

.te-strip-items {
    display: grid;
    grid-template-columns: repeat(var(--te-cols, 4), minmax(0, 1fr));
    gap: 20px;
}

.te-strip-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    height: 100%;
}

.te-strip-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: var(--te-ink);
    margin-bottom: 10px;
}

.te-strip-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.te-strip-label {
    position: absolute;
    left: 8px;
    bottom: 8px;
    font-family: var(--te-mono);
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 5px;
    color: var(--te-on-dark);
    background: rgba(0, 0, 0, 0.86);
}

.te .te-strip-item:hover .te-menu-name {
    color: var(--te-accent);
}

.te-int-offline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    padding: 18px 22px;
    border: 1px solid var(--te-line);
    border-left: 3px solid var(--te-ink);
    border-radius: 0 10px 10px 0;
    background: var(--te-band);
}

.te-int-offline p {
    flex: 1 1 460px;
    font-size: 16px;
    color: var(--te-text-2);
    max-width: 820px;
}

.te-int-offline strong {
    color: var(--te-ink);
}

.te-int-offline-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

/* ------------------------------------------------------------ use cases page */

.te-usetting {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
    margin: 0;
}

.te-usetting > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 0;
    border-top: 1px solid var(--te-line);
}

.te-usetting dt {
    font-family: var(--te-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--te-text-3);
}

.te-usetting dd {
    margin: 0;
    font-size: 16px;
    color: var(--te-ink);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.te-usetting-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.te-ucols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.te-uguide {
    padding-top: 24px;
}

/* The status line's link to "What is available". */
.te-pstatus-link {
    align-self: flex-start;
    font-size: 14px;
}

/* /use-cases: one row per use case (name, status, the job; its groups, product types and event), then the jobs
   that are a line. */
.te-uindex-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 48px;
    padding-bottom: 32px;
}

.te-uindex-head .te-lede {
    max-width: 760px;
}

.te-uindex {
    list-style: none;
    margin: 0;
    padding: 0;
}

.te-uindex-row {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 16px 40px;
    padding: 28px 0;
    border-top: 1px solid var(--te-line);
}

.te-uindex-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.te-uindex-name h2,
.te-uindex-name p {
    margin: 0;
}

.te-uindex-name .te-menu-chip {
    margin-top: 0;
}

.te-uindex-name p {
    color: var(--te-text-2);
    line-height: 1.5;
}

.te-uindex-facts {
    display: grid;
    gap: 12px;
    margin: 0;
    align-content: start;
}

.te-uindex-facts dt {
    font-family: var(--te-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--te-text-3);
}

.te-uindex-facts dd {
    margin: 2px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--te-ink);
}

.te-uindex-also {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px 0 64px;
    border-top: 1px solid var(--te-line);
}

.te-uindex-also h2 {
    margin: 0;
}

@media (max-width: 720px) {
    .te-uindex-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .te-strip-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .te-usetting,
    .te-ucols {
        grid-template-columns: minmax(0, 1fr);
    }
    .te-strip-items {
        gap: 16px 12px;
    }
}

/* ------------------------------------------------------------------ Models pages (models.tsx) */

.te-model {
    padding-bottom: 72px;
}

.te-mhead {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 56px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--te-line);
}

.te-mhead .te-lede {
    max-width: 760px;
}

.te-mback {
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-text-3);
    text-decoration: none;
}

.te-mback::before {
    content: "← ";
}

.te-mback:hover {
    color: var(--te-accent);
}

.te-mid {
    margin-top: -8px;
    color: var(--te-text-3);
    font-size: 13px;
}

.te-mfacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    margin: 8px 0 0;
    border-top: 1px solid var(--te-line);
}

.te-mfacts > div {
    padding: 12px 16px 12px 0;
    border-bottom: 1px solid var(--te-line);
    min-width: 0;
}

.te-mfacts dt {
    font-family: var(--te-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--te-text-3);
}

.te-mfacts dd {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--te-text);
}

.te-mfacts[data-compact="true"] {
    grid-template-columns: 1fr 1fr;
    margin: 0;
}

.te-mfacts[data-compact="true"] dd {
    font-size: 14px;
}

.te-mbody {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 56px;
    padding-top: 48px;
}

.te-mtoc {
    position: sticky;
    top: 88px;
    align-self: start;
}

.te-mtoc ol {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.te-mtoc a {
    color: var(--te-text-2);
    text-decoration: none;
}

.te-mtoc a:hover {
    color: var(--te-accent);
}

.te-mmain {
    min-width: 0;
    max-width: 820px;
    display: flex;
    flex-direction: column;
}

.te-msec {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 36px 0;
    border-top: 1px solid var(--te-line);
    scroll-margin-top: 80px;
}

.te-msec:first-child {
    border-top: 0;
    padding-top: 0;
}

.te-msec[data-evaluation="true"] {
    border: 1px solid var(--te-line-2);
    border-left: 3px solid var(--te-ink);
    border-radius: 0 12px 12px 0;
    padding: 24px;
    margin: 24px 0;
    background: var(--te-white);
}

.te-meval-label {
    font-family: var(--te-mono);
    font-size: 12px;
    line-height: 1.5;
    color: var(--te-text-2);
    background: var(--te-band);
    padding: 8px 10px;
    border-radius: 6px;
}

.te-mwithheld {
    font-size: 15px;
    line-height: 1.6;
    color: var(--te-text-2);
    background: var(--te-band);
    padding: 12px 16px;
    border-radius: 8px;
}

.te-mp {
    font-size: 16px;
    line-height: 1.65;
    color: var(--te-text-2);
    margin: 0;
}

.te-mp code,
.te-mlist code {
    font-family: var(--te-mono);
    font-size: 0.9em;
}

.te-mlist {
    font-size: 16px;
    line-height: 1.6;
    color: var(--te-text-2);
    margin: 0;
}

.te-mlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
}

.te-mtable {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.te-mtable-cap {
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-text-3);
    margin: 8px 0 0;
}

.te-mtable .te-table {
    min-width: 560px;
    font-size: 14px;
}

.te-mtable .te-table th[scope="row"] {
    font-weight: 500;
    color: var(--te-text);
    padding: 12px 16px 12px 0;
    border-bottom: 1px solid var(--te-line);
    text-align: left;
    vertical-align: top;
}

.te-mtable .te-table td,
.te-mtable .te-table th[scope="col"] {
    padding: 12px 16px 12px 0;
    font-variant-numeric: tabular-nums;
}

.te-mtable-note {
    font-size: 13px;
    line-height: 1.5;
    color: var(--te-text-3);
    margin: 0;
}

.te-mfig {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.te-mfig figcaption {
    font-family: var(--te-mono);
    font-size: 12px;
    line-height: 1.5;
    color: var(--te-text-3);
}

.te-mpipe svg {
    display: block;
    width: 100%;
    height: auto;
}

.te-mpipe-narrow {
    display: none !important;
    max-width: 420px;
}

@media (max-width: 720px) {
    .te-mpipe-wide {
        display: none !important;
    }

    .te-mpipe-narrow {
        display: block !important;
    }
}

.te-mbox rect {
    fill: var(--te-white);
    stroke: var(--te-line-2);
    stroke-width: 1.2;
}

.te-mbox[data-lane="model"] rect {
    fill: var(--te-ph-bg);
    stroke: var(--te-accent);
    stroke-width: 1.6;
}

.te-mbox[data-lane="server"] rect {
    fill: var(--te-band);
}

.te-mbox-lane {
    font-family: var(--te-mono);
    font-size: 11px;
    fill: var(--te-text-3);
}

.te-mbox[data-lane="model"] .te-mbox-lane {
    fill: var(--te-accent);
}

.te-mbox-title {
    font-family: var(--te-sans);
    font-size: 16px;
    font-weight: 600;
    fill: var(--te-ink);
}

.te-mbox-line {
    font-family: var(--te-sans);
    font-size: 13px;
    fill: var(--te-text-2);
}

.te-marrow line,
.te-marrow polyline {
    fill: none;
    stroke: var(--te-text-3);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.te-mrule svg {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
}

.te-mrule-outline {
    fill: var(--te-ph-bg);
    stroke: var(--te-ink);
    stroke-width: 1.5;
}

.te-mrule-chord {
    stroke: var(--te-line-2);
    stroke-width: 0.8;
}

.te-mrule-short,
.te-mrule-long {
    stroke-width: 2.5;
    stroke-linecap: round;
}

.te-mrule-short {
    stroke: var(--te-accent);
}

.te-mrule-long {
    stroke: var(--te-ink);
    stroke-dasharray: 6 4;
}

.te-mrule-pt {
    fill: var(--te-ink);
}

.te-mrule-c {
    fill: var(--te-white);
    stroke: var(--te-ink);
    stroke-width: 1.5;
}

.te-mrule-axis {
    stroke: var(--te-line-2);
    stroke-width: 1;
}

.te-mrule-tick {
    stroke: var(--te-text-3);
    stroke-width: 1;
}

.te-mrule-t {
    font-family: var(--te-mono);
    font-size: 11px;
    fill: var(--te-text-2);
}

.te-mrule-t.is-muted {
    fill: var(--te-text-3);
}

.te-mcard {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .te-mcard {
        transition: none;
    }
}

.te-mcard:hover {
    border-color: var(--te-ink);
}

.te-mcard .te-link {
    margin-top: auto;
}

.te-mcard .te-mcard-chip {
    align-self: flex-start;
}

@media (max-width: 900px) {
    .te-mbody {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 32px;
    }

    .te-mtoc {
        position: static;
        border: 1px solid var(--te-line);
        border-radius: 10px;
        padding: 14px 16px;
    }

    .te-mtoc ol {
        list-style: decimal;
        padding-left: 18px;
    }
}

@media (max-width: 720px) {
    .te-mhead {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .te-msec[data-evaluation="true"] {
        padding: 16px;
    }

    .te-mfacts[data-compact="true"] {
        grid-template-columns: 1fr;
    }
}

.te-mtable .te-table td.te-mnum {
    white-space: nowrap;
}

.te-mbe-box {
    fill: none;
    stroke: var(--te-accent);
    stroke-width: 2;
}

.te-mbe-tag {
    fill: var(--te-white);
    stroke: var(--te-ink);
    stroke-width: 1.5;
}

/* ------------------------------------------------------------------ Product types (heroVerticals.tsx, verticals.tsx,
   verticalSequence.tsx). "dev" is the In development tone: neutral, dashed, never the accent. */

.te-menu-chip[data-tone="dev"],
.te-hv-chip[data-tone="dev"],
.te-vmode-status[data-tone="dev"] {
    border-style: dashed;
    border-color: var(--te-line-2);
    color: var(--te-text-2);
    background: var(--te-band);
}

.te-pstatus[data-tone="dev"] {
    border-left-color: var(--te-text-3);
}

/* The hero's product-type selector. */
.te-hv {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.te-hv-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.te-hv-tab {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--te-line-2);
    background: var(--te-white);
    color: var(--te-text-2);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.te-hv-tab::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--te-text-3);
    flex: none;
}

.te-hv-tab[data-tone="dev"]::before {
    background: transparent;
    border: 1.5px dashed currentColor;
    width: 6px;
    height: 6px;
}

.te-hv-tab:hover {
    border-color: var(--te-ink);
    color: var(--te-ink);
}

.te-hv-tab[aria-selected="true"] {
    background: var(--te-ink);
    border-color: var(--te-ink);
    color: #fff;
}

.te-hv-tab[aria-selected="true"]::before {
    background: var(--te-code-str);
}

.te-hv-tab[aria-selected="true"][data-tone="dev"]::before {
    background: transparent;
}

.te-hv-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.te-hv-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 14px;
}

.te-hv-chip,
.te-vmode-status {
    font-family: var(--te-mono);
    font-size: 12px;
    line-height: 1.3;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid #e9d39a;
    color: #854d0e;
    background: #fffbeb;
}

.te-vs-loading {
    background: var(--te-ink);
}

@media (prefers-reduced-motion: no-preference) {
    .te-hv-tab {
        transition:
            color 120ms ease,
            border-color 120ms ease,
            background-color 120ms ease;
    }
}

@media (max-width: 720px) {
    .te-hv-tab {
        min-height: 34px;
        padding: 0 11px;
        font-size: 13px;
    }
}

/* The product-type sequences' overlays: a drawing of what the phone will show. */
.te-seq-box.is-quiet {
    stroke-opacity: 0.8;
}

.te-vs-face {
    stroke: #fff;
    stroke-width: calc(2px / var(--te-k));
    stroke-dasharray: 10 7;
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-seq-svg .te-vs-face {
    fill: rgba(90, 215, 255, 0.1);
}

.te-seq-svg .te-vs-face.is-quiet {
    fill: none;
    stroke-opacity: 0.55;
}

.te-vs-dim line {
    stroke: var(--te-code-str);
    stroke-width: calc(2.5px / var(--te-k));
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.95));
}

.te-vs-pin {
    color: #fff;
}

.te-vs-pin[data-end="true"] {
    transform: translate(-100%, -135%) scale(calc(1 / var(--te-k)));
    transform-origin: 100% 100%;
}

.te-vs-pin[data-tone="accent"] {
    color: var(--te-code-str);
}

.te-vs-panel {
    position: absolute;
    left: 12px;
    top: 48px;
    bottom: 44px;
    width: 41%;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.te-vs-sheet {
    width: 100%;
    background: var(--te-overlay);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid var(--te-line-2);
    color: var(--te-ink);
    border-radius: 10px;
    padding: 2.4cqw 2.8cqw;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    font-size: clamp(9px, 2cqw, 13px);
    line-height: 1.35;
}

.te-vs-sheet-title {
    font-family: var(--te-mono);
    font-size: 0.86em;
    letter-spacing: 0.02em;
    color: var(--te-text-2);
    margin-bottom: 0.5em;
}

.te-vs-sheet table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--te-mono);
    font-variant-numeric: tabular-nums;
}

.te-vs-sheet th {
    text-align: left;
    font-weight: 500;
    color: var(--te-text-3);
    font-size: 0.86em;
    padding: 0 0.4em 0.3em 0;
    border-bottom: 1px solid var(--te-line);
}

.te-vs-sheet td {
    padding: 0.3em 0.4em 0.3em 0;
    border-bottom: 1px solid var(--te-line);
}

.te-vs-sheet tr[data-edited="true"] td {
    color: var(--te-warn);
    font-weight: 600;
}

.te-vs-sheet s {
    color: var(--te-text-3);
    font-weight: 400;
}

.te-vs-sheet .te-vs-more td {
    color: var(--te-text-3);
    border-bottom: 0;
}

.te-vs-this {
    font-weight: 400;
    color: var(--te-text-3);
}

.te-vs-total {
    margin-top: 0.5em;
    font-family: var(--te-mono);
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2em 0.8em;
    align-items: baseline;
}

.te-vs-edited {
    font-weight: 500;
    font-size: 0.86em;
    color: var(--te-warn);
}

.te-vs-convert {
    margin-top: 0.25em;
    font-family: var(--te-mono);
    font-size: 0.86em;
    color: var(--te-text-2);
}

@media (prefers-reduced-motion: no-preference) {
    .te-seq-view[data-animate="true"] .te-vs-panel {
        transform: translateY(8px);
        transition:
            opacity 420ms ease 500ms,
            transform 420ms ease 500ms;
    }
    .te-seq-view[data-animate="true"] .te-vs-panel.is-on {
        transform: none;
    }
    .te-seq-view[data-animate="true"] .te-vs-sheet tr td {
        transition: color 300ms ease;
    }
    .te-seq-view[data-animate="true"] .te-vs-dim {
        opacity: 0;
        transition: opacity 300ms ease 300ms;
    }
    .te-seq-view[data-animate="true"] .is-on .te-vs-dim {
        opacity: 1;
    }
}

/* Dots on board ends (the use cases' lumber slide); the lumber sequence's keypad and LiDAR overlays below. */
.te-seq-svg .te-vs-dot {
    fill: var(--te-code-str);
    stroke: rgba(0, 0, 0, 0.85);
    stroke-width: calc(1.5px / var(--te-k));
}

.te-seq-svg .te-vs-dot.is-quiet {
    fill: rgba(90, 215, 255, 0.55);
}

.te-vs-keylabel {
    font-family: var(--te-mono);
    font-size: 0.8em;
    color: var(--te-text-3);
    margin: 0 0 0.3em;
}

.te-vs-keypad {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.3em;
    font-family: var(--te-mono);
    font-variant-numeric: tabular-nums;
}

.te-vs-keypad li {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--te-line-2);
    border-radius: 5px;
    padding: 0.2em 0 0.1em;
    background: rgba(255, 255, 255, 0.03);
    min-width: 0;
}

.te-vs-keypad li[data-on="true"] {
    border-color: var(--te-accent);
    background: rgba(90, 215, 255, 0.12);
}

.te-vs-key {
    font-weight: 600;
}

.te-vs-keyn {
    font-size: 0.78em;
    color: var(--te-accent);
}

.te-vs-entered {
    margin-top: 0.5em;
    font-family: var(--te-mono);
    font-size: 0.9em;
    color: var(--te-text-2);
}

.te-vs-entered[data-match="true"] {
    color: var(--te-code-num);
}

.te-vs-trim {
    margin-top: 0.4em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3em 0.4em;
    font-family: var(--te-mono);
}

.te-vs-trim .te-vs-keylabel {
    margin: 0;
}

.te-vs-len {
    border: 1px solid var(--te-line-2);
    border-radius: 5px;
    padding: 0 0.45em;
}

.te-vs-len[data-on="true"] {
    border-color: var(--te-accent);
    color: var(--te-accent);
    font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
    .te-seq-view[data-animate="true"] .te-vs-dot {
        opacity: 0;
        transition: opacity 160ms ease;
    }
    .te-seq-view[data-animate="true"] .is-on .te-vs-dot {
        opacity: 1;
        transition-delay: calc(var(--i) * 36ms);
    }
}

/* Small frames (phones, the reduced-motion storyboard's tiles): the sheet sits across the top, over the upper
   layers; the trimmed board stays in view below. A container query on the frame, so the tiles get it too. */
@container (max-width: 560px) {
    .te-vs-panel {
        width: auto;
        right: 12px;
        top: 40px;
        bottom: auto;
        align-items: flex-start;
    }
    .te-vs-sheet {
        padding: 6px 8px;
    }
    .te-vs-pin[data-minor="true"] {
        display: none;
    }
    .te-vs-keypad {
        grid-template-columns: repeat(9, minmax(0, 1fr));
        gap: 2px;
    }
}

/* Lumber's LiDAR sequence (in development): a drawing of what a LiDAR iPhone will show. The depth sensor's marks
   (points, the plane, set-back boards) are one cool tone; sizes and the operator's correction stay in the accent. */
.te-vs-view {
    --te-lid: #7dd3fc;
}

.te-seq-svg .te-lid-corners {
    fill: none;
    stroke: #fff;
    stroke-width: calc(3px / var(--te-k));
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-seq-svg .te-lid-pt {
    fill: var(--te-lid);
    stroke: rgba(0, 0, 0, 0.7);
    stroke-width: calc(1px / var(--te-k));
}

.te-seq-svg .te-lid-pt[data-face="false"] {
    fill-opacity: 0.5;
    stroke-opacity: 0.4;
}

.te-lid-pts[data-phase="scale"] .te-lid-pt[data-face="false"] {
    opacity: 0;
}

.te-lid-pts[data-phase="scale"] .te-lid-pt[data-face="true"] {
    opacity: 0.35;
}

.te-seq-svg .te-lid-plane {
    stroke: var(--te-lid);
    stroke-width: calc(2.5px / var(--te-k));
    fill: rgba(125, 211, 252, 0.07);
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-seq-svg .te-lid-plane.is-quiet {
    stroke-opacity: 0.5;
    fill: none;
}

.te-seq-svg .te-lid-board.is-depth {
    stroke: var(--te-lid);
    stroke-width: calc(3px / var(--te-k));
    fill: rgba(125, 211, 252, 0.16);
}

.te-seq-svg .te-lid-board.is-quiet {
    stroke-opacity: 0.35;
}

.te-seq-svg .te-lid-board.is-selected {
    stroke-opacity: 1;
}

.te-vs-pin[data-tone="depth"] {
    color: var(--te-lid);
}

.te-vs-pin[data-centre="true"] {
    transform: translate(-50%, -50%) scale(calc(1 / var(--te-k)));
    transform-origin: 50% 50%;
}

.te-seq-chip-read.te-lid-readout {
    color: var(--te-lid);
}

/* The depth step from the side: the rightmost board of each row, three set back from the face. */
.te-lid-inset {
    position: absolute;
    top: 12px;
    right: 12px;
    width: min(40%, 300px);
    padding: 8px 10px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.88);
    pointer-events: none;
}

.te-lid-inset-title {
    font-family: var(--te-mono);
    font-size: clamp(9px, 1.8cqw, 11px);
    color: var(--te-on-dark);
    margin: 0 0 2px;
}

.te-lid-inset svg {
    display: block;
    width: 100%;
    height: auto;
}

.te-lid-inset .te-lid-phone {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
}

.te-lid-inset .te-lid-ray {
    stroke: var(--te-lid);
    stroke-width: 1;
    stroke-dasharray: 2 3;
}

.te-lid-inset .te-lid-faceline {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1;
    stroke-dasharray: 2 3;
}

.te-lid-inset .te-lid-layer {
    fill: #d8c7ab;
}

.te-lid-inset .te-lid-layer.is-depth {
    fill: var(--te-lid);
}

.te-lid-inset .te-lid-step line {
    stroke: var(--te-lid);
    stroke-width: 1.2;
}

.te-lid-inset .te-lid-step text {
    fill: var(--te-lid);
    font-family: var(--te-mono);
    font-size: 11px;
}

/* The tally step: the operator's correction on the keypad. */
@container (min-width: 561px) {
    .te-vs-view[data-kind="lumber"] .te-vs-panel {
        width: 47%;
    }
}

.te-vs-keypad li[data-changed="true"] {
    border-color: var(--te-warn);
    background: rgba(245, 194, 107, 0.16);
    box-shadow: 0 0 0 1px var(--te-warn);
}

.te-vs-lenn {
    font-size: 0.82em;
    color: var(--te-text-3);
}

.te-vs-corr {
    margin-top: 0.35em;
    font-family: var(--te-mono);
    visibility: hidden;
}

.te-vs-corr[data-on="true"] {
    visibility: visible;
}

/* Every caption in one grid cell: the tallest sets the height, so nothing moves between steps. */
.te-seq-capwrap {
    display: grid;
}

.te-seq-capwrap > .te-seq-caption {
    grid-area: 1 / 1;
    min-height: 0;
}

.te-seq-sizer {
    visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    /* The points settle onto the face from further out, nearest the centre first, then the plane is drawn. */
    .te-seq-view[data-animate="true"] .te-lid-pt {
        transform: translate(var(--dx), var(--dy));
        opacity: 0;
        transition:
            transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1),
            opacity 500ms ease;
    }
    .te-seq-view[data-animate="true"] .te-lid-pts.is-on .te-lid-pt {
        transform: none;
        opacity: 1;
        transition-delay: calc(var(--ring) * 1300ms);
    }
    .te-seq-view[data-animate="true"] .te-lid-pts[data-phase="scale"] .te-lid-pt[data-face="false"] {
        opacity: 0;
        transition-delay: 0ms;
    }
    .te-seq-view[data-animate="true"] .te-lid-pts[data-phase="scale"] .te-lid-pt[data-face="true"] {
        opacity: 0.35;
        transition-delay: 0ms;
    }
    .te-seq-view[data-animate="true"][data-phase="face"] .te-lid-plane {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        animation: te-lid-draw 900ms ease 1500ms forwards;
    }
    .te-seq-view[data-animate="true"] .te-lid-labels .te-vs-pin {
        opacity: 0;
        transition: opacity 300ms ease;
    }
    .te-seq-view[data-animate="true"] .te-lid-labels.is-on .te-vs-pin {
        opacity: 1;
        transition-delay: calc(1500ms + var(--i) * 140ms);
    }
    .te-seq-view[data-animate="true"][data-phase="depth"] .te-seq-layer.is-on {
        transition-delay: 900ms;
    }
    .te-seq-view[data-animate="true"] .te-vs-keypad li {
        transition:
            background-color 300ms ease,
            border-color 300ms ease,
            box-shadow 300ms ease;
    }
    @keyframes te-lid-draw {
        to {
            stroke-dashoffset: 0;
        }
    }
}

/* Too small for the side view beside the labels: the set-back boards and their labels carry the step alone. */
@container (max-width: 560px) {
    .te-lid-inset {
        display: none;
    }
}

/* A product-type page: the strip of types, then head (copy beside the sequence) and the sections. */
.te-vhead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 64px;
}

.te-vhead .te-phead-copy {
    padding-top: 8px;
}

.te-vhead-seq {
    min-width: 0;
}

.te-vsteps,
.te-vflow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.te-vsteps li,
.te-vflow li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
    border-top: 2px solid var(--te-ink);
}

.te-vflow li {
    border-top-color: var(--te-accent);
}

.te-vsteps h3,
.te-vflow h3 {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--te-ink);
}

.te-vsteps p,
.te-vflow p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--te-text-2);
}

.te-vmodes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--te-cols, 4), minmax(0, 1fr));
    gap: 12px;
}

.te-vmodes li {
    display: flex;
    min-width: 0;
}

.te-vmode {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--te-line-2);
    border-radius: 12px;
    background: var(--te-white);
    color: var(--te-text-2);
}

.te-vmode:hover {
    border-color: var(--te-ink);
}

.te-vmode-body {
    font-size: 14px;
    line-height: 1.5;
}

.te-vmode-status {
    margin-top: auto;
}

.te-vmode-status[data-tone="off"] {
    border-color: #f3c3a8;
    color: #9a3412;
    background: #fff7f1;
}

.te-vget {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: start;
}

.te-vget-code {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.te-vbadge {
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px dashed var(--te-line-2);
    background: var(--te-white);
    color: var(--te-text-2);
    letter-spacing: 0;
    text-transform: none;
}

.te-vpoints {
    list-style: disc;
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--te-text-2);
}

.te-vnow {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.te-menu-more {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 18px;
    padding-top: 12px;
    border-top: 1px solid var(--te-line);
}

.te-menu-more ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.te-menu-more a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: 14px;
    color: var(--te-text-2);
}

.te-menu-more a:hover {
    color: var(--te-ink);
}

.te-pcrumbs {
    margin-bottom: 12px;
}

@media (max-width: 960px) {
    .te-vhead,
    .te-vget {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    .te-vmodes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .te-vhead {
        padding-top: 24px;
        padding-bottom: 48px;
    }
    .te-vmodes {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ------------------------------------------------------------------ A use case's commodities (usecaseSlides.tsx):
   one slide per commodity, the hero's tabs and controls, the sequence's dark frame and chips. */

.te-cs {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.te-cs-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.te-cs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.te-cs-controls {
    display: flex;
    gap: 4px;
}

.te-cs-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.te-cs .te-seq-img {
    aspect-ratio: auto;
    object-fit: cover;
}

.te-cs-caps {
    display: grid;
}

.te-cs-cap {
    grid-area: 1 / 1;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.te-cs-cap[data-on="true"] {
    visibility: visible;
}

.te-cs .te-cs-cap p {
    margin: 0;
}

.te-cs-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--te-ink);
}

.te-cs-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--te-text-2);
}

.te-cs-nest {
    font-size: 14px;
    line-height: 1.5;
    color: var(--te-ink);
}

.te-cs-nestlabel {
    font-family: var(--te-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--te-text-3);
    margin-right: 4px;
}

.te-cs[data-compact="true"] {
    margin-top: 8px;
    max-width: 440px;
}

.te-cs[data-compact="true"] .te-cs-tab {
    min-height: 30px;
    padding: 0 10px;
    font-size: 13px;
}

.te-cs[data-compact="true"] .te-cs-text,
.te-cs[data-compact="true"] .te-cs-nest {
    font-size: 14px;
}

@media (prefers-reduced-motion: no-preference) {
    .te-cs-img {
        animation: te-cs-in 380ms ease;
    }
    @keyframes te-cs-in {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

/* The "Ask a question" button (assistant/assistantLauncher.js, docs/timbereye-contact-assistant.md). Here, not in
   assistant/assistant.css, because it shows before the panel's code and styles load. Quiet: ink outline, no accent. */
.te-ask-launch {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 59;
    padding: 10px 16px;
    border: 1px solid var(--te-ink);
    border-radius: 999px;
    background: var(--te-white);
    color: var(--te-ink);
    font-family: var(--te-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}
.te-ask-launch:hover {
    background: var(--te-band);
}
.te-ask-launch:focus-visible {
    outline: 2px solid var(--te-focus);
    outline-offset: 2px;
}
.te-ask-launch[hidden] {
    display: none;
}
@media (max-width: 520px) {
    .te-ask-launch {
        right: 16px;
        bottom: 16px;
    }
}

/* ------------------------------------------------------------------ App screens (appScreens.tsx, appPage.tsx). The
   app's own screens in a quiet drawn outline: a hairline body, a short slot at the top, the screen inset. No device
   artwork; the screenshots carry the design. */

.te-phone {
    position: relative;
    width: 100%;
    padding: 20px 7px 7px;
    border: 1px solid var(--te-line-2);
    border-radius: 34px;
    background: var(--te-white);
    box-shadow: 0 22px 44px -34px rgba(0, 0, 0, 0.45);
}

.te-phone::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: var(--te-line-2);
    transform: translateX(-50%);
}

.te-phone-screen {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid var(--te-line);
    background: var(--te-white);
}

.te-phone-screen img,
.te-phone-crop img {
    display: block;
    width: 100%;
    height: auto;
}

.te-phone-crop {
    overflow: hidden;
    border: 1px solid var(--te-line);
    border-radius: 14px;
    background: var(--te-white);
}

.te-as {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.te-as-head {
    gap: 12px;
}

.te-as-row {
    min-width: 0;
}

.te-as-row:focus-visible {
    outline: 2px solid var(--te-focus);
    outline-offset: 4px;
    border-radius: 8px;
}

.te-as-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--te-as-cols, 3), minmax(0, 236px));
    gap: 28px;
}

.te-as-row[data-count="1"] .te-as-list {
    --te-as-cols: 1;
}

.te-as-row[data-count="2"] .te-as-list {
    --te-as-cols: 2;
}

.te-as-row[data-count="4"] .te-as-list {
    --te-as-cols: 4;
}

.te-as-row[data-count="5"] .te-as-list {
    --te-as-cols: 5;
    gap: 20px;
}

.te-as-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.te-as-cap {
    font-size: 14px;
    line-height: 1.5;
    color: var(--te-text-2);
}

.te-as-cap strong {
    color: var(--te-ink);
    font-weight: 600;
}

.te-as-chip {
    align-self: flex-start;
}

.te-as-note {
    font-size: 13px;
    color: var(--te-text-3);
}

/* The home page: the words beside three screens. */
@media (min-width: 1001px) {
    .te-as[data-layout="side"] {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
        gap: 24px 56px;
        align-items: start;
    }

    .te-as[data-layout="side"] .te-as-head {
        padding-top: 8px;
    }

    .te-as[data-layout="side"] .te-as-note {
        grid-column: 2;
    }

    .te-as[data-layout="side"] .te-as-list {
        gap: 20px;
    }
}

/* Under 720 px a row the reader swipes: one screen and the edge of the next. */
@media (max-width: 720px) {
    .te-as-row {
        margin: 0 calc(-1 * var(--te-gutter));
        padding: 0 var(--te-gutter) 4px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--te-gutter);
        overscroll-behavior-x: contain;
    }

    .te-as-list,
    .te-as-row[data-count] .te-as-list {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(62vw, 240px);
        gap: 16px;
    }

    .te-as-item {
        scroll-snap-align: start;
    }

    .te-as-row[data-count="1"] .te-as-list {
        grid-auto-columns: min(70vw, 260px);
    }
}

/* The sequence: one phone beside its step bar and caption. */
.te-as-seq {
    display: grid;
    grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin: 0;
}

.te-as-seq-phone {
    min-width: 0;
}

.te-as-stack {
    touch-action: pan-y;
    user-select: none;
}

.te-as-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.te-as-slide[data-shown="true"] {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .te-as-slide {
        transition: opacity 320ms ease;
    }
}

.te-as-seq-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.te-as-seq-side .te-seq-bar {
    justify-content: flex-start;
}

.te-as-seq-caption {
    min-height: 6em;
}

.te-as-seq-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    color: var(--te-text-3);
}

.te-as-seq-step {
    appearance: none;
    border: 0;
    background: none;
    padding: 4px 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.te-as-seq-step:hover,
.te-as-seq-step[aria-current="step"] {
    color: var(--te-ink);
}

.te-as-seq-step[aria-current="step"] {
    font-weight: 600;
}

.te-as-seq-step[aria-current="step"] .te-mono {
    color: var(--te-accent);
}

/* Wide screens step from the titled list; the numbered buttons are for phones, where the list is hidden. */
@media (min-width: 721px) {
    .te-as-seq-side .te-seq-steps {
        display: none;
    }
}

.te-as-board .te-as-list {
    --te-as-cols: 3;
}

@media (max-width: 720px) {
    .te-as-seq {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 20px;
    }

    .te-as-seq-phone {
        width: min(66vw, 260px);
    }

    .te-as-seq-side {
        width: 100%;
    }

    .te-as-seq-steps {
        display: none;
    }

    .te-as-seq-caption {
        min-height: 4.5em;
    }
}

/* The app page (/products/app). */
.te-ap-head .te-vhead-seq {
    padding-top: 8px;
}

.te-ap-ways {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 24px;
}

.te-ap-way {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--te-line);
    border-radius: 12px;
    background: var(--te-white);
}

.te-ap-way-phone {
    width: min(200px, 60%);
    margin-top: 8px;
}

.te-ap-source {
    font-size: 13px;
    color: var(--te-text-3);
}

.te-ap-product {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
    gap: 24px 40px;
    align-items: start;
    padding-top: 28px;
    border-top: 1px solid var(--te-line-2);
}

.te-ap-product-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.te-ap-product .te-as-list {
    gap: 20px;
}

.te-ap-table th[scope="row"] {
    font-weight: 600;
    color: var(--te-ink);
    text-align: left;
}

.te-ap-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 40px;
    align-items: start;
}

.te-ap-offline {
    font-size: 15px;
    line-height: 1.6;
    color: var(--te-text-2);
    border-left: 3px solid var(--te-ink);
    padding: 4px 0 4px 16px;
}

.te-ap-offline strong {
    color: var(--te-ink);
}

.te-ap-dev {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 20px;
    align-items: center;
    padding: 20px;
    border: 1px dashed var(--te-line-2);
    border-radius: 12px;
}

.te-ap-dev .te-h3 {
    font-size: 17px;
}

.te-ap-dev .te-body {
    font-size: 14px;
    margin: 6px 0 8px;
}

@media (max-width: 1000px) {
    .te-ap-ways,
    .te-ap-product,
    .te-ap-foot {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .te-ap-dev {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ------------------------------------------------------------------ LiDAR measuring (lidar.tsx): the home page's
   section, the lumber sequence large beside three points; and the app page's key frame. In development. */

.te-lid {
    border-top: 1px solid var(--te-line);
}

.te-lid-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.4fr);
    grid-template-areas:
        "head seq"
        "more seq";
    grid-template-rows: auto 1fr;
    gap: 28px 56px;
    align-items: start;
}

.te-lid-head {
    grid-area: head;
}

.te-lid-head .te-intro {
    font-size: 17px;
}

.te-lid-seq {
    grid-area: seq;
    min-width: 0;
}

.te-lid-more {
    grid-area: more;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.te-lid-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.te-lid-points li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 2px 10px;
    padding-top: 12px;
    border-top: 1px solid var(--te-line-2);
}

.te-lid-points .te-mono {
    grid-row: span 2;
    font-size: 12px;
    color: var(--te-accent);
    padding-top: 3px;
}

.te-lid-points h3 {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--te-ink);
}

.te-lid-points p {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--te-text-2);
}

.te-lid-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.te-ap-lidar-still {
    min-width: 0;
    max-width: 720px;
}

@media (max-width: 1000px) {
    .te-lid-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "head"
            "seq"
            "more";
        grid-template-rows: auto;
    }
}

/* ------------------------------------------------------------------ How a measurement is made (concert.tsx): the
   model proposes, the person decides. Boxes, regions and dots are model output on generated illustrations; the
   model's marks are white, what the app chooses or the person changes is in the light accent, the server's in green. */

.te-cc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 64px;
}

.te-cc-principles {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.te-cc-shead {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px 48px;
    align-items: end;
}

.te-cc-seq,
.te-cc-story .te-seq-board {
    max-width: 960px;
}

.te-cc-pic {
    position: absolute;
    inset: 0;
}

.te-cc-cover {
    object-fit: cover;
}

.te-cc-world {
    position: absolute;
    inset: 0;
}

.te-cc-target {
    fill: none;
    stroke: var(--te-code-str);
    stroke-width: 3px;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

/* Boxes the app sets aside: outside the middle of the view, outside the region, or not the merged pair. */
.te-seq-box.te-cc-off {
    stroke-opacity: 0.65;
    stroke-dasharray: 6 5;
}

.te-seq-svg .te-seq-box.te-cc-out {
    stroke: #e7ecea;
    stroke-opacity: 0.95;
    stroke-dasharray: 5 4;
    fill: rgba(0, 0, 0, 0.5);
}

.te-seq-svg .te-cc-region {
    stroke: var(--te-code-str);
    stroke-width: 3px;
    stroke-dasharray: 14 9;
    fill: rgba(90, 215, 255, 0.06);
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

.te-seq-svg .te-cc-handle {
    fill: var(--te-code-str);
    stroke: var(--te-ink);
    stroke-width: 1.5px;
}

.te-seq-svg .te-cc-dot {
    fill: #fff;
    stroke: var(--te-ink);
    stroke-width: 1.5px;
}

.te-seq-svg .te-cc-dot.is-added {
    fill: var(--te-code-str);
}

.te-seq-svg .te-cc-removed circle {
    fill: rgba(0, 0, 0, 0.55);
    stroke: #fca5a5;
    stroke-width: 1.5px;
}

.te-cc-removed line {
    stroke: #fca5a5;
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9));
}

/* The sawlog review row: the app's words for one log, drawn (not the app's screen). */
.te-cc-row {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 44px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.88);
    color: var(--te-on-dark);
    font-family: var(--te-mono);
    font-size: clamp(10px, 2cqw, 12px);
    line-height: 1.3;
}

.te-cc-row-tag {
    color: #fff;
}

.te-cc-badge {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(231, 236, 234, 0.45);
}

.te-cc-badge[data-final="true"] {
    border-color: #86efac;
    color: #86efac;
}

.te-cc-acts,
.te-cc-row-fig {
    display: none;
    gap: 6px;
    margin-left: auto;
}

.te-cc-acts.is-on,
.te-cc-row-fig.is-on {
    display: inline-flex;
}

.te-cc-row-fig {
    color: #86efac;
}

.te-cc-act {
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--te-code-str);
    color: var(--te-ink);
}

.te-cc-act.is-danger {
    background: #fca5a5;
}

.te-cc-data pre {
    font-size: clamp(8px, 1.75cqw, 11.5px);
}

.te-cc-roles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.te-cc-roles li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
    border-top: 2px solid var(--te-ink);
}

.te-cc-roles li:nth-child(2) {
    border-top-color: var(--te-accent);
}

.te-cc-roles .te-mono {
    font-size: 12px;
    color: var(--te-text-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.te-cc-roles h3 {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--te-ink);
}

.te-cc-roles p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--te-text-2);
}

/* Home page teaser. */
.te-cct {
    border-top: 1px solid var(--te-line);
}

.te-cct-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px 56px;
    align-items: start;
}

.te-cct-still {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .te-cc-view[data-animate="true"] .te-cc-pic {
        transition: opacity 600ms ease;
    }
    .te-cc-view[data-animate="true"] .te-cc-dot {
        opacity: 0;
        transition: opacity 160ms ease;
    }
    .te-cc-view[data-animate="true"] .is-on .te-cc-dot {
        opacity: 1;
        transition-delay: calc(var(--i, 0) * 24ms);
    }
}

@media (max-width: 1000px) {
    .te-cc-hero,
    .te-cc-shead,
    .te-cct-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .te-cc-roles {
        grid-template-columns: minmax(0, 1fr);
    }
    .te-cc-hero {
        padding-bottom: 40px;
        gap: 28px;
    }
    .te-cc-row {
        bottom: 40px;
        left: 8px;
        right: 8px;
        padding: 6px 8px;
    }
}

/*
 * ================================================================ Dark instrument
 * The home page's instrument sections (instrument.tsx) and the dark layer over every
 * page: condensed display headings, mono labels and controls, square corners, windows
 * on panels. Ported from the chosen design reference (E3b, ice cyan); `:root` keeps
 * each rule's specificity one class above the base rules it refines.
 */
/* ---- the system figure and the platform map (reference sys.css) ---- */
.ts-arch {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}
.ts-chain {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
}
.ts-node {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}
.ts-zone {
    font-family: var(--te-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--te-text-3);
    height: 30px;
    border-bottom: 1px solid var(--te-ink);
    margin-right: 12px;
    visibility: hidden;
}
.ts-node[data-first] .ts-zone {
    visibility: visible;
}
.ts-node:not([data-first]) .ts-zone {
    visibility: visible;
    color: transparent;
}
.ts-node:last-child .ts-zone {
    margin-right: 0;
}
.ts-node[data-first]:not(:first-child) .ts-zone {
    border-left: 0;
}
.ts-box {
    flex: 1;
    margin-top: 14px;
    margin-right: 12px;
    border: 1px solid var(--te-line-2);
    background: var(--ts-box, var(--te-white));
    padding: 16px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.ts-node:last-child .ts-box {
    margin-right: 0;
    border-color: var(--te-ink);
}
.ts-node:not(:last-child) .ts-box::after {
    content: "";
    position: absolute;
    right: -13px;
    top: 34px;
    width: 12px;
    height: 1px;
    background: var(--te-ink);
}
.ts-node:not(:last-child) .ts-box::before {
    content: "";
    position: absolute;
    right: -13px;
    top: 30px;
    border-left: 6px solid var(--te-ink);
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
    z-index: 1;
}
.ts-n {
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-accent);
}
.ts-box .te-h3 {
    font-size: 18px;
    line-height: 1.15;
}
.ts-what {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--te-text-2);
}
.ts-box ul {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--te-line);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ts-box li {
    font-family: var(--te-mono);
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--te-ink);
    overflow-wrap: anywhere;
}
.ts-map {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr 1.2fr;
    border-top: 1px solid var(--te-ink);
    border-bottom: 1px solid var(--te-line-2);
}
.ts-col {
    padding: 18px 16px 18px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.ts-col + .ts-col {
    border-left: 1px solid var(--te-line-2);
    padding-left: 16px;
}
.ts-col-title {
    font-family: var(--te-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--te-text-3);
}
.ts-col ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ts-col:first-child ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px 12px;
}
.ts-col li {
    font-family: var(--te-mono);
    font-size: 13px;
    color: var(--te-ink);
    overflow-wrap: anywhere;
}
.ts-col-note {
    margin-top: auto;
    font-size: 12px;
    line-height: 1.45;
    color: var(--te-text-3);
}
.ts-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-family: var(--te-mono);
    font-size: 12.5px;
}
.te .ts-signals a {
    color: var(--te-text-2);
    text-decoration: underline;
    text-decoration-color: var(--te-line-2);
    text-underline-offset: 3px;
}
.te .ts-signals a:hover {
    color: var(--te-accent);
}
@media (max-width: 1100px) {
    .ts-chain {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
    .ts-zone {
        height: auto;
        border: 0;
        margin: 18px 0 0;
        display: none;
    }
    .ts-node[data-first] .ts-zone {
        display: block;
    }
    .ts-box {
        margin: 10px 0 14px;
    }
    .ts-node:last-child .ts-box {
        margin-bottom: 0;
    }
    .ts-node:not(:last-child) .ts-box::after {
        right: auto;
        left: 22px;
        top: auto;
        bottom: -14px;
        width: 1px;
        height: 13px;
    }
    .ts-node:not(:last-child) .ts-box::before {
        right: auto;
        left: 18px;
        top: auto;
        bottom: -15px;
        border-left: 4.5px solid transparent;
        border-right: 4.5px solid transparent;
        border-top: 6px solid var(--te-ink);
        border-bottom: 0;
    }
    .ts-map {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .ts-col:first-child {
        grid-column: 1/-1;
    }
    .ts-col + .ts-col {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--te-line-2);
    }
    .ts-col:nth-child(odd):not(:first-child) {
        border-left: 1px solid var(--te-line-2);
        padding-left: 16px;
    }
}
@media (max-width: 720px) {
    .ts-col:first-child ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* ---- the quickstart, agents, pipeline and readout pieces (reference evo.css) ---- */
/* data typography: the figures the product produces are set in the mono face with tabular numerals */
:root .te-phone-total strong,
:root .te-tier-price,
:root .te-phone-tally,
:root .te-int-rowtable {
    font-variant-numeric: tabular-nums;
}
:root .te-phone-total strong {
    font-family: var(--te-mono);
    font-weight: 600;
    letter-spacing: -0.02em;
}
:root .te-tier strong {
    font-family: var(--te-mono);
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}
.tx-quick .te-code {
    font-size: 12.5px;
    padding: 14px 22px 20px;
}
.tx-quick .tx-prose code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.tx-quick .tx-prose {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 12.5px;
    line-height: 1.65;
}
.tx-out {
    border-top: 1px solid var(--te-dark-line);
}
.tx-out-label {
    font-family: var(--te-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--te-code-key);
    padding: 12px 22px 0;
}
.tx-out .te-code {
    padding-top: 6px;
}
.tx-fine {
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-text-3);
}
.tx-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
    align-items: start;
}
.tx-split-even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}
.tx-gap {
    gap: 28px;
}
.tx-checks {
    margin-top: 10px;
    border-top: 1px solid var(--te-line);
}
.tx-checks > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--te-line);
}
.tx-checks dt {
    font-size: 14px;
    font-weight: 600;
}
.tx-checks dd {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.tx-checks code {
    padding: 0;
    background: none;
    border: 0;
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-ink);
    overflow-wrap: anywhere;
}
.tx-checks span {
    font-size: 13px;
    color: var(--te-text-3);
}
.tx-links {
    font-size: 15px;
    color: var(--te-text-3);
}
.te .tx-agentbtn {
    appearance: none;
    align-self: flex-start;
    border: 1px dashed var(--te-line-2);
    border-radius: 8px;
    background: var(--te-white);
    padding: 10px 14px;
    font-family: var(--te-mono);
    font-size: 13px;
    color: var(--te-ink);
    cursor: pointer;
}
.te .tx-agentbtn:hover {
    border-color: var(--te-accent);
    color: var(--te-accent);
}
.tx-readout {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--te-line);
    border-radius: 10px;
}
.tx-readout > div {
    padding: 10px 12px;
}
.tx-readout > div + div {
    border-left: 1px solid var(--te-line);
}
.tx-readout dt {
    font-family: var(--te-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--te-text-3);
}
.tx-readout dd {
    font-family: var(--te-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--te-ink);
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}
.tx-stages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
}
.tx-stage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.tx-stage-head {
    font-family: var(--te-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--te-text-3);
    display: flex;
    gap: 8px;
    align-items: baseline;
    border-top: 1px solid var(--te-ink);
    padding-top: 10px;
}
.tx-stage-head span {
    color: var(--te-accent);
}
.tx-stage-head strong {
    color: var(--te-ink);
    font-weight: 600;
}
.tx-stage-head em {
    font-style: normal;
    margin-left: auto;
}
.tx-stage-data {
    font-size: 10.5px;
    line-height: 1.5;
    padding: 12px 14px;
    aspect-ratio: 2400/1792;
    overflow: auto;
}
.tx-stage-person {
    aspect-ratio: 2400/1792;
    border: 1px solid var(--te-line);
    border-radius: 14px;
    background: var(--te-band);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.tx-stage .te-body {
    font-size: 15px;
}
.tx-field {
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-text-2);
    background: var(--te-band);
    border: 1px solid var(--te-line);
    border-radius: 6px;
    padding: 4px 8px;
    align-self: flex-start;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.tx-models {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.tx-models-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.te .tx-model {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--te-line);
    border-radius: 10px;
    padding: 14px 16px;
}
.te .tx-model:hover {
    border-color: var(--te-ink);
    color: inherit;
}
.tx-model strong {
    font-size: 15px;
}
.tx-model span {
    font-size: 13px;
    color: var(--te-text-3);
}
@media (max-width: 900px) {
    .tx-split,
    .tx-split-even {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .tx-stages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .tx-stages,
    .tx-models-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .tx-readout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tx-readout > div:nth-child(3) {
        border-left: 0;
    }
    .tx-readout > div:nth-child(n + 3) {
        border-top: 1px solid var(--te-line);
    }
    .tx-checks > div {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- the dark instrument (E3b, ice cyan): reference e3.css and e3b.css, merged ---- */
:root ::selection {
    background: var(--te-accent);
    color: var(--te-accent-ink);
}
/* square corners everywhere except the phone drawings */
:root .te *:not(.te-phone):not(.te-phone *):not(.te-as-seq-phone):not(.te-as-seq-phone *) {
    border-radius: 0 !important;
}
/* type: condensed display headings; labels and data in the mono face */
:root .te-h1,
:root .te-h2 {
    font-family: var(--te-display);
    font-weight: 800;
    font-stretch: 92%;
    letter-spacing: -0.026em;
    line-height: 1;
}
:root .te-h1 {
    font-size: clamp(44px, 5.3vw, 78px);
    line-height: 0.98;
}
:root .te-h2 {
    font-size: clamp(32px, 3.7vw, 54px);
}
:root .te-h3 {
    font-family: var(--te-display);
    font-weight: 700;
    font-stretch: 92%;
    letter-spacing: -0.01em;
}
:root .te-lede,
:root .te-intro {
    color: var(--te-text-2);
}
:root .te-kicker::before {
    content: "$ ";
    color: var(--te-text-3);
}
:root .te-section {
    padding: 112px 0;
    border-top: 1px solid var(--te-line);
}
:root .te-band {
    border-bottom: 0;
}
/* the hairline grid behind data sections */
:root .te-band,
:root .tx-pipeline,
:root .te-integrate,
:root .ts-system {
    background-image:
        linear-gradient(to right, rgba(240, 236, 224, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(240, 236, 224, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: calc(50% + 24px) 0;
}
/* header: the real navigation, quiet */
:root .te-header-wrap,
:root .te-header,
:root .te-footer {
    background: #000;
    border-color: var(--te-line);
}
:root .te-nav-links a,
:root .te-nav-links button,
:root .te-nav-account a {
    font-family: var(--te-mono);
    font-size: 13px;
    color: var(--te-text-2);
}
:root .te-logo {
    font-family: var(--te-mono);
    font-weight: 500;
    font-size: 16px;
    text-transform: lowercase;
    color: var(--te-ink);
}
:root .te-menu-card,
:root .te-sheet-panel {
    background: var(--te-panel);
    box-shadow: 0 30px 80px -30px #000;
}
/* buttons: one solid accent, the rest outlined */
:root .te .te-btn {
    font-family: var(--te-mono);
    font-size: 14.5px;
    font-weight: 600;
}
:root .te .te-btn-primary,
:root .te .te-btn-dark {
    background: var(--te-accent);
    color: var(--te-accent-ink);
    border-color: var(--te-accent);
}
:root .te .te-btn-primary:hover,
:root .te .te-btn-dark:hover {
    background: var(--te-ink);
    color: #000;
    border-color: var(--te-ink);
}
:root .te .te-btn-ghost {
    background: transparent;
    color: var(--te-ink);
    border-color: var(--te-line-2);
}
:root .te .tx-agentbtn {
    background: transparent;
    color: var(--te-text-2);
    border: 1px dashed var(--te-line-2);
}
/* the first section below the first screen: player, response, readout */
:root .t3-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    gap: 56px;
    align-items: start;
    padding-top: 72px;
    padding-bottom: 112px;
}
:root .t3-copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
    min-width: 0;
    padding-top: 20px;
}
:root .t3-copy .t3-preview {
    max-width: 60ch;
    margin-top: -12px;
}
:root .t3-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
:root .tw {
    background: var(--te-panel);
    border: 1px solid var(--te-line-2);
    min-width: 0;
    width: 100%;
}
:root .tw-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--te-line);
    font-family: var(--te-mono);
    font-size: 12px;
    color: var(--te-faint);
}
:root .tw-bar b {
    font-weight: 500;
    color: var(--te-text-2);
}
:root .t3-view {
    box-shadow: 0 40px 120px -50px rgba(90, 215, 255, 0.5);
}
:root .t3-view .tw-body {
    padding: 16px;
}
:root .tw-code {
    background: transparent;
    font-size: 12.5px;
    line-height: 1.6;
    padding: 16px 18px;
}
:root .tx-readout {
    border-color: var(--te-line-2);
    background: var(--te-panel);
}
:root .tx-readout > div + div,
:root .tx-readout > div {
    border-color: var(--te-line);
}
:root .tx-readout dd {
    color: var(--te-ink);
}
/* product-type switcher as tabs */
:root .te-hv-tabs {
    gap: 0;
    border-bottom: 1px solid var(--te-line);
    flex-wrap: wrap;
}
:root .te .te-hv-tab {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--te-text-3);
    font-family: var(--te-mono);
    font-size: 13px;
    padding: 0 14px 0 0;
    margin-right: 10px;
    min-height: 40px;
}
:root .te .te-hv-tab[aria-selected="true"] {
    background: transparent;
    color: var(--te-ink);
    border-bottom-color: var(--te-accent);
}
:root .te .te-seq-step[aria-current="step"] {
    background: var(--te-accent);
    border-color: var(--te-accent);
    color: var(--te-accent-ink);
}
:root .te-seq-tile,
:root .te-seq-frame {
    background: var(--te-well);
}
/* surfaces that the tokens leave light-on-light or need a panel */
:root .te-tabs,
:root .te-code {
    border: 1px solid var(--te-line);
}
:root .te-tabs .te-code,
:root .tw .te-code {
    border: 0;
}
:root .te .te-tab[aria-selected="true"] {
    background: transparent;
    color: var(--te-ink);
    box-shadow: inset 0 -2px 0 var(--te-accent);
}
:root .te-int-status,
:root .te-code .te-c-str {
    color: var(--te-accent);
}
:root .te-preview-note,
:root .tx-field,
:root .tx-stage-person,
:root .te .tx-model {
    background: var(--te-panel);
}
:root .tx-stage-head {
    border-top-color: var(--te-line-2);
}
:root .te-tier strong,
:root .te-phone-total strong {
    color: var(--te-ink);
}
:root .te-menu-chip,
:root .te-hv-chip,
:root .te-vmode-status {
    background: transparent !important;
    color: var(--te-text-2) !important;
    border-color: var(--te-line-2) !important;
}
:root .te-footer {
    border-top: 1px solid var(--te-line);
}
/* the app's own screens: the app is dark too, so the drawn outline is a black body with the window border */
:root .te-as-seq-phone,
:root .te-as .te-phone {
    --te-white: #000;
}
:root .ts-box {
    --ts-box: var(--te-panel);
}
:root .ts-zone {
    border-bottom-color: var(--te-faint);
}
@media (max-width: 960px) {
    :root .t3-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 40px;
        padding-bottom: 72px;
    }
    :root .te-section {
        padding: 80px 0;
    }
    /* phones: headline, then the model's view, then the rest of the copy and the response */
    :root .t3-copy {
        display: contents;
    }
    :root .t3-visual {
        order: 2;
    }
    :root .t3-copy .t3-preview {
        order: 6;
        margin-top: 0;
    }
    :root .t3-resp {
        order: 7;
    }
}
@media (max-width: 720px) {
    :root .t3-view .tw-body {
        padding: 10px;
    }
    :root .tw-bar {
        padding: 9px 12px;
        font-size: 11px;
    }
}

/* ---- the first screen: one calm headline, then the model's view and the response right under the actions ---- */
:root .thb-hero {
    border-bottom: 0;
    overflow: hidden;
    padding: 64px 0 0;
}
:root .thb-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}
:root .thb-hero .thb-h1 {
    font-weight: 500;
    font-stretch: 86%;
    letter-spacing: -0.045em;
    line-height: 0.98;
    font-size: clamp(40px, 5.8vw, 84px);
    max-width: 12.5em;
    text-wrap: balance;
}
:root .thb-copy .te-kicker {
    text-wrap: balance;
}
:root .thb-lede {
    font-size: 19px;
    max-width: 54ch;
    text-wrap: balance;
}
:root .thb-copy .te-actions {
    justify-content: center;
}
:root .thb-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
:root .thb-copy .tx-agentbtn {
    align-self: center;
    padding: 13px 14px;
}
@media (prefers-reduced-motion: no-preference) {
    :root .thb-copy > * {
        animation: thb-rise 700ms ease both;
    }
}
@keyframes thb-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
:root .thb-player {
    border-top: 0;
    padding-top: 56px;
}
:root .thb-player-grid {
    padding-top: 0;
    padding-bottom: 0;
}
:root .thb-player .t3-copy {
    padding-top: 0;
}
@media (max-width: 720px) {
    :root .thb-hero {
        padding-top: 64px;
    }
    :root .thb-player {
        padding-top: 40px;
    }
    :root .thb-player .te-hv-tab {
        min-height: 44px;
    }
    :root .thb-copy {
        gap: 20px;
    }
    :root .thb-lede {
        font-size: 17px;
    }
}
