/* ==========================================================================
   DAMOLAKENNY — WEBSTACKED-STYLE / ROUNDED GROTESQUE, BURGUNDY ACCENT
   ========================================================================= */

:root {
    --font-display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
    --container-max: 1240px;
    --section-pad: clamp(72px, 9vw, 140px);
    --r-card: 24px;
    --r-media: 18px;
    --r-field: 14px;
    --r-pill: 100px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --burgundy: #800020;
    --burgundy-deep: #5C0017;
    --rose: #F2919F;
    --lattice-size: 60px;
}

body.light-theme {
    --bg: #F8F8F8;
    --card: #FFFFFF;
    --card-2: #EDEDED;
    --field-bg: #F4F4F4;
    --ink: #161616;
    --body-c: #3D3D3D;
    --muted: rgba(22, 22, 22, 0.62); /* ≥4.5:1 on --bg for small labels */
    --line: rgba(22, 22, 22, 0.12);
    --accent: var(--burgundy);
    --accent-ink: var(--burgundy);
    --accent-wash: rgba(128, 0, 32, 0.07);
    --solid-bg: #161616;
    --solid-ink: #FFFFFF;
    --danger: #B23A2C;
    --ok: #1B7F4A;
    --logo-ghost: rgba(22, 22, 22, 0.07);
    /* dark band palette (as it appears in this theme) */
    --bd-bg: #111111;
    --bd-card: #1C1C1C;
    --bd-card-2: #262626;
    --bd-field: #161616;
    --bd-ink: #F5F5F5;
    --bd-body: rgba(255, 255, 255, 0.72);
    --bd-muted: rgba(255, 255, 255, 0.5);
    --bd-line: rgba(255, 255, 255, 0.13);
    --bd-accent: var(--rose);
    --lattice: rgba(128, 0, 32, 0.026);
    --bd-lattice: rgba(242, 145, 159, 0.02);
    color-scheme: light;
}

body.dark-theme {
    --bg: #121212;
    --card: #1C1C1C;
    --card-2: #2A2A2A;
    --field-bg: #181818;
    --ink: #F2F2F2;
    --body-c: rgba(255, 255, 255, 0.78);
    --muted: rgba(255, 255, 255, 0.55);
    --line: rgba(255, 255, 255, 0.13);
    --accent: var(--burgundy);
    --accent-ink: var(--rose);
    --accent-wash: rgba(242, 145, 159, 0.09);
    --solid-bg: #F2F2F2;
    --solid-ink: #141414;
    --danger: #E08A80;
    --ok: #7BD8A2;
    --logo-ghost: rgba(255, 255, 255, 0.06);
    --bd-bg: #0A0A0A;
    --bd-card: #161616;
    --bd-card-2: #222222;
    --bd-field: #101010;
    --bd-ink: #F2F2F2;
    --bd-body: rgba(255, 255, 255, 0.75);
    --bd-muted: rgba(255, 255, 255, 0.5);
    --bd-line: rgba(255, 255, 255, 0.11);
    --bd-accent: var(--rose);
    --lattice: rgba(242, 145, 159, 0.022);
    --bd-lattice: rgba(242, 145, 159, 0.018);
    color-scheme: dark;
}

/* --- Reset & base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    font-family: var(--font-body); font-size: 1.0625rem; font-weight: 400; line-height: 1.65;
    background-color: var(--bg); color: var(--ink);
    /* fine burgundy lattice — texture, not wallpaper */
    background-image:
        repeating-linear-gradient(45deg, var(--lattice) 0 1px, transparent 1px var(--lattice-size)),
        repeating-linear-gradient(-45deg, var(--lattice) 0 1px, transparent 1px var(--lattice-size));
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--burgundy); color: #fff; }
body.no-scroll, body.menu-open { overflow: hidden; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
section { padding: var(--section-pad) 0; }
p { color: var(--body-c); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); }

