/* ==========================================================================
   Efference
   Page system  — teenage.engineering (white ground, tile wells)
   Header       — warm paper, burgundy controls, restrained coral accents
   Footer       — coral frame, dark panel, cropped Efference wordmark
   Type         — Archivo; approved system in TYPOGRAPHY.md
   Color        — burgundy / coral / cream / mauve / warm paper
   ========================================================================== */



:root {
    /* The footer palette is shared by every page. */
    --brand-burgundy: #2b1c21;
    --brand-coral: #ff5666;
    --brand-cream: #f1e9e7;
    --brand-mauve: #9f9397;
    --brand-paper: #f5f6f2;
    --paper: var(--brand-paper);
    --ink: var(--brand-burgundy);
    --ink-soft: var(--brand-burgundy);
    --tile: var(--brand-cream);
    --text-muted: color-mix(in srgb, var(--brand-mauve) 60%, var(--brand-burgundy));
    --dark-surface: color-mix(in srgb, var(--brand-burgundy) 88%, var(--brand-mauve));
    --dark-line: color-mix(in srgb, var(--brand-mauve) 38%, var(--brand-burgundy));
    --light-line: color-mix(in srgb, var(--brand-mauve) 38%, var(--brand-paper));
    --grey-200: var(--light-line);
    --grey-300: var(--brand-mauve);
    --grey-500: var(--text-muted);
    --grey-600: var(--text-muted);
    --grey-700: var(--text-muted);
    --blue: var(--brand-coral);
    --signal: var(--brand-coral);
    --fluoro: var(--brand-coral);

    --font-sans: Archivo, "Helvetica Neue", Arial, sans-serif;

    /* Approved Archivo hierarchy. See TYPOGRAPHY.md before changing. */
    --text-caption: .8125rem;
    --text-label: .875rem;
    --text-ui: .9375rem;
    --text-body: 1rem;
    --text-lead: 1.125rem;
    --text-title: clamp(2rem, 1.3rem + 3vw, 4rem);
    --text-hero: clamp(5rem, 8.4vw, 9rem);
    --text-section: clamp(1.5rem, 1.15rem + 1.4vw, 2.5rem);
    --text-card: clamp(1.125rem, 1.05rem + .5vw, 1.5rem);
    --line-body: 1.55;
    --line-heading: 1.1;
    --tracking-heading: -.02em;

    --radius-panel: clamp(28px, 3.5vw, 52px);
    --radius-card: 36px;
    --radius-control: 12px;

    --header-h: 64px;
    --logo-w: 32px;
    --edge: clamp(20px, 2.2vw, 32px);
    --measure: 68ch;

    /* Match the supplied studio backdrops without tinting the products. */
    --photo-mono: #d7d7d9;
    --photo-stereo: #d7d7d7;
    --photo-node: #d2d3d6;
    --photo-edge-x: linear-gradient(to right, transparent, rgb(0 0 0 / .16) 2%, rgb(0 0 0 / .5) 4%, rgb(0 0 0 / .84) 6%, #000 8%, #000 92%, rgb(0 0 0 / .84) 94%, rgb(0 0 0 / .5) 96%, rgb(0 0 0 / .16) 98%, transparent);
    --photo-edge-y: linear-gradient(to bottom, transparent, rgb(0 0 0 / .16) 2%, rgb(0 0 0 / .5) 4%, rgb(0 0 0 / .84) 6%, #000 8%, #000 92%, rgb(0 0 0 / .84) 94%, rgb(0 0 0 / .5) 96%, rgb(0 0 0 / .16) 98%, transparent);
}

@media (max-width: 760px) {
    :root { --radius-panel: 28px; --radius-card: 24px; }
}

* { box-sizing: border-box; }

/* Apply this to intrinsically sized studio images, so the fade follows the
   photograph itself rather than an object-fit letterbox. */
.product-photo {
    -webkit-mask-image: var(--photo-edge-x), var(--photo-edge-y);
    -webkit-mask-composite: source-in;
    mask-image: var(--photo-edge-x), var(--photo-edge-y);
    mask-composite: intersect;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    padding-top: calc(var(--header-h) + 32px);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: var(--line-body);
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

.home-page { padding-top: 0; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
strong, b { font-weight: 600; }
code, pre, kbd, samp { font-family: var(--font-sans); }
a, button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Anchored sections must clear the fixed header. */
[id] { scroll-margin-top: calc(var(--header-h) + 32px); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--edge);
}

.section-title {
    margin: 0 0 24px;
    font-family: var(--font-sans);
    font-size: var(--text-label);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: var(--grey-600);
}

.centered-section-title { text-align: center; }

/* ==========================================================================
   Shared navigation
   ========================================================================== */

.site-header {
    --header-radius: 24px;
    --header-surface: color-mix(in srgb, var(--brand-paper) 92%, var(--brand-cream));
    --header-line: color-mix(in srgb, var(--brand-mauve) 22%, transparent);
    --nav-card-h: 148px;
    --nav-drop-pad-y: 36px;
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    height: var(--header-h);
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 28px;
    background: color-mix(in srgb, var(--header-surface) 88%, transparent);
    border: 1px solid var(--header-line);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: var(--header-radius);
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), background 0.22s ease, box-shadow 0.22s ease, border-radius 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.site-header.is-away {
    transform: translateY(calc(-100% - 20px));
    pointer-events: none;
}

body:not(.home-page) .site-header { background: var(--header-surface); }
.site-header.is-scrolled { background: var(--header-surface); box-shadow: 0 8px 28px color-mix(in srgb, var(--brand-burgundy) 9%, transparent); }

.site-header:has(.nav-group:not(.is-dismissed):hover),
.site-header:has(.nav-group:not(.is-dismissed):focus-within),
.site-header:has(.nav-toggle:checked) {
    background: var(--header-surface);
    isolation: isolate;
    border-bottom-color: transparent;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

body:not(.home-page)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    background: color-mix(in srgb, var(--grey-500) 42%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

body:not(.home-page):has(.nav-group:not(.is-dismissed):hover)::before,
body:not(.home-page):has(.nav-group:not(.is-dismissed):focus-within)::before,
body:not(.home-page):has(.nav-toggle:checked)::before {
    opacity: 1;
    visibility: visible;
}

.nav-drop {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr) minmax(0, 1.35fr);
    gap: 28px 40px;
    align-items: stretch;
    width: auto;
    min-height: 360px;
    box-sizing: border-box;
    padding: 28px 32px 36px;
    background: var(--header-surface);
    border: 1px solid var(--header-line);
    border-top: 0;
    border-radius: 0 0 var(--header-radius) var(--header-radius);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    clip-path: inset(0 0 100% 0);
    transition:
        opacity 0.22s ease,
        transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
        clip-path 0.42s cubic-bezier(0.32, 0.72, 0, 1),
        visibility 0s linear 0.36s;
}

.nav-drop::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 2px;
    background: var(--header-surface);
}

.nav-drop-kicker {
    margin: 0 0 14px;
    font-family: var(--font-sans);
    font-size: var(--text-label);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: var(--grey-500);
}

.nav-drop-blurb {
    margin: 0;
    max-width: 34ch;
    font-size: 1rem;
    font-weight: 400;
    line-height: var(--line-body);
    color: var(--ink);
}

.nav-drop-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-drop-link {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--grey-200);
}

.nav-drop-link:last-of-type { border-bottom: 0; }

.nav-drop-link:hover,
.nav-drop-link:focus-visible {
    color: var(--fluoro);
}

.nav-drop-preview {
    position: relative;
    min-height: 280px;
    background: var(--tile);
    border-radius: 12px;
    overflow: hidden;
}

.nav-preview {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.nav-preview.is-default {
    opacity: 1;
    visibility: visible;
}

.nav-drop:has(.nav-drop-link[data-preview="h1"]:is(:hover, :focus-visible)) .nav-preview,
.nav-drop:has(.nav-drop-link[data-preview="n1"]:is(:hover, :focus-visible)) .nav-preview,
.nav-drop:has(.nav-drop-link[data-preview="blog"]:is(:hover, :focus-visible)) .nav-preview,
.nav-drop:has(.nav-drop-link[data-preview="careers"]:is(:hover, :focus-visible)) .nav-preview {
    opacity: 0;
    visibility: hidden;
}

.nav-drop:has(.nav-drop-link[data-preview="h1"]:is(:hover, :focus-visible)) .nav-preview[data-preview="h1"],
.nav-drop:has(.nav-drop-link[data-preview="n1"]:is(:hover, :focus-visible)) .nav-preview[data-preview="n1"],
.nav-drop:has(.nav-drop-link[data-preview="blog"]:is(:hover, :focus-visible)) .nav-preview[data-preview="blog"],
.nav-drop:has(.nav-drop-link[data-preview="careers"]:is(:hover, :focus-visible)) .nav-preview[data-preview="careers"] {
    opacity: 1;
    visibility: visible;
}

.nav-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    box-sizing: border-box;
}

.nav-preview-text {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px;
}

.nav-preview-title {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
}

.nav-preview-text p:not(.nav-preview-title) {
    margin: 0;
    font-size: 1rem;
    line-height: var(--line-body);
    color: var(--grey-500);
}

.site-header-logo {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    line-height: 0;
    justify-self: center;
}

.logo {
    display: block;
    width: var(--logo-w);
    height: auto;
}

.nav-items {
    justify-self: start;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
}

.nav-group {
    display: flex;
    align-items: center;
}

.nav-label {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 48px 0 0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    color: var(--ink);
}

.nav-group:not(.is-dismissed):hover > .nav-label,
.nav-label:focus-visible { text-decoration-color: var(--brand-coral); }

button.nav-label {
    appearance: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.nav-group:not(.is-dismissed):hover .nav-drop,
.nav-group:not(.is-dismissed):focus-within .nav-drop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    clip-path: inset(0);
    transition:
        opacity 0.18s ease,
        transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
        clip-path 0.42s cubic-bezier(0.32, 0.72, 0, 1),
        visibility 0s linear 0s;
}

.nav-group.is-dismissed .nav-drop { transition: none; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 39px;
    padding: 8px 28px;
    border: none;
    border-radius: var(--radius-control);
    background: var(--brand-burgundy);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    color: var(--brand-paper);
    white-space: nowrap; line-height: 1.3;
    transition: background .2s ease, color .2s ease;
}

.nav-cta:hover {
    background: var(--brand-coral);
    color: var(--ink);
}

.nav-right {
    display: flex;
    align-items: center;
    justify-self: end;
    flex-shrink: 0;
    gap: 14px;
    z-index: 3;
}

.nav-toggle { display: none; }
.nav-items-cta { display: none; }

/* ==========================================================================
   Buttons and links
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    margin: 24px 0 0;
    padding: 11px 28px;
    border: 1px solid var(--ink-soft);
    border-radius: 7px;
    background: var(--ink-soft);
    color: var(--paper);
    font-size: var(--text-body);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.button:hover { background: var(--paper); color: var(--ink-soft); }
.button:disabled { opacity: 0.4; cursor: not-allowed; }

a.inline-link {
    color: var(--blue);
    text-decoration: none;
}

a.inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }

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

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

.hero {
    --hero-camera-width: 51mm;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: max(760px, 100svh);
    padding: 0;
    background: var(--paper);
}

.home-page { background: var(--paper); }

.hero-brand {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    width: min(1600px, calc(100% - var(--edge) * 2));
    aspect-ratio: 935 / 111;
    transform: translate(-50%, -50%);
    background: var(--brand-mauve);
    -webkit-mask: url("assets/efference-wordmark.svg") center / contain no-repeat;
    mask: url("assets/efference-wordmark.svg") center / contain no-repeat;
    pointer-events: none;
}

.hero-product {
    position: absolute;
    z-index: 1;
    inset: 0;
    margin: 0;
    pointer-events: none;
}

.hero-image {
    position: absolute;
    left: 50%;
    top: calc(50% - var(--hero-camera-width) * 598 / 306);
    /* Camera spans 306 source pixels; center the hand-and-camera composition. */
    width: calc(var(--hero-camera-width) * 1200 / 306);
    max-width: none;
    height: auto;
    transform: translateX(-55%);
}

.hero-copy {
    position: absolute;
    z-index: 2;
    inset: auto var(--edge) 32px;
    text-align: center;
}

.hero-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    font-size: var(--text-ui);
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
}

