/*
 * comuze.app — one stylesheet. Editorial and always dark: giant stacked type,
 * small capital labels, hairline rules, numbered rows. Colours are the app's
 * (constants/theme.ts): teal #26C0B0, ink #344B47, sage #96B1AC, sky #7BAEF7;
 * the background is ink pushed toward black, lit by the teal glow, never a
 * neutral grey.
 */

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/assets/fonts/PlusJakartaSans-400.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/assets/fonts/PlusJakartaSans-600.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/assets/fonts/PlusJakartaSans-800.ttf') format('truetype');
    font-weight: 800;
    font-display: swap;
}

:root {
    --teal: #26c0b0;
    --sky: #7baef7;
    --sage: #96b1ac;
    --ink: #344b47;

    --bg: #060b0a;
    --bg-raised: #0c1614;
    --text: #e8f0ee;
    --text-soft: #b8cbc7;
    --muted: #8aa29d;
    --line: rgba(232, 240, 238, 0.12);
    --line-strong: rgba(232, 240, 238, 0.28);

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --gutter: clamp(16px, 3.6vw, 48px);
    --max: 1600px;
    --header: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header) + 24px);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-soft);
    font: 400 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition:
        color 200ms ease,
        text-decoration-color 200ms ease;
}

a:hover {
    color: var(--teal);
    text-decoration-color: var(--teal);
}

::selection {
    background: var(--teal);
    color: var(--bg);
}

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

h1,
h2,
h3 {
    color: var(--text);
    font-weight: 800;
    margin: 0;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    background: var(--teal);
    color: var(--bg);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    z-index: 30;
}

.skip:focus {
    top: 12px;
}

.icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

/* The monogram: a mask over currentColor. */
.mark {
    display: inline-block;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url('/assets/mark.png') center / contain no-repeat;
    mask: url('/assets/mark.png') center / contain no-repeat;
    flex: none;
}

/* Film grain over everything: the poster feel, never flat. */
.grain {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    background: url('/assets/grain.svg');
    opacity: 0.07;
    mix-blend-mode: overlay;
}

/* ── Type ───────────────────────────────────────────────── */

.label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.display {
    font-size: clamp(52px, 11.2vw, 196px);
    line-height: 0.9;
    letter-spacing: -0.055em;
    font-weight: 800;
    color: var(--text);
}

.display em,
.display-md em {
    font-style: normal;
    color: var(--teal);
    margin-left: -0.07em;
}

