:root {

    --ink-900: #08080a;
    --ink-800: #0c0c10;
    --ink-700: #121218;
    --ink-600: #191921;

    --line: #23232d;
    --line-soft: #17171e;

    --paper: #f3f3f5;
    --paper-2: #a8a8b4;
    --paper-3: #82828f;

    --accent: #f01520;
    --accent-btn: #e00f1a;
    --accent-hot: #ff3742;
    --accent-tint: rgba(240, 21, 32, 0.09);

    --radius: 6px;
    --container: 1280px;
    --nav-h: 68px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 0.5s;

    --logo-1x: url('../assets/logo-lockup.webp');
    --logo-img: image-set(url('../assets/logo-lockup.webp') 1x,
                          url('../assets/logo-lockup@2x.webp') 2x);

    --mark-1x: url('../assets/wave-mark.webp');
    --mark-img: image-set(url('../assets/wave-mark.webp') 1x,
                          url('../assets/wave-mark@2x.webp') 2x);

    --platform-invert: 0;

    color-scheme: dark;
}

:root[data-theme='light'] {
    --ink-900: #ffffff;
    --ink-800: #f4f4f7;
    --ink-700: #ffffff;
    --ink-600: #fafafc;

    --line: #d9d9e1;
    --line-soft: #e6e6ee;

    --paper: #0b0b0f;
    --paper-2: #4a4a56;
    --paper-3: #5f5f6b;

    --accent: #e5121c;
    --accent-btn: #d60f18;
    --accent-hot: #b80b13;
    --accent-tint: rgba(214, 15, 24, 0.07);

    --logo-1x: url('../assets/logo-lockup-light.webp');
    --logo-img: image-set(url('../assets/logo-lockup-light.webp') 1x,
                          url('../assets/logo-lockup-light@2x.webp') 2x);
    --mark-1x: url('../assets/wave-mark-light.webp');
    --mark-img: image-set(url('../assets/wave-mark-light.webp') 1x,
                          url('../assets/wave-mark-light@2x.webp') 2x);

    --platform-invert: 1;

    --lift: 0 1px 2px rgba(11, 11, 25, 0.05),
            0 10px 28px -18px rgba(11, 11, 25, 0.22);

    color-scheme: light;
}

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

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

body {
    margin: 0;
    background: var(--ink-900);
    color: var(--paper);
    font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

button { font: inherit; color: inherit; }

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

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 12px 18px;
    background: var(--accent-btn);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

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

.section {
    padding-block: clamp(72px, 9vw, 128px);
    position: relative;
}

.section--band {
    background: var(--ink-800);
    border-block: 1px solid var(--line-soft);
}

.mono {
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    font-variant-numeric: tabular-nums;
}

.section-head { max-width: 840px; margin-bottom: clamp(40px, 5vw, 64px); }

.section-head h2 {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
}

.section-head p {
    margin-top: 20px;
    color: var(--paper-2);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    max-width: 60ch;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
                transform 0.12s var(--ease), color 0.2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--accent-btn);
    color: #fff;
}
.btn--primary:hover { background: var(--accent-hot); color: #fff; }

.btn--ghost {
    background: transparent;
    color: var(--paper);
    border-color: var(--line);
}
.btn--ghost:hover { background: var(--ink-700); border-color: #33333f; }

.btn--sm { padding: 10px 18px; font-size: 0.875rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--paper);
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow:hover { color: var(--accent-hot); border-bottom-color: var(--accent); }
.link-arrow svg { width: 14px; height: 14px; flex: none; }

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
                backdrop-filter 0.3s var(--ease);
}

.nav.is-stuck {
    background: rgba(8, 8, 10, 0.82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--line-soft);
}

.nav .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-logo {
    flex: none;
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    display: block;

    height: clamp(20px, 2vw, 26px);

    aspect-ratio: 1561 / 348;
    background-image: var(--mark-1x);
    background-image: var(--mark-img);
    background-position: left center;
    background-size: contain;
    background-repeat: no-repeat;
}

.footer-brand .nav-logo-img {
    height: 46px;
    aspect-ratio: 1881 / 360;
    background-image: var(--logo-1x);
    background-image: var(--logo-img);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    position: relative;
    color: var(--paper-2);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    padding-block: 6px;
    transition: color 0.2s var(--ease);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
}

.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.btn--primary,
.nav-links a.btn--primary:hover { color: #fff; }
.nav-links a.btn::after { display: none; }

.theme-toggle {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--paper-2);
    cursor: pointer;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
                background 0.2s var(--ease);
}

.theme-toggle:hover {
    color: var(--paper);
    border-color: var(--paper-3);
    background: var(--ink-700);
}

.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme='light'] .theme-toggle .i-sun { display: none; }
:root[data-theme='light'] .theme-toggle .i-moon { display: block; }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle span {
    position: relative;
    width: 16px;
    height: 1.5px;
    background: var(--paper);
    transition: background 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 16px;
    height: 1.5px;
    background: var(--paper);
    transition: transform 0.28s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-5px) rotate(-45deg); }

