/* ==========================================================================
   webapplogic — "Terrace Blue"
   Warm paper, harbour ink, heritage blue. Hairlines are the design:
   every rule is 1px #DCD6CB, corners are square, brass is rationed.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subsets) ---------- */

@font-face {
    font-family: 'Source Serif 4';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/source-serif-4-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('assets/fonts/inter-var.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}

/* ---------- Tokens ---------- */

:root {
    color-scheme: light;

    --ink: #0C2D4A;
    --blue: #006CAB;
    --blue-pressed: #084F7C;
    --paper: #F7F5F1;
    --card: #FFFFFF;
    --hairline: #DCD6CB;
    --body: #33414E;
    --muted: #5F6B76;
    --brass: #A5804B;
    --brass-ink: #7A5E33;
    --field-border: #8E887C;
    --green: #2E6E4E;
    --red: #A63D2E;

    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

    --shell: 1120px;
    --header-h: 64px;
}

/* ---------- Reset & base ---------- */

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

html {
    scroll-padding-top: calc(var(--header-h) + 24px);
}

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

body {
    background: var(--paper);
    color: var(--body);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--blue);
    color: #fff;
}

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

a {
    color: var(--blue-pressed);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--blue);
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 600;
}

:is(a, button, summary, input, select, textarea):focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.shell {
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: 24px;
}

@media (min-width: 760px) {
    .shell {
        padding-inline: 32px;
    }
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 18px;
    font-family: var(--mono);
    font-size: 0.8rem;
}

.skip-link:focus {
    left: 0;
}

/* Visually hidden honeypot — kept out of sight and out of the tab order */
.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Shared atoms ---------- */

.kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.tick {
    flex: none;
    width: 10px;
    height: 10px;
    background: var(--brass);
}

/* Interrupted section rule: the kicker physically sits on a full-width
   hairline, with a brass tick at the rule's left end. */
.section-rule {
    position: relative;
    height: 1px;
    background: var(--hairline);
    margin-bottom: 64px;
}

.section-rule .tick {
    position: absolute;
    left: 0;
    top: -5px;
    width: 11px;
    height: 11px;
}

.kicker-on-rule {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--paper);
    padding: 0 14px;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.meta-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.meta-label::after {
    content: ' — ';
    color: var(--hairline);
}

/* ---------- Buttons: square plates, no pills ---------- */

.button {
    display: inline-block;
    padding: 13px 28px;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button-primary {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.button-primary:hover {
    background: var(--blue-pressed);
    border-color: var(--blue-pressed);
    color: #fff;
}

.button-primary:active {
    transform: translateY(1px);
}

.button-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--blue);
}

.button-primary[disabled] {
    opacity: 0.6;
    cursor: default;
}

.button-ghost {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

.button-ghost:hover {
    background: var(--card);
    color: var(--ink);
}

/* ---------- Masthead ---------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--hairline);
}

@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
    .masthead {
        background: rgba(255, 255, 255, 0.92);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}

.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    flex: none;
    width: 28px;
    height: 28px;
    margin-right: 12px;
}

.wordmark-footer .brand-mark {
    width: 34px;
    height: 34px;
    margin-right: 14px;
}

.wordmark span {
    color: var(--blue);
}

.wordmark:hover {
    color: var(--ink);
}

.masthead-nav {
    display: none;
    gap: 32px;
}

.masthead-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--body);
    text-decoration: none;
}

.masthead-nav a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--blue);
}

.masthead-cta {
    padding: 8px 18px;
    font-size: 0.9375rem;
}

@media (min-width: 860px) {
    .masthead-nav {
        display: flex;
    }
}

/* ---------- Hero ---------- */

.hero {
    padding: 88px 0 80px;
}

.hero-grid {
    display: grid;
    gap: 56px;
    align-items: center;
}

@media (min-width: 980px) {
    .hero-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: 64px;
    }
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5.5vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin-top: 24px;
}

.hero-lead {
    margin-top: 24px;
    font-size: 1.125rem;
    max-width: 36em;
}