.display-md {
    font-size: clamp(40px, 6.4vw, 112px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.title {
    font-size: clamp(30px, 4.2vw, 68px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.lead {
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.5;
    color: var(--text-soft);
    margin: 0;
}

.big-text {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 24px;
}

.muted {
    color: var(--muted);
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: var(--header);
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid var(--line);
}

.header-row {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.brand {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.brand .mark {
    font-size: 30px;
    color: var(--teal);
}

.header-status {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
}

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 0 rgba(38, 192, 176, 0.6);
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(38, 192, 176, 0.55);
    }
    70%,
    100% {
        box-shadow: 0 0 0 10px rgba(38, 192, 176, 0);
    }
}

.header-nav {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
}

.header-nav > a:not(.pill) {
    color: var(--text-soft);
    text-decoration: none;
}

.header-nav > a:not(.pill):hover,
.header-nav > a[aria-current='page'] {
    color: var(--teal);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.lang-switch span[aria-current] {
    color: var(--text);
}

.lang-switch a {
    color: var(--muted);
    text-decoration: none;
}

.lang-switch .slash {
    color: var(--line-strong);
}

/* ── Pills ──────────────────────────────────────────────── */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 250ms var(--ease),
        border-color 250ms var(--ease),
        color 250ms var(--ease);
}

.pill .icon {
    transition: transform 300ms var(--ease);
}

.pill:hover {
    color: var(--bg);
    background: var(--teal);
    border-color: var(--teal);
}

.pill:hover .icon {
    transform: rotate(45deg);
}

.pill-solid {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    padding: 14px 24px;
    font-size: 16px;
}

/* ── Glow ───────────────────────────────────────────────── */

.glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}

.b1 {
    width: 62vw;
    height: 62vw;
    max-width: 980px;
    max-height: 980px;
    left: -12vw;
    top: -18vw;
    background: radial-gradient(circle, rgba(38, 192, 176, 0.55), rgba(38, 192, 176, 0) 68%);
    animation: drift1 22s ease-in-out infinite alternate;
}

.b2 {
    width: 48vw;
    height: 48vw;
    max-width: 760px;
    max-height: 760px;
    right: -10vw;
    top: 22%;
    background: radial-gradient(circle, rgba(123, 174, 247, 0.32), rgba(123, 174, 247, 0) 68%);
    animation: drift2 26s ease-in-out infinite alternate;
}

.b3 {
    width: 36vw;
    height: 36vw;
    left: 30%;
    bottom: -16vw;
    background: radial-gradient(circle, rgba(52, 75, 71, 0.9), rgba(52, 75, 71, 0) 70%);
    animation: drift1 30s ease-in-out infinite alternate-reverse;
}

.glow-soft .blob {
    opacity: 0.55;
}

@keyframes drift1 {
    to {
        transform: translate3d(14vw, 10vw, 0) scale(1.15);
    }
}

@keyframes drift2 {
    to {
        transform: translate3d(-12vw, -8vw, 0) scale(0.9);
    }
}

/* ── Home: hero ─────────────────────────────────────────── */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(100svh, 1080px);
    display: flex;
    padding: calc(var(--header) + 28px) 0 40px;
}

/* The crowd photo, faded into the page on the left (under the headline) and
   at the bottom, so the text always sits on near-black. */
.hero-photo {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('/assets/photos/crowd.webp') 70% center / cover no-repeat;
    opacity: 0.75;
    animation: settle 2.4s var(--ease) both;
}

.hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--bg) 0%, rgba(6, 11, 10, 0.75) 38%, rgba(6, 11, 10, 0) 72%),
        linear-gradient(0deg, var(--bg) 0%, rgba(6, 11, 10, 0) 40%),
        linear-gradient(180deg, rgba(6, 11, 10, 0.7) 0%, rgba(6, 11, 10, 0) 25%);
}

@keyframes settle {
    from {
        opacity: 0;
        transform: scale(1.06);
    }
}

.hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
}

.hero .display {
    margin: auto 0 0;
    font-size: clamp(46px, 9.2vw, 160px);
}

.line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
    margin-bottom: -0.06em;
}

.line > span {
    display: inline-block;
    animation: rise 1.1s var(--ease) both;
    animation-delay: calc(120ms + var(--d) * 110ms);
}

@keyframes rise {
    from {
        transform: translateY(105%);
    }
}

.hero-bottom {
    display: grid;
    grid-template-columns: 1fr minmax(0, 520px);
    align-items: end;
    gap: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    animation: fade 1s var(--ease) 600ms both;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.scroll-cue {
    width: 52px;
    height: 52px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text);
    font-size: 18px;
}

.scroll-cue .icon {
    animation: nudge 2s ease-in-out infinite;
}

@keyframes nudge {
    50% {
        transform: translateY(4px);
    }
}

/* ── Marquee ────────────────────────────────────────────── */

.marquee {
    border-block: 1px solid var(--line);
    overflow: hidden;
    padding: 22px 0;
    background: var(--bg-raised);
}

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

.marquee-track > div {
    display: flex;
    align-items: center;
}

.marquee span:not(.mark) {
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text);
    white-space: nowrap;
}

.marquee span.outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--sage);
}