.hero-action-secondary { background: var(--brand-burgundy); color: var(--brand-paper); }
.hero-action-primary { background: var(--brand-burgundy); color: var(--brand-paper); }
.hero-action-secondary:hover { background: var(--brand-coral); color: var(--brand-burgundy); }
.hero-action-primary:hover { background: var(--brand-coral); color: var(--brand-burgundy); }
.hero-action:focus-visible { outline: 2px solid var(--brand-coral); outline-offset: 4px; }
.hero-action .site-arrow { width: 16px; height: 16px; flex: none; }

@media (max-width: 760px) {
    .hero { min-height: max(680px, 100svh, calc(480px + 40vw)); }
    .hero-copy { inset: auto 24px 32px; }
    .hero-actions { justify-content: center; gap: 10px; }
    .hero-action-primary { display: none; }
    .hero-action { padding: 11px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-action { transition: none; }
    .site-header { transition: none; }
}

/* ==========================================================================
   Tile grid — teenage.engineering
   Edge-to-edge, three across, white hairline gaps.
   ========================================================================== */

.grid-section { padding: clamp(48px, 6vw, 84px) 0 0; }

.grid-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 0 var(--edge);
    margin-bottom: 20px;
}

.grid-head p { margin: 0; font-size: 1rem; line-height: var(--line-body); color: var(--grey-600); }

.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    background: var(--paper);
    border-block: 2px solid var(--paper);
}

.tile {
    display: flex;
    flex-direction: column;
    aspect-ratio: 0.93;
    padding: 22px 24px 26px;
    background: var(--tile);
    text-decoration: none;
}

a.tile { cursor: pointer; }

.tile-name {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.tile-sub {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--grey-500);
}

.tile-link {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--fluoro);
    text-decoration: none;
    text-underline-offset: 3px;
}

a.tile:hover .tile-link,
a.tile:focus-visible .tile-link,
.tile:hover .tile-link {
    text-decoration: underline;
}

.tile-note { font-size: 0.875rem; line-height: var(--line-body); color: var(--grey-500); }

.tile-media {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 8px 0;
}

.tile-media img {
    max-width: 88%;
    max-height: 100%;
    object-fit: contain;
}

.home-mission {
    padding: clamp(80px, 8vw, 128px) var(--edge);
    background: var(--brand-burgundy);
    color: var(--paper);
    text-align: center;
}

.home-mission-inner {
    max-width: 960px;
    margin-inline: auto;
}

.home-mission .section-title {
    margin-bottom: 24px;
    font-size: var(--text-body);
    color: var(--brand-coral);
}

.home-mission-lead {
    margin: 0 auto;
    max-width: 26ch;
    font-size: calc(var(--text-section) * 1.2);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: var(--tracking-heading);
    text-wrap: balance;
    color: var(--paper);
}

.home-mission .home-mission-lead + p {
    margin: 24px auto 0;
    max-width: 62ch;
    font-size: clamp(var(--text-lead), 1.7vw, calc(var(--text-body) * 1.25));
    font-weight: 400;
    line-height: var(--line-body);
    text-wrap: pretty;
    color: var(--brand-mauve);
}

#products.grid-section {
    padding: 16px;
}

.home-page .site-footer {
    margin-top: 0;
}

#products .tile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 16px;
    min-height: min(72vh, 820px);
    background: transparent;
    border-block: none;
}

#products .tile-grid::before,
#products .tile-grid::after {
    content: none;
}

#products .tile:first-child {
    grid-row: 1 / 3;
}

#products .tile {
    aspect-ratio: auto;
    min-height: 0;
    padding: 22px 24px 24px;
    background: var(--tile);
    border-radius: 12px;
    overflow: hidden;
}

#products .tile-name { font-size: 1.125rem; font-weight: 600; }

#products .tile-sub { font-size: 0.9375rem; }

#products .tile-link { font-size: 0.875rem; }

#products .tile-media {
    position: relative;
    z-index: 1;
    padding: 12px 8px 0;
    overflow: hidden;
}

#products .tile-media img {
    width: auto;
    max-width: 82%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

#products .tile-media-stereo img {
    max-width: 92%;
}

.tile-swatch {
    width: 68%;
    aspect-ratio: 1;
}

.tile-swatch-mono { background: #2a2a2a; }
.tile-swatch-stereo { background: #7a7a7a; }
.tile-swatch-node { background: #c8c8c8; }

/* Placeholder glyph for products with no artwork yet. */
.tile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-sans);
    font-size: var(--text-label);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--grey-300);
    background-image: repeating-linear-gradient(
        45deg, transparent 0 9px, rgba(0, 0, 0, 0.035) 9px 10px); line-height: 1.4;
}

.tile-body { display: flex; flex-direction: column; gap: 4px; }

.tile-desc {
    margin: 10px 0 0;
    font-size: 1rem;
    line-height: var(--line-body);
    color: var(--grey-600);
}

/* ==========================================================================
   Full-bleed dark band
   ========================================================================== */

.band-dark {
    margin-top: clamp(48px, 6vw, 84px);
    padding: clamp(56px, 8vw, 104px) 0;
    background: var(--ink);
    color: var(--paper);
}

.band-dark .section-title { color: color-mix(in srgb, var(--paper) 55%, transparent); }

.band-title {
    max-width: 22ch;
    margin: 0;
    font-size: var(--text-section);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: var(--tracking-heading);
}

