/* ==========================================================================
   picobonte
   Section groups below follow the same order as the sections in index.html.
   ========================================================================== */

/* Webfont — self-hosted, split on unicode-range, variable (400 700 from one
   file per subset). Licence: SIL OFL 1.1 — fonts/OFL.txt must ship with them. */
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100%;
    font-display: swap;
    src: url('fonts/instrument-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100%;
    font-display: swap;
    src: url('fonts/instrument-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens */
:root {
    --ink:         #07090C;
    --ink-2:       #0C1015;
    --ink-3:       #141A21;
    --bone:        #EEF2F6;
    --muted:       #8792A0;

    --accent:      #22D3EE;
    --accent-2:    #6EE7F9;
    --accent-soft: rgba(34, 211, 238, 0.14);

    --hairline:    rgba(238, 242, 246, 0.10);
    --hairline-2:  rgba(238, 242, 246, 0.16);
    --glass:       rgba(238, 242, 246, 0.028);

    --body:    'Instrument Sans', system-ui, -apple-system, sans-serif;
    --display: var(--body);

    --gutter: 6vw;
    --radius: 22px;

    --section-pad:    clamp(3.5rem, 9vw, 6rem);     /*  56 ->  96px */
    --section-pad-lg: clamp(3.5rem, 10vw, 6.5rem);  /*  56 -> 104px */

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;

    scroll-padding-top: 110px;

    -webkit-text-size-adjust: 100%;
    /* clip, not hidden: hidden on the root propagates to the viewport. */
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    position: relative; /* containing block for .mesh */
    background-color: var(--ink);
    color: var(--bone);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.6;
    font-synthesis-weight: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

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

::selection {
    background: var(--accent);
    color: var(--ink);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.grad {
    background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, #A5F3FC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 0.06em;
    margin-right: -0.06em;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 200;
    background: var(--bone);
    color: var(--ink);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

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

/* Atmosphere — soft gradient mesh behind everything */
.mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    height: min(1600px, 180vh);
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.blob-a {
    top: -14%;
    right: -6%;
    width: min(720px, 82vw);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.34), transparent 68%);
    animation: drift-a 22s var(--ease) infinite alternate;
}

.blob-b {
    top: 26%;
    left: -18%;
    width: min(620px, 76vw);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(56, 132, 255, 0.22), transparent 70%);
    animation: drift-b 28s var(--ease) infinite alternate;
}

.blob-c {
    top: 4%;
    left: 34%;
    width: min(480px, 60vw);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.16), transparent 72%);
    animation: drift-c 34s var(--ease) infinite alternate;
}

@keyframes drift-a {
    to { transform: translate3d(-6%, 8%, 0) scale(1.12); }
}

@keyframes drift-b {
    to { transform: translate3d(9%, -6%, 0) scale(1.08); }
}

@keyframes drift-c {
    to { transform: translate3d(-8%, 12%, 0) scale(0.92); }
}

/* Atmosphere — grain overlay */
.grain {
    position: fixed;
    inset: -50%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-stuck {
    background: rgba(7, 9, 12, 0.66);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom-color: var(--hairline);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 102px;
}

.logo-mark {
    display: block;
    height: 62px;
    width: auto;
    aspect-ratio: 155.5 / 44;
    overflow: visible;
}

.wm-text {
    font-family: var(--display);
    font-size: 32px;
    letter-spacing: -0.01em;
}

.wm-pico {
    font-weight: 700;
    fill: var(--bone);
}

.wm-bonte {
    font-weight: 400;
    fill: var(--accent-2);
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-header nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.25s var(--ease);
}

.site-header nav a:hover {
    color: var(--bone);
}

.nav-cta {
    position: relative;
    color: var(--bone) !important;
    border: 1px solid var(--hairline-2);
    border-radius: 100px;
    padding: 0.5rem 1.15rem;
    overflow: hidden;
    transition: border-color 0.3s var(--ease);
}

.nav-cta span {
    position: relative;
    z-index: 1;
}

/* Accent wash slides in from the left on hover */
.nav-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-soft);
    transform: translateX(-101%);
    transition: transform 0.45s var(--ease);
}

.nav-cta:hover {
    border-color: var(--accent);
}

.nav-cta:hover::before {
    transform: none;
}

.nav-lang {
    display: flex;
    align-items: center;
    border-radius: 4px;
    box-shadow: 0 0 0 1px var(--accent);
    transition: box-shadow 0.25s var(--ease);
}

.nav-lang:hover {
    box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px var(--accent-soft);
}

.flag {
    display: block;
    width: 30px;
    height: auto;
    border-radius: 4px;
}