.mark-sep {
    font-size: clamp(28px, 3.4vw, 48px);
    color: var(--teal);
    margin: 0 clamp(20px, 3vw, 44px);
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ── Sections ───────────────────────────────────────────── */

.section {
    position: relative;
    isolation: isolate;
    padding: clamp(80px, 12vw, 180px) 0;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: 24px;
}

.split > .label {
    padding-top: 0.5em;
}

.section-head {
    margin-bottom: clamp(48px, 6vw, 96px);
}

.section-head .title {
    max-width: 16ch;
}

/* Numbered rows */

.rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
}

.row {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 6fr) minmax(0, 5fr);
    grid-template-areas: 'icon title body';
    align-items: center;
    gap: 32px;
    padding: clamp(24px, 3vw, 40px) 0;
    border-top: 1px solid var(--line);
    isolation: isolate;
}

.row::before {
    content: '';
    position: absolute;
    inset: 0 calc(var(--gutter) * -1);
    z-index: -1;
    background: linear-gradient(90deg, rgba(38, 192, 176, 0.1), rgba(38, 192, 176, 0));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 600ms var(--ease);
}

.row:hover::before {
    transform: scaleX(1);
}

.row-num {
    font-size: 14px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.row-title {
    grid-area: title;
    font-size: clamp(28px, 3.4vw, 54px);
    line-height: 1;
    letter-spacing: -0.045em;
    transition:
        transform 500ms var(--ease),
        color 300ms ease;
}

.row:hover .row-title {
    transform: translateX(12px);
    color: var(--teal);
}

.row-body {
    grid-area: body;
    margin: 0;
    color: var(--text-soft);
    max-width: 42ch;
}

.row-icon {
    grid-area: icon;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-size: 24px;
    color: var(--teal);
    transition:
        background-color 300ms ease,
        border-color 300ms ease,
        color 300ms ease;
}

.row-icon .icon {
    stroke-width: 1.75;
}

.row:hover .row-icon {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--bg);
}

/* Gallery: a small photo set high on the left, overlapping a large one set
   lower on the right; each caption sits in its photo's bottom-left corner. */

.gallery {
    padding-bottom: clamp(80px, 12vw, 180px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.shot {
    position: relative;
    margin: 0;
}

.shot-frame {
    overflow: hidden;
    background: var(--bg-raised);
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The photo's edge, drawn above the image and the fade so a dark photo never
   melts into the page. */
.shot-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 1px solid rgba(232, 240, 238, 0.16);
    pointer-events: none;
}

/* A dark fade at the bottom keeps the caption readable on any photo. */
.shot-frame::after {
    content: '';
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(0deg, rgba(6, 11, 10, 0.6), rgba(6, 11, 10, 0));
    pointer-events: none;
}

.shot figcaption {
    position: absolute;
    left: clamp(16px, 2vw, 28px);
    bottom: clamp(14px, 1.8vw, 24px);
    z-index: 2;
    color: var(--text);
}

.shot-side {
    grid-column: 1 / span 7;
    grid-row: 1;
    z-index: 2;
}

.shot-side .shot-frame {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

/* As tall as a 4-column 4:5 portrait, but cropped wider, so it runs over the
   large photo's left edge. */
.shot-side .shot-frame {
    aspect-ratio: 10 / 7;
}

.shot-frame {
    position: relative;
}

.shot-main {
    grid-column: 6 / span 7;
    grid-row: 1;
    margin-top: clamp(80px, 14vw, 240px);
}

.shot-main .shot-frame {
    aspect-ratio: 4 / 3;
}

/* Crop from the left edge, so the raised hand clears the photo on top. */
.shot-main img {
    object-position: 0% center;
}

@supports (animation-timeline: view()) {
    .shot img {
        animation: zoom-out linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 60%;
    }

    @keyframes zoom-out {
        from {
            transform: scale(1.15);
        }
    }
}

/* The feature list runs straight into the photos. */
#features {
    padding-bottom: clamp(48px, 6vw, 96px);
}

/* Manifesto */

.manifesto {
    overflow: hidden;
    border-top: 1px solid var(--line);
}

.manifesto .display-md {
    max-width: 15ch;
}

.manifesto-body {
    margin: clamp(32px, 4vw, 56px) 0 0 auto;
    max-width: 46ch;
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.5;
    color: var(--text-soft);
}

/* Beta */

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

.beta-note {
    margin: 0;
    font-size: clamp(18px, 1.6vw, 22px);
    color: var(--text-soft);
    max-width: 40ch;
}

.mega-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.2em;
    margin: clamp(40px, 6vw, 88px) 0;
    padding-bottom: 0.12em;
    border-bottom: 1px solid var(--line-strong);
    font-size: clamp(48px, 10vw, 176px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.055em;
    color: var(--text);
    text-decoration: none;
    position: relative;
}

.mega-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 700ms var(--ease);
}

.mega-link:hover::after {
    transform: scaleX(1);
}

.mega-arrow {
    stroke-width: 1.4;
    transition: transform 500ms var(--ease);
}

.mega-link:hover .mega-arrow {
    transform: rotate(45deg);
}

.beta-contact p {
    margin: 0;
    max-width: 52ch;
}

/* Scroll reveals, where the browser can drive them from the scroll alone. */
@supports (animation-timeline: view()) {
    .reveal {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 28%;
    }

    @keyframes reveal {
        from {
            opacity: 0;
            transform: translateY(40px);
        }
    }
}

/* ── Inner pages ────────────────────────────────────────── */

.page-head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--header) + clamp(56px, 9vw, 140px)) 0 clamp(48px, 6vw, 88px);
    border-bottom: 1px solid var(--line);
}