#navSentinel {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 12px;
    pointer-events: none;
}

.hero {
    position: relative;
    min-height: min(100dvh, 920px);
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-h) + clamp(48px, 7vh, 88px));
    padding-bottom: clamp(56px, 8vh, 96px);
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-width: 0;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: min(600px, 48%);
}

.hero h1 {
    font-size: clamp(2.5rem, 5.6vw, 4.5rem);
    letter-spacing: -0.04em;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    margin-top: 26px;
    max-width: 46ch;
    color: var(--paper-2);
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.55;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-art {
    position: absolute;
    left: 56%;
    right: 0;
    top: 58%;
    z-index: 1;
    aspect-ratio: 1881 / 360;
    background-image: var(--logo-1x);
    background-image: var(--logo-img);
    background-position: right center;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
    pointer-events: none;

    animation: hero-art-in 1.2s var(--ease) 0.1s backwards,
               wave-drift 14s ease-in-out 1.3s infinite alternate;
}

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

@keyframes wave-drift {
    from { transform: translate3d(0, -50%, 0) scale(1); }
    to   { transform: translate3d(-14px, calc(-50% - 10px), 0) scale(1.02); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -6%;
    width: 68vw;
    aspect-ratio: 1;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(240, 21, 32, 0.11), transparent 62%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.platforms { padding-block: clamp(40px, 5vw, 64px); }

.platforms h2 {
    margin-bottom: 32px;
    color: var(--paper-3);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.platform-strip {
    position: relative;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.platform-track {
    display: flex;
    width: max-content;
    animation: platform-scroll 42s linear infinite;
}

.platform-strip:hover .platform-track { animation-play-state: paused; }

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

.platform-set {
    display: flex;
    align-items: center;
}

.platform-track { --pl-h: clamp(24px, 2.6vw, 32px); }

.platform-set li {
    flex: none;
    margin-right: clamp(64px, 9vw, 130px);
    display: flex;
    align-items: center;
}

.platform-set img {
    height: calc(var(--pl-h) * var(--k, 1));
    width: auto;
    opacity: 0.72;
    filter: invert(var(--platform-invert));
    transition: opacity 0.3s var(--ease);
}

.platform-set li:hover img { opacity: 1; }

.pl-push {
    gap: calc(var(--pl-h) * 0.2);
    color: var(--paper);
    opacity: 0.72;
    transition: opacity 0.3s var(--ease);
}

.pl-push:hover { opacity: 1; }

.pl-push svg {
    height: calc(var(--pl-h) * 0.86);
    width: auto;
    fill: currentColor;
}

.pl-push span {
    font-size: calc(var(--pl-h) * 0.74);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pl-google   { --k: 0.97; }
.pl-tiktok   { --k: 1.19; }
.pl-bigo     { --k: 0.84; }
.pl-snapchat { --k: 0.88; }
.pl-meta     { --k: 0.91; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat {
    padding: clamp(28px, 3.4vw, 44px);
    border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }

.stat dt {
    color: var(--paper-2);
    font-size: 0.9375rem;
    order: 2;
    margin-top: 10px;
}

.stat dd {
    margin: 0;
    order: 1;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
}

.stat { display: flex; flex-direction: column; }
.stat dd span { color: var(--accent); }

.bento {
    display: grid;
    grid-template-columns: 1.55fr 1fr 1fr;
    gap: 16px;
}

.bento-cell {
    position: relative;
    padding: clamp(28px, 3.2vw, 44px);
    background: var(--ink-700);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.bento-cell:hover { border-color: var(--line); background: var(--ink-600); }

.bento-cell--wide {
    display: flex;
    flex-direction: column;
}

.bento-cell--accent {
    background: linear-gradient(160deg, var(--accent-tint), transparent 65%), var(--ink-700);
    border-color: rgba(240, 21, 32, 0.22);
}
.bento-cell--accent:hover { border-color: rgba(240, 21, 32, 0.4); }

.bento-cell h3 {
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    margin-bottom: 14px;
}

.bento-cell--wide h3 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); }

.bento-cell p {
    color: var(--paper-2);
    font-size: 1rem;
    max-width: 52ch;
}

.tabs {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.tablist {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 1px solid var(--line);
}

.tab {
    position: relative;
    padding: 16px 20px;
    background: transparent;
    border: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    text-align: left;
    color: var(--paper-3);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.tab::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s var(--ease);
}

.tab:hover { color: var(--paper-2); background: var(--ink-800); }

.tab[aria-selected='true'] { color: var(--paper); background: var(--ink-700); }
.tab[aria-selected='true']::before { transform: scaleY(1); }

.tabpanels { display: grid; }

.tabpanels > .tabpanel {
    grid-area: 1 / 1;
    transition: opacity 0.28s var(--ease);
}

.tabpanel[hidden] {
    display: block;
    visibility: hidden;
    opacity: 0;
}

.tabpanel h3 {
    font-size: clamp(1.375rem, 2.4vw, 1.875rem);
    margin-bottom: 28px;
}

.chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--ink-700);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    font-weight: 500;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.chip:hover { border-color: var(--line); transform: translateY(-2px); }

.chip .mono {
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.approach {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
}

.approach li {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(26px, 3vw, 40px);
    background: var(--ink-900);
    transition: background 0.3s var(--ease);
}
.approach li:hover { background: var(--ink-800); }

.approach .idx {
    color: var(--accent);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
}

.approach p {
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

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

.role {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: clamp(26px, 3vw, 36px) 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.3s var(--ease);
}

.role:hover { background: var(--ink-700); }

.role h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.role-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-stack span {
    padding: 5px 12px;
    background: var(--ink-700);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--paper-2);
    font-size: 0.8125rem;
    font-weight: 500;
}

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.contact-aside h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }

.contact-aside p {
    margin-top: 20px;
    color: var(--paper-2);
    max-width: 40ch;
}

.contact-channels {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-channels dt {
    color: var(--paper-3);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-channels dd {
    margin: 6px 0 0;
    font-size: 1.0625rem;
    font-weight: 500;
}

.contact-channels a {
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.contact-channels a:hover { color: var(--accent-hot); border-bottom-color: var(--accent); }

.form {
    padding: clamp(28px, 3.4vw, 44px);
    background: var(--ink-700);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}

.field { margin-bottom: 22px; }

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--paper-2);
    font-size: 0.875rem;
    font-weight: 500;
}

.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--ink-900);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--paper);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

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

.field input::placeholder,
.field textarea::placeholder { color: var(--paper-3); }

.field input:hover,
.field textarea:hover { border-color: #2e2e3a; }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--ink-800);
}

.field-hint {
    margin-top: 8px;
    color: var(--paper-3);
    font-size: 0.8125rem;
}

.hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form .btn { width: 100%; }

.form-status {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
}
.form-status[hidden] { display: none; }
.form-status.is-ok {
    background: rgba(52, 199, 123, 0.1);
    border: 1px solid rgba(52, 199, 123, 0.3);
    color: #7ee2ab;
}
.form-status.is-error {
    background: var(--accent-tint);
    border: 1px solid rgba(240, 21, 32, 0.32);
    color: #ff8f96;
}

#captchaBox {
    margin-bottom: 22px;
    min-height: 65px;
    border-radius: var(--radius);
    overflow: hidden;
}

.btn[data-busy='true'] { opacity: 0.65; pointer-events: none; }

.footer {
    border-top: 1px solid var(--line);
    padding-block: clamp(56px, 6vw, 80px) 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .nav-logo { margin-right: 0; margin-bottom: 22px; }

.footer-brand p {
    color: var(--paper-2);
    font-size: 0.9375rem;
    max-width: 42ch;
}

.social {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer .social li + li { margin-top: 0; }

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--paper-3);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
                background 0.2s var(--ease), transform 0.2s var(--ease);
}

.social a:hover {
    color: var(--paper);
    border-color: var(--paper-3);
    background: var(--ink-700);
    transform: translateY(-2px);
}

.social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer h4 {
    margin-bottom: 18px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper-3);
}

.footer li + li { margin-top: 12px; }

.footer li a {
    color: var(--paper-2);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.footer li a:hover { color: var(--paper); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
    color: var(--paper-3);
    font-size: 0.875rem;
}

.page-head {
    padding-top: calc(var(--nav-h) + clamp(56px, 8vh, 96px));
    padding-bottom: clamp(40px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
}

.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }

.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--paper-3);
    font-size: 0.875rem;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--paper); }

.prose {
    max-width: 68ch;
    padding-block: clamp(48px, 6vw, 80px);
    color: var(--paper-2);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.prose h2 {
    margin: 48px 0 18px;
    color: var(--paper);
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
}
.prose h2:first-child { margin-top: 0; }

.prose p + p { margin-top: 18px; }

.prose a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hot); }

