/* =========================================================
   FOREPINE — shared design system (v4)
   Monochrome, taken from the logo: ink on paper, with a warm
   off-white for tinted bands. Outfit carries every heading and
   paragraph; JetBrains Mono is only for small labels (eyebrows,
   numbers, statuses). The swept bands in the hero panel are the
   one loud moment; everything else moves briefly and quietly.
========================================================= */

:root {
    --ink: #0b0b0c;
    --paper: #ffffff;
    --mist: #f5f5f2;
    --mist-2: #ebebe6;
    --graphite: #4d4f53;
    --smoke: #85888b;
    --rule: #e1e1dc;
    --on-ink: #ffffff;
    --on-ink-soft: rgba(255, 255, 255, 0.66);
    --on-ink-rule: rgba(255, 255, 255, 0.18);

    --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --fs-xs: 0.75rem;     /* 12 */
    --fs-sm: 0.9375rem;   /* 15 */
    --fs-base: 1.0625rem; /* 17 */
    --fs-md: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
    --fs-lg: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
    --fs-xl: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem);
    --fs-hero: clamp(2.6rem, 1.5rem + 4.4vw, 5.25rem);

    --container: 1240px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section: clamp(4.5rem, 9vw, 8rem);
    --header-h: 72px;
    --radius: clamp(18px, 2.2vw, 28px);
    --radius-sm: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    color-scheme: light;
    interpolate-size: allow-keywords;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}
html.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.6;
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
strong { font-weight: 600; color: inherit; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
::selection { background: var(--ink); color: var(--paper); }

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--ink);
    color: var(--paper);
    padding: 0.6rem 1rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: currentColor; }
.mark { width: auto; }

/* Small mono label above headings */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--graphite);
}

.pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink);
    flex-shrink: 0;
}

/* ---------- Buttons & links ---------- */
.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0 1.6rem;
    font-size: var(--fs-base);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    transition: color 0.35s var(--ease), transform 0.2s var(--ease);
    white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }

/* Fill wipes up from the bottom on hover */
.btn::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    transform: translateY(101%);
    transition: transform 0.4s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid::before { background: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 1.2rem; font-size: var(--fs-sm); }

@media (hover: hover) {
    .btn:hover::before { transform: translateY(0); }
    .btn-solid:hover { color: var(--ink); }
    .btn-line:hover { color: var(--paper); }
    .btn:hover .icon { transform: translateX(3px); }
}

.text-link {
    font-weight: 500;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
    padding-bottom: 2px;
    transition: background-size 0.35s var(--ease);
}
.text-link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s, transform 0.45s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--rule); }
.header.is-hidden { transform: translateY(-100%); }

@supports (animation-timeline: scroll()) {
    .header::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 2px;
        background: var(--ink);
        transform-origin: 0 50%;
        transform: scaleX(0);
        animation: progress linear both;
        animation-timeline: scroll(root);
    }
    @keyframes progress { to { transform: scaleX(1); } }
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.brand .mark { height: 30px; transition: transform 0.5s var(--ease); }
@media (hover: hover) {
    .brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: var(--mist);
}

.nav-link {
    display: block;
    font-size: var(--fs-sm);
    color: var(--graphite);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.25s, background-color 0.25s;
}
.nav-link:hover { color: var(--ink); background: var(--paper); }
.nav-link[aria-current] { color: var(--paper); background: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--ink);
    transition: background-color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover { background: var(--mist-2); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn .icon { width: 20px; height: 20px; }

.menu-toggle { display: none; position: relative; background: var(--mist); }
.menu-toggle .icon {
    grid-area: 1 / 1;
    transition: opacity 0.25s, transform 0.4s var(--ease);
}
.menu-toggle .i-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.menu-toggle[aria-expanded="true"] .i-close { opacity: 1; transform: none; }
.menu-toggle[aria-expanded="true"] .i-menu { opacity: 0; transform: rotate(90deg) scale(0.6); }

.mobile-menu {
    /* The header's backdrop-filter makes it the containing block, so the
       menu is placed under it and sized to the viewport explicitly */
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 0.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease), opacity 0.3s, visibility 0s 0.5s;
}
.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.5s var(--ease), opacity 0.2s, visibility 0s;
}
.mobile-menu > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s, transform 0.5s var(--ease);
}
.mobile-menu.is-open > * { opacity: 1; transform: none; }
.mobile-menu.is-open > :nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.is-open > :nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.is-open > :nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.is-open > :nth-child(5) { transition-delay: 0.16s; }
.mobile-menu.is-open > :nth-child(6) { transition-delay: 0.2s; }