.page-head .display-md {
    margin-top: 20px;
    max-width: 18ch;
}

.page-meta {
    margin: 28px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.page-lead {
    margin-top: 28px;
    max-width: 48ch;
}

/* Legal documents */

.doc {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: 24px;
    padding-top: clamp(48px, 6vw, 88px);
    padding-bottom: clamp(80px, 10vw, 140px);
}

.toc {
    position: sticky;
    top: calc(var(--header) + 32px);
    align-self: start;
    max-height: calc(100vh - var(--header) - 64px);
    overflow: auto;
}

.toc ol {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.toc a {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-soft);
    text-decoration: none;
}

.toc a:hover {
    color: var(--teal);
}

.toc a span {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.doc-body {
    max-width: 760px;
}

.doc-section {
    padding: 40px 0;
    border-top: 1px solid var(--line);
}

.doc-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.doc-num {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--teal);
    font-variant-numeric: tabular-nums;
}

.doc-section h2 {
    font-size: clamp(26px, 2.6vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}

.doc-section p,
.block-body p {
    margin: 0 0 16px;
}

.doc-section ul,
.block-body ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.doc-section li {
    margin: 6px 0;
}

.doc-section li::marker {
    color: var(--teal);
}

.doc-footer {
    margin: 40px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}

.record {
    margin: 0 0 16px;
    border-top: 1px solid var(--line);
}

.record div {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.record dt {
    color: var(--muted);
    font-size: 14px;
}

.record dd {
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.callout {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.callout:first-child {
    border-top: 1px solid var(--line);
}

.callout p {
    margin: 0;
}

.callout-kicker {
    font-size: 14px;
    color: var(--teal);
}

.callout-title {
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 4px 0 6px !important;
}

.callout + p {
    margin-top: 20px;
}

/* Support and account deletion */

.block {
    padding: clamp(40px, 5vw, 72px) 0;
    border-bottom: 1px solid var(--line);
}

.block:last-child {
    border-bottom: 0;
    padding-bottom: clamp(80px, 10vw, 140px);
}

.block-body {
    max-width: 820px;
}

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

.faq:last-child {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    display: grid;
    grid-template-columns: 56px 1fr 24px;
    align-items: baseline;
    gap: 12px;
    padding: 24px 0;
    color: var(--text);
    font-size: clamp(18px, 1.7vw, 24px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    transition: color 200ms ease;
}

.faq summary:hover {
    color: var(--teal);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq-toggle {
    position: relative;
    width: 16px;
    height: 16px;
    align-self: center;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1.5px;
    background: currentColor;
    transition: transform 400ms var(--ease);
}

.faq-toggle::after {
    transform: rotate(90deg);
}

.faq[open] .faq-toggle::after {
    transform: rotate(0deg);
}

.faq-body {
    padding: 0 36px 24px 68px;
    max-width: 760px;
}

.faq-body p {
    margin: 0 0 12px;
}

.steps {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    border-top: 1px solid var(--line);
}

.steps li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(18px, 1.7vw, 24px);
    color: var(--text);
    letter-spacing: -0.015em;
}

.ticks {
    list-style: none;
    padding: 0 !important;
}

.ticks li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.ticks li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 1.15em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}

/* 404 */

.not-found {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 80vh;
    padding: calc(var(--header) + 80px) 0 80px;
}

.not-found-photo {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('/assets/photos/stage.webp') center 40% / cover no-repeat;
    opacity: 0.5;
}

.not-found-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--bg) 0%, rgba(6, 11, 10, 0.4) 60%, rgba(6, 11, 10, 0.2) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(6, 11, 10, 0) 50%);
}

.not-found-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.not-found .big-text {
    margin: 12px 0 24px;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--line);
    padding-top: clamp(56px, 7vw, 96px);
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) repeat(3, minmax(0, 2fr));
    gap: 40px 24px;
}

