/* ============================================================
   Trater — main.css (agency)
   ============================================================ */

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

body {
    font-family: var(--ff-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--c-text);
    background: var(--c-bg);
    font-feature-settings: 'ss01', 'cv11';
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    color: var(--c-ink);
    overflow-wrap: anywhere;
    word-break: break-word;
}

p {
    color: var(--c-text-muted);
    line-height: var(--lh-relaxed);
    overflow-wrap: break-word;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

.mono {
    font-family: var(--ff-mono);
    font-feature-settings: 'tnum' 1, 'cv01' 1;
    letter-spacing: -0.01em;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--sp-4);
    z-index: 1000;
    padding: var(--sp-3) var(--sp-4);
    background: var(--c-ink);
    color: var(--c-text-on-dark);
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: var(--fs-sm);
    transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-4); }

/* ----------------- Layout ----------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-x);
}

.section {
    padding-block: var(--section-y);
}
.section--tight { padding-block: var(--section-y-tight); }
.section--dark {
    background: var(--c-bg-dark);
    color: var(--c-text-on-dark);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--c-text-on-dark); }
.section--dark p { color: var(--c-text-on-dark-muted); }

.section-head {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    max-width: 720px;
    margin-bottom: var(--sp-12);
}
.section-head--center {
    text-align: center;
    margin-inline: auto;
}
.section-head--center .section-title,
.section-head--center .section-lede,
.section-head--center > h2,
.section-head--center > p { align-self: stretch; }
.section-head--center .eyebrow { align-self: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--c-accent);
}
.eyebrow::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--c-accent);
}
.section--dark .eyebrow { color: var(--c-text-on-dark); }
.section--dark .eyebrow::before { background: var(--c-accent); }

.section-title {
    font-size: var(--fs-4xl);
    line-height: var(--lh-tight);
}
.section-lede {
    font-size: var(--fs-md);
    color: var(--c-text-muted);
    max-width: 56ch;
}

/* ----------------- Nav ----------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid transparent;
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    transition: border-color var(--t-base), background var(--t-base);
}
.site-header.is-scrolled {
    border-bottom-color: var(--c-border);
    background: rgba(255, 255, 255, 0.96);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    height: 72px;
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.nav__brand svg { height: 26px; width: auto; }

.nav__list {
    display: none;
    list-style: none;
    margin: 0;
    gap: var(--sp-2);
    align-items: center;
}
@media (min-width: 820px) {
    .nav__list { display: flex; }
}

.nav__link {
    display: inline-block;
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--c-text-muted);
    border-radius: var(--r-sm);
    transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover {
    color: var(--c-ink);
    background: var(--c-bg-soft);
}
.nav__link.is-active {
    color: var(--c-ink);
}
.nav__link.is-active::after {
    content: '';
    display: block;
    width: 14px;
    height: 2px;
    background: var(--c-accent);
    margin-top: 2px;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    color: var(--c-ink);
}
.nav__toggle:hover { background: var(--c-bg-soft); }
@media (min-width: 820px) { .nav__toggle { display: none; } }

.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 92px var(--container-x) var(--sp-12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--t-base), transform var(--t-base);
}
.nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.nav-overlay__list {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}
.nav-overlay__link {
    display: block;
    padding: var(--sp-4) 0;
    font-size: var(--fs-2xl);
    font-weight: 600;
    letter-spacing: var(--ls-tight);
    color: var(--c-ink);
    border-bottom: 1px solid var(--c-border);
}
.nav-overlay__link:hover { color: var(--c-accent); }
.nav-overlay__actions {
    margin-top: auto;
    padding-top: var(--sp-8);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
@media (min-width: 820px) { .nav-overlay { display: none; } }

body.has-overlay { overflow: hidden; }

/* ----------------- Buttons ----------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.75rem 1.25rem;
    font-family: inherit;
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
    white-space: nowrap;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }

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

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

.btn--ghost {
    background: transparent;
    color: var(--c-ink);
    border-color: var(--c-border-strong);
}
.btn--ghost:hover {
    background: var(--c-bg-soft);
    border-color: var(--c-ink);
}

.btn--ghost-dark {
    background: transparent;
    color: var(--c-text-on-dark);
    border-color: rgba(255, 255, 255, 0.24);
}
.btn--ghost-dark:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--lg {
    padding: 1rem 1.5rem;
    font-size: var(--fs-md);
}

.btn--block { width: 100%; }

.btn-arrow { transition: transform var(--t-fast); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ----------------- Hero (agency) ----------------- */
.hero {
    position: relative;
    padding-block: clamp(4rem, 2.5rem + 5vw, 8rem) clamp(3rem, 2rem + 4vw, 6rem);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(15, 20, 27, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 20, 27, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 0%, transparent 75%);
    pointer-events: none;
    z-index: -1;
}