/* Hero */
.hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(440px, calc(100svh - 102px), 620px);
    padding-block: 2.5rem 3.5rem;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-visual {
    display: none;
}

.ripple {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    max-width: 580px;
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--hairline);
    border-radius: 100px;
    padding: 0.4rem 0.95rem 0.4rem 0.75rem;
    background: var(--glass);
    margin-bottom: 2rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-soft);
    animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
    70%  { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.9rem, 11.5vw, 8rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
    text-wrap: balance;
    margin-bottom: 1.9rem;
}

.lede {
    max-width: 48ch;
    color: var(--muted);
    font-size: clamp(1.0625rem, 2.3vw, 1.25rem);
    line-height: 1.65;
    margin-bottom: 2.75rem;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bone);
    color: var(--ink);
    padding: 0.95rem 1.6rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn svg {
    transition: transform 0.3s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px -12px rgba(34, 211, 238, 0.55);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-ghost {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 1px solid var(--hairline-2);
    padding-bottom: 3px;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-ghost:hover {
    color: var(--bone);
    border-bottom-color: var(--accent);
}

/* Feeling ticker */
.ticker {
    --ticker-gap: 1.75rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-block: 1px solid var(--hairline);
    padding-block: 1.15rem;
    /* fade both ends into the page */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: var(--ticker-gap);
    width: max-content;
    padding-inline-end: var(--ticker-gap);
    animation: marquee var(--marquee-dur, 73s) linear infinite;
}

.ticker-track span {
    font-family: var(--display);
    font-size: clamp(1.125rem, 3vw, 1.75rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--muted);
    white-space: nowrap;
}

.ticker-track i {
    color: var(--accent);
    font-style: normal;
    opacity: 0.6;
}

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

/* Shared section furniture */
.section-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.1rem;
}

.section-head {
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.1rem, 6vw, 3.9rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

/* Manifesto */
.manifesto {
    position: relative;
    z-index: 2;
    padding-block: var(--section-pad);
}

.pull-quote {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.6rem, 4.6vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.033em;
    text-wrap: balance;
    margin-bottom: 2.5rem;
}

.manifesto-body {
    color: var(--muted);
    display: grid;
    gap: 1.15rem;
    font-size: 1.0625rem;
    text-wrap: pretty;
}

/* Manifesto — divergence figure */
.divergence {
    margin-top: 2.75rem;
    max-width: 540px;
}

.divergence svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.dv-neutral {
    stroke: var(--hairline-2);
    stroke-width: 1;
    stroke-dasharray: 2 6;
    stroke-linecap: round;
}

.dv-ticks line {
    stroke: var(--hairline);
    stroke-width: 1;
}

.dv-path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.dv-rise {
    stroke: url(#riseGrad);
}

.dv-fall {
    stroke: var(--muted);
    opacity: 0.45;
}

.dv-origin {
    fill: var(--bone);
    opacity: 0;
}

.dv-end {
    opacity: 0;
}

.dv-end-rise {
    fill: var(--accent);
}

.dv-end-fall {
    fill: var(--muted);
    opacity: 0;
}

.dv-halo {
    fill: var(--accent);
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.manifesto.is-in .dv-origin {
    animation: dv-pop 0.5s var(--ease) 0.15s forwards;
}

.manifesto.is-in .dv-path {
    animation: dv-draw 1.6s var(--ease) 0.3s forwards;
}

.manifesto.is-in .dv-end-rise {
    animation: dv-pop 0.5s var(--ease) 1.5s forwards;
}

.manifesto.is-in .dv-end-fall {
    animation: dv-pop-dim 0.5s var(--ease) 1.5s forwards;
}

.manifesto.is-in .dv-halo {
    animation: dv-halo 3.4s var(--ease) 1.8s infinite;
}

@keyframes dv-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes dv-pop {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes dv-pop-dim {
    from { opacity: 0; }
    to   { opacity: 0.5; }
}

@keyframes dv-halo {
    0%, 100% { opacity: 0.06; transform: scale(0.8); }
    50%      { opacity: 0.20; transform: scale(1.15); }
}

/* Section marks */
.sec-mark {
    margin-bottom: 1.25rem;
}

.sec-mark svg {
    display: block;
    height: 74px;
    width: auto;
    aspect-ratio: var(--ar, 1);
    overflow: visible;
}

/* shared primitives */
.mk-line {
    fill: none;
    stroke: var(--muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.mk-bar {
    stroke-width: 8;
}

.mk-line.is-accent {
    stroke: var(--accent);
}

.mk-dot {
    fill: var(--accent);
    opacity: 0;
}

.mk-plate {
    fill: none;
    stroke: var(--muted);
    stroke-width: 2;
    stroke-linejoin: round;
    opacity: 0;
    transform: translateY(14px);
    transform-box: fill-box;
    transform-origin: center;
}

.mk-p3 {
    stroke: var(--accent);
}

.mk-spark {
    fill: var(--accent);
    opacity: 0;
}

.reveal.is-in .mk-line {
    animation: mk-draw 0.85s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 130ms + 150ms);
}

.reveal.is-in .mk-dot {
    animation: mk-fade 0.45s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 130ms + 450ms);
}

.reveal.is-in .mk-plate {
    animation: mk-settle 0.6s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 140ms + 150ms);
}

.reveal.is-in .mk-spark {
    animation: mk-fade 0.5s var(--ease) 0.75s forwards;
}

@keyframes mk-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes mk-fade {
    to { opacity: 1; }
}

@keyframes mk-settle {
    to { opacity: 1; transform: none; }
}

/* Work — bento grid */
.work {
    position: relative;
    z-index: 2;
    padding-block: var(--section-pad);
}

.bento {
    display: grid;
    gap: 1rem;
}

.cell {
    position: relative;
    padding: 2rem 1.75rem 2.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--hairline);
    background: var(--glass);
    overflow: hidden;
    transition: border-color 0.4s var(--ease), transform 0.4s var(--ease),
                background 0.4s var(--ease);
}

/* Accent glow that only shows on hover */
.cell::after {
    content: "";
    position: absolute;
    top: -60%;
    right: -30%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.20), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}

.cell:hover {
    border-color: var(--hairline-2);
    background: rgba(238, 242, 246, 0.045);
    transform: translateY(-3px);
}

.cell:hover::after {
    opacity: 1;
}

.cell-index {
    display: block;
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1.1rem;
}

.cell h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.15;
    letter-spacing: -0.024em;
    margin-bottom: 0.7rem;
}

.cell p {
    color: var(--muted);
    font-size: 0.9875rem;
    text-wrap: pretty;
}

/* Studio */
.studio {
    position: relative;
    z-index: 2;
    padding-block: var(--section-pad);
}

.principles {
    list-style: none;
    display: grid;
    gap: 2.25rem;
}

.principles li {
    padding-top: 1.4rem;
    border-top: 1px solid var(--hairline);
}

.principles h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.1875rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.55rem;
}