.band-lead {
    max-width: 56ch;
    margin: 22px 0 0;
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 400;
    line-height: var(--line-body);
    letter-spacing: 0;
    color: color-mix(in srgb, var(--paper) 70%, transparent);
}

.band-dark .button {
    border-color: var(--paper);
    background: var(--paper);
    color: var(--ink);
}

.band-dark .button:hover { background: transparent; color: var(--paper); }

.code-block {
    margin: 32px 0 0;
    padding: 22px 24px;
    border: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
    background: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--paper);
    overflow-x: auto;
}

.code-block .c { color: var(--grey-600); }
.code-block .k { color: var(--signal); }

/* ==========================================================================
   Company — marquee, investors, contact
   ========================================================================== */

.company-section { padding: clamp(56px, 7vw, 96px) 0 0; }

.team { margin-bottom: clamp(48px, 6vw, 80px); }

.marquee-container {
    position: relative;
    overflow: hidden;
    padding: 28px 0;
    border-block: 1px solid var(--grey-200);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 34s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 64px;
    padding-right: 64px;
    flex-shrink: 0;
}

.marquee-group a { display: flex; align-items: center; line-height: 0; }

.marquee-group img {
    height: 26px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) opacity(0.4);
    transition: filter 0.15s ease;
}

.marquee-group a:hover img { filter: brightness(0) opacity(1); }
.marquee-group .meta-logo { height: 22px; }

@keyframes marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

.investors, .contact {
    padding: clamp(40px, 5vw, 64px) 0;
    border-top: 1px solid var(--grey-200);
}

.investors p, .contact p {
    max-width: var(--measure);
    margin: 0;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

/* ==========================================================================
   Product pages — homepage bento
   ========================================================================== */

.product-page .site-footer { margin-top: 0; }

.product-bento {
    max-width: 1600px;
    width: 100%;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 0;
}

.product-spec-card,
.product-note {
    background: var(--tile);
    border-radius: 12px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    min-height: min(64vh, 720px);
    padding: 0;
    overflow: visible;
    background: none;
    border-radius: 0;
}

.product-flip {
    padding: 8px 8px 8px 4px;
    min-width: 0;
    min-height: 0;
    background: none;
    border-radius: 0;
    overflow: visible;
}

.product-flip-inner {
    position: relative;
    display: grid;
}

.product-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.product-videos {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.product-video-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    color: #fff;
}

.product-video-card video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
}

.product-sync-feature {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: clamp(16px, 2vw, 30px);
    background: var(--brand-burgundy);
}

.product-sync-copy h2,
.product-slam-copy h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -.03em;
}

.product-sync-copy p,
.product-slam-copy p {
    max-width: 60ch;
    margin: 16px 0 0;
    font-size: var(--text-lead);
    line-height: var(--line-body);
    color: var(--brand-cream);
}

.product-sync-media { position: relative; overflow: hidden; border-radius: 8px; }
.product-sync-media #wireless-sync-video { aspect-ratio: auto; height: auto; background: transparent; }

.product-slam-feature {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 24px;
    align-items: start;
    padding: clamp(16px, 2vw, 30px);
    background: var(--brand-burgundy);
}

.product-slam-copy { min-width: 0; }
.product-slam-media { position: relative; min-width: 0; overflow: hidden; border-radius: 8px; }

@media (max-width: 860px) {
    .product-slam-feature { grid-template-columns: 1fr; gap: 16px; }
}

.product-video-toggle {
    position: absolute;
    z-index: 1;
    bottom: 16px;
    left: 16px;
    width: 33.6px;
    height: 33.6px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7.8px;
    background: var(--brand-burgundy);
    color: #fff;
    cursor: pointer;
}

.product-video-toggle[hidden] { display: none; }
.product-video-toggle::after { content: ""; position: absolute; inset: -6px; }
.product-video-toggle:hover { background: var(--dark-surface); }
.product-video-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.product-video-progress { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 2.5; }
.video-progress-track { stroke: var(--brand-mauve); }
.video-progress-value { stroke: var(--fluoro); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.product-video-icon { width: 14.4px; height: 14.4px; fill: currentColor; }
.product-video-toggle[data-paused="true"] .video-icon-pause,
.product-video-toggle[data-paused="false"] .video-icon-play { display: none; }

@media (max-width: 900px) {
    .product-videos { grid-template-columns: 1fr; }
}

.product-spec-card,
.product-note {
    min-width: 0;
    padding: 24px;
}

.product-note { padding: 28px 24px; }

.gallery-viewport {
    position: relative;
    flex: 1;
    min-height: 280px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--paper);
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.gallery-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.product-gallery.product-gallery-photos { position: relative; min-height: 0; }

.product-gallery-photos .gallery-viewport {
    flex: none;
    min-height: 0;
    aspect-ratio: 3 / 2;
}

.product-gallery-photos .gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-slide-paper { background: var(--paper); }
.gallery-slide-tile { background: var(--tile); }
.gallery-slide-gray { background: var(--grey-500); }
.gallery-slide-ink { background: var(--ink); }
.gallery-slide-accent { background: var(--fluoro); }

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    mix-blend-mode: difference;
    cursor: pointer;
    transform: translateY(-50%);
}

.gallery-nav:hover { background: transparent; opacity: 0.7; }
.gallery-prev { left: 4px; }
.gallery-next { right: 4px; }

.gallery-nav svg {
    display: block;
    width: 22px;
    height: 22px;
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.gallery-thumbnail {
    position: relative;
    flex: 0 0 96px;
    width: 96px;
    height: 64px;
    aspect-ratio: 3 / 2;
    padding: 0;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: var(--paper);
    cursor: pointer;
}

.gallery-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    pointer-events: none;
}

.gallery-thumbnail:hover::after { border-color: var(--grey-500); }
.gallery-thumbnail.is-active::after { border-color: var(--ink); }
.gallery-thumbnail:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 560px) {
    .gallery-thumbnails {
        position: absolute;
        z-index: 3;
        bottom: 4px;
        left: 50%;
        gap: 0;
        margin: 0;
        transform: translateX(-50%);
    }

    .gallery-thumbnail {
        display: grid;
        place-items: center;
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        aspect-ratio: auto;
        border-radius: 50%;
        overflow: visible;
        background: transparent;
    }

    .gallery-thumbnail img { display: none; }
    .gallery-thumbnail::after { content: none; }
    .gallery-thumbnail::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgb(17 17 17 / 28%);
        box-shadow: 0 0 0 1px rgb(255 255 255 / 65%);
    }

    .gallery-thumbnail.is-active::before { background: var(--ink); }
}

.product-flip-front,
.product-flip-back {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-flip-front,
.product-flip-back { grid-area: 1 / 1; min-width: 0; }
.product-flip-front { position: relative; }

.product-flip-back {
    position: relative;
    align-self: start;
    opacity: 0;
    transform: translateX(36px);
}

.product-flip.is-flipped .product-flip-front {
    opacity: 0;
    transform: translateX(-36px);
}

.product-flip.is-flipped .product-flip-back {
    opacity: 1;
    transform: none;
}

.product-flip:not(.is-flipped) .product-flip-back,
.product-flip.is-flipped .product-flip-front { pointer-events: none; visibility: hidden; }

.product-copy { min-width: 0; padding-top: 8px; }

.product-inquiry-copy { min-width: 0; padding: 16px 8px 8px 4px; }

.product-inquiry-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 10px;
    border: 1px solid var(--dark-line);
    border-radius: var(--radius-control);
    background: var(--brand-burgundy);
}

.product-inquiry-form input[type="email"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--brand-cream);
    font: inherit;
    font-size: var(--text-body);
}

.product-inquiry-form input::placeholder { color: var(--brand-mauve); opacity: 1; }
.product-inquiry-form:focus-within { border-color: var(--brand-mauve); }
.product-inquiry-form input:focus-visible { outline: 2px solid var(--brand-coral); outline-offset: 2px; }

.product-inquiry-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    min-height: 46px;
    min-width: 158px;
    flex: 0 0 auto;
    padding: 12px 18px;
    border: 1px solid var(--brand-coral);
    border-radius: var(--radius-control);
    background: var(--brand-coral);
    color: var(--brand-burgundy);
    font: 500 var(--text-ui)/1.3 var(--font-sans);
    cursor: pointer;
}