.hero__inner {
    max-width: 920px;
    margin-inline: auto;
}

.hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    letter-spacing: var(--ls-wide);
    flex-wrap: wrap;
}
.hero__meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-success);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.hero__meta-sep {
    color: var(--c-text-dim);
}

.hero__title {
    font-size: clamp(2.5rem, 1.7rem + 4vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 600;
    color: var(--c-ink);
    text-align: center;
    margin-bottom: var(--sp-6);
}
.hero__title-line { display: block; }
.hero__title-accent {
    background: linear-gradient(to right, var(--c-ink), var(--c-ink) 70%, var(--c-accent) 70%, var(--c-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--c-ink);
}
.hero__title-accent em {
    font-style: normal;
    color: var(--c-accent);
    position: relative;
}
.hero__title-accent em::after {
    content: '';
    position: absolute;
    inset: auto 0 -0.06em 0;
    height: 0.08em;
    background: var(--c-accent);
    opacity: 0.25;
}

.hero__lede {
    font-size: var(--fs-lg);
    color: var(--c-text-muted);
    max-width: 60ch;
    margin: 0 auto var(--sp-8);
    text-align: center;
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

/* ----------------- Marquee / tech ticker ----------------- */
.ticker {
    position: relative;
    background: var(--c-bg-dark);
    color: var(--c-text-on-dark);
    border-block: 1px solid var(--c-border-dark);
    overflow: hidden;
    padding-block: var(--sp-4);
}
.ticker__track {
    display: flex;
    gap: var(--sp-12);
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
    width: max-content;
}
.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: var(--ls-wide);
}
.ticker__item::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--c-accent);
    border-radius: 50%;
}
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .ticker__track { animation: none; }
}

/* ----------------- Services (5 menu rows) ----------------- */
.services {
    border-top: 1px solid var(--c-border);
}
.service {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding: var(--sp-12) 0;
    border-bottom: 1px solid var(--c-border);
    position: relative;
    transition: background var(--t-base);
}
.service:hover { background: var(--c-bg-elevated); }

@media (min-width: 820px) {
    .service {
        grid-template-columns: 1fr 2fr;
        gap: var(--sp-16);
        align-items: start;
        padding: var(--sp-16) 0;
    }
}

.service__head {
    display: flex;
    align-items: baseline;
    gap: var(--sp-4);
}
.service__num {
    font-family: var(--ff-mono);
    font-size: var(--fs-md);
    color: var(--c-text-dim);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    margin-top: 0.4em;
}
.service__title {
    font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
    font-weight: 600;
    color: var(--c-ink);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.service__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.service__desc {
    font-size: var(--fs-md);
    color: var(--c-text);
    line-height: 1.6;
    max-width: 60ch;
}
.service__tags {
    list-style: none;
    margin: var(--sp-2) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.service__tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    color: var(--c-text-muted);
    letter-spacing: -0.01em;
    transition: border-color var(--t-fast), color var(--t-fast);
}
.service:hover .service__tag { border-color: var(--c-border-strong); }

/* Arrow link on hover */
.service__arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--sp-4);
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-accent);
    font-weight: 500;
    width: fit-content;
}
.service__arrow svg { transition: transform var(--t-fast); }
.service:hover .service__arrow svg { transform: translateX(4px); }

/* ----------------- Selected work ----------------- */
.work__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
}
@media (min-width: 720px) {
    .work__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
}

.work__card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--sp-8);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    transition: border-color var(--t-base), transform var(--t-base);
    min-height: 280px;
    overflow: hidden;
}
.work__card:hover {
    border-color: var(--c-border-strong);
    transform: translateY(-2px);
}
.work__card::before {
    /* faint code-line pattern in corner */
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background-image: linear-gradient(135deg, var(--c-bg-soft) 25%, transparent 25%);
    opacity: 0.5;
    pointer-events: none;
}