.mobile-menu a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
    font-size: clamp(1.5rem, 7vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
}
.mobile-menu a:not(.btn)::after {
    content: '→';
    font-size: 0.7em;
    color: var(--smoke);
}
.mobile-menu .btn { width: 100%; margin-top: 1.75rem; min-height: 56px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero-title {
    margin-top: 1.5rem;
    font-size: var(--fs-hero);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

/* Each word rises out of a mask on load. The mask clips only the bottom
   edge, so the negative tracking never shaves the sides of a letter. */
.hero-title .w {
    display: inline-block;
    vertical-align: top;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
    clip-path: inset(-0.5em -0.5em 0 -0.5em);
}
.hero-title .w > span { display: inline-block; }

.hero-lede {
    margin-top: 1.75rem;
    font-size: var(--fs-md);
    line-height: 1.55;
    color: var(--graphite);
    max-width: 32em;
}

.hero-actions {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* The brand panel: an ink card with the swept bands in paper */
.hero-art {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--on-ink);
    overflow: hidden;
    isolation: isolate;
}
.hero-bands {
    position: absolute;
    z-index: -1;
    width: 122%;
    right: -14%;
    bottom: -10%;
    color: var(--on-ink);
    pointer-events: none;
}
.hero-bands path { fill: currentColor; }
.hero-bands .band:nth-child(6) { display: none; }

.hero-art-meta, .hero-art-foot {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1rem, 2.4vw, 1.5rem);
    font-family: var(--mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.hero-art-meta { top: 0; color: var(--on-ink-soft); }
.hero-art-foot {
    bottom: 0;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.hero-art-foot span {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(11, 11, 12, 0.72);
    border: 1px solid var(--on-ink-rule);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-art-foot strong { font-weight: 500; color: var(--on-ink); }

/* Product index under the hero */
.hero-index {
    margin-top: clamp(3rem, 7vw, 5rem);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1.5px solid var(--ink);
}

.hero-index a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.25rem 0;
    text-decoration: none;
    border-right: 1px solid var(--rule);
    transition: background-color 0.3s;
}
.hero-index li + li a { padding-left: 1.25rem; }
.hero-index li:last-child a { border-right: 0; }
.hero-index img {
    width: 48px;
    height: 48px;
    padding: 6px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--paper);
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.5s var(--ease);
}
.hero-index a > span { display: block; min-width: 0; }
.hero-index strong { display: block; font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.hero-index .status { margin-top: 0.2rem; }

@media (hover: hover) {
    .hero-index a:hover { background: var(--mist); }
    .hero-index a:hover img { transform: rotate(-6deg) scale(1.06); }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-title .w > span {
        transform: translateY(110%);
        animation: rise-in 0.9s var(--ease) forwards;
        animation-delay: calc(0.1s + var(--i, 0) * 0.05s);
    }
    .hero-copy .eyebrow, .hero-lede, .hero-actions, .hero-index, .hero-art, .page-head > * {
        opacity: 0;
        animation: fade-up 0.8s var(--ease) forwards;
    }
    .hero-copy .eyebrow { animation-delay: 0.05s; }
    .hero-art { animation-delay: 0.15s; }
    .hero-lede { animation-delay: 0.55s; }
    .hero-actions { animation-delay: 0.65s; }
    .hero-index { animation-delay: 0.8s; }
    .page-head > :nth-child(1) { animation-delay: 0.05s; }
    .page-head > :nth-child(2) { animation-delay: 0.15s; }

    .hero-bands .band {
        clip-path: inset(0 100% 0 0);
        animation: sweep 1.4s var(--ease) forwards;
        animation-delay: calc(0.35s + var(--b, 0) * 0.08s);
    }
    .hero-bands .band:nth-child(2) { --b: 1; }
    .hero-bands .band:nth-child(3) { --b: 2; }
    .hero-bands .band:nth-child(4) { --b: 3; }
    .hero-bands .band:nth-child(5) { --b: 4; }

    .pulse::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: inherit;
        animation: pulse 2.4s var(--ease) infinite;
    }
}

@keyframes rise-in { to { transform: translateY(0); } }
@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
@keyframes sweep { to { clip-path: inset(0 0 0 0); } }
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    80%, 100% { transform: scale(2.8); opacity: 0; }
}

/* ---------- Scroll reveal (enabled by site.js) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .has-reveal .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition:
            opacity 0.8s var(--ease) calc(var(--d, 0) * 0.08s),
            transform 0.9s var(--ease) calc(var(--d, 0) * 0.08s),
            border-color 0.35s, box-shadow 0.5s var(--ease), translate 0.5s var(--ease);
    }
    .has-reveal .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section.tint { background: var(--mist); }
.section.ink { background: var(--ink); color: var(--on-ink); }
.section.ink .eyebrow, .section.ink .section-intro { color: var(--on-ink-soft); }
.section.ink :focus-visible { outline-color: var(--on-ink); }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.25rem 4rem;
    align-items: end;
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0.25rem; }

.section-title {
    font-size: var(--fs-xl);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.section-intro {
    font-size: var(--fs-md);
    line-height: 1.55;
    color: var(--graphite);
    max-width: 30em;
}

/* ---------- Status pill ---------- */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--graphite);
    line-height: 1.3;
}
.status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink);
    flex-shrink: 0;
}
.status.is-growing::before { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.status.is-next::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--smoke); }