.principles p {
    color: var(--muted);
    font-size: 0.9875rem;
    text-wrap: pretty;
}

/* Contact */
.contact {
    position: relative;
    z-index: 2;
    padding-block: var(--section-pad-lg);
    overflow: hidden;
}

.contact::before {
    content: "";
    position: absolute;
    bottom: -55%;
    left: 50%;
    translate: -50% 0;
    width: min(900px, 120%);
    aspect-ratio: 1;
    pointer-events: none;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.13), transparent 62%);
}

.contact-inner {
    position: relative;
    z-index: 2;
}

/* Contact — convergence figure */
.reach {
    margin-top: 3rem;
    max-width: 480px;
}

.reach svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.rv-arc {
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0.3;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.rv-arc-b {
    stroke: url(#reachGrad);
    stroke-width: 2;
    opacity: 0.85;
}

.rv-comet {
    fill: none;
    stroke: var(--accent-2);
    stroke-width: 2.5;
    stroke-linecap: round;
    /* short visible segment that travels the path */
    stroke-dasharray: 0.1 0.9;
    stroke-dashoffset: 1;
    opacity: 0;
}

.rv-src {
    fill: var(--muted);
    opacity: 0;
}

.rv-node {
    fill: var(--accent);
    opacity: 0;
}

.rv-halo {
    fill: var(--accent);
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.contact.is-in .rv-src {
    animation: rv-in 0.5s var(--ease) 0.1s forwards;
}

.contact.is-in .rv-arc {
    animation: dv-draw 1.5s var(--ease) 0.25s forwards;
}

.contact.is-in .rv-arc-b {
    animation-delay: 0.4s;
}

.contact.is-in .rv-node {
    animation: rv-in 0.5s var(--ease) 1.5s forwards;
}

.contact.is-in .rv-halo {
    animation: dv-halo 3.4s var(--ease) 1.8s infinite;
}

.contact.is-in .rv-comet {
    animation: rv-travel 2.9s linear 1.9s infinite;
}

@keyframes rv-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes rv-travel {
    0%        { stroke-dashoffset: 1; opacity: 0; }
    12%, 80%  { opacity: 1; }
    100%      { stroke-dashoffset: 0; opacity: 0; }
}

.contact-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.1rem, 7vw, 4.6rem);
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.contact-lede {
    max-width: 46ch;
    color: var(--muted);
    margin-bottom: 2.75rem;
    text-wrap: pretty;
}

.mail-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--bone);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.25rem, 4.6vw, 2.35rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--hairline-2);
    border-radius: 100px;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
                background 0.3s var(--ease);
    /* long address must not overflow narrow screens */
    max-width: 100%;
    overflow-wrap: anywhere;
}