/* --- Dark band scope: remap tokens so children just use them --- */
.band-dark {
    background-color: var(--bd-bg);
    background-image:
        repeating-linear-gradient(45deg, var(--bd-lattice) 0 1px, transparent 1px var(--lattice-size)),
        repeating-linear-gradient(-45deg, var(--bd-lattice) 0 1px, transparent 1px var(--lattice-size));
    --card: var(--bd-card);
    --card-2: var(--bd-card-2);
    --field-bg: var(--bd-field);
    --ink: var(--bd-ink);
    --body-c: var(--bd-body);
    --muted: var(--bd-muted);
    --line: var(--bd-line);
    --accent-ink: var(--bd-accent);
    --accent-wash: rgba(242, 145, 159, 0.1);
}
body.dark-theme .band-dark { border-block: 1px solid var(--bd-line); }

/* --- Section heads --- */
.section-tag {
    font-family: var(--font-body); font-weight: 500; font-size: 0.9rem;
    letter-spacing: 0.02em; color: var(--accent-ink); margin-bottom: 18px;
}
.section-head { margin-bottom: clamp(36px, 5vw, 60px); position: relative; }
.section-title {
    font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.05; letter-spacing: -0.025em; max-width: 22ch;
}
.section-note { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.section-head-cta { position: absolute; right: 0; bottom: 0; }

/* --- Buttons & links --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-body); font-weight: 500; font-size: 0.98rem;
    padding: 14px 30px; border-radius: var(--r-pill);
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--burgundy); color: #fff; }
.btn-accent:hover { background: var(--burgundy-deep); box-shadow: 0 10px 24px -12px rgba(128, 0, 32, 0.55); }
.btn-solid { background: var(--solid-bg); color: var(--solid-ink); }
.btn-solid:hover { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.5); }
.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 500; color: var(--ink);
    background-image: linear-gradient(var(--accent-ink), var(--accent-ink));
    background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
    padding-bottom: 3px; transition: background-size 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow:hover { color: var(--accent-ink); background-size: 100% 1.5px; }
.link-arrow .arr { transition: transform 0.3s var(--ease); }
.link-arrow:hover .arr { transform: translateX(4px); }

/* --- Chips --- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-mini {
    font-size: 0.82rem; font-weight: 500; color: var(--muted);
    border: 1px solid var(--line); border-radius: var(--r-pill);
    padding: 6px 14px; white-space: nowrap;
}

/* --- Skip link --- */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--burgundy); color: #fff; padding: 10px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* --- Navbar --- */
.navbar-wrapper {
    position: sticky; top: 0; z-index: 80;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: box-shadow 0.3s var(--ease), background 0.4s var(--ease);
}
.navbar-wrapper.scrolled { box-shadow: 0 1px 0 var(--line); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.nav-logo {
    font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
    letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 6px;
}
.logo-mark { color: var(--burgundy); font-style: normal; }
body.dark-theme .logo-mark { color: var(--rose); }
.nav-list { display: flex; gap: 6px; }
.nav-link {
    font-size: 0.95rem; font-weight: 500; color: var(--muted);
    padding: 9px 16px; border-radius: var(--r-pill);
    transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--accent-wash); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 11px 24px; font-size: 0.92rem; }
.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
    color: var(--muted); transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); transform: rotate(15deg); }
body.light-theme .icon-sun { display: none; }
body.dark-theme .icon-moon { display: none; }
.menu-toggle { display: none; }

