/* ==========================================================================
   nyv.ch — Calm, Fluid, Physical
   Brand kept (ink / mint / paper, Archivo headlines, the nyv mark).
   Apple-style craft on top: inset tiles, glass chrome, critically damped
   springs, press feedback on pointer-down, reduced-motion/transparency/contrast.
   ========================================================================== */

@font-face {
    font-family: 'Archivo';
    src: url('/assets/fonts/archivo.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}

:root {
    /* Brand */
    --ink: #003241;
    --ink-2: #00485E;
    --ink-3: #1B6580;
    --mint: #D4E7ED;
    --mint-2: #BDD8E1;
    --paper: #F8F8F6;

    /* Surfaces */
    --bg: #EEF3F5;
    --tile: #FFFFFF;
    --text: var(--ink);
    --text-2: color-mix(in oklab, var(--ink) 72%, white);
    --hair: color-mix(in oklab, var(--ink) 12%, transparent);

    /* Shape & depth */
    --r-xl: 40px;
    --r-l: 28px;
    --r-m: 18px;
    --r-s: 12px;
    --shadow-1: 0 1px 2px rgb(0 50 65 / 0.06), 0 6px 20px -8px rgb(0 50 65 / 0.14);
    --shadow-2: 0 2px 4px rgb(0 50 65 / 0.06), 0 24px 60px -20px rgb(0 50 65 / 0.28);

    /* Layout */
    --gutter: clamp(10px, 1.4vw, 20px);
    --pad: clamp(22px, 5vw, 72px);
    --sec: clamp(12px, 1.4vw, 20px);

    /* Type */
    --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
    --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

    /* Motion — Apple style response/damping:
       smooth = critically damped (no overshoot), the default.
       Fallback is the iOS drawer curve. */
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
    --spring: var(--ease);
    --t-fast: 0.12s;
    --t-base: 0.45s;
    --t-slow: 0.8s;

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

@supports (transition-timing-function: linear(0, 1)) {
    :root {
        /* x(t) = 1 - (1 + wt)e^(-wt), w=9, sampled; response ~0.4s, damping 1.0 */
        --spring: linear(0, 0.0346, 0.1149, 0.2158, 0.3218, 0.4241, 0.5178, 0.6007, 0.6724, 0.7333, 0.7843, 0.8265, 0.8611, 0.8892, 0.912, 0.9303, 0.945, 0.9567, 0.966, 0.9734, 0.9792, 0.9837, 0.9873, 0.9901, 0.9923, 0.994, 0.9954, 0.9964, 1);
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    background: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(17px, 1.1vw + 11px, 19px);
    line-height: 1.47;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.07em;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

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

.on-ink :focus-visible {
    outline-color: var(--mint);
}

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

[hidden] {
    display: none !important;
}

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

.skip {
    position: absolute;
    left: var(--gutter);
    top: -100px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--mint);
    font-weight: 600;
    text-decoration: none;
}

.skip:focus {
    top: 12px;
}

/* Display type: size-specific tracking, tight leading (large = negative tracking) */
.display {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 106%;
    letter-spacing: -0.04em;
    line-height: 0.98;
    text-wrap: balance;
}

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
}

/* --- Buttons: instant press feedback, spring release ---------------------- */

.btn,
.bar-cta,
.wb-chip,
.wf-btn,
.wc-action,
.ui-lang-btn,
.wb-ok-reset,
.bar-lang a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform var(--t-base) var(--spring),
                background-color 0.2s ease,
                color 0.2s ease,
                box-shadow var(--t-base) var(--spring);
}

.btn:active,
.bar-cta:active,
.wb-chip:active,
.wf-btn:active,
.wc-action:active,
.ui-lang-btn:active,
.wb-ok-reset:active,
.bar-lang a:active {
    transform: scale(0.96);
    transition-duration: var(--t-fast);
}

.btn {
    --bg: var(--ink);
    --fg: var(--mint);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    background: var(--bg);
    color: var(--fg);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
}

.btn .arrow {
    transition: transform var(--t-base) var(--spring);
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        background: var(--ink-2);
        box-shadow: 0 10px 30px -10px rgb(0 50 65 / 0.5);
    }

    .btn:hover .arrow {
        transform: translateX(4px);
    }
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    min-height: 52px;
    padding: 0 6px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
}

.link-more span {
    transition: transform var(--t-base) var(--spring);
}

@media (hover: hover) and (pointer: fine) {
    .link-more:hover span {
        transform: translateX(4px);
    }
}

/* --- Scroll reveal: materialise (blur + lift), staggered ------------------ */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
    transition: opacity 0.5s ease calc(var(--i, 0) * 70ms),
                transform var(--t-slow) var(--spring) calc(var(--i, 0) * 70ms),
                filter 0.6s ease calc(var(--i, 0) * 70ms);
}