.mail-cta:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.mail-cta-arrow {
    display: inline-flex;
    flex: none;
    transition: transform 0.3s var(--ease);
}

.mail-cta:hover .mail-cta-arrow {
    transform: translateX(5px);
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--hairline);
    padding-block: 3rem;
    background: var(--ink-2);
}

.footer-inner {
    display: grid;
    gap: 1.15rem;
}

.footer-logo {
    height: 58px;
    opacity: 0.7;
}

.footer-note {
    color: var(--muted);
    font-size: 0.9375rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

/* Matches .site-header nav a, so the shared :focus-visible ring applies. */
.footer-legal a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.25s var(--ease);
}

.footer-legal a:hover {
    color: var(--bone);
}

.footer-meta {
    color: var(--muted);
    font-size: 0.8125rem;
    opacity: 0.7;
}

/* ==========================================================================
   Legal pages (imprint.html, data-protection.html, de/impressum.html,
   de/datenschutz.html) — one document per language since 2026-08-16
   ========================================================================== */
.legal {
    position: relative;
    z-index: 2;
    padding-block: var(--section-pad);
}

.legal-body {
    max-width: 68ch;
}

.legal h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 2.5rem;
}

.legal h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.legal section + section {
    margin-top: 2.75rem;
}

.legal p,
.legal li {
    color: var(--muted);
    line-height: 1.7;
    text-wrap: pretty;
}

.legal p + p {
    margin-top: 0.9rem;
}

.legal ul {
    margin-top: 0.9rem;
    padding-left: 1.15rem;
}

.legal li + li {
    margin-top: 0.5rem;
}

.legal a {
    color: var(--bone);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--hairline-2);
    transition: text-decoration-color 0.25s var(--ease);
}

.legal a:hover {
    text-decoration-color: var(--accent);
}

.legal address {
    font-style: normal;
    color: var(--muted);
    line-height: 1.7;
}

.legal .legal-note {
    font-size: 0.9375rem;
    line-height: 1.6;
    border-left: 2px solid var(--hairline-2);
    padding-left: 1rem;
    margin-bottom: 2.75rem;
}

/* Unfilled-content markers — currently unused; no placeholders remain. */
.legal-banner {
    border: 1px solid #F0A03C;
    border-left-width: 4px;
    border-radius: 10px;
    background: rgba(240, 160, 60, 0.09);
    padding: 1.15rem 1.35rem;
    margin-bottom: 3rem;
}

.legal-banner strong {
    color: #F5B76A;
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9375rem;
}

.legal-banner p {
    color: var(--muted);
    font-size: 0.9375rem;
    margin: 0;
}

.todo {
    display: inline-block;
    color: #0B0D10;
    background: #F0A03C;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.1rem 0.5rem;
    border-radius: 5px;
    white-space: nowrap;
}

/* Motion — load reveals and scroll reveals */
.reveal-load {
    opacity: 0;
    transform: translateY(20px);
    animation: rise 1s var(--ease) forwards;
    animation-delay: var(--d, 0ms);
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Children stagger in behind their section, ordered by --i */
.reveal .cell,
.reveal .principles li {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms + 120ms);
}

.reveal.is-in .cell,
.reveal.is-in .principles li {
    opacity: 1;
    transform: none;
}

html:not(.js) .reveal,
html:not(.js) .reveal .cell,
html:not(.js) .reveal .principles li {
    opacity: 1;
    transform: none;
}

html:not(.js) .dv-path {
    stroke-dashoffset: 0;
}

html:not(.js) .dv-origin,
html:not(.js) .dv-end-rise {
    opacity: 1;
}

html:not(.js) .dv-end-fall {
    opacity: 0.5;
}

html:not(.js) .dv-halo {
    opacity: 0.12;
}

html:not(.js) .rv-arc {
    stroke-dashoffset: 0;
}

html:not(.js) .rv-src,
html:not(.js) .rv-node {
    opacity: 1;
}

html:not(.js) .rv-halo {
    opacity: 0.12;
}