.product-inquiry-form button:hover { background: var(--brand-cream); }
.product-inquiry-form button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.product-inquiry-form button:disabled { opacity: .6; cursor: wait; }
.product-inquiry-form[data-state="success"] button { opacity: 1; cursor: default; background: var(--brand-cream); border-color: var(--brand-cream); }
.inquiry-status { margin: 12px 0 0; font-size: var(--text-label); line-height: 1.5; }
.inquiry-status[data-state="error"] { color: #b51c2e; }

@media (max-width: 420px) {
    .product-inquiry-form { display: grid; grid-template-columns: minmax(0, 1fr); }
    .product-inquiry-form button { width: 100%; }
}

button.product-meta {
    display: block;
    width: max-content;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

button.product-meta:hover { text-decoration: underline; text-underline-offset: 5px; }

.product-flip-close {
    margin: 0 0 22px;
}

.product-flip-back .contact-form {
    max-width: none;
    margin-top: 18px;
    gap: 16px;
}

.product-flip-back .form-group textarea { min-height: 110px; }

.product-flip-back .form-status {
    display: none;
    margin-top: 16px;
    font-size: 0.9375rem;
    line-height: var(--line-body);
    color: var(--grey-600);
}

.product-flip-back .form-status[data-state="ok"] { display: block; color: var(--ink); }
.product-flip-back .form-status[data-state="error"] { display: block; color: var(--fluoro); }

.product-title {
    margin: 0;
    font-size: var(--text-title);
    font-weight: 500;
    line-height: var(--line-heading);
    letter-spacing: var(--tracking-heading);
}

.product-subtitle {
    margin: 10px 0 0;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.product-standfirst {
    max-width: none;
    margin: 12px 0 0;
    font-size: var(--text-lead);
    font-weight: 400;
    line-height: var(--line-body);
    letter-spacing: 0;
    color: var(--ink);
}

.product-meta {
    margin: 12px 0 0;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    font-family: var(--font-sans);
    color: var(--ink);
}

.product-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 22px 0 0;
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    background: var(--ink);
    color: var(--paper);
    font-size: var(--text-body);
    font-weight: 500;
}

.product-cta:hover {
    background: var(--ink);
    color: var(--paper);
    opacity: 0.88;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 22px 0 0;
}

.product-option-label {
    display: block;
    margin: 0 0 8px;
    font-family: var(--font-sans);
    font-size: var(--text-label);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: var(--grey-600);
}

.product-slider {
    --n: 2;
    --i: 0;
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--ink);
    border-radius: 12px;
    background: var(--paper);
}

.product-slider:has(label:nth-of-type(3)) { --n: 3; }
.product-slider:has(label:nth-of-type(1) input:checked) { --i: 0; }
.product-slider:has(label:nth-of-type(2) input:checked) { --i: 1; }
.product-slider:has(label:nth-of-type(3) input:checked) { --i: 2; }

.product-slider-thumb {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: calc(100% / var(--n));
    height: 100%;
    background: var(--ink);
    transform: translateX(calc(var(--i) * 100%));
    transition: transform 0.28s ease;
    pointer-events: none;
}

.product-slider-choice {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 16px 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-align: center;
    color: var(--ink);
    cursor: pointer;
    transition: color 0.2s ease;
}

.product-slider-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-slider-choice span {
    max-width: 100%;
}

.product-slider-choice:has(input:checked) {
    color: var(--paper);
}

.product-fov {
    display: block;
    width: 110px;
    height: 68px;
    flex: none;
    object-fit: contain;
    pointer-events: none;
}

.product-optic {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.product-optic-choice {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 14px 20px;
    border: 1px solid var(--grey-300);
    border-radius: 12px;
    background: var(--paper);
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
    cursor: pointer;
}

.product-optic-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-optic-choice:has(input:checked) {
    padding: 13px 19px;
    border: 2px solid var(--ink);
    background: var(--paper);
}

.product-spec-card .section-title,
.product-note .section-title {
    margin-bottom: 16px;
}

.product-note p { margin: 0; }

.product-bullets {
    margin: 22px 0 0;
    padding-left: 1.15em;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink);
}

.product-bullets li + li { margin-top: 4px; }

.product-copy .capability-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 28px 0 0;
}

.product-copy .capability-title {
    font-size: 1.125rem;
    margin-bottom: 6px;
}

.product-copy .capability-text {
    font-size: 1rem;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.capability-title { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 28px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; }
.capability-text { margin: 0; font-size: 1rem; line-height: var(--line-body); color: var(--grey-600); }

/* --- Specifications -------------------------------------------------- */
.spec-list { margin: 0; }

.spec-list > div {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 16px 32px;
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-200);
}

.spec-list > div:first-child { border-top: none; }

.product-spec-card .spec-list > div {
    grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
    gap: 8px 16px;
}
.spec-list dt { font-size: var(--text-body); line-height: var(--line-body); color: var(--grey-600); }

.spec-list dd {
    overflow-wrap: anywhere;
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: var(--line-body);
    color: var(--ink); font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-page { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px); }

.contact-page h1.section-title {
    margin-bottom: 18px;
    font-family: var(--font-sans);
    font-size: var(--text-title);
    font-weight: 500;
    line-height: var(--line-heading);
    letter-spacing: var(--tracking-heading);
    text-transform: none;
    color: var(--ink);
}

.contact-page > p {
    max-width: var(--measure);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: var(--line-body);
    color: var(--grey-700);
}

.contact-page > p + p { margin-top: 16px; }

.contact-form { display: grid; gap: 22px; max-width: 620px; margin-top: 36px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
    font-family: var(--font-sans);
    font-size: var(--text-label);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: var(--grey-600);
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--grey-300);
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink);
    font-size: 1rem;
    line-height: var(--line-body);
    transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--ink-soft); }
.form-group textarea { min-height: 150px; resize: vertical; }
.form-button { justify-self: start; }

#form-status {
    display: none;
    max-width: 620px;
    margin-top: 20px;
    padding: 13px 16px;
    border-left: 2px solid var(--grey-300);
    background: var(--tile);
    font-size: 1rem;
    line-height: var(--line-body);
    color: var(--grey-700);
}

#form-status[data-state="ok"] { border-left-color: var(--ink); color: var(--ink); }
#form-status[data-state="error"] { border-left-color: var(--signal); }

/* ==========================================================================
   Careers — tastelabs.com / Ashby board, without Ashby
   ========================================================================== */

body.careers-body {
    background: var(--brand-burgundy);
    color: var(--paper);
}

body.careers-body .site-footer { margin-top: 0; }

body.careers-body .container {
    max-width: none;
    padding-left: clamp(24px, 4vw, 72px);
    padding-right: clamp(24px, 4vw, 72px);
}

.careers-main { padding: clamp(36px, 5vw, 64px) 0 clamp(72px, 8vw, 120px); }

.careers-hero { max-width: 42rem; margin-bottom: clamp(48px, 7vw, 88px); }

.careers-hero h1 {
    margin: 0 0 18px;
    font-size: var(--text-title);
    font-weight: 500;
    letter-spacing: var(--tracking-heading);
    line-height: var(--line-heading);
}

.careers-hero p {
    margin: 0;
    max-width: 40ch;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: var(--line-body);
    color: var(--brand-mauve);
}

.ashby-board-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--dark-line);
}

.ashby-board-head h2,
.ashby-group h2 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-label);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: var(--brand-cream);
}

.ashby-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
}

.ashby-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand-mauve);
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.ashby-filter-toggle:hover { color: var(--paper); }

.ashby-filters {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 0 8px;
}

.ashby-filters.is-open { display: grid; }

.ashby-filter { display: flex; flex-direction: column; gap: 6px; }

.ashby-filter span {
    font-size: var(--text-caption);
    color: var(--brand-mauve);
}

.ashby-filter select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    background: var(--brand-burgundy);
    color: var(--paper);
    font: inherit;
    font-size: 0.875rem;
}

.ashby-group { padding: 28px 0 8px; }

.ashby-group h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ashby-group h2::before {
    content: "";
    width: 1px;
    height: 14px;
    background: var(--brand-mauve);
}

.ashby-job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--dark-line);
    text-decoration: none;
    color: inherit;
}

.ashby-job > .ashby-icon {
    width: 16px;
    height: 16px;
    color: var(--brand-mauve);
    transition: transform 0.15s ease, color 0.15s ease;
}

.ashby-job-copy { min-width: 0; }

.ashby-job h3 {
    margin: 0 0 8px;
    font-size: var(--text-lead);
    font-weight: 500;
    letter-spacing: 0;
}

.ashby-job-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0;
    font-size: 0.875rem;
    color: var(--brand-mauve);
}

.ashby-bit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ashby-bit .ashby-icon { color: var(--brand-mauve); }

.ashby-job:hover h3 { color: var(--paper); }
.ashby-job:hover > .ashby-icon {
    color: var(--paper);
    transform: translateX(4px);
}

.ashby-empty {
    padding: 28px 0;
    color: var(--brand-mauve);
}

.ashby-posting { max-width: none; }

.ashby-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 0.875rem;
    color: var(--brand-mauve);
    text-decoration: none;
}

.ashby-back:hover { color: var(--paper); }

.ashby-posting > h1 {
    margin: 0 0 28px;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.ashby-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 32px;
    max-width: 28rem;
    margin-bottom: 36px;
}

.ashby-fact h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
    font-size: var(--text-caption);
    font-weight: 500;
    color: var(--brand-mauve);
}

.ashby-fact h2 .ashby-icon { color: var(--brand-mauve); }

.ashby-fact p {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
}

.ashby-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 32px;
    border-bottom: 1px solid var(--dark-line);
}