.work__meta {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}
.work__meta-sep { color: var(--c-border-strong); }
.work__meta-tag {
    padding: 2px 8px;
    background: var(--c-bg-soft);
    border-radius: var(--r-xs);
    color: var(--c-text-muted);
    letter-spacing: var(--ls-wide);
}

.work__title {
    font-size: var(--fs-2xl);
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: var(--sp-3);
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}
.work__summary {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    line-height: 1.6;
    margin-bottom: var(--sp-6);
    flex-grow: 1;
    position: relative;
    z-index: 1;
}
.work__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}
.work__tag {
    display: inline-flex;
    padding: 3px 8px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xs);
    font-family: var(--ff-mono);
    font-size: 0.7rem;
    color: var(--c-text);
}

.work__cta {
    margin-top: var(--sp-8);
    text-align: center;
}

/* ----------------- Process — 4 steps ----------------- */
.process__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-1);
    background: var(--c-border);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
@media (min-width: 720px) {
    .process__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .process__list { grid-template-columns: repeat(4, 1fr); }
}

.pstep {
    background: var(--c-bg);
    padding: var(--sp-8);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    position: relative;
    min-height: 240px;
}

.pstep__num {
    font-family: var(--ff-mono);
    font-size: 0.78rem;
    color: var(--c-accent);
    letter-spacing: var(--ls-wider);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-2);
}
.pstep__num::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--c-accent);
}

.pstep__title {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--c-ink);
    line-height: 1.2;
}
.pstep__body {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    line-height: 1.6;
}

/* ----------------- Tech stack (dark band) — reused ----------------- */
.stack {
    background: var(--c-bg-dark);
    color: var(--c-text-on-dark);
    padding-block: var(--section-y-tight);
    overflow: hidden;
    position: relative;
}
.stack::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.stack__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
    margin-bottom: var(--sp-8);
    position: relative;
}
.stack__title {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.stack__hint {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.4);
}
.stack__groups {
    display: grid;
    gap: var(--sp-6);
    grid-template-columns: 1fr;
    position: relative;
}
@media (min-width: 720px) {
    .stack__groups { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
}
@media (min-width: 1024px) {
    .stack__groups { grid-template-columns: repeat(4, 1fr); }
}
.stack__group-title {
    font-family: var(--ff-mono);
    font-size: 0.7rem;
    color: var(--c-accent);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.stack__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.stack__item {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.01em;
}

/* ----------------- About + stats ----------------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-12);
    align-items: start;
}
@media (min-width: 820px) {
    .about__grid { grid-template-columns: 1.1fr 1fr; gap: var(--sp-16); }
}

.about__body {
    font-size: var(--fs-md);
    line-height: 1.7;
    color: var(--c-text);
    max-width: 56ch;
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.about__body p { color: var(--c-text); }
.about__body strong { color: var(--c-ink); font-weight: 600; }

.about__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-1);
    background: var(--c-border);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.about__stat {
    background: var(--c-bg);
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.about__stat-value {
    font-family: var(--ff-mono);
    font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
    font-weight: 500;
    color: var(--c-ink);
    line-height: 1;
    letter-spacing: -0.03em;
}
.about__stat-label {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    color: var(--c-text-muted);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
}

/* ----------------- Testimonials (reused) ----------------- */
.tmonials__grid {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .tmonials__grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
}

.tmonial {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    padding: var(--sp-6);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    transition: border-color var(--t-base), transform var(--t-base);
}
.tmonial:hover { border-color: var(--c-border-strong); transform: translateY(-2px); }

.tmonial__quote {
    font-size: var(--fs-md);
    line-height: 1.55;
    color: var(--c-text);
    font-weight: 400;
    quotes: '\201E' '\201D';
}
.tmonial__quote::before {
    content: open-quote;
    color: var(--c-accent);
    font-family: var(--ff-mono);
    margin-right: 2px;
}
.tmonial__quote::after { content: close-quote; color: var(--c-accent); }

.tmonial__person {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-top: auto;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--c-border);
}
.tmonial__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.tmonial__name {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--c-ink);
    line-height: 1.3;
}
.tmonial__role {
    display: block;
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
    font-family: var(--ff-mono);
    margin-top: 2px;
}