html:not(.js) .mk-line {
    stroke-dashoffset: 0;
}

html:not(.js) .mk-dot,
html:not(.js) .mk-plate,
html:not(.js) .mk-spark {
    opacity: 1;
    transform: none;
}

/* Breakpoints */
@media (min-width: 700px) {
    :root {
        --gutter: min(5vw, 4.5rem);
    }

    .bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.15rem;
    }

    .cell {
        padding: 2.4rem 2.15rem 2.5rem;
    }

    .principles {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 3rem;
    }

}

@media (min-width: 1024px) {
    .footer-inner {
        grid-template-columns: auto 1fr auto auto;
        align-items: center;
        gap: 2rem;
    }

    .footer-meta {
        justify-self: end;
    }

    .nav-wrapper {
        height: 124px;
    }

    /* Tracks the taller header above — see the note on html. */
    html {
        scroll-padding-top: 132px;
    }

    .nav-logo .logo-mark {
        height: 78px;
    }

    .hero {
        min-height: clamp(540px, calc(100svh - 124px), 656px);
    }

    .hero-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: center;
        column-gap: clamp(1.5rem, 3vw, 3rem);
    }

    .hero h1 {
        font-size: clamp(2.9rem, 6.3vw, 5.9rem);
    }

    .hero-visual {
        display: block;
    }

    .ripple {
        width: min(calc(100% + clamp(0px, 50vw - 620px, 200px)), 560px);
        max-width: none;
    }

    /* Contact: copy left, convergence figure filling the empty right column. */
    .contact-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: center;
        column-gap: clamp(2rem, 4vw, 4rem);
    }

    .contact-inner .reach {
        margin-top: 0;
        max-width: 100%;
    }

    /* Asymmetric: label sits in its own column beside the quote */
    .manifesto-grid {
        display: grid;
        grid-template-columns: 1fr 1.05fr;
        column-gap: 4.5rem;
        align-items: stretch;
    }

    /* Flex column so the figure can claim the leftover height with margin-top. */
    .manifesto-body {
        display: flex;
        flex-direction: column;
    }

    .manifesto-body .divergence {
        margin-top: auto;
        padding-top: 1.5rem;
    }

    .manifesto-grid .section-label {
        grid-column: 1 / -1;
        margin-bottom: 2rem;
    }

    .pull-quote {
        margin-bottom: 0;
    }

    .manifesto-body {
        padding-top: 0.6rem;
    }

    .section-head {
        display: grid;
        grid-template-columns: 1fr 1.6fr;
        column-gap: 4.5rem;
        align-items: end;
    }

    .section-head .section-label {
        margin-bottom: 0.4rem;
    }

    .section-head .sec-mark {
        margin-bottom: 0.25rem;
    }

    .manifesto-grid .sec-mark {
        grid-column: 1 / -1;
        margin-bottom: 2rem;
    }

    /* Bento: wide cells span both columns of a 3-track grid */
    .bento {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .cell-wide {
        grid-column: span 2;
    }
}

/* Small screens — nav sheds its secondary links */
@media (max-width: 560px) {
    .site-header nav {
        gap: 0.9rem;
    }

    .site-header nav a:not(.nav-cta):not(.nav-lang) {
        display: none;
    }

    .nav-logo .logo-mark {
        height: 48px;
    }
}

/* Reduced motion — content is static and fully visible */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal-load,
    .reveal,
    .reveal .cell,
    .reveal .principles li {
        opacity: 1;
        transform: none;
    }

    .ticker-track,
    .blob,
    .dot,
    .dv-halo,
    .rv-halo,
    .rv-comet {
        animation: none !important;
    }

    /* Figure resolves to its finished state instead of drawing. */
    .dv-path {
        stroke-dashoffset: 0;
    }

    .dv-origin,
    .dv-end-rise {
        opacity: 1;
    }

    .dv-end-fall {
        opacity: 0.5;
    }

    .dv-halo {
        opacity: 0.12;
    }

    .rv-arc {
        stroke-dashoffset: 0;
    }

    .rv-src,
    .rv-node {
        opacity: 1;
    }

    .rv-halo {
        opacity: 0.12;
    }

    /* comet is pure motion — stays hidden rather than parked mid-arc */
    .rv-comet {
        opacity: 0;
    }

    .mk-line {
        stroke-dashoffset: 0;
    }

    .mk-dot,
    .mk-plate,
    .mk-spark {
        opacity: 1;
        transform: none;
    }

    .btn:hover,
    .cell:hover,
    .mail-cta:hover .mail-cta-arrow {
        transform: none;
    }
}