/* --- Hero --- */
.hero { padding-top: clamp(48px, 7vw, 90px); }
.hero-profile { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.avatar {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--card); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.profile-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.profile-role { font-size: 0.88rem; color: var(--muted); }
.profile-socials { display: flex; gap: 8px; margin-left: 10px; }
.profile-socials a {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.profile-socials a:hover { color: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-2px); }
.status-pill {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.9rem; font-weight: 500; color: var(--body-c);
    border: 1px solid var(--line); border-radius: var(--r-pill);
    padding: 8px 18px; margin-bottom: 30px; background: var(--card);
}
.status-dot {
    width: 9px; height: 9px; border-radius: 50%; background: #3BB662;
    box-shadow: 0 0 0 0 rgba(59, 182, 98, 0.5); animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 182, 98, 0.45); }
    70% { box-shadow: 0 0 0 9px rgba(59, 182, 98, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 182, 98, 0); }
}
.hero-headline {
    font-weight: 800; font-size: clamp(2.3rem, 6.4vw, 4.9rem);
    line-height: 1.14; letter-spacing: -0.03em; max-width: 20ch; margin-bottom: 30px;
}
.hero-years {
    display: inline-block; font-family: var(--font-body); font-weight: 400;
    font-size: clamp(0.85rem, 1.6vw, 1.05rem); letter-spacing: 0.06em;
    color: var(--muted); vertical-align: super; white-space: nowrap;
}
.chip {
    display: inline-flex; align-items: center; gap: 0.28em;
    font-size: 0.62em; font-weight: 700; letter-spacing: -0.01em; line-height: 1;
    padding: 0.34em 0.65em; border-radius: var(--r-pill);
    vertical-align: middle; transform: translateY(-0.08em); white-space: nowrap;
}
.chip-photo { background: var(--card); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.chip-photo img { width: 1.15em; height: 1.15em; border-radius: 50%; object-fit: cover; }
.chip-solid { background: var(--solid-bg); color: var(--solid-ink); }
.chip-accent { background: var(--burgundy); color: #fff; }
.chip-line { background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.18); }
.hero-lead { max-width: 54ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 300; margin-bottom: 34px; }
.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-bottom: clamp(48px, 6vw, 72px); }
.hero-orgs { border-top: 1px solid var(--line); padding-top: 26px; }
.orgs-label { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.orgs-strip { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.orgs-strip span { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--muted); }

/* --- Tickers (marquees) --- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker-set { display: flex; align-items: center; gap: clamp(32px, 4vw, 56px); padding-right: clamp(32px, 4vw, 56px); }
@keyframes marquee { to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: baseline; gap: 12px; white-space: nowrap; color: var(--muted); font-size: 0.95rem; }
.tick b { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; color: var(--ink); }
.tick i { font-style: normal; color: var(--accent-ink); font-weight: 500; }
.ticker-cats { border-bottom: 0; margin-top: clamp(48px, 6vw, 72px); padding-bottom: 0; }
.cat-pill {
    font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--muted);
    border: 1px solid var(--line); border-radius: var(--r-pill); padding: 12px 26px; white-space: nowrap;
}

/* --- Services --- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.service-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.28); }
.service-card h3 { font-weight: 700; font-size: 1.28rem; letter-spacing: -0.01em; line-height: 1.25; }
.service-card p { font-size: 0.98rem; }
.service-card .chip-row { margin-top: auto; padding-top: 8px; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--accent-ink); letter-spacing: -0.02em; }
.toolkit { margin-top: clamp(40px, 5vw, 64px); }
.toolkit-label { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.toolkit-row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
    padding: 16px 0; border-bottom: 1px solid var(--line);
}
.tk-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.tk-tools { color: var(--muted); font-size: 0.9rem; text-align: right; }

/* --- Work (dark band) --- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.filter-chip {
    font-weight: 500; font-size: 0.92rem; color: var(--muted);
    border: 1px solid var(--line); border-radius: var(--r-pill); padding: 10px 22px;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.filter-chip:hover { color: var(--ink); border-color: var(--muted); }
.filter-chip.active { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.plate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.work-tile[hidden] { display: none; }
.tile-btn { display: block; width: 100%; border-radius: var(--r-media); }
.tile-media {
    position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
    border-radius: var(--r-media); background: linear-gradient(135deg, #241419 0%, #141416 62%, #101013 100%);
}
.tile-play {
    position: absolute; z-index: 2; inset: 0; margin: auto;
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(10, 10, 10, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.tile-play::after {
    content: ''; position: absolute; inset: 0; margin: auto;
    width: 0; height: 0; transform: translateX(2px);
    border-style: solid; border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
}
.tile-btn:hover .tile-play { background: var(--burgundy); transform: scale(1.08); }
.tile-media::after {
    content: '{ ' attr(data-ph) ' }';
    position: absolute; inset: 0; display: grid; place-items: center; padding: 20px;
    font-family: var(--font-body); font-weight: 500; font-size: 1rem; text-align: center;
    color: var(--rose); letter-spacing: 0.01em;
}
.tile-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile-btn:hover .tile-media img { transform: scale(1.04); }
.tile-btn:hover .tile-media { box-shadow: 0 24px 56px -24px rgba(0, 0, 0, 0.6); }
.tile-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 16px; }
.tile-title { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--ink); }
.tile-meta { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.work-note { margin-top: clamp(32px, 4vw, 48px); color: var(--muted); font-size: 0.92rem; }
.tile-media-top img { object-position: 50% 16%; }

/* --- Brands I manage --- */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.brand-card {
    position: relative; display: flex; flex-direction: column; gap: 8px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: clamp(24px, 2.4vw, 32px); padding-right: clamp(44px, 4vw, 56px);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}
.brand-card:hover { transform: translateY(-5px); border-color: var(--accent-ink); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.28); }
.brand-handle { font-size: 0.82rem; font-weight: 500; color: var(--accent-ink); overflow-wrap: anywhere; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); }
.brand-role { margin-top: auto; padding-top: 10px; color: var(--muted); font-size: 0.88rem; }
.brand-arrow {
    position: absolute; top: clamp(20px, 2.2vw, 28px); right: clamp(20px, 2.2vw, 28px);
    color: var(--muted); font-size: 1.05rem; line-height: 1;
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.brand-card:hover .brand-arrow { color: var(--accent-ink); transform: translate(3px, -3px); }

/* --- Tools & skills --- */
.tool-list { display: grid; }
.tool-row {
    display: grid; grid-template-columns: minmax(220px, 340px) 1fr auto;
    align-items: center; gap: clamp(20px, 4vw, 48px);
    padding: 24px 0; border-bottom: 1px solid var(--line);
}
.tool-row:first-child { border-top: 1px solid var(--line); }
.tool-id h3 { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.tool-id p { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.bar-track { height: 10px; border-radius: var(--r-pill); background: var(--card-2); overflow: hidden; }
.bar-fill {
    display: block; height: 100%; width: 0; border-radius: inherit;
    background: linear-gradient(90deg, var(--burgundy-deep), var(--burgundy) 60%, #A8324F);
    transition: width 1.3s var(--ease) 0.2s;
}
.reveal.in-view .bar-fill { width: var(--pct); }
html:not(.js) .bar-fill { width: var(--pct); }
.bar-pct {
    font-weight: 600; font-size: 0.85rem; color: var(--accent-ink);
    background: var(--accent-wash); border-radius: var(--r-pill); padding: 6px 14px;
}

/* --- About --- */
.about-card {
    background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r-card) + 8px);
    padding: clamp(24px, 4vw, 56px);
    display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.about-figure img { border-radius: var(--r-media); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-body .section-title { margin-bottom: 20px; }
.about-lead { font-size: 1.12rem; font-weight: 400; color: var(--ink); margin-bottom: 16px; }
.about-body > p { margin-bottom: 16px; }
.about-body .chip-row { margin: 6px 0 26px; }
.about-cta { align-self: start; }
.beyond {
    display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: clamp(24px, 4vw, 52px);
    align-items: center;
    margin-top: clamp(28px, 4vw, 44px); padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 56px);
    background: var(--accent-wash); border-radius: calc(var(--r-card) + 8px);
}
.beyond-figure img { border-radius: var(--r-media); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.beyond-body p { margin-bottom: 12px; max-width: 62ch; }
.beyond-body .chip-row { margin-top: 18px; }

/* --- Process (dark band) --- */
.process-list { border-top: 1px solid var(--line); }
.process-step {
    display: grid; grid-template-columns: auto 1fr auto; align-items: start;
    gap: clamp(20px, 4vw, 48px); padding: clamp(26px, 3.6vw, 40px) 0;
    border-bottom: 1px solid var(--line);
}
.process-step .step-num { font-size: clamp(1.6rem, 3vw, 2.3rem); min-width: 2.6em; }
.step-body h3 { font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.015em; margin-bottom: 8px; }
.step-body p { max-width: 58ch; }
.step-time {
    font-size: 0.85rem; font-weight: 500; color: var(--muted); white-space: nowrap;
    border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px; margin-top: 6px;
}
.stat-trio {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px);
    margin-top: clamp(48px, 6vw, 80px); text-align: center;
}
.stat b {
    display: block; font-family: var(--font-display); font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4.3rem); letter-spacing: -0.03em; line-height: 1; color: var(--ink);
}
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* --- Packages & rates --- */
.currency-row { position: absolute; right: 0; bottom: 0; display: flex; gap: 8px; }
.rate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.rate-card {
    display: flex; flex-direction: column; gap: 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: clamp(26px, 2.6vw, 34px);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.rate-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.28); }
.rate-card h3 { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; }
.rate-price {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
    padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.rate-from {
    flex-basis: 100%; font-size: 0.78rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.rate-figure {
    font-family: var(--font-display); font-weight: 800; color: var(--ink);
    font-size: clamp(1.9rem, 3vw, 2.45rem); letter-spacing: -0.03em; line-height: 1.05;
}
.rate-unit { color: var(--muted); font-size: 0.95rem; }
.rate-list { display: grid; gap: 10px; }
.rate-list li { position: relative; padding-left: 20px; color: var(--body-c); font-size: 0.96rem; line-height: 1.5; }
.rate-list li::before {
    content: ''; position: absolute; left: 0; top: 0.6em;
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent-ink);
}
.rate-cta { margin-top: auto; padding-top: 8px; align-self: start; }
.rate-card-custom { justify-content: center; background: var(--accent-wash); border-style: dashed; }
.rate-custom-lead { max-width: 34ch; }
.rate-custom-cta { align-self: start; margin-top: 4px; }

/* --- Experience --- */
.xp-list { border-top: 1px solid var(--line); }
.xp-row {
    display: grid; grid-template-columns: 200px 1fr; align-items: center;
    gap: clamp(16px, 3vw, 40px); padding: 22px 0; border-bottom: 1px solid var(--line);
    transition: background 0.3s var(--ease);
}
.xp-dates {
    font-size: 0.84rem; font-weight: 500; color: var(--muted); white-space: nowrap;
    border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; justify-self: start;
}
.xp-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.xp-role { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.xp-org { color: var(--muted); font-size: 0.92rem; }

/* --- Testimonials --- */
.testimonials { overflow: hidden; }
.quote-marquee { overflow: hidden; }
.quote-marquee .ticker-track { animation-duration: 44s; }
.quote-marquee .ticker-set { align-items: stretch; gap: clamp(18px, 2vw, 26px); padding-right: clamp(18px, 2vw, 26px); }
.quote-marquee:hover .ticker-track { animation-play-state: paused; }
.quote-card {
    width: min(380px, 80vw); flex-shrink: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.quote-rate { display: flex; align-items: baseline; gap: 7px; }
.quote-rate b { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--accent-ink); }
.quote-rate span { color: var(--muted); font-size: 0.9rem; }
.quote-card blockquote p { font-size: 0.98rem; }
.quote-card figcaption { margin-top: auto; color: var(--muted); font-size: 0.88rem; }

/* --- FAQ --- */
.faq-grid { max-width: 860px; }
.faq-item {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    margin-bottom: 12px; overflow: hidden;
    transition: border-color 0.3s var(--ease);
}
.faq-item[open] { border-color: var(--muted); }
.faq-item summary {
    display: flex; align-items: center; gap: 18px;
    padding: 20px 24px; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num { color: var(--accent-ink); font-family: var(--font-body); font-weight: 500; font-size: 0.92rem; }
.faq-x { margin-left: auto; position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-x::before, .faq-x::after {
    content: ''; position: absolute; inset: 0; margin: auto; background: var(--muted); border-radius: 2px;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.faq-x::before { width: 16px; height: 2px; }
.faq-x::after { width: 2px; height: 16px; }
.faq-item[open] .faq-x::after { transform: rotate(90deg); }
.faq-item[open] .faq-x::before, .faq-item[open] .faq-x::after { background: var(--accent-ink); }
.faq-item p { padding: 0 24px 22px; color: var(--body-c); max-width: 68ch; }

/* --- Contact (dark band) --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-info .section-title { margin-bottom: 20px; }
.contact-lead { max-width: 44ch; margin-bottom: 30px; }
.contact-details { display: grid; gap: 14px; margin-bottom: 34px; }
.contact-details li { display: flex; align-items: baseline; gap: 16px; color: var(--body-c); }
.contact-details li span { min-width: 92px; font-size: 0.82rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-details a { color: var(--ink); transition: color 0.3s var(--ease); }
.contact-details a:hover { color: var(--accent-ink); }
.contact-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social-pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 500; font-size: 0.92rem; color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--r-pill); padding: 10px 20px;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social-pill:hover { border-color: var(--accent-ink); color: var(--accent-ink); transform: translateY(-2px); }

.contact-form {
    border-radius: calc(var(--r-card) + 4px); padding: clamp(24px, 3.4vw, 44px);
    display: grid; gap: 18px;
}
body.light-theme .contact-form {
    background: #FFFFFF;
    --ink: #161616; --body-c: #3D3D3D; --muted: rgba(22, 22, 22, 0.62);
    --line: rgba(22, 22, 22, 0.14); --field-bg: #F4F4F4; --accent-ink: #800020;
    --accent-wash: rgba(128, 0, 32, 0.07); --danger: #B23A2C; --ok: #1B7F4A;
    box-shadow: 0 32px 80px -40px rgba(0, 0, 0, 0.5);
}
body.dark-theme .contact-form { background: var(--bd-card); border: 1px solid var(--bd-line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: grid; gap: 8px; }
.form-group label { font-weight: 500; font-size: 0.88rem; color: var(--ink); }
.field {
    width: 100%; font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
    background: var(--field-bg); border: 1px solid var(--line); border-radius: var(--r-field);
    padding: 13px 16px; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-wash); }
.field.invalid { border-color: var(--danger); }
textarea.field { resize: vertical; min-height: 110px; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.error-msg { display: none; color: var(--danger); font-size: 0.84rem; }
.error-msg.visible { display: block; }
.btn-submit { width: 100%; margin-top: 6px; }
.btn-submit .btn-wait { display: none; }
.btn-submit.submitting .btn-text { display: none; }
.btn-submit.submitting .btn-wait { display: inline; }
.form-feedback { display: none; font-size: 0.92rem; border-radius: var(--r-field); padding: 12px 16px; }
.form-feedback.visible { display: block; }
.success-feedback { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.error-feedback { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }

/* --- Footer --- */
.footer { padding: clamp(56px, 7vw, 90px) 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(32px, 4vw, 56px); }
.footer-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 16px; max-width: 16ch; }
.footer-col h5 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: var(--body-c); font-size: 0.95rem; }
.footer-col a { transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--accent-ink); }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-socials a:hover { color: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-2px); }
.footer-meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); padding-top: 24px;
    color: var(--muted); font-size: 0.88rem;
}
.footer-meta a { color: var(--muted); transition: color 0.3s var(--ease); }
.footer-meta a:hover { color: var(--accent-ink); }
.back-top { color: var(--ink); }
.footer-logotype {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(3.4rem, 13.5vw, 11.5rem); letter-spacing: -0.045em; line-height: 0.95;
    text-align: center; color: var(--logo-ghost); margin-top: clamp(28px, 4vw, 48px);
    user-select: none; white-space: nowrap;
}
.footer-logotype .logo-mark { color: color-mix(in srgb, var(--burgundy) 30%, transparent); }