.js [data-reveal].in {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Icons draw themselves once */
.icon {
    width: 100%;
    height: auto;
    overflow: visible;
}

.js .icon .s {
    stroke-dasharray: 1;
    stroke-dashoffset: 1px;
    transition: stroke-dashoffset 0.9s var(--ease);
}

.js .icon .s:nth-child(2) { transition-delay: 0.12s; }
.js .icon .s:nth-child(3) { transition-delay: 0.24s; }
.js .icon .s:nth-child(4) { transition-delay: 0.36s; }

.js .icon .d {
    transform-box: fill-box;
    transform-origin: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.5s var(--spring) 0.5s, opacity 0.2s ease 0.5s;
}

.js .in .icon .s,
.js .icon.in .s {
    stroke-dashoffset: 0;
}

.js .in .icon .d,
.js .icon.in .d {
    opacity: 1;
    transform: none;
}

/* --- Header: floating glass bar ------------------------------------------- */

.bar {
    position: sticky;
    top: var(--gutter);
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 14px;
    max-width: 1280px;
    margin: var(--gutter) auto 0;
    padding: 8px 8px 8px 22px;
    width: calc(100% - var(--gutter) * 2);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.66);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.55) inset, var(--shadow-1);
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.bar.is-dark {
    background: rgb(0 50 65 / 0.7);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12) inset, 0 12px 40px -12px rgb(0 0 0 / 0.4);
    color: var(--mint);
}

.bar-mark {
    display: block;
    width: 62px;
    color: inherit;
    transition: transform var(--t-base) var(--spring);
}

.bar-mark:active {
    transform: scale(0.94);
    transition-duration: var(--t-fast);
}

.bar-links {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.bar-links a {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .bar-links a:hover {
        background: color-mix(in oklab, currentColor 10%, transparent);
    }
}

.bar-lang {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    border-radius: 999px;
    background: color-mix(in oklab, currentColor 8%, transparent);
}

/* The thumb is one element that glides between DE and EN (and across the page load) */
.bar-lang-thumb {
    position: absolute;
    z-index: -1;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 999px;
    background: var(--ink);
    transform: translateX(0);
    transition: transform var(--t-base) var(--spring), background-color 0.3s ease;
    view-transition-name: lang-thumb;
}

.bar-lang[data-pick="en"] .bar-lang-thumb,
.bar-lang:not([data-pick]):has(a:last-child[aria-current="page"]) .bar-lang-thumb {
    transform: translateX(100%);
}

.bar.is-dark .bar-lang-thumb {
    background: var(--mint);
}

.bar-lang a {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease, transform var(--t-base) var(--spring);
}

/* text colour follows the thumb: pressed/target side gets the inverse colour */
.bar-lang a[aria-current="page"] {
    color: var(--mint);
}

.bar.is-dark .bar-lang a[aria-current="page"] {
    color: var(--ink);
}

.bar-lang[data-pick="de"] a:first-child,
.bar-lang[data-pick="en"] a:last-child {
    color: var(--mint);
}

.bar-lang[data-pick="de"] a:last-child,
.bar-lang[data-pick="en"] a:first-child {
    color: inherit;
}

.bar.is-dark .bar-lang[data-pick="de"] a:first-child,
.bar.is-dark .bar-lang[data-pick="en"] a:last-child {
    color: var(--ink);
}

/* Cross-document view transition: the thumb morphs from its old to new place */
@view-transition {
    navigation: auto;
}

::view-transition-group(lang-thumb) {
    animation-duration: 0.5s;
    animation-timing-function: var(--spring);
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.18s;
}

.bar-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--mint);
    font-weight: 600;
    text-decoration: none;
}

.bar.is-dark .bar-cta {
    background: var(--mint);
    color: var(--ink);
}


.bar-cta-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 0 rgb(74 222 128 / 0.5);
    animation: pulse 2.4s ease-out infinite;
}