.ashby-tab {
    padding: 16px 0 12px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: var(--brand-mauve);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.ashby-tab.is-active {
    color: var(--paper);
    border-bottom-color: var(--paper);
}

.ashby-prose { max-width: none; }

.ashby-prose h3 {
    margin: 36px 0 12px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
}

.ashby-prose h3:first-child { margin-top: 0; }

.ashby-prose p {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--brand-cream);
}

.ashby-prose ul {
    margin: 0 0 8px;
    padding: 0 0 0 18px;
}

.ashby-prose li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--brand-cream);
}

.ashby-apply-cta,
.ashby-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
    padding: 12px 22px;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    background: transparent;
    color: var(--paper);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.ashby-submit {
    width: 100%;
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.ashby-apply-cta:hover,
.ashby-submit:hover { opacity: 0.86; }

.ashby-form { display: grid; gap: 22px; }

.ashby-autofill h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 500;
}

.ashby-autofill p {
    margin: 0 0 12px;
    font-size: 0.875rem;
    color: var(--brand-mauve);
}

.ashby-field { display: grid; gap: 8px; }

.ashby-field > span {
    font-size: 1rem;
    font-weight: 500;
}

.ashby-field input,
.ashby-field textarea,
.ashby-file-name {
    width: 100%;
    padding: 17px;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    background: transparent;
    color: var(--paper);
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.ashby-field textarea { min-height: 140px; resize: vertical; }

.ashby-field input::placeholder,
.ashby-field textarea::placeholder {
    color: var(--brand-mauve);
}

.ashby-field input:focus,
.ashby-field textarea:focus {
    outline: none;
    border-color: var(--brand-mauve);
}

.ashby-file {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.ashby-file input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ashby-file-name { pointer-events: none; }

.ashby-file label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.ashby-choice {
    margin: 0;
    padding: 0;
    border: 0;
}

.ashby-choice legend {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.ashby-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ashby-choice label { cursor: pointer; }

.ashby-choice input { position: absolute; opacity: 0; pointer-events: none; }

.ashby-choice span {
    display: inline-flex;
    min-width: 72px;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.ashby-choice input:checked + span {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.ashby-form-status {
    margin: 0;
    font-size: 0.875rem;
    color: var(--brand-mauve);
}

.ashby-form-status[data-state="error"] { color: var(--fluoro); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
    .nav-label { padding-right: 24px; font-weight: 500;
}
    .nav-drop {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 1.1fr);
        gap: 20px 24px;
        padding: 24px;
        min-height: 240px;
    }
}

@media (max-width: 860px) {
    :root {
        --header-h: 58px;
        --logo-w: 28px;
    }

    .site-header {
        --header-radius: 20px;
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 0 10px 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .site-header-logo { margin-right: auto; }

    .nav-cta { height: 32px; padding: 0 14px; font-size: 0.875rem; font-weight: 500; line-height: 1.3;
}

    .nav-items {
        position: absolute;
        top: 100%;
        left: -1px;
        right: -1px;
        width: calc(100% + 2px);
        height: auto;
        max-height: calc(100dvh - var(--header-h) - 28px);
        overflow-x: hidden;
        overflow-y: auto;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 4px 16px 20px;
        background: var(--header-surface);
        border: 1px solid var(--header-line);
        border-top: 0;
        border-radius: 0 0 var(--header-radius) var(--header-radius);
        display: none;
    }

    .nav-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 0 14px;
        border-bottom: 1px solid var(--grey-200);
    }

    .nav-group:last-child { border-bottom: none; }

    .nav-items .nav-label {
        padding: 4px 0 2px;
        font-size: var(--text-label);
    }

    .nav-drop {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
        min-height: 0;
        height: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 0;
        background: none;
        border: 0;
        transform: none;
        clip-path: none;
        transition: none;
        border-radius: 0;
        grid-template-columns: 1fr;
    }

    .nav-drop::before { display: none; }

    .nav-drop-desc { display: none; }

    .nav-drop-preview { display: none; }

    .nav-drop-kicker {
        margin: 0 0 4px;
        font-size: var(--text-label); font-weight: 500; line-height: 1.4;
}

    .nav-drop-link {
        padding: 8px 0;
        font-size: 0.9375rem;
        border-bottom: 0; font-weight: 500;
}

    .nav-items-cta { display: none; }

    /* Shared menu state; the button also supports keyboard activation. */
    .nav-toggle:checked ~ .nav-items { display: flex; }

    .nav-burger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-right: 0;
        padding: 0;
        border: 0;
        background: transparent;
        font-family: inherit;
        cursor: pointer;
        font-size: 1.375rem;
        line-height: 1;
        color: var(--ink);
        flex: none;
    }

    .site-header:has(.nav-toggle:checked) .nav-burger {
        color: var(--ink);
    }

    .nav-burger { position: relative; }
    .nav-burger span {
        position: absolute;
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
        transition: transform .2s ease, opacity .2s ease;
    }
    .nav-burger span:first-child { transform: translateY(-6px); }
    .nav-burger span:last-child { transform: translateY(6px); }
    .nav-burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
    .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

    .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    #products .tile-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        min-height: 0;
    }

    #products .tile:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 380px;
    }

    #products .tile {
        min-height: 280px;
    }

    .code-block {
        padding: 16px;
        font-size: var(--text-caption);
        line-height: 1.65;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .button { font-size: var(--text-body); }

    .product-hero,
    .product-spec-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery { min-height: 380px; }

    .spec-list > div { grid-template-columns: 1fr; gap: 4px; }


    .ashby-filters { grid-template-columns: 1fr 1fr; }
    .ashby-facts { grid-template-columns: 1fr 1fr; }

}

@media (min-width: 861px) {
    .nav-burger { display: none; }
}

@media (max-width: 560px) {
    :root { --logo-w: 28px; }

    .product-spec-card { padding: 20px; }
    .product-spec-card .spec-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 0; }
    .product-spec-card .spec-list dd { line-height: 1.5; }
    .product-hero { gap: 20px; }

    .tile-grid { grid-template-columns: 1fr; }
    .tile { aspect-ratio: auto; min-height: 280px; }
    #products .tile-grid { grid-template-columns: 1fr; }
    #products .tile:first-child { grid-column: auto; min-height: 320px; }

    .marquee-group { gap: 40px; padding-right: 40px; }
    .marquee-group img { height: 22px; }


    .ashby-filters { grid-template-columns: 1fr; }
    .ashby-tabs { grid-template-columns: 1fr 1fr; }

}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee-content { animation: none; }
    * { transition: none !important; }
}

.feature-underline { text-decoration: underline; text-underline-offset: .14em; text-decoration-thickness: .06em; }
.product-sync-copy h2, .product-slam-copy h2 { overflow-wrap: anywhere; }
body.nav-open { overflow: hidden; }

/* Full-frame Mono sample photographs. */
.product-samples {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.product-samples img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    border-radius: 8px;
}
@media (max-width: 560px) {
    .product-samples {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

/* Let the Mono photograph's own backdrop fill its card, without a seam. */
#products .tile-mono { position: relative; background: #d5d5d5; }
#products .tile-mono .tile-body { position: relative; z-index: 2; }
#products .tile-mono .tile-media { position: absolute; inset: 0; padding: 0; z-index: 0; }
#products .tile-mono .tile-media img {
    width: 100%; height: auto; max-width: none; max-height: 100%;
    object-fit: contain;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent), linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
    mask-composite: intersect;
}
.nav-preview[data-preview="m1"] { background: var(--photo-mono); }
.nav-preview[data-preview="h1"] { background: var(--photo-stereo); }


/* Training and deployment offerings. */
.home-stack { background: var(--brand-burgundy); color: var(--brand-cream); padding: clamp(48px, 6vw, 96px) var(--edge); }
.home-stack-inner { max-width: 1440px; margin-inline: auto; }
.home-stack h2 { margin: 0 0 36px; font: 500 var(--text-section)/1.2 var(--font-sans); letter-spacing: var(--tracking-heading);
}
.stack-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 36px); }
.stack-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 3.5vw, 50px); background: var(--dark-surface); border-radius: var(--radius-card); }
.stack-art { display: grid; place-items: center; min-height: 240px; aspect-ratio: 1.8; border-bottom: 1px solid var(--dark-line); margin-bottom: 40px; color: var(--brand-cream); }
.stack-art svg { width: 100%; max-width: 480px; height: auto; }
.stack-card h3 { font-size: var(--text-section); line-height: 1.15; font-weight: 500; letter-spacing: var(--tracking-heading); margin: 0 0 22px; }
.stack-description { color: var(--brand-mauve); font-size: var(--text-lead); line-height: 1.55; margin: 0 0 48px; }
.stack-inquiry.product-inquiry-form { margin-top: auto; }
.stack-card .form-status { color: var(--brand-cream); }
@media (max-width: 860px) { .stack-cards { grid-template-columns: 1fr; } .stack-art { min-height: 180px; max-height: 300px; } }