@media (prefers-reduced-motion: no-preference) {
    .status:not(.is-next)::before { animation: ping 2.4s var(--ease) infinite; }
}
@keyframes ping {
    0% { outline: 0 solid rgba(0, 0, 0, 0.25); }
    70%, 100% { outline: 7px solid rgba(0, 0, 0, 0); }
}

/* ---------- Products ---------- */
.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.product {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    transition: border-color 0.35s, box-shadow 0.5s var(--ease), translate 0.5s var(--ease);
}

@media (hover: hover) {
    .product:not(.is-upcoming):hover {
        border-color: var(--ink);
        translate: 0 -4px;
        box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.35);
    }
    .product:hover .product-logo { transform: rotate(-6deg) scale(1.05); }
}

.product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.product-top .status {
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    text-align: right;
}

.product-logo {
    width: 64px;
    height: 64px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--rule);
    border-radius: 16px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.6s var(--ease);
}

.product-name {
    margin-top: 1.75rem;
    font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.product-summary {
    margin-top: 0.75rem;
    font-size: var(--fs-md);
    line-height: 1.5;
    color: var(--graphite);
    max-width: 26em;
}

.features { margin-top: 2rem; border-top: 1px solid var(--rule); }
.feature {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
    gap: 0.35rem 1.5rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--rule);
}
.feature h4 { font-size: var(--fs-base); font-weight: 600; line-height: 1.35; }
.feature p { font-size: var(--fs-sm); color: var(--graphite); line-height: 1.55; }

@container (max-width: 460px) {
    .feature { grid-template-columns: 1fr; }
}

.product-cta { margin-top: auto; padding-top: 2rem; }

.product.is-upcoming {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    border: 1.5px dashed var(--smoke);
}
.product.is-upcoming > div { flex: 1; min-width: 0; }
.product.is-upcoming .product-name { margin-top: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.product.is-upcoming .product-summary { margin-top: 0.35rem; font-size: var(--fs-base); max-width: 40em; }
.product.is-upcoming .status { flex-shrink: 0; }

.roadmap-note {
    margin-top: clamp(1.5rem, 3vw, 2rem);
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
    background: var(--paper);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
}
.roadmap-note p { font-size: var(--fs-md); max-width: 32em; }

/* ---------- People ---------- */
.people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.person {
    padding: clamp(1.25rem, 3vw, 2.25rem);
    background: var(--mist);
    border-radius: var(--radius);
}

.person-head {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--ink);
}

.person-photo-wrap {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--rule);
}

.person-photo {
    width: 140px;
    height: 175px;
    object-fit: cover;
    object-position: top center;
    transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
}

@media (hover: hover) {
    .person-photo { filter: grayscale(1) contrast(1.05); }
    .person:hover .person-photo { filter: none; transform: scale(1.04); }
}

.person-head > div:last-child { min-width: 0; }
.person-name { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.person-role { margin-top: 0.3rem; font-size: var(--fs-sm); color: var(--graphite); }

.socials { display: flex; gap: 0.15rem; margin-top: 0.75rem; margin-left: -0.7rem; }
.socials .icon-btn .icon { width: 18px; height: 18px; }

.person-bio { margin-top: 1.5rem; color: var(--graphite); }
.person-bio p + p { margin-top: 1rem; }
.person-bio strong { color: var(--ink); }

.team-row {
    margin-top: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 0.75rem 4rem;
    align-items: center;
}
.team-row h3 { font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; }
.team-row h3 span { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--graphite); letter-spacing: 0; }
.team-row p { color: var(--graphite); max-width: 36em; }

/* ---------- Principles ---------- */
.principles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}