.bar-cta-dot.status-degraded,
.bar-cta-dot.status-maintenance { background: #FBBF24; }
.bar-cta-dot.status-major { background: #F87171; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0.45); }
    70%, 100% { box-shadow: 0 0 0 8px rgb(74 222 128 / 0); }
}


/* --- Tiles ----------------------------------------------------------------- */

.tile {
    margin: var(--sec) var(--gutter);
    border-radius: var(--r-xl);
}

/* --- 1. Hero --------------------------------------------------------------- */

.hero {
    --hs: clamp(58px, 11.4vw, 184px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title title"
        "lede  plate";
    align-content: space-between;
    gap: clamp(32px, 6vh, 72px) var(--pad);
    min-height: min(calc(100svh - 96px), 920px);
    margin: var(--sec) var(--gutter);
    padding: clamp(36px, 7vh, 88px) var(--pad) var(--pad);
    border-radius: var(--r-xl);
    background:
        radial-gradient(70% 90% at 88% -10%, rgb(255 255 255 / 0.85), transparent 60%),
        radial-gradient(60% 70% at 0% 110%, rgb(189 216 225 / 0.9), transparent 65%),
        var(--mint);
    color: var(--ink);
}

.hero-title {
    grid-area: title;
    font-size: var(--hs);
    letter-spacing: -0.05em;
    line-height: 0.92;
    display: grid;
}

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

.line-in {
    display: inline-block;
}


.l2 .line-in {
    background: linear-gradient(100deg, var(--ink) 0%, var(--ink-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 0.06em;
}

.js .line-in {
    animation: rise 1s var(--spring) both;
}

.js .l2 .line-in {
    animation-delay: 0.1s;
}

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

.hero-foot {
    grid-area: lede;
    align-self: end;
    display: grid;
    gap: 24px;
    max-width: 38rem;
}

.hero-lede {
    font-size: clamp(19px, 1.7vw, 26px);
    line-height: 1.35;
    letter-spacing: -0.012em;
    font-weight: 500;
    color: color-mix(in oklab, var(--ink) 82%, transparent);
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
}

/* The plate: a glass card that leans toward the pointer (decorative, so spring-smoothed) */
.hero-plate {
    --rx: 0deg;
    --ry: 0deg;
    grid-area: plate;
    align-self: end;
    display: grid;
    gap: 22px;
    width: clamp(240px, 22vw, 320px);
    padding: 22px 24px 20px;
    border-radius: var(--r-l);
    background: rgb(255 255 255 / 0.55);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.7) inset, var(--shadow-2);
    color: var(--ink);
    text-decoration: none;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.6s var(--spring), box-shadow 0.6s var(--spring);
}

.hero-plate:active {
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) scale(0.98);
    transition-duration: var(--t-fast);
}

.hp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-head .logo {
    width: 40px;
}

.hp-num {
    font-size: clamp(64px, 6vw, 92px);
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.hp-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.hp-dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ADE80;
    animation: pulse 2.4s ease-out infinite;
}

/* --- 2. Work --------------------------------------------------------------- */

.work-sec {
    margin: var(--sec) var(--gutter);
    padding: var(--pad);
    border-radius: var(--r-xl);
    background: var(--ink);
    color: var(--paper);
}

.work-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px 40px;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.work-title {
    font-size: clamp(40px, 6.2vw, 96px);
    color: var(--paper);
}

.work-lede {
    max-width: 34rem;
    margin-top: 18px;
    font-size: clamp(18px, 1.4vw, 22px);
    line-height: 1.4;
    color: color-mix(in oklab, var(--mint) 85%, transparent);
    text-wrap: pretty;
}

.work-filters {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.wf-btn {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--mint);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.wf-btn.active {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}

@media (hover: hover) and (pointer: fine) {
    .wf-btn:not(.active):hover {
        background: rgb(255 255 255 / 0.1);
    }
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 20px);
}

.work-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r-l);
    background: var(--paper);
    color: var(--ink);
    transition: transform var(--t-slow) var(--spring), box-shadow var(--t-slow) var(--spring);
}

.work-card:first-child {
    grid-column: 1 / -1;
}

@media (hover: hover) and (pointer: fine) {
    .work-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.5);
    }
}

.work-card.is-internal {
    background: rgb(255 255 255 / 0.07);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1) inset;
    color: var(--paper);
}

.wc-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px 16px;
}

.wc-num {
    font-size: 22px;
    letter-spacing: -0.04em;
    opacity: 0.45;
}

.wc-meta {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
}

.is-internal .wc-meta {
    color: color-mix(in oklab, var(--mint) 85%, transparent);
}

.wc-badge {
    margin-left: auto;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--mint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

.is-internal .wc-badge {
    background: var(--mint);
    color: var(--ink);
}

.wc-stage {
    margin: 0 12px;
    overflow: hidden;
    border-radius: var(--r-m);
    background: var(--mint);
}

.wc-shot {
    display: block;
    box-shadow: 0 0 0 1px var(--hair) inset;
    outline: 1px solid var(--hair);
    outline-offset: -1px;
}

.wc-shot img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 465;
    object-fit: cover;
    object-position: top;
    transition: transform 1.1s var(--spring);
}

@media (hover: hover) and (pointer: fine) {
    .work-card:hover .wc-shot img {
        transform: scale(1.025);
    }
}