/* ----------------- CTA final (dark) ----------------- */
.cta-final {
    background: var(--c-bg-dark);
    color: var(--c-text-on-dark);
    padding-block: clamp(4rem, 3rem + 3.5vw, 7rem);
    position: relative;
    overflow: hidden;
}
.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
    pointer-events: none;
}
.cta-final__inner {
    position: relative;
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}
.cta-final__title {
    font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
    color: var(--c-text-on-dark);
    margin-bottom: var(--sp-4);
    letter-spacing: -0.04em;
    font-weight: 600;
    line-height: 1.05;
}
.cta-final__sub {
    font-size: var(--fs-lg);
    color: var(--c-text-on-dark-muted);
    margin-bottom: var(--sp-8);
    max-width: 50ch;
    margin-inline: auto;
}
.cta-final__actions {
    display: flex;
    justify-content: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
}
.cta-final__note {
    margin-top: var(--sp-6);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: var(--ls-wide);
}

/* ----------------- Footer ----------------- */
.footer {
    background: var(--c-bg-dark);
    color: var(--c-text-on-dark-muted);
    padding-block: var(--sp-16) var(--sp-8);
    border-top: 1px solid var(--c-border-dark);
}
.footer__grid {
    display: grid;
    gap: var(--sp-12);
    grid-template-columns: 1fr;
    margin-bottom: var(--sp-12);
}
@media (min-width: 720px) {
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-8); }
}

.footer__col-title {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--sp-4);
}

.footer__brand-mark { height: 28px; margin-bottom: var(--sp-4); }
.footer__brand-text {
    color: var(--c-text-on-dark-muted);
    font-size: var(--fs-sm);
    line-height: 1.65;
    max-width: 36ch;
    margin-bottom: var(--sp-4);
}
.footer__brand-meta {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
}

.footer__list {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.footer__link {
    color: var(--c-text-on-dark-muted);
    font-size: var(--fs-sm);
    transition: color var(--t-fast);
}
.footer__link:hover { color: var(--c-text-on-dark); }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--c-border-dark);
    flex-wrap: wrap;
}
.footer__copy {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: var(--ls-wide);
}

/* ----------------- Page Soon (stub) ----------------- */
.page-soon {
    min-height: calc(100dvh - 72px - 360px);
    display: grid;
    place-items: center;
    padding-block: var(--sp-24);
    text-align: center;
}
.page-soon__inner {
    max-width: 580px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-6);
}
.page-soon__mark {
    width: 140px;
    height: 140px;
    margin-bottom: var(--sp-4);
}
@media (min-width: 768px) {
    .page-soon__mark { width: 200px; height: 200px; }
}
.page-soon__title {
    font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
    color: var(--c-ink);
    letter-spacing: -0.03em;
}
.page-soon__lede {
    font-size: var(--fs-md);
    color: var(--c-text-muted);
    max-width: 48ch;
}
.page-soon__tag {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.375rem 0.75rem;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    letter-spacing: var(--ls-wide);
}
.page-soon__actions {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--sp-2);
}

/* ----------------- Contact form ----------------- */
.contact__grid {
    display: grid;
    gap: var(--sp-12);
    grid-template-columns: 1fr;
    align-items: start;
    max-width: 980px;
    margin-inline: auto;
}
@media (min-width: 820px) {
    .contact__grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-16); }
}

.contact__side h1 {
    font-size: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
    letter-spacing: -0.03em;
    margin-bottom: var(--sp-4);
}
.contact__meta {
    list-style: none;
    margin: var(--sp-8) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.contact__meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.contact__meta-label {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}
.contact__meta-value {
    font-size: var(--fs-md);
    color: var(--c-ink);
    font-weight: 500;
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    padding: var(--sp-8);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}
.form__field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.form__label {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--c-ink);
}
.form__input,
.form__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--r-md);
    font-size: var(--fs-base);
    font-family: inherit;
    color: var(--c-ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form__textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}
.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--c-text-dim);
}
.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.25);
}

/* ----------------- Animations / utilities ----------------- */
.fade-in {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
}

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