.principle { position: relative; padding-top: 1.5rem; }
.principle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--on-ink-rule);
    transform-origin: 0 50%;
}
.principle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2.5rem;
    height: 2px;
    background: var(--on-ink);
}
@media (prefers-reduced-motion: no-preference) {
    .has-reveal .principle.reveal::before {
        transform: scaleX(0);
        transition: transform 1.1s var(--ease-in-out);
        transition-delay: calc(var(--d, 0) * 0.08s + 0.1s);
    }
    .has-reveal .principle.reveal.is-in::before { transform: none; }
}

.principle-num {
    display: block;
    font-family: var(--mono);
    font-size: var(--fs-xs);
    color: var(--on-ink-soft);
    letter-spacing: 0.06em;
}
.principle h3 {
    margin-top: 2.5rem;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.15;
}
.principle p { margin-top: 0.75rem; color: var(--on-ink-soft); }

/* ---------- FAQ ---------- */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 2.5rem clamp(2rem, 6vw, 6rem);
    align-items: start;
}
.faq-head .section-title { margin-top: 1.25rem; }
.faq-aside { margin-top: 1.25rem; color: var(--graphite); max-width: 22em; }
.faq-aside a { color: var(--ink); overflow-wrap: anywhere; }

@media (min-width: 901px) {
    .faq-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.faq { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.5rem;
    font-size: var(--fs-md);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
    cursor: pointer;
    list-style: none;
    transition: opacity 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
@media (hover: hover) {
    .faq summary:hover { opacity: 0.7; }
}

.faq summary::after {
    content: '';
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background:
        linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
    transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.faq details[open] summary::after {
    transform: rotate(135deg);
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

@media (prefers-reduced-motion: no-preference) {
    .faq details::details-content {
        height: 0;
        overflow: clip;
        transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete;
    }
    .faq details[open]::details-content { height: auto; }
}

.faq .answer { padding-bottom: 1.75rem; color: var(--graphite); max-width: 42em; }
.faq .answer a { color: var(--ink); }

/* ---------- Contact (inverted card) ---------- */
.contact { padding-bottom: clamp(3rem, 6vw, 5rem); }

.contact-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(2rem, 6vw, 5rem);
    background: var(--ink);
    color: var(--on-ink);
    border-radius: var(--radius);
}
.contact-card .eyebrow { color: var(--on-ink-soft); }
.contact-card .section-title { margin-top: 1.25rem; }

.contact-mark {
    position: absolute;
    z-index: -1;
    right: clamp(-4rem, -4vw, -1rem);
    top: 50%;
    width: clamp(180px, 30vw, 380px);
    height: auto;
    transform: translateY(-50%) rotate(-8deg);
    filter: invert(1);
    opacity: 0.08;
    pointer-events: none;
}

.contact-lede {
    margin-top: 1.25rem;
    font-size: var(--fs-md);
    line-height: 1.55;
    max-width: 30em;
    color: var(--on-ink-soft);
}

.contact-email {
    display: inline-block;
    max-width: 100%;
    margin-top: clamp(2rem, 5vw, 3.5rem);
    font-size: clamp(1.5rem, 0.6rem + 5vw, 4.75rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-decoration: none;
    background:
        linear-gradient(var(--on-ink), var(--on-ink)) 0 100% / 0 0.05em no-repeat,
        linear-gradient(var(--on-ink-rule), var(--on-ink-rule)) 0 100% / 100% 0.05em no-repeat;
    padding-bottom: 0.1em;
    transition: background-size 0.6s var(--ease);
    overflow-wrap: anywhere;
}
.contact-email:hover, .contact-email:focus-visible { background-size: 100% 0.05em, 100% 0.05em; }
.contact-card :focus-visible { outline-color: var(--on-ink); }

.contact-meta {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2.5rem;
    font-family: var(--mono);
    font-size: var(--fs-sm);
}
.contact-meta a { text-decoration: none; color: var(--on-ink-soft); transition: color 0.2s; }
.contact-meta a:hover { color: var(--on-ink); }
.contact-meta span { color: var(--on-ink-soft); }

/* ---------- Footer ---------- */
.footer { padding-block: 3rem calc(2.5rem + env(safe-area-inset-bottom)); font-size: var(--fs-sm); }

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand .brand { font-size: 1.25rem; }
.footer-brand .brand .mark { height: 28px; }
.footer-brand p { margin-top: 1rem; color: var(--graphite); max-width: 26em; }

.footer-col h2 {
    font-family: var(--mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--smoke);
    margin-bottom: 1rem;
}
.footer-col li + li { margin-top: 0.6rem; }
.footer-col span { color: var(--graphite); }
.footer-col a {
    color: var(--graphite);
    text-decoration: none;
    overflow-wrap: anywhere;
    background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat;
    transition: color 0.2s, background-size 0.35s var(--ease);
}
.footer-col a:hover { color: var(--ink); background-size: 100% 1px; }

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--smoke);
}
.footer-bottom .socials { margin: 0 -0.7rem 0 0; }
.footer-bottom .icon-btn { color: var(--graphite); }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 5vw, 3.5rem); }