/* Quiet looping line illustrations: capture, training, and connected robotics. */
.stack-art .data-flow { animation: stack-data-flow 2s linear infinite; }
.stack-art .camera-capture { animation: stack-capture 4s ease-in-out infinite; }
.stack-art .collection-frames { animation: stack-frames 4s ease-in-out infinite; }
.stack-art .neuron-layer { animation: stack-neurons 4s ease-in-out infinite; }
.stack-art .layer-two { animation-delay: .5s; }
.stack-art .layer-three { animation-delay: 1s; }
.stack-art .trained-check { animation: stack-check 4s ease-in-out infinite; }
.stack-art .server-status, .stack-art .signal-wave { animation: stack-signal 3s ease-in-out infinite; }
.stack-art .robot-arm { transform-origin: 267px 146px; animation: stack-arm 6s ease-in-out infinite; }
.stack-art .robot-forearm { transform-origin: 234px 94px; animation: stack-forearm 6s ease-in-out infinite; }
.stack-art .robot-gripper { transform-origin: 319px 81px; animation: stack-gripper 6s ease-in-out infinite; }
@keyframes stack-data-flow { to { stroke-dashoffset: -32; } }
@keyframes stack-capture { 0%, 65%, 100% { opacity: .35; } 15%, 30% { opacity: 1; fill: currentColor; } }
@keyframes stack-frames { 0%, 100% { transform: translate(0, 0); opacity: .2; } 35%, 60% { transform: translate(-4px, -4px); opacity: .45; } }
@keyframes stack-neurons { 0%, 12%, 65%, 100% { fill: var(--dark-surface); } 25%, 42% { fill: var(--brand-coral); } }
@keyframes stack-check { 0%, 50%, 100% { opacity: .25; } 65%, 85% { opacity: 1; } }
@keyframes stack-signal { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@keyframes stack-arm { 0%, 15%, 100% { transform: rotate(-5deg); } 48%, 65% { transform: rotate(8deg); } }
@keyframes stack-forearm { 0%, 15%, 100% { transform: rotate(-8deg); } 48%, 65% { transform: rotate(12deg); } }
@keyframes stack-gripper { 0%, 35%, 100% { transform: rotate(0); } 50%, 70% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
    .stack-art svg * { animation: none !important; }
}

/* Node previews share the studio backdrop of the product photography. */
#products .tile-node { background: #d3d4d6; }
#products .tile-node .tile-media img {
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent), linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
    mask-composite: intersect;
}
.nav-preview[data-preview="n1"] { background: var(--photo-node); }
/* Preserve the image's intrinsic proportions, including in short dropdowns. */
.nav-preview .product-photo {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    padding: 0;
    object-fit: contain;
}