.wc-mini-ui {
    min-height: 100%;
    padding: 18px 20px;
    background: rgb(0 20 28 / 0.55);
    color: var(--paper);
}

.mui-bar,
.ui-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.mui-bar b,
.ui-bar b {
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--ink);
    font-size: 10px;
}

.mui-list {
    display: grid;
    margin-top: 12px;
}

.mui-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid rgb(255 255 255 / 0.12);
    font-size: 15px;
}

.mui-list li b {
    font-weight: 600;
    color: var(--mint);
    text-align: right;
}

.wc-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px 24px;
}

.wc-title {
    font-family: var(--font-display);
    font-stretch: 104%;
    font-weight: 800;
    font-size: clamp(24px, 2.2vw, 32px);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.wc-title a {
    display: inline-block;
    padding-block: 6px;
    text-decoration: none;
}

.wc-text {
    max-width: 60ch;
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.5;
    text-wrap: pretty;
}

.is-internal .wc-text {
    color: color-mix(in oklab, var(--paper) 78%, transparent);
}

.wc-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 10px;
}

.wc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wc-tags span {
    padding: 5px 11px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--ink) 7%, transparent);
    font-size: 13px;
    font-weight: 600;
}

.is-internal .wc-tags span {
    background: rgb(255 255 255 / 0.1);
}

.wc-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--mint);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.is-internal .wc-action {
    background: var(--mint);
    color: var(--ink);
}

/* --- 3. Manifesto ---------------------------------------------------------- */

.intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(32px, 5vw, 80px);
    margin: var(--sec) var(--gutter);
    padding: var(--pad);
    border-radius: var(--r-xl);
    background: var(--tile);
    color: var(--ink);
    overflow: hidden;
}

.intro-title {
    font-size: clamp(44px, 7.2vw, 120px);
    letter-spacing: -0.05em;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.intro-title span {
    display: block;
}

.intro-title .t2 {
    color: var(--ink-3);
}

.stairs {
    max-width: 30ch;
    font-size: clamp(21px, 2vw, 30px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text-2);
}

.step {
    display: inline;
}

.step.s2 {
    color: var(--ink);
    font-weight: 700;
}

.zero {
    display: grid;
    justify-items: end;
    text-align: right;
    padding: clamp(20px, 3vw, 36px);
    border-radius: var(--r-l);
    background: var(--mint);
}

.zero-num {
    font-size: clamp(120px, 20vw, 320px);
    letter-spacing: -0.07em;
    line-height: 0.82;
    color: var(--ink);
}

.zero-text {
    max-width: 24ch;
    margin-top: 20px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

/* --- 4. Name --------------------------------------------------------------- */

.name {
    margin: var(--sec) var(--gutter);
    padding: var(--pad);
    border-radius: var(--r-xl);
    background: var(--mint-2);
    color: var(--ink);
}

.name-title {
    font-size: clamp(36px, 5vw, 76px);
    margin-bottom: clamp(24px, 4vw, 56px);
}

.name-grid {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: end;
    gap: clamp(24px, 6vw, 96px);
}

.name-grid .name-logo {
    width: auto;
    height: clamp(110px, 22vw, 260px);
}

.name-keys {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.k {
    padding: 20px;
    border-radius: var(--r-m);
    background: rgb(255 255 255 / 0.55);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
}

.k strong {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--mint);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
}

.js .name-logo path {
    opacity: 0;
    transform: translateY(14px);
    transform-box: fill-box;
    transition: opacity 0.6s ease, transform var(--t-slow) var(--spring);
}

.js .name-logo .nyv-y { transition-delay: 0.14s; }
.js .name-logo .nyv-v { transition-delay: 0.28s; }

.js [data-draw].in .name-logo path {
    opacity: 1;
    transform: none;
}

.js .name-keys .k {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform var(--t-slow) var(--spring);
}

.js .name-keys .k1 { transition-delay: 0.3s; }
.js .name-keys .k2 { transition-delay: 0.4s; }
.js .name-keys .k3 { transition-delay: 0.5s; }

.js [data-draw].in .k {
    opacity: 1;
    transform: none;
}

/* --- 5. What we build ------------------------------------------------------ */

.build {
    padding: clamp(48px, 7vw, 112px) var(--gutter) var(--sec);
}

.build-head {
    max-width: 1280px;
    margin: 0 auto clamp(28px, 4vw, 56px);
    padding-inline: calc(var(--pad) / 2);
}

.build-title {
    font-size: clamp(40px, 6.2vw, 96px);
}

.build-list {
    display: grid;
    gap: var(--sec);
    max-width: 1280px;
    margin: 0 auto;
}

.svc {
    display: grid;
    gap: clamp(24px, 3vw, 40px);
    padding: clamp(22px, 3.4vw, 48px);
    border-radius: var(--r-xl);
    background: var(--tile);
    box-shadow: var(--shadow-1);
}

.svc-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

.svc-icon {
    flex: none;
    width: 60px;
    padding: 13px;
    border-radius: 18px;
    background: var(--ink);
    color: var(--mint);
}

.svc-num {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-2);
}

.svc-title {
    font-family: var(--font-display);
    font-stretch: 104%;
    font-weight: 800;
    font-size: clamp(26px, 3.2vw, 46px);
    letter-spacing: -0.035em;
    line-height: 1.02;
    text-wrap: balance;
}

.svc-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
}