.page-title {
    font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
    max-width: 13em;
    text-wrap: balance;
}

.page-lede { margin-top: 1.25rem; font-size: var(--fs-md); color: var(--graphite); max-width: 34em; line-height: 1.55; }

/* Roadmap */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.filter {
    min-height: 42px;
    padding: 0 1.15rem;
    font-size: var(--fs-sm);
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: var(--graphite);
    transition: border-color 0.2s, background-color 0.25s, color 0.25s, transform 0.2s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter:active { transform: scale(0.95); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.timeline {
    position: relative;
    margin-bottom: var(--section);
    padding-left: clamp(1.75rem, 4vw, 2.5rem);
}
.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 1.5px;
    background: var(--rule);
}

.entry {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: 0.5rem 4rem;
    padding-block: 1.75rem;
}
.entry + .entry { border-top: 1px solid var(--rule); }
.entry[hidden] { display: none; }
.entry::before {
    content: '';
    position: absolute;
    left: calc(-1 * clamp(1.75rem, 4vw, 2.5rem));
    top: 2.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: 0 0 0 5px var(--paper);
}
.entry.is-planned::before { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 5px var(--paper); }

@media (prefers-reduced-motion: no-preference) {
    .entry { animation: fade-up 0.6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 0.06s); }
}

.entry-when { font-family: var(--mono); font-size: var(--fs-sm); font-weight: 500; }
.entry-when span { display: block; font-family: var(--font); font-size: var(--fs-sm); font-weight: 400; color: var(--graphite); }
.entry.is-planned .entry-when::after {
    content: 'Planned';
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.15rem 0.6rem;
    font-size: var(--fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid var(--ink);
    border-radius: 999px;
}

.entry h2 { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.entry p { margin-top: 0.6rem; color: var(--graphite); max-width: 40em; }

/* Legal */
.legal { padding-bottom: var(--section); }
.legal-body { max-width: 44rem; }
.legal-body > p:first-child { font-size: var(--fs-md); line-height: 1.55; }
.legal-body section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.legal-body h2 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; }
.legal-body p, .legal-body li { color: var(--graphite); }
.legal-body strong { color: var(--ink); }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p { margin-top: 1rem; }
.legal-body ul { padding-left: 1.25rem; list-style: disc; }
.legal-body li + li { margin-top: 0.5rem; }
.legal-body li::marker { color: var(--smoke); }
.legal-body a { color: var(--ink); overflow-wrap: anywhere; }
.legal-meta { margin-top: 1rem; font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--smoke); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .nav-link { padding-inline: 0.75rem; }
    .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { aspect-ratio: 16 / 10; max-height: 420px; }
    .hero-bands { width: min(78%, 420px); right: -4%; bottom: -10%; }
    .section-head, .team-row, .faq-layout { grid-template-columns: 1fr; }
    .section-head { align-items: start; }
    .products, .people { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-menu, .nav-actions .btn { display: none; }
    .menu-toggle { display: inline-grid; }
}

@media (max-width: 720px) {
    .hero-index { grid-template-columns: 1fr; }
    .hero-index a, .hero-index li + li a { padding: 1rem 0; border-right: 0; }
    .hero-index li + li { border-top: 1px solid var(--rule); }
    .principles { grid-template-columns: 1fr; }
    .principle h3 { margin-top: 1.25rem; }
    .product.is-upcoming { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    :root { --header-h: 64px; }
    .brand { font-size: 1.25rem; }
    .brand .mark { height: 26px; }
    .hero-title { margin-top: 1.25rem; }
    .hero-art { aspect-ratio: 4 / 3; }
    .hero-bands { width: 82%; }
    .hero-actions .btn { flex: 1 1 100%; }
    .product-top { flex-wrap: wrap; }
    .product-cta .btn, .roadmap-note .btn { width: 100%; }
    .person-head { gap: 1rem; }
    .person-photo { width: 104px; height: 130px; }
    .entry { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
    .footer-bottom .socials { margin: 0 0 0 -0.7rem; }
}

@media (max-width: 380px) {
    .person-head { flex-direction: column; align-items: flex-start; }
    .hero-art-foot span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}