/* A short careers list, with full role details on the careers page. */
.home-careers { padding: clamp(56px, 7vw, 108px) var(--edge); background: var(--brand-paper); color: var(--ink); }
.home-careers-inner { max-width: 1440px; margin-inline: auto; }
.home-careers-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 40px; margin-bottom: clamp(48px, 6vw, 88px); }
.home-careers h2 { font-size: var(--text-section); line-height: 1.2; font-weight: 500; letter-spacing: var(--tracking-heading); margin: 0 0 18px; }
.home-careers-heading p { max-width: 590px; margin: 0; color: var(--text-muted); font-size: 1.125rem; line-height: 1.6; }
.home-careers-footer { display: flex; justify-content: flex-end; margin-top: clamp(24px, 3vw, 40px); }
.home-careers-all { flex-shrink: 0; display: inline-flex; gap: 24px; align-items: center; color: inherit; font-size: var(--text-body); text-decoration: none; padding-block: 12px; border-bottom: 1px solid currentColor; }
.home-careers-team { position: relative; min-width: 0; }
.home-careers-portraits {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    mask-image: linear-gradient(to right, #000 0%, #000 32%, rgb(0 0 0 / .6) 55%, rgb(0 0 0 / .1) 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 32%, rgb(0 0 0 / .6) 55%, rgb(0 0 0 / .1) 80%, transparent 100%);
    pointer-events: none;
}
.home-careers-portraits img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(1);
}
.home-careers-label { margin-left: 50%; font-size: 1.4375rem; margin-bottom: 28px; }
.home-careers-groups { border-bottom: 1px solid var(--light-line); }
.home-career-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--light-line); }
.home-career-roles { min-width: 0; }
.home-career-row { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: start; gap: 20px; padding: 30px 0; color: inherit; text-decoration: none; }
.home-career-row + .home-career-row { border-top: 1px solid var(--light-line); }
.home-career-team { margin: 0; padding: 30px 24px 0 0; color: var(--text-muted); font: 500 var(--text-ui)/1.5 var(--font-sans); }
.home-career-role { display: grid; gap: 10px; font-size: 1rem; line-height: 1.5; }
.home-career-role strong { font-weight: 500; font-size: 1.1875rem; }
.home-career-arrow { font-size: 1.5rem; transition: transform .2s ease; }
.home-career-row:hover .home-career-arrow { transform: translateX(4px); }
.home-career-row:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.home-career-row:focus-visible, .home-careers-all:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
@media (max-width: 900px) {
    .home-careers-heading { grid-template-columns: 1fr; align-items: start; gap: 32px; }
    .home-careers-team { max-width: 680px; width: 100%; }
    .home-careers-portraits { mask-image: linear-gradient(to bottom, #000 20%, #000 45%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 20%, #000 45%, transparent 100%); }
}
@media (max-width: 700px) {
    .home-careers-label { margin-left: 0; }
    .home-career-group { grid-template-columns: minmax(0, 1fr); }
    .home-career-team { padding: 24px 0 0; }
    .home-career-row { gap: 12px; padding-block: 24px; }
    .home-career-row:first-child { padding-top: 16px; }
}
@media (max-width: 560px) {
    .home-careers-portraits { gap: 6px; }
    .home-careers-portraits img { border-radius: 6px; }
}

/* One aligned demo box: synchronization, mapping, and a photo buffer. */
.product-demo-box { gap: 16px; }
.product-demo-box .product-sync-feature,
.product-demo-box .product-slam-feature { display: block; padding: 12px; background: var(--brand-burgundy); }
/* Keep existing descriptions available while reserving the visual for future headings. */
.product-demo-box .product-sync-copy,
.product-demo-box .product-slam-copy { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.product-demo-bottom { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.product-demo-bottom .product-slam-media { aspect-ratio: 16 / 9; }
.product-demo-bottom .product-slam-media video { width: 100%; height: 100%; object-fit: contain; }
.product-demo-box .product-samples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; margin: 0; background: #f2f2f2; border-radius: 12px; min-height: 0; height: 100%; max-height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #888 #f2f2f2; align-content: start; }
.product-demo-bottom { position: relative; }
.product-demo-bottom .product-samples { position: absolute; right: 0; top: 0; width: calc((100% - 16px) / 2.6); }
.product-demo-box .product-samples:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.product-demo-box .product-samples img { min-width: 0; object-fit: contain; }
@media (max-width: 800px) {
    .product-demo-bottom { grid-template-columns: 1fr; }
    .product-demo-bottom .product-samples { position: static; width: 100%; height: auto; max-height: none; overflow: visible; }
    .product-demo-box .product-sync-feature,
    .product-demo-box .product-slam-feature,
    .product-demo-box .product-samples { padding: 8px; }
    .product-demo-box, .product-demo-bottom { gap: 12px; }
}

/* Let the demo media sit directly on the page without card backdrops. */
.product-demo-box .product-sync-feature,
.product-demo-box .product-slam-feature,
.product-demo-box .product-samples {
    background: transparent;
    padding: 0;
    border-radius: 0;
}
.product-demo-box .product-samples { scrollbar-color: #888 transparent; }

/* A fixed six-photo preview fits alongside the mapping demo. */
.product-demo-box .product-samples {
    overflow: hidden;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-content: stretch;
}
.product-demo-box .product-samples img { height: 100%; object-fit: cover; }
.product-demo-box .product-samples img:nth-child(n + 7) { display: none; }
@media (max-width: 800px) {
    .product-demo-box .product-samples { grid-template-rows: none; overflow: visible; }
    .product-demo-box .product-samples img { height: auto; object-fit: contain; }
}

/* Demo titles share a compact, consistent heading treatment. */
.product-demo-box .product-sync-copy,
.product-demo-box .product-slam-copy {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 14px;
    overflow: visible;
    clip-path: none;
    white-space: normal;
}
.product-demo-box .product-sync-copy h2,
.product-demo-box .product-slam-copy h2 {
    color: var(--ink);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.25;
    letter-spacing: -.02em;
}
.product-demo-box .product-sync-copy p,
.product-demo-box .product-slam-copy p { display: none; }
@media (min-width: 801px) {
    .product-demo-bottom .product-samples {
        top: calc(clamp(18px, 2vw, 24px) * 1.25 + 14px);
        height: calc(100% - clamp(18px, 2vw, 24px) * 1.25 - 14px);
    }
}

/* Titles overlay the footage, opposite the playback controls. */
.product-demo-box .product-sync-copy,
.product-demo-box .product-slam-copy {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: calc(100% - 100px);
    margin: 0;
    pointer-events: none;
}
.product-demo-box .product-sync-copy h2,
.product-demo-box .product-slam-copy h2 {
    padding: 8px 12px;
    border-radius: 6px;
    background: transparent;
    color: var(--brand-burgundy);
    font-family: var(--font-sans);
    font-size: clamp(14px, 1.4vw, 21px);
    line-height: 1.25;
    font-weight: 500;
    text-align: right;
    letter-spacing: -.02em;
    overflow-wrap: normal;
}
@media (min-width: 801px) {
    .product-demo-bottom .product-samples { top: 0; height: 100%; }
}
@media (max-width: 560px) {
    .product-demo-box .product-sync-copy,
    .product-demo-box .product-slam-copy { right: 10px; bottom: 10px; max-width: calc(100% - 80px); }
    .product-demo-box .product-sync-copy h2,
    .product-demo-box .product-slam-copy h2 { padding: 6px 8px; }
}

/* Plain, structured Mono specifications. */
.product-technical-specs { padding: clamp(32px, 5vw, 72px) clamp(4px, 2vw, 28px); color: var(--brand-burgundy); font-family: var(--font-sans); }
.technical-spec-section { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); gap: 24px 48px; padding: 32px 0; border-top: 1px solid var(--light-line); }
.technical-spec-section h2 { margin: 0; font: 500 var(--text-card)/1.25 var(--font-sans); letter-spacing: -.02em; }
.technical-spec-section dl { margin: 0; }
.technical-spec-section dl > div { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 16px 28px; padding: 10px 0; }
.technical-spec-section dl > div:first-child { padding-top: 0; }
.technical-spec-section dt, .technical-spec-section dd { margin: 0; color: var(--brand-burgundy); font: 400 16px/1.6 var(--font-sans); overflow-wrap: anywhere; font-size: var(--text-body);
}
.technical-spec-section dt { font-weight: 500; }
@media (max-width: 900px) { .technical-spec-section { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 560px) {
    .technical-spec-section dl > div { grid-template-columns: 1fr; gap: 3px; padding-block: 12px; }
    .technical-spec-section dt, .technical-spec-section dd { font-size: var(--text-body); }
}

/* Blog: shared editorial layout for the homepage and the post index. */
.blog-page .site-footer { margin-top: 0; }
.blog-main {
    width: 100%;
    max-width: calc(1440px + var(--edge) * 2);
    margin-inline: auto;
    padding: clamp(36px, 5vw, 64px) var(--edge) clamp(64px, 8vw, 120px);
}
.blog-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(24px, 4vw, 64px);
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--grey-200);
}
.blog-intro h1 {
    margin: 0;
    font: 500 var(--text-title)/var(--line-heading) var(--font-sans);
    letter-spacing: var(--tracking-heading);
}
.blog-intro > p {
    max-width: 42ch;
    justify-self: start;
    margin: 0;
    color: var(--grey-600);
    font-size: 1.125rem;
    line-height: 1.5;
}
.blog-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    text-decoration: none;
    color: var(--ink);
}
.blog-feature-media { overflow: hidden; border-radius: 10px; background: var(--tile); }
.blog-feature-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.blog-feature-copy { min-width: 0; padding-block: 12px; }
.blog-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 0;
    color: var(--grey-600);
    font: 500 var(--text-label)/1.5 var(--font-sans);
}
.blog-feature-label { color: var(--signal); }
.blog-feature-label::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 8px 2px 0;
    background: currentColor;
}
.blog-feature h2, .blog-feature h3 {
    max-width: 23ch;
    margin: 22px 0 0;
    font: 500 var(--text-section)/1.2 var(--font-sans);
    letter-spacing: var(--tracking-heading);
    text-wrap: balance;
}
.blog-description {
    max-width: 42ch;
    margin: 22px 0 0;
    color: var(--grey-600);
    font: 400 18px/1.55 var(--font-sans);
}
.blog-feature-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 32px; }
.blog-feature time, .blog-index-row time { color: var(--grey-600); font: 400 var(--text-caption)/1.5 var(--font-sans); font-variant-numeric: tabular-nums;
}
.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--signal);
    font: 500 15px/1.4 var(--font-sans);
    text-decoration: none;
    text-underline-offset: 4px;
}
.blog-link svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.blog-feature:hover .blog-link, .blog-feature:focus-visible .blog-link,
.blog-link:hover, .blog-link:focus-visible { text-decoration: underline; }
.blog-index { margin-top: clamp(56px, 7vw, 96px); }
.blog-index-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.blog-index-heading h2, .home-blog-heading h2 { margin: 0; font: 500 var(--text-section)/1.2 var(--font-sans); letter-spacing: var(--tracking-heading);
}
.blog-index-columns, .blog-index-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px 140px 20px;
    align-items: center;
    gap: 24px;
}
.blog-index-columns { padding-bottom: 14px; color: var(--grey-600); font: 500 var(--text-label)/1.5 var(--font-sans); }
.blog-index-row { padding: 24px 0; border-block: 1px solid var(--grey-200); text-decoration: none; color: var(--ink); }
.blog-index-post { display: flex; align-items: center; gap: 24px; min-width: 0; }
.blog-index-post img { flex: none; width: 112px; height: 75px; object-fit: cover; border-radius: 6px; }
.blog-index-post h3 { margin: 0 0 8px; font: 500 var(--text-card)/1.25 var(--font-sans); letter-spacing: -.02em; }
.blog-index-source { font-size: 0.875rem; color: var(--grey-600); }
.blog-index-category { font: 500 var(--text-label)/1.5 var(--font-sans); color: var(--grey-600); }
.blog-index-arrow { color: var(--signal); font-size: 1.375rem; }
.blog-index-row:hover h3, .blog-index-row:focus-visible h3 { text-decoration: underline; text-underline-offset: 4px; }
.home-blog { padding: clamp(48px, 6vw, 96px) var(--edge); background: var(--paper); color: var(--ink); }
.home-blog-inner { max-width: 1440px; margin-inline: auto; }
.home-blog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 24px; margin-bottom: 36px; border-bottom: 1px solid var(--grey-200); }
@media (max-width: 900px) {
    .blog-intro { grid-template-columns: 1fr; gap: 20px; }
    .blog-feature { grid-template-columns: 1fr; gap: 24px; }
    .blog-feature-copy { padding: 0; }
    .blog-feature h2, .blog-feature h3 { max-width: 30ch; font: 500 var(--text-section)/1.2 var(--font-sans); letter-spacing: var(--tracking-heading);
}
    .blog-feature-bottom { margin-top: 24px; }
    .blog-index-columns, .blog-index-row { grid-template-columns: minmax(0, 1fr) 70px 110px 18px; gap: 16px; }
    .blog-index-post { gap: 16px; }
    .blog-index-post img { width: 88px; height: 59px; }
}
@media (max-width: 600px) {
    .blog-intro { grid-template-columns: 1fr; gap: 24px; }
    .blog-intro > p { justify-self: start; }
    .blog-index-columns { display: none; font: 500 var(--text-label)/1.5 var(--font-sans);
}
    .blog-index-row { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 16px 12px; }
    .blog-index-post { grid-column: 1 / -1; }
    .blog-index-source { font-size: 0.8125rem; }
    .home-blog-heading { margin-bottom: 24px; }
}