.hero-actions {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-figure {
    max-width: 560px;
    width: 100%;
    justify-self: center;
}

@media (min-width: 980px) {
    .hero-figure {
        justify-self: end;
    }
}

/* ---------- fig. 01 schematic ---------- */

.fig-schematic {
    width: 100%;
    height: auto;
}

.fig-frame {
    fill: none;
    stroke: var(--hairline);
    stroke-width: 1;
}

.fig-shape rect,
.fig-shape circle,
.fig-shape path {
    fill: var(--paper);
    stroke: var(--ink);
    stroke-width: 1.25;
}

.fig-shape line {
    stroke: var(--ink);
    stroke-width: 1.25;
    stroke-linecap: round;
}

.fig-dot-sm {
    fill: var(--ink) !important;
    stroke: none !important;
}

.fig-label {
    fill: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fig-label-center {
    text-anchor: middle;
    fill: var(--ink);
}

.fig-wire {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1;
}

.fig-wire-dashed {
    stroke-dasharray: 4 4;
}

.fig-node {
    fill: var(--blue);
}

.fig-titleblock line {
    stroke: var(--hairline);
    stroke-width: 1;
}

.fig-brass {
    fill: var(--brass);
}

.fig-caption {
    fill: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
}

.fig-caption-right {
    text-anchor: end;
}

/* ---------- Trust strip ---------- */

.trust-strip {
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.trust-strip ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    padding-block: 18px;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (min-width: 860px) {
    .trust-strip ul {
        display: flex;
        justify-content: space-between;
    }
}

/* ---------- Standfirst ---------- */

.standfirst-section {
    padding: 88px 0 0;
}

.standfirst {
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink);
    max-width: 44em;
    border-left: 2px solid var(--blue);
    padding-left: 28px;
}

/* ---------- Sections ---------- */

.section {
    padding: 104px 0 0;
}

.section:last-of-type {
    padding-bottom: 112px;
}

.section-head {
    max-width: 46em;
    margin-bottom: 64px;
}

.section-head h2,
.section > .shell > h2 {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section-head p {
    margin-top: 20px;
}

/* ---------- Service ledger ---------- */

.ledger {
    list-style: none;
}

.ledger-row {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    border-top: 1px solid var(--hairline);
    padding: 36px 24px;
    margin-inline: -24px;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

.ledger-row:last-child {
    border-bottom: 1px solid var(--hairline);
}

.ledger-row:hover {
    background: var(--card);
    box-shadow: inset 2px 0 0 0 var(--blue);
}

@media (min-width: 760px) {
    .ledger-row {
        grid-template-columns: 72px 1fr;
        gap: 0;
    }
}

.ledger-index {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
    padding-top: 8px;
}

.ledger-body {
    max-width: 40em;
}

.ledger-body h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    line-height: 1.25;
}

.ledger-body > p {
    margin-top: 12px;
}

.ledger-meta {
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--body);
}

.ledger-body .ledger-meta:first-of-type {
    margin-top: 18px;
}

.ledger-meta + .ledger-meta {
    margin-top: 6px;
}

.ghost-numeral {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--serif);
    font-weight: 600;
    font-size: 10rem;
    line-height: 1;
    color: var(--ink);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 759px) {
    .ghost-numeral {
        display: none;
    }
}

/* ---------- Statement band (On AI) ---------- */

.statement-band {
    margin-top: 104px;
    background: var(--ink);
    padding: 88px 0;
}

.statement-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 245, 241, 0.75);
}

.statement-kicker::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--brass);
}

.statement {
    margin-top: 28px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    line-height: 1.35;
    color: var(--paper);
    max-width: 30em;
}

/* ---------- fig. 02 timeline ---------- */

.fig-timeline-wrap {
    margin: 0 0 72px;
}

.fig-timeline {
    width: 100%;
    height: auto;
}

.fig-ext line {
    stroke: var(--muted);
    stroke-width: 1;
    opacity: 0.55;
}

.fig-dim line {
    stroke: var(--ink);
    stroke-width: 1;
}

.fig-dim polygon {
    fill: var(--ink);
}

.fig-ann text {
    fill: var(--ink);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-anchor: middle;
}

.fig-ann-sub text {
    fill: var(--muted);
    font-size: 11px;
}