.flip .svc-row .ui {
    order: 2;
}

.svc-items {
    display: grid;
    gap: 14px;
}

.svc-items li {
    position: relative;
    padding-left: 30px;
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.4;
    text-wrap: pretty;
}

.svc-items li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--mint) 45%, transparent);
}

.svc-items li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: calc(0.35em + 4px);
    width: 6px;
    height: 3px;
    border-left: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(-45deg);
}

/* Demo panels */
.ui {
    overflow: hidden;
    border-radius: var(--r-l);
    background: color-mix(in oklab, var(--mint) 55%, white);
    box-shadow: 0 0 0 1px var(--hair) inset;
}

.ui-bar {
    padding: 14px 18px;
    background: var(--ink);
    color: var(--mint);
}

.ui-bar b {
    background: var(--mint);
}

.ui-body {
    padding: 16px;
}

.ui-ops,
.ui-pipe {
    display: grid;
    gap: 10px;
}

.ui-op-row,
.ui-pipe-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--r-m);
    background: var(--tile);
    box-shadow: var(--shadow-1);
}

.ui-op-code,
.ui-pipe-num {
    flex: none;
    padding: 4px 9px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--mint);
    font-size: 12px;
    font-weight: 700;
}

.ui-op-main,
.ui-pipe-info {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 2px;
    font-size: 14px;
    line-height: 1.25;
}

.ui-op-main strong,
.ui-pipe-info strong {
    font-weight: 700;
}

.ui-op-main span,
.ui-pipe-info span {
    color: var(--text-2);
    font-size: 13px;
}

.ui-op-pill,
.ui-pipe-time {
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--mint);
    font-size: 12px;
    font-weight: 700;
}

.ui-op-pill.ok {
    background: #CFEFD9;
    color: #0B5A2B;
}

.ui-op-pill.warn {
    background: #FBE7B5;
    color: #6B4600;
}

.ui-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-top: 1px solid var(--hair);
    font-size: 13px;
    font-weight: 600;
}

.ui-foot b {
    font-weight: 700;
}

.ui-web-body {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.ui-lang-tabs {
    display: inline-flex;
    justify-self: start;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--ink) 8%, transparent);
}

.ui-lang-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ui-lang-btn.active {
    background: var(--tile);
    box-shadow: var(--shadow-1);
}

.ui-hello {
    font-size: clamp(44px, 6vw, 84px);
    letter-spacing: -0.05em;
    line-height: 1;
    min-height: 1em;
}

.ui-web-sub {
    min-height: 2.8em;
    color: var(--text-2);
    font-size: 16px;
}

.ui-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--hair);
}

.ui-metric {
    display: grid;
    gap: 2px;
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
}

.ui-metric + .ui-metric {
    border-left: 1px solid var(--hair);
}

.ui-metric b {
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.ui-ai-in {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--r-m);
    background: var(--ink);
    color: var(--paper);
}

.ui-ai-label {
    color: var(--mint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.ui-ai-quote {
    font-size: 15px;
    line-height: 1.4;
}

.ui-ai-out {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.ui-ai-out li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--r-m);
    background: var(--tile);
    box-shadow: var(--shadow-1);
    font-size: 14px;
    font-weight: 600;
}

.ui-ai-out li b {
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--mint);
    font-size: 12px;
}

/* --- 6. Marquee ------------------------------------------------------------ */

.mq {
    display: grid;
    gap: clamp(4px, 1vw, 12px);
    margin: var(--sec) var(--gutter);
    padding: clamp(32px, 5vw, 72px) 0;
    border-radius: var(--r-xl);
    background: var(--ink);
    color: var(--mint);
    overflow: hidden;
    -webkit-mask-image: none;
}