/* Footer — coral frame, warm charcoal panel, and cropped Efference wordmark. */
.site-footer {
    --footer-coral: var(--brand-coral);
    --footer-panel: var(--brand-burgundy);
    margin-top: 0;
    padding: 8px 8px 0;
    overflow: hidden;
    background: var(--footer-coral);
    color: var(--brand-cream);
}
.footer-panel { overflow: hidden; background: var(--footer-panel); border-radius: 18px 18px 0 0; transform-origin: 50% 100%; }
.footer-content { max-width: 1600px; margin-inline: auto; padding: clamp(56px, 7vw, 112px) clamp(24px, 5vw, 80px) 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 92px; gap: clamp(32px, 5vw, 80px); }
.footer-label { margin: 0 0 22px; color: var(--footer-coral); font: 500 var(--text-label)/1.4 var(--font-sans); letter-spacing: 0; text-transform: none; }
.footer-nav-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-nav-columns > div { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-navigation a { font: 400 clamp(20px, 2.1vw, 30px)/1.25 var(--font-sans); letter-spacing: -.025em; }
.footer-panel a { text-decoration: none; transition: color .15s ease; }
.footer-panel a:hover { color: var(--footer-coral); }
.footer-panel a:focus-visible { outline-color: var(--footer-coral); outline-offset: 6px; }
.footer-details { display: grid; align-content: start; gap: 36px; }
.footer-details .footer-label { margin-bottom: 14px; }
.footer-details a, .footer-details address { font: 400 16px/1.6 var(--font-sans); }
.footer-details a { overflow-wrap: anywhere; }
.footer-details a span { display: inline-block; margin-left: 8px; color: var(--footer-coral); }
.footer-eye-link { display: block; width: 92px; align-self: start; }
/* Crop the first 225 px of the original 1182 × 235 header logo in CSS. */
.footer-eye {
    display: block;
    width: 100%;
    aspect-ratio: 225 / 235;
    background: var(--footer-coral);
    -webkit-mask: url("assets/header.png") left top / 525.333333% 100% no-repeat;
    mask: url("assets/header.png") left top / 525.333333% 100% no-repeat;
}
.footer-legal { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 18px 32px; padding-top: 28px; margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--dark-line); color: var(--brand-mauve); font-size: var(--text-caption); line-height: 1.5; }
.footer-legal p { margin: 0; }
.footer-brand-crop { position: relative; width: 100%; aspect-ratio: 1182 / 156; overflow: hidden; margin-top: clamp(36px, 5vw, 72px); pointer-events: none; user-select: none; }
.footer-brand-crop img { display: block; width: 100%; max-width: none; height: auto; filter: brightness(0) invert(1); opacity: .96; }
.footer-brand-crop.has-pieces img { visibility: hidden; }
.footer-brand-pieces { position: absolute; inset: 0 0 auto; aspect-ratio: 1182 / 235; opacity: .96; }
.footer-brand-piece {
    position: absolute;
    inset: 0;
    background: var(--brand-cream);
    -webkit-mask: url("assets/header.png") left top / 100% 100% no-repeat;
    mask: url("assets/header.png") left top / 100% 100% no-repeat;
    transform: translateY(110%);
    transition: transform .85s cubic-bezier(.22, 1, .36, 1);
    transition-delay: calc(var(--piece-index) * 45ms);
}
.footer-brand-crop.is-revealed .footer-brand-piece { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-panel { transform: none !important; opacity: 1 !important; }
    .footer-brand-piece { transform: none; transition: none; }
}
@media (max-width: 1000px) {
    .footer-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
    .footer-eye-link { grid-column: 2; width: 64px; }
    .footer-navigation { grid-row: 1 / 3; }
    .footer-details { grid-column: 2; }
}
@media (max-width: 600px) {
    .site-footer { padding: 6px 6px 0; }
    .footer-panel { border-radius: 14px 14px 0 0; }
    .footer-content { padding: 40px 20px 0; }
    .footer-top { grid-template-columns: minmax(0, 1fr) 52px; gap: 36px 20px; }
    .footer-navigation { grid-column: 1 / -1; grid-row: 1; }
    .footer-nav-columns { gap: 16px; }
    .footer-nav-columns > div { gap: 16px; }
    .footer-details { grid-column: 1; grid-row: 2; gap: 28px; }
    .footer-details a, .footer-details address { font-size: 0.9375rem; }
    .footer-eye-link { grid-column: 2; grid-row: 2; width: 52px; }
    .footer-legal { margin-top: 40px; padding-top: 22px; font-size: var(--text-caption); gap: 14px; }
    .footer-brand-crop { margin-top: 36px; }
}

/* Legal documents use the same type system and quiet rules as specifications. */
.terms-main { max-width: 1440px; margin-inline: auto; padding: clamp(40px, 5vw, 72px) var(--edge) clamp(64px, 8vw, 120px); }
.terms-intro { padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--grey-200); }
.terms-intro h1 { margin: 0; font: 500 var(--text-title)/var(--line-heading) var(--font-sans); letter-spacing: var(--tracking-heading); }
.terms-intro > p:last-child { margin: 24px 0 0; color: var(--grey-600); font: 400 13px/1.5 var(--font-sans); }
.terms-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: 40px; }
.terms-contents { display: flex; flex-direction: column; gap: 14px; align-self: start; position: sticky; top: calc(var(--header-h) + 48px); }
.terms-contents a { color: var(--grey-600); font-size: 0.875rem; line-height: 1.4; text-decoration: none; }
.terms-contents a:hover { color: var(--signal); }
.terms-copy { min-width: 0; max-width: 78ch; }
.terms-section { margin: 0 0 36px; padding-bottom: 36px; border-bottom: 1px solid var(--grey-200); }
.terms-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.terms-section h2 { display: flex; align-items: baseline; gap: 16px; margin: 0 0 20px; font: 500 var(--text-card)/1.25 var(--font-sans); letter-spacing: -.02em; }
.terms-section h2 span { flex: none; font: 400 var(--text-caption)/1.5 var(--font-sans); color: var(--grey-600); letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.terms-section p, .terms-section address { margin: 0 0 16px; font: 400 var(--text-body)/1.6 var(--font-sans); }
.terms-section p:last-child { margin-bottom: 0; }
.terms-section a { color: inherit; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .terms-layout { grid-template-columns: 1fr; gap: 40px; }
    .terms-contents { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
}
@media (max-width: 480px) { .terms-contents { grid-template-columns: 1fr; } }

/* One consistent horizontal arrow for links and actions. */
.site-arrow { display: inline-block; width: 1em; height: 1em; min-width: 16px; min-height: 16px; vertical-align: -.125em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Shared release tag for Stereo imagery in navigation, carousel and product page. */
.product-release-tag {
    position: absolute;
    top: clamp(16px, 2vw, 24px);
    left: clamp(16px, 2vw, 24px);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--brand-burgundy);
    color: var(--brand-paper);
    font: 500 var(--text-label)/1.4 var(--font-sans);
    white-space: nowrap;
    pointer-events: none;
}

/* Restrained coral details, with dark text on light surfaces for contrast. */
::selection { background: var(--brand-coral); color: var(--brand-burgundy); }
.nav-drop-link:hover, .nav-drop-link:focus-visible { color: var(--brand-burgundy); text-decoration: underline; text-decoration-color: var(--brand-coral); text-underline-offset: 6px; }
.blog-link, a.inline-link, .tile-link { color: var(--ink); text-decoration-color: var(--brand-coral); }
.blog-link svg, .home-careers-all .site-arrow, .home-career-arrow { color: var(--brand-coral); }
.terms-contents a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand-coral); text-underline-offset: 4px; }
.product-cta { background: var(--brand-coral); border-color: var(--brand-coral); color: var(--brand-burgundy); }
.product-cta:hover { background: var(--brand-cream); color: var(--brand-burgundy); opacity: 1; }
.gallery-thumbnail.is-active::after { border-color: var(--brand-coral); }
.gallery-thumbnail.is-active::before { background: var(--brand-coral); }
.home-mission .section-title { color: var(--brand-coral); }
.home-mission p + p, .band-lead, .band-dark .section-title, .code-block .c { color: var(--brand-mauve); }
.stack-art .trained-check, .stack-art .flow-particle { stroke: var(--brand-coral); }
.ashby-tab.is-active { border-color: var(--brand-coral); color: var(--brand-cream); }
.ashby-job:hover h3, .ashby-job:hover > .ashby-icon, .ashby-back:hover { color: var(--brand-coral); }
.ashby-submit { background: var(--brand-coral); color: var(--brand-burgundy); border-color: var(--brand-coral); }
.ashby-apply-cta { border-color: var(--brand-mauve); color: var(--brand-cream); }
.ashby-apply-cta:hover { border-color: var(--brand-coral); color: var(--brand-coral); }

/* Crawlable reference pages reuse the site's approved type and color system. */
.skip-link {
    position: fixed;
    inset: 8px auto auto 8px;
    transform: translateY(-180%);
    z-index: 1000;
    background: var(--paper);
    color: var(--brand-burgundy);
    padding: 12px 18px;
    border-radius: var(--radius-control);
}
.skip-link:focus { transform: none; outline: 2px solid var(--brand-coral); }
.guide-page { padding-top: 0; }
.guide-main { max-width: 880px; margin: 0 auto; padding: 150px var(--edge) 96px; }
.guide-main h1 { margin-block: 20px 24px; font-weight: 500; font-size: var(--text-title); line-height: 1.1; letter-spacing: var(--tracking-heading); }
.guide-intro { font-size: var(--text-lead); margin-block: 24px 48px; }
.guide-main section { padding-block: 32px; border-top: 1px solid rgba(43, 28, 33, .16); scroll-margin-top: 100px; }
.guide-main h2 { font-weight: 500; font-size: var(--text-card); line-height: 1.3; }
.guide-main p { line-height: var(--line-body); margin-block: 16px; }
.guide-main .guide-answer { font-size: var(--text-lead); }
.guide-main a, .product-guide-link a { text-decoration: underline; text-underline-offset: 4px; }
.product-guide-link { margin-block: 20px 0; font-size: var(--text-label); }
@media (max-width: 600px) { .guide-main { padding-top: 112px; } }