.prose .btn { text-decoration: none; }

.prose ul {
    margin: 18px 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prose li {
    position: relative;
    padding-left: 26px;
}

.prose li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.66em;
    width: 8px;
    height: 1px;
    background: var(--accent);
}

:root[data-theme='light'] .nav.is-stuck {
    background: rgba(255, 255, 255, 0.84);
    border-bottom-color: var(--line);
}

:root[data-theme='light'] .hero::before {
    background: radial-gradient(circle, rgba(214, 15, 24, 0.06), transparent 60%);
}

:root[data-theme='light'] .bento-cell,
:root[data-theme='light'] .form,
:root[data-theme='light'] .chip { box-shadow: var(--lift); }

:root[data-theme='light'] .btn--ghost:hover { border-color: var(--paper-3); }

:root[data-theme='light'] .field input,
:root[data-theme='light'] .field textarea { background: #f5f5f9; }
:root[data-theme='light'] .field input:hover,
:root[data-theme='light'] .field textarea:hover { border-color: var(--paper-3); }
:root[data-theme='light'] .field input:focus,
:root[data-theme='light'] .field textarea:focus { background: #fff; }

:root[data-theme='light'] .form-status.is-ok {
    background: rgba(23, 145, 84, 0.08);
    border-color: rgba(23, 145, 84, 0.28);
    color: #10683c;
}
:root[data-theme='light'] .form-status.is-error {
    border-color: rgba(184, 11, 19, 0.28);
    color: #a80a12;
}

@media (max-width: 860px) {
    :root[data-theme='light'] .nav-links { background: rgba(255, 255, 255, 0.97); }
}

@media (prefers-reduced-motion: no-preference) {

    .intro {
        opacity: 0;
        animation: intro-rise 0.85s var(--ease) var(--intro-delay, 0ms) both;
    }

    @keyframes intro-rise {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: none; }
    }

    .nav { animation: intro-fade 0.7s var(--ease) both; }

    @keyframes intro-fade {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    .reveal {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
        transition-delay: var(--reveal-delay, 0ms);
    }
    .reveal.is-visible { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {

    .hero { min-height: 0; }
    .hero-copy { max-width: none; }
    .hero-art {
        position: static;
        left: auto;
        right: auto;
        width: min(640px, 100%);
        margin: 48px auto 0;
        transform: none;

        animation: hero-art-in 1.2s var(--ease) 0.1s backwards;
    }
    .hero::before { width: 120vw; right: -30%; }

    .contact { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }

    .nav-links {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 28px;
        background: rgba(8, 8, 10, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
                    visibility 0.25s;
    }

    .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }

    .nav-links a {
        padding: 15px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--line-soft);
    }
    .nav-links a::after { display: none; }
    .nav-links .btn { margin-top: 18px; }

    .bento { grid-template-columns: 1fr; }

    .tabs { grid-template-columns: 1fr; }
    .tablist {
        flex-direction: row;
        overflow-x: auto;
        border-left: 0;
        border-bottom: 1px solid var(--line);
        scrollbar-width: none;
    }
    .tablist::-webkit-scrollbar { display: none; }
    .tab { border-radius: var(--radius) var(--radius) 0 0; white-space: nowrap; }
    .tab::before { left: 0; right: 0; top: auto; bottom: -1px; width: auto; height: 2px;
                   transform: scaleX(0); }
    .tab[aria-selected='true']::before { transform: scaleX(1); }

    .approach { grid-template-columns: repeat(2, 1fr); }

    .role { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 620px) {
    .container { padding-inline: 20px; }

    .stats { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); }
    .stat:last-child { border-bottom: 0; }

    .approach { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 36px; }

}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-art { animation: none; }

    .platform-track { animation: none; }
    .platform-strip { overflow-x: auto; }
}

@media print {
    .nav, .cf-turnstile, .form, .theme-toggle { display: none; }
    body { background: #fff; color: #000; }

    .hero-art, .footer-brand .nav-logo-img {
        background-image: url('../assets/logo-lockup-light.webp');
    }
    .nav-logo-img { background-image: url('../assets/wave-mark-light.webp'); }
}

.mp-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.art { color: var(--paper-3); pointer-events: none; }
.art svg { display: block; width: 100%; height: auto; }

:root[data-theme='light'] .art,
:root[data-theme='light'] .ap-art { color: var(--paper-2); }

.bento-cell { display: flex; flex-direction: column; }

.cell-art {
    margin-top: auto;
    margin-inline: calc(clamp(28px, 3.2vw, 44px) * -1);
    margin-bottom: calc(clamp(28px, 3.2vw, 44px) * -1);
    padding-top: 28px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.panel-art {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--line-soft);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.approach li { position: relative; }
.approach .idx,
.approach p { position: relative; z-index: 1; }

.ap-art {
    position: absolute;
    inset: auto 0 0 0;
    height: clamp(26px, 2.9vw, 40px);
    z-index: 0;
    color: var(--paper-3);
    pointer-events: none;
}
.ap-art svg { width: 100%; height: 100%; display: block; }

.mp-pulse {
    stroke-dasharray: 7 93;
    stroke-dashoffset: 34;
    stroke-linecap: round;
    animation: mp-run 9s cubic-bezier(.45, 0, .55, 1) infinite;
}
.mp-fast { animation-duration: 4.4s; }

.mp-dot { stroke-dasharray: 2.5 97.5; }
@keyframes mp-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.mp-breathe {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: mp-breathe 17s ease-in-out infinite;
}
@keyframes mp-breathe {
    0%, 100% { transform: scaleY(.96); }
    50%      { transform: scaleY(1.06); }
}

.mp-dir,
.mp-via {
    stroke-dasharray: 7 193;
    stroke-linecap: round;
    animation: mp-dir 7s linear infinite;
}
.mp-dir { stroke-dashoffset: -93; }
.mp-via { stroke-dashoffset: -38.3; animation-name: mp-via; }

@keyframes mp-dir {
    0%    { stroke-dashoffset: 7;   opacity: 1; }
    44.7% { stroke-dashoffset: -93; opacity: 1; }
    92%   { stroke-dashoffset: -93; opacity: 1; }
    98%   { stroke-dashoffset: -93; opacity: 0; }
    100%  { stroke-dashoffset: -93; opacity: 0; }
}
@keyframes mp-via {
    0%    { stroke-dashoffset: 7;     opacity: 1; }
    12.1% { stroke-dashoffset: -16;   opacity: 1; }
    20%   { stroke-dashoffset: -16;   opacity: 1; }
    31.6% { stroke-dashoffset: -38.3; opacity: 1; }
    39.5% { stroke-dashoffset: -38.3; opacity: 1; }
    53.5% { stroke-dashoffset: -65;   opacity: 1; }
    61.4% { stroke-dashoffset: -65;   opacity: 1; }
    76.1% { stroke-dashoffset: -93;   opacity: 1; }
    92%   { stroke-dashoffset: -93;   opacity: 1; }
    98%   { stroke-dashoffset: -93;   opacity: 0; }
    100%  { stroke-dashoffset: -93;   opacity: 0; }
}

.mp-scan {
    stroke-dasharray: 9 91;
    stroke-dashoffset: 88;
    animation-duration: 16s;
    animation-timing-function: linear;
}
.mp-geo {
    opacity: .32;
    animation: mp-geo 16s ease-in-out infinite;
}
@keyframes mp-geo {
    0%   { opacity: .32; }
    3%   { opacity: 1; }
    13%  { opacity: 1; }
    26%  { opacity: .32; }
    100% { opacity: .32; }
}

.mp-relay {
    stroke-dasharray: 9 191;
    stroke-dashoffset: -130;
    stroke-linecap: round;
    animation: mp-relay 18s linear infinite;
}
@keyframes mp-relay {
    0%      { stroke-dashoffset: 9; }
    16.667% { stroke-dashoffset: -100; }
    16.9%   { stroke-dashoffset: -130; }
    100%    { stroke-dashoffset: -130; }
}

@media (prefers-reduced-motion: reduce) {
    .art *, .ap-art * { animation: none !important; }

    .mp-relay { stroke-dasharray: none; opacity: .45; }
    .mp-geo { opacity: .75; }
}