.fig-under-caption {
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fig-brass-inline {
    width: 8px;
    height: 8px;
    background: var(--brass);
    flex: none;
}

@media (max-width: 680px) {
    .fig-timeline-wrap {
        display: none;
    }
}

/* ---------- Phases ---------- */

.phases {
    list-style: none;
    display: grid;
    gap: 0 56px;
}

@media (min-width: 900px) {
    .phases {
        grid-template-columns: 1fr 1fr;
    }
}

.phase {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    border-top: 1px solid var(--hairline);
    padding: 32px 0 40px;
}

.phase-numeral {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 3.25rem;
    line-height: 0.9;
    color: var(--ink);
    opacity: 0.18;
}

.phase h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    line-height: 1.3;
}

.phase-kicker {
    display: block;
    font-family: var(--mono);
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-pressed);
    margin-bottom: 8px;
}

.phase p {
    margin-top: 12px;
    font-size: 1rem;
}

.phase-output {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--body);
}

/* ---------- Why webapplogic ---------- */

.section-tight {
    padding-top: 96px;
}

.why-grid {
    margin-top: 56px;
    display: grid;
    gap: 0 56px;
}

@media (min-width: 760px) {
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.why-item {
    border-top: 1px solid var(--hairline);
    padding: 28px 0 36px;
}

.why-item h3 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.0625rem;
}

.why-item p {
    margin-top: 10px;
    font-size: 0.9875rem;
}

/* ---------- FAQ ---------- */

.faq {
    max-width: 56em;
}

.faq-item {
    border-top: 1px solid var(--hairline);
    margin-inline: -24px;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

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

.faq-item:hover {
    background: var(--card);
    box-shadow: inset 2px 0 0 0 var(--blue);
}

.faq-item summary {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: baseline;
    gap: 0 12px;
    padding: 24px;
    cursor: pointer;
    list-style: none;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--ink);
}

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

.faq-index {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--muted);
}

.faq-marker {
    position: relative;
    width: 14px;
    height: 14px;
    align-self: center;
}

.faq-marker::before,
.faq-marker::after {
    content: '';
    position: absolute;
    background: var(--blue-pressed);
    transition: transform 200ms ease;
}

.faq-marker::before {
    left: 0;
    top: 6px;
    width: 14px;
    height: 2px;
}

.faq-marker::after {
    left: 6px;
    top: 0;
    width: 2px;
    height: 14px;
}

.faq-item[open] .faq-marker::after {
    transform: scaleY(0);
}

.faq-answer {
    padding: 0 24px 28px calc(48px + 12px + 24px);
}

.faq-answer p {
    max-width: 42em;
}

@media (max-width: 620px) {
    .faq-item summary {
        grid-template-columns: 1fr auto;
    }

    .faq-index {
        display: none;
    }

    .faq-answer {
        padding-left: 24px;
    }
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    gap: 56px;
    align-items: start;
}

@media (min-width: 980px) {
    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 72px;
    }
}

.contact-copy h2 {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.stamp {
    display: inline-block;
    margin-left: 16px;
    padding: 4px 10px;
    border: 1px solid var(--brass);
    color: var(--brass-ink);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: rotate(-4deg) translateY(-6px);
    white-space: nowrap;
}

.contact-copy > p {
    margin-top: 20px;
    max-width: 34em;
}

.next-steps {
    list-style: none;
    margin-top: 44px;
    counter-reset: step;
}

.next-steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    border-top: 1px solid var(--hairline);
    padding: 20px 0;
}

.next-steps li::before {
    content: '0' counter(step);
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
    padding-top: 4px;
}

.next-steps h3 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
}

.next-steps p {
    grid-column: 2;
    margin-top: 4px;
    font-size: 0.925rem;
    color: var(--muted);
}

/* ---------- Form ---------- */

.contact-form {
    position: relative;
    background: var(--card);
    border: 1px solid var(--hairline);
    padding: 40px;
}

@media (max-width: 560px) {
    .contact-form {
        padding: 28px 20px;
    }
}

.form-seal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 26px;
    height: 26px;
}

.form-row {
    display: grid;
    gap: 20px;
}

@media (min-width: 620px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--field-border);
    border-radius: 0;
    background: var(--card);
    color: var(--body);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

.form-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230C2D4A' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-field :is(input, select, textarea):focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 108, 171, 0.15);
}

.form-field .is-invalid {
    border-color: var(--red);
}