.mq-row {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.mq-row.r1 {
    color: color-mix(in oklab, var(--mint) 45%, transparent);
}

.mq-track {
    display: flex;
    width: max-content;
    animation: slide 60s linear infinite;
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 106%;
    font-size: clamp(56px, 10vw, 150px);
    letter-spacing: -0.05em;
    line-height: 1.05;
    white-space: nowrap;
}

.r1 .mq-track {
    animation-duration: 72s;
    animation-direction: reverse;
}

@media (hover: hover) and (pointer: fine) {
    .mq:hover .mq-track {
        animation-play-state: paused;
    }
}

.mq-set {
    display: flex;
    align-items: center;
    gap: 0.3em;
    padding-right: 0.3em;
}

.mq-icon {
    width: 0.62em;
    flex: none;
}

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

/* --- 7. Process ------------------------------------------------------------ */

.how {
    padding: clamp(48px, 7vw, 112px) var(--gutter);
}

.stages {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--sec);
    max-width: 1280px;
    margin: 0 auto;
    counter-reset: stage;
}

.stage {
    position: relative;
    display: grid;
    align-content: start;
    gap: 22px;
    padding: 24px;
    border-radius: var(--r-l);
    background: var(--tile);
    box-shadow: var(--shadow-1);
    counter-increment: stage;
    transition: transform var(--t-slow) var(--spring), box-shadow var(--t-slow) var(--spring);
}

@media (hover: hover) and (pointer: fine) {
    .stage:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-2);
    }
}

.stage::before {
    content: counter(stage, decimal-leading-zero);
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-2);
}

.stage-icon {
    display: block;
    width: 52px;
    padding: 11px;
    border-radius: 16px;
    background: var(--mint);
    color: var(--ink);
}

.stage-line {
    font-size: clamp(24px, 2.2vw, 32px);
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.stage-text {
    margin-top: 12px;
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.45;
    text-wrap: pretty;
}

.st4 {
    background: var(--ink);
    color: var(--paper);
}

.st4 .stage-icon {
    background: var(--mint);
}

.st4 .stage-text,
.st4::before {
    color: color-mix(in oklab, var(--mint) 85%, transparent);
}

/* --- 8. FAQ ---------------------------------------------------------------- */

.faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: start;
    gap: clamp(24px, 5vw, 80px);
    max-width: 1280px;
    margin: clamp(24px, 4vw, 64px) auto;
    padding: 0 calc(var(--gutter) + var(--pad) / 2);
}

.faq-title {
    position: sticky;
    top: 110px;
    font-size: clamp(40px, 5.6vw, 88px);
}

.drawer {
    display: grid;
    gap: 10px;
}

.card {
    border-radius: var(--r-l);
    background: var(--tile);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    align-items: center;
    min-height: 76px;
    padding: 20px 24px;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

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

.tab {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-2);
}

.q {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(19px, 1.6vw, 23px);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.plus {
    position: relative;
    grid-column: 2;
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--mint);
    transition: transform var(--t-slow) var(--spring), background-color 0.2s ease;
}

.plus::before,
.plus::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
}

.plus::after {
    transform: rotate(90deg);
}

details[open] .plus {
    transform: rotate(135deg);
    background: var(--ink);
}

details[open] .plus::before,
details[open] .plus::after {
    background: var(--mint);
}

.a {
    max-width: 58ch;
    padding: 0 24px 24px;
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.5;
    text-wrap: pretty;
}

/* Height animates open AND closed (interruptible, same spring both ways) */
@supports (interpolate-size: allow-keywords) {
    .card::details-content {
        block-size: 0;
        overflow: hidden;
        opacity: 0;
        transition: block-size 0.55s var(--spring), opacity 0.3s ease, content-visibility 0.55s allow-discrete;
    }

    .card[open]::details-content {
        block-size: auto;
        opacity: 1;
    }
}

/* --- 9. Contact ------------------------------------------------------------ */

.sketch-sec {
    margin: var(--sec) var(--gutter);
    border-radius: var(--r-xl);
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
}

.werkblatt {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 80px);
    padding: var(--pad);
}

.wb-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--mint);
}

.wb-sla {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.1);
    color: var(--paper);
}

.wb-sla i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ADE80;
    animation: pulse 2.4s ease-out infinite;
}

.wb-title {
    margin-top: clamp(24px, 4vw, 48px);
    font-size: clamp(44px, 6vw, 96px);
    color: var(--paper);
}

.wb-sub {
    max-width: 32rem;
    margin-top: 20px;
    font-size: clamp(18px, 1.4vw, 21px);
    color: color-mix(in oklab, var(--mint) 88%, transparent);
    text-wrap: pretty;
}

.wb-picker {
    margin-top: clamp(24px, 3vw, 40px);
}

.wb-pick-label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mint);
}

.wb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wb-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.1);
    color: var(--paper);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.wb-chip-box {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.14);
    transition: background-color 0.2s ease, transform var(--t-base) var(--spring);
}