.footer-tagline {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text);
    max-width: 14ch;
}

.footer-made {
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
}

.footer-col .label {
    margin-bottom: 6px;
}

.footer-col > a {
    color: var(--text-soft);
    text-decoration: none;
}

.footer-col > a:hover,
.footer-col > a[aria-current='page'] {
    color: var(--teal);
}

.wordmark {
    margin: clamp(48px, 6vw, 96px) 0 0;
    font-size: clamp(72px, 23.5vw, 380px);
    font-weight: 800;
    line-height: 0.74;
    letter-spacing: -0.075em;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(180deg, var(--text) 10%, rgba(38, 192, 176, 0.25) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
    position: relative;
    background: var(--bg);
}

/* ── Small screens ──────────────────────────────────────── */

@media (max-width: 960px) {
    .header-status {
        display: none;
    }
    .header-row {
        grid-template-columns: auto 1fr;
    }
    .split,
    .doc {
        grid-template-columns: 1fr;
    }
    .split > .label {
        padding-top: 0;
    }
    .toc {
        position: static;
        max-height: none;
        padding-bottom: 32px;
        border-bottom: 1px solid var(--line);
    }
    .row {
        grid-template-columns: 48px 1fr;
        grid-template-areas:
            'icon title'
            '. body';
        gap: 12px 20px;
    }
    .row-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .shot-side {
        grid-column: 1 / span 9;
    }
    .shot-main {
        grid-column: 4 / -1;
        grid-row: 2;
        margin-top: -16vw;
    }
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .footer-intro {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    :root {
        --header: 64px;
    }
    .header-nav {
        gap: 14px;
    }
    .header-nav > a:not(.pill) {
        display: none;
    }
    .header-nav .pill {
        padding: 8px 14px;
        font-size: 13px;
    }
    .hide-sm {
        display: none;
    }
    .hero .display {
        font-size: 11.6vw;
    }
    .hero-photo {
        opacity: 0.5;
        background-position: 80% center;
    }
    .hero-bottom {
        grid-template-columns: 1fr;
    }
    .row {
        grid-template-areas:
            'icon title'
            'body body';
        gap: 16px;
    }
    .faq summary {
        grid-template-columns: 40px 1fr 20px;
    }
    .faq-body {
        padding-left: 52px;
        padding-right: 0;
    }
    .steps li {
        grid-template-columns: 40px 1fr;
    }
    .record div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col:last-child {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