.field-error {
    min-height: 1.3em;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--red);
}

.form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.form-privacy {
    font-size: 0.8rem;
    color: var(--muted);
    max-width: 22em;
}

.form-privacy a {
    color: var(--blue-pressed);
}

.form-noscript {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--field-border);
    font-size: 0.925rem;
    color: var(--body);
}

.form-status {
    min-height: 1.5em;
    margin-top: 14px;
    font-size: 0.925rem;
}

.form-status.ok {
    color: var(--green);
}

.form-status.err {
    color: var(--red);
}

/* ---------- Footer ---------- */

.footer {
    background: var(--ink);
    color: rgba(247, 245, 241, 0.75);
}

.footer-inner {
    display: grid;
    gap: 40px;
    padding-block: 72px 48px;
}

@media (min-width: 760px) {
    .footer-inner {
        grid-template-columns: 1fr auto;
        align-items: start;
    }
}

.wordmark-footer {
    font-size: 1.5rem;
    color: var(--paper);
}

.wordmark-footer:hover {
    color: var(--paper);
}

.wordmark-footer span {
    color: #58A8DC;
}

.brass-stop {
    color: var(--brass);
    font-style: normal;
}

.footer-brand-block p {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-meta {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

@media (min-width: 760px) {
    .footer-meta {
        text-align: right;
        flex-direction: row-reverse;
    }
}

.footer-meta p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(247, 245, 241, 0.15);
    padding-block: 20px;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.footer-bottom nav {
    display: flex;
    gap: 24px;
}

.footer-bottom a {
    color: rgba(247, 245, 241, 0.85);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--paper);
    text-decoration: underline;
}

/* ---------- Privacy page ---------- */

.legal {
    max-width: 44em;
    padding-block: 72px 96px;
}

.legal h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-top: 20px;
}

.legal .updated {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.legal h2 {
    font-family: var(--serif);
    font-size: 1.35rem;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--hairline);
}

.legal p,
.legal ul {
    margin-top: 14px;
}

.legal ul {
    padding-left: 22px;
}

.legal li + li {
    margin-top: 6px;
}

/* ---------- Motion (gated) ---------- */

@media (prefers-reduced-motion: no-preference) {
    html.js .reveal {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 400ms ease, transform 400ms ease;
    }

    html.js .reveal.in {
        opacity: 1;
        transform: none;
    }

    /* gentle stagger inside repeated structures */
    html.js .ledger-row.reveal:nth-child(2),
    html.js .phase.reveal:nth-child(2),
    html.js .why-item.reveal:nth-child(2),
    html.js .faq-item.reveal:nth-child(2) {
        transition-delay: 60ms;
    }

    html.js .ledger-row.reveal:nth-child(3),
    html.js .phase.reveal:nth-child(3),
    html.js .why-item.reveal:nth-child(3),
    html.js .faq-item.reveal:nth-child(3) {
        transition-delay: 120ms;
    }

    html.js .ledger-row.reveal:nth-child(4),
    html.js .phase.reveal:nth-child(4),
    html.js .why-item.reveal:nth-child(4),
    html.js .faq-item.reveal:nth-child(4) {
        transition-delay: 180ms;
    }

    html.js .ledger-row.reveal:nth-child(5),
    html.js .faq-item.reveal:nth-child(5) {
        transition-delay: 240ms;
    }

    html.js .faq-item.reveal:nth-child(6) {
        transition-delay: 300ms;
    }

    /* fig. 01 draw-in: solid wires draw, dashed wire and nodes fade after */
    html.js .hero-figure .fig-wire:not(.fig-wire-dashed) {
        stroke-dasharray: 480;
        stroke-dashoffset: 480;
        transition: stroke-dashoffset 700ms ease 250ms;
    }

    html.js .hero-figure.in .fig-wire:not(.fig-wire-dashed) {
        stroke-dashoffset: 0;
    }

    html.js .hero-figure .fig-wire-dashed,
    html.js .hero-figure .fig-node {
        opacity: 0;
        transition: opacity 400ms ease 800ms;
    }

    html.js .hero-figure.in .fig-wire-dashed,
    html.js .hero-figure.in .fig-node {
        opacity: 1;
    }
}