.wb-chip-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 5px;
    width: 9px;
    height: 5px;
    border-left: 2.5px solid var(--ink);
    border-bottom: 2.5px solid var(--ink);
    transform: rotate(-45deg) scale(0);
    transition: transform var(--t-base) var(--spring);
}

.wb-chip[aria-pressed="true"] {
    background: var(--paper);
    color: var(--ink);
}

.wb-chip[aria-pressed="true"] .wb-chip-box {
    background: var(--mint);
}

.wb-chip[aria-pressed="true"] .wb-chip-box::after {
    transform: rotate(-45deg) scale(1);
}

@media (hover: hover) and (pointer: fine) {
    .wb-chip:not([aria-pressed="true"]):hover {
        background: rgb(255 255 255 / 0.18);
    }
}

.wb-right {
    align-self: center;
    padding: clamp(18px, 2.4vw, 32px);
    border-radius: var(--r-l);
    background: rgb(255 255 255 / 0.07);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1) inset;
}

.wb-form {
    display: grid;
    gap: 12px;
}

.wb-form input,
.wb-form textarea {
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    border: 0;
    border-radius: var(--r-m);
    background: rgb(255 255 255 / 0.09);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12) inset;
    color: var(--paper);
    font-size: 17px;
    appearance: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.wb-form input::placeholder,
.wb-form textarea::placeholder {
    color: color-mix(in oklab, var(--mint) 65%, transparent);
}

.wb-form input:focus,
.wb-form textarea:focus {
    outline: none;
    background: rgb(255 255 255 / 0.15);
    box-shadow: 0 0 0 2px var(--mint) inset;
}

.wb-form .submit {
    --bg: var(--mint);
    --fg: var(--ink);
    width: 100%;
    margin-top: 4px;
}

.wb-form .submit:disabled {
    opacity: 0.6;
    cursor: progress;
}

.wb-turnstile {
    overflow: hidden;
    border-radius: var(--r-s);
}

.form-feedback {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--r-m);
    background: rgb(255 255 255 / 0.12);
    font-size: 15px;
    font-weight: 600;
}

.form-feedback.error {
    background: #7F1D1D;
    color: #fff;
}

.wb-ok-card {
    overflow: hidden;
    border-radius: var(--r-l);
    background: var(--paper);
    color: var(--ink);
    animation: ok-pop 0.6s var(--spring) both;
}

@keyframes ok-pop {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
}

.wb-ok-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: var(--ink);
    color: var(--mint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.wb-ok-body {
    display: grid;
    gap: 14px;
    justify-items: start;
    padding: 28px 24px;
}

.wb-ok-icon {
    width: 56px;
    padding: 12px;
    border-radius: 50%;
    background: var(--mint);
}

.wb-ok-title {
    font-size: clamp(32px, 3.4vw, 48px);
}

.wb-ok-text {
    color: var(--text-2);
}

.wb-ok-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--hair);
    font-size: 14px;
    font-weight: 600;
}

.wb-ok-reset {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--mint);
    font-weight: 600;
    cursor: pointer;
}

/* --- 10. Footer ------------------------------------------------------------ */

.foot {
    display: grid;
    gap: clamp(32px, 6vw, 96px);
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 112px) calc(var(--gutter) + var(--pad) / 2) 32px;
}

.foot-top {
    display: grid;
    grid-template-columns: auto 1fr 1fr auto;
    align-items: center;
    gap: 24px;
    color: var(--text-2);
    font-size: 15px;
}

.foot-mark {
    display: block;
    width: 72px;
    color: var(--ink);
}

.foot-up {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--tile);
    box-shadow: var(--shadow-1);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.foot-mail {
    display: block;
    width: fit-content;
    font-size: clamp(56px, 13vw, 210px);
    letter-spacing: -0.06em;
    line-height: 0.9;
    text-decoration: none;
    color: var(--ink);
}

.foot-mail span:last-child {
    color: var(--ink-3);
    transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .foot-mail:hover span:last-child {
        color: var(--ink);
    }
}

.foot-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    padding-top: 24px;
    border-top: 1px solid var(--hair);
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.6;
}

.foot-meta a {
    display: inline-block;
    padding-block: 10px;
}

/* --- Subpages -------------------------------------------------------------- */

.subpage-sec {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 112px) calc(var(--gutter) + 8px) clamp(48px, 8vw, 96px);
    min-height: 70svh;
}

.subpage-title {
    margin-bottom: clamp(24px, 4vw, 48px);
    font-size: clamp(44px, 7vw, 104px);
}

.content-block {
    display: grid;
    gap: 14px;
    padding: clamp(22px, 4vw, 48px);
    border-radius: var(--r-xl);
    background: var(--tile);
    box-shadow: var(--shadow-1);
}