/* --- Lightbox --- */
.lightbox {
    position: fixed; inset: 0; z-index: 120;
    background: rgba(8, 8, 8, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { max-width: min(1000px, 92vw); }
.lightbox-media img { max-height: 76vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--r-media); }
.lightbox-video {
    display: block; border: 0; border-radius: var(--r-media); margin: 0 auto;
    height: min(76vh, 720px); aspect-ratio: 9 / 16; max-width: 92vw;
    background: #000;
}
.lightbox-file {
    display: block; margin: 0 auto; border-radius: var(--r-media); background: #000;
    max-height: 76vh; max-width: 92vw; width: auto; height: auto;
}
.lightbox-placeholder {
    width: min(640px, 82vw); aspect-ratio: 4 / 3; border-radius: var(--r-media);
    background: linear-gradient(135deg, #241419 0%, #141416 62%, #101013 100%);
    display: grid; place-items: center; color: var(--rose); font-weight: 500;
}
.lightbox-figure figcaption { text-align: center; color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; margin-top: 18px; }
.lightbox-btn {
    position: absolute; width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox-btn:hover { background: var(--burgundy); border-color: var(--burgundy); transform: scale(1.06); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }

/* --- Audit modal --- */
.modal {
    position: fixed; inset: 0; z-index: 130; display: none;
    background: rgba(8, 8, 8, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px);
}
.modal.visible { display: flex; }
.modal-content {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
    width: min(880px, 100%); max-height: 84vh; display: flex; flex-direction: column; overflow: hidden;
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 28px; border-bottom: 1px solid var(--line);
}
.modal-header h3 { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.close-modal {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
    font-size: 1.3rem; line-height: 1; color: var(--muted);
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.close-modal:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
.modal-body { padding: 8px 28px 28px; overflow: auto; }
.audit-table-wrapper { overflow-x: auto; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.audit-table th {
    text-align: left; font-family: var(--font-body); font-weight: 600; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted);
    padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.audit-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--body-c); vertical-align: top; }
.status-badge {
    display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
    border-radius: var(--r-pill); padding: 4px 12px;
}
.status-badge.success { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.status-badge.info { color: var(--accent-ink); background: var(--accent-wash); }

/* --- Mobile menu --- */
@media (max-width: 900px) {
    .nav-list {
        position: fixed; inset: 0; z-index: 90; background: var(--bg);
        flex-direction: column; justify-content: center; align-items: center; gap: 10px;
        opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
    }
    .nav-list.active { opacity: 1; visibility: visible; }
    .nav-list .nav-link { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
    .menu-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
        position: relative; z-index: 95;
    }
    .menu-toggle .icon-close { display: none; }
    body.menu-open .menu-toggle .icon-bars { display: none; }
    body.menu-open .menu-toggle .icon-close { display: block; }
    .nav-cta { display: none; }
}

/* --- Scroll reveal + hero load sequence --- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.in-view { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
html.js .hero-profile { animation: rise 0.7s var(--ease) both 0.05s; }
html.js .status-pill { animation: rise 0.7s var(--ease) both 0.15s; }
html.js .hero-headline { animation: rise 0.8s var(--ease) both 0.25s; }
html.js .hero-lead { animation: rise 0.8s var(--ease) both 0.4s; }
html.js .hero-ctas { animation: rise 0.8s var(--ease) both 0.5s; }
html.js .hero-orgs { animation: rise 0.8s var(--ease) both 0.62s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .service-grid { grid-template-columns: 1fr 1fr; }
    .plate-grid { grid-template-columns: 1fr 1fr; }
    .rate-grid { grid-template-columns: 1fr 1fr; }
    .brand-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .plate-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .tile-cap { flex-direction: column; gap: 2px; }
}
@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
    .about-card { grid-template-columns: 1fr; }
    .about-figure { max-width: 420px; }
    .beyond { grid-template-columns: 1fr; }
    .beyond-figure { max-width: 260px; }
    .section-head-cta { position: static; margin-top: 20px; }
    .currency-row { position: static; margin-top: 22px; }
    .tool-row { grid-template-columns: 1fr auto; grid-template-areas: "id pct" "bar bar"; row-gap: 14px; }
    .tool-id { grid-area: id; }
    .bar-track { grid-area: bar; }
    .bar-pct { grid-area: pct; }
}
@media (max-width: 680px) {
    .service-grid { grid-template-columns: 1fr; }
    .rate-grid { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .xp-row { grid-template-columns: 1fr; row-gap: 10px; }
    .stat-trio { grid-template-columns: 1fr; text-align: left; }
    .hero-profile { flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr; }
    .process-step { grid-template-columns: auto 1fr; }
    .process-step .step-time { grid-column: 2; justify-self: start; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
    .ticker-track { animation: none; width: auto; flex-wrap: wrap; }
    .ticker-set { flex-wrap: wrap; padding-right: 0; }
    .ticker-set[aria-hidden="true"], .ticker[aria-hidden="true"] .ticker-set:last-child { display: none; }
    .quote-marquee .ticker-set { width: 100%; }
    .status-dot { animation: none; }
}