.content-block h3 {
    margin-top: 18px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.content-block h3:first-child {
    margin-top: 0;
}

.content-block p {
    max-width: 68ch;
    color: var(--text-2);
}

.content-block a {
    color: var(--ink);
    font-weight: 600;
}

.matt-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 48px var(--gutter);
}

.matt-head {
    margin-bottom: 36px;
    text-align: center;
}

.matt-head .logo {
    width: 84px;
    margin: 0 auto 20px;
}

.matt-head h1 {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 580px;
    margin-bottom: 32px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 30px 20px;
    border-radius: var(--r-l);
    background: var(--tile);
    box-shadow: var(--shadow-1);
    text-decoration: none;
    transition: transform var(--t-base) var(--spring);
}

.contact-card h3 {
    font-weight: 700;
}

.contact-card p {
    color: var(--text-2);
    font-size: 15px;
}

.contact-card:active {
    transform: scale(0.96);
    transition-duration: var(--t-fast);
}

@media (hover: hover) and (pointer: fine) {
    .contact-card:hover {
        transform: translateY(-3px);
    }
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 1100px) {
    .stages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .st3,
    .st4 {
        grid-column: span 1;
    }
}

@media (max-width: 960px) {
    .bar {
        border-radius: 28px;
    }

    /* Section links drop to their own row; tucked away while scrolling down */
    .bar-links {
        order: 5;
        flex: 1 0 100%;
        gap: 4px;
        max-height: 48px;
        margin: 0;
        padding-top: 4px;
        overflow-x: auto;
        scrollbar-width: none;
        transition: max-height var(--t-base) var(--spring), opacity 0.2s ease, padding 0.3s ease, visibility 0.3s;
    }

    .bar-links::-webkit-scrollbar {
        display: none;
    }

    .bar.is-tucked .bar-links {
        max-height: 0;
        padding-top: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
    }

    .bar-lang {
        margin-left: auto;
    }

    .svc-row,
    .flip .svc-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .flip .svc-row .ui {
        order: 0;
    }

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

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

    .faq-title {
        position: static;
    }

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

    .zero {
        justify-items: start;
        text-align: left;
    }

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

@media (max-width: 760px) {
    :root {
        --r-xl: 30px;
        --r-l: 22px;
    }

    .bar {
        padding: 6px 6px 6px 16px;
        gap: 0 8px;
    }

    .bar-mark {
        width: 54px;
    }

    .bar-cta {
        padding: 0 14px;
        font-size: 14px;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "title"
            "plate"
            "lede";
        min-height: calc(100svh - 88px);
    }

    .hero-plate {
        width: min(100%, 300px);
        justify-self: start;
    }

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

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

    .name-keys {
        grid-template-columns: minmax(0, 1fr);
    }

    .foot-top {
        grid-template-columns: 1fr auto;
    }

    .foot-top p {
        grid-column: 1 / -1;
        order: 5;
    }

    .contact-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ui-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .ui-metric + .ui-metric {
        border-left: 0;
        border-top: 1px solid var(--hair);
    }
}

/* --- Mobile hero: headline, one sentence, one button, then a slim label --- */
@media (max-width: 760px) {
    .hero {
        --hs: min(17vw, 84px);
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "title"
            "lede"
            "plate";
        align-content: start;
        gap: clamp(28px, 6vh, 48px);
        min-height: 0;
        padding: 28px 20px 20px;
    }

    .hero-foot { align-self: start; gap: 22px; max-width: none; }
    .hero-lede { font-size: 21px; line-height: 1.32; }

    .hero-actions { display: grid; gap: 4px; }
    .hero-actions .btn { width: 100%; }
    .hero-actions .link-more { justify-content: center; }

    .hero-plate {
        align-self: end;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 14px;
        width: 100%;
        padding: 14px 18px;
    }

    .hp-head > span { display: none; }
    .hp-head .logo { width: 44px; }
    .hp-num { display: none; }
    .hp-foot { font-size: 16px; font-weight: 600; }
    .hp-dot { display: none; }
}

/* --- Accessibility: motion, transparency, contrast ------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .js [data-reveal] {
        transform: none;
        filter: none;
    }

    .hero-plate {
        transform: none !important;
    }

    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important;
    }

    .mq-track {
        animation: none;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .bar {
        background: var(--paper);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .bar.is-dark {
        background: var(--ink);
    }

    
}

@media (prefers-contrast: more) {
    :root {
        --text-2: var(--ink);
        --hair: var(--ink);
    }

    .card,
    .svc,
    .stage,
    .work-card,
    .content-block {
        box-shadow: 0 0 0 2px var(--ink) inset;
    }
}
