/* =====================================================================
   2RCLOUD — Editorial / Swiss redesign
   One accent · strict grid · big type · intentional whitespace
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
    --paper: #f3f2ec;
    --surface: #fbfaf6;
    --surface-2: #ffffff;
    --ink: #15161a;
    --ink-2: #3a3d44;
    --ink-soft: #5b5e67;
    --line: rgba(18, 20, 24, 0.14);
    --line-soft: rgba(18, 20, 24, 0.08);
    --accent: #0aa05a;
    --accent-ink: #06502e;
    --accent-wash: rgba(10, 160, 90, 0.10);
    --color-shadow-modern: 0 18px 40px -12px rgba(18, 20, 24, 0.18), 0 6px 16px -8px rgba(18, 20, 24, 0.12);

    --maxw: 1320px;
    --rail: 332px;
    --gap: clamp(40px, 5vw, 88px);
    --pad: clamp(20px, 4vw, 60px);

    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, monospace;

    --r: 14px;
    --r-sm: 9px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #0c0d0f;
        --surface: #121316;
        --surface-2: #16181c;
        --ink: #f1f0ea;
        --ink-2: #c7c9cf;
        --ink-soft: #8b8f98;
        --line: rgba(255, 255, 255, 0.15);
        --line-soft: rgba(255, 255, 255, 0.08);
        --accent: #2bea8d;
        --accent-ink: #bff7dc;
        --accent-wash: rgba(43, 234, 141, 0.12);
        --color-shadow-modern: 0 18px 44px -12px rgba(0, 0, 0, 0.6), 0 6px 18px -8px rgba(0, 0, 0, 0.5);
    }
}

[data-theme="dark"] {
    --paper: #0c0d0f;
    --surface: #121316;
    --surface-2: #16181c;
    --ink: #f1f0ea;
    --ink-2: #c7c9cf;
    --ink-soft: #8b8f98;
    --line: rgba(255, 255, 255, 0.15);
    --line-soft: rgba(255, 255, 255, 0.08);
    --accent: #2bea8d;
    --accent-ink: #bff7dc;
    --accent-wash: rgba(43, 234, 141, 0.12);
    --color-shadow-modern: 0 18px 44px -12px rgba(0, 0, 0, 0.6), 0 6px 18px -8px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Shared type helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 500;
}
.eyebrow .idx { color: var(--accent); }
.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--accent);
}

.h-display {
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.0;
    color: var(--ink);
}
.accent { color: var(--accent); }
.muted { color: var(--ink-soft); }

/* ---------- App shell: sticky rail + content ---------- */
.shell {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: var(--rail) 1fr;
    gap: var(--gap);
    align-items: start;
}

/* ================= LEFT RAIL ================= */
.rail {
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    padding: 36px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow: hidden;
}
.rail-top { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; font-size: 17px; }
.brand-logo { height: 26px; width: auto; display: block; transition: opacity .2s var(--ease); }
.brand:hover .brand-logo { opacity: 0.78; }
/* logo-light.png = dark wordmark (light bg) is the default; swap to the white wordmark in dark */
[data-theme="dark"] .brand-logo { content: url("../images/logo.png"); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand-logo { content: url("../images/logo.png"); }
}

.rail-controls { display: flex; align-items: center; gap: 6px; }
.pill-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.pill-toggle a {
    padding: 5px 11px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
}
.pill-toggle a.active { background: var(--ink); color: var(--paper); }
.icon-btn {
    width: 34px; height: 34px;
    display: inline-grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    transition: border-color .2s var(--ease), background .2s var(--ease), transform .3s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.portrait {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 240px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.18) contrast(1.02); }
.portrait::after {
    content: "";
    position: absolute; inset: 0;
    box-shadow: inset 0 0 0 1px var(--line-soft);
    border-radius: var(--r);
}

.identity .name { font-size: 23px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.identity .role { font-size: 14px; color: var(--ink-soft); margin-top: 3px; }
.identity .loc {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    display: flex; align-items: center; gap: 7px;
}
.identity .loc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }

/* rail nav */
.rail-nav { margin-top: 2px; }
.rail-nav ul { display: flex; flex-direction: column; gap: 1px; }
.rail-nav a {
    display: flex; align-items: baseline; gap: 12px;
    padding: 6px 0;
    font-size: 14.5px;
    color: var(--ink-soft);
    transition: color .18s var(--ease), padding .2s var(--ease);
}
.rail-nav a .n { font-family: var(--font-mono); font-size: 11px; color: var(--line); width: 20px; }
.rail-nav a:hover { color: var(--ink); padding-left: 6px; }
.rail-nav a.active { color: var(--ink); }
.rail-nav a.active .n { color: var(--accent); }
.rail-nav a.active::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; }

.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.rate-line {
    display: flex; align-items: baseline; gap: 8px;
    margin-top: 10px;
}
.rate-line .num { font-size: 30px; font-weight: 680; letter-spacing: -0.02em; color: var(--ink); transition: color .25s var(--ease); }
.rate-line .num span { color: var(--accent); }
.rate-line .lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); transition: color .25s var(--ease); }
.socials { display: flex; gap: 8px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 600; font-size: 14.5px;
    border: 1px solid var(--ink);
    background: var(--ink); color: var(--paper);
    transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #ffffff; }
[data-theme="dark"] .btn--accent { color: #04240f; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn--accent { color: #04240f; }
}
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }

/* ================= CONTENT ================= */
.content { min-width: 0; padding-bottom: 80px; }

.section {
    padding: clamp(56px, 8vw, 104px) 0;
    border-top: 1px solid var(--line);
}
.section:first-child { border-top: 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 {
    font-size: clamp(30px, 4.6vw, 52px);
    font-weight: 600; letter-spacing: -0.02em; line-height: 1.04;
    text-transform: uppercase;
    margin-top: 16px;
    max-width: 20ch;
}
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }

/* ---- Hero ---- */
.hero { padding-top: clamp(48px, 9vh, 110px); padding-bottom: clamp(40px, 6vw, 72px); border-top: 0; }
.hero h1.headline {
    font-size: clamp(44px, 7.6vw, 104px);
    font-weight: 640;
    letter-spacing: -0.045em;
    line-height: 0.96;
    margin: 22px 0 0;
}
.hero .headline .thin { color: var(--ink-soft); }
.hero-sub {
    margin-top: clamp(26px, 3.4vw, 40px);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(24px, 3.6vw, 56px);
    align-items: center;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.exp-card {
    position: relative;
    align-self: center;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: clamp(16px, 1.9vw, 28px);
}
.exp-figure {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    font-weight: 700;
    font-size: clamp(88px, 11.5vw, 176px);
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
    transition: -webkit-text-stroke-color .4s var(--ease);
}
.exp-figure > span { font-variant-numeric: tabular-nums; }
.exp-figure:hover { -webkit-text-stroke-color: var(--accent); }
.hero-sub p { font-size: clamp(15.5px, 1.4vw, 18px); line-height: 1.62; color: var(--ink-2); max-width: 70ch; align-self: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: clamp(28px, 3.5vw, 40px); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.text-link .arr { transition: transform .2s var(--ease); }
.text-link:hover { color: var(--accent); }
.text-link:hover .arr { transform: translateX(4px); }

.marquee {
    margin-top: clamp(34px, 5vw, 60px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    white-space: nowrap;
    will-change: transform;
    animation: marquee 32s linear infinite;
}
.marquee span,
.marquee__track span {
    display: inline-flex; align-items: center; gap: 26px;
    font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em;
    color: var(--ink-soft); text-transform: uppercase;
}
.marquee span::after,
.marquee__track span::after { content: "/"; color: var(--accent); }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* before JS arms the track, lay the raw spans out inline */
.marquee:not(:has(.marquee__track)) { display: flex; flex-wrap: wrap; gap: 10px 26px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---- About: facts list ---- */
.facts { margin-top: clamp(30px, 4vw, 46px); border-top: 1px solid var(--line); }
.facts .row {
    display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 16px 32px;
    padding: 18px 0; border-bottom: 1px solid var(--line);
    align-items: baseline;
}
.facts .row dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.facts .row dd { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink); font-weight: 500; }

/* ---- Experience / education timeline ---- */
.timeline { display: flex; flex-direction: column; }
.t-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 8px 36px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    transition: background .25s var(--ease);
}
.t-item:hover { background: linear-gradient(90deg, var(--accent-wash), transparent 70%); }
.t-item .date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft); padding-top: 5px; }
.t-item h3 { font-size: clamp(19px, 2vw, 25px); font-weight: 600; letter-spacing: -0.02em; }
.t-item p { color: var(--ink-soft); margin-top: 7px; max-width: 60ch; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em;
    padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2);
}
.cred { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent); }
.cred .arr { transition: transform .2s var(--ease); }
.cred:hover .arr { transform: translateX(3px); }

/* ---- Services: numbered editorial list ---- */
.svc-list { border-top: 1px solid var(--line); }
.svc {
    display: grid; grid-template-columns: 56px 1fr auto; gap: 10px 28px;
    padding: 30px 0; border-bottom: 1px solid var(--line);
    align-items: start; position: relative;
}
.svc .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 8px; }
.svc h3 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.025em; transition: transform .25s var(--ease); }
.svc p { color: var(--ink-soft); margin-top: 10px; max-width: 56ch; font-size: 15.5px; }
.svc .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); text-align: right; padding-top: 10px; white-space: nowrap; }
.svc:hover h3 { transform: translateX(8px); color: var(--accent); }

.process { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.process span {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
    padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2);
    display: inline-flex; align-items: center; gap: 10px;
}
.process span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---- Skills grid ---- */
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.skill {
    padding: 24px 22px 24px 0;
    border-bottom: 1px solid var(--line);
}
.skill .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.skill h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 10px 0 6px; }
.skill p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---- Case studies ---- */
.cases { display: grid; gap: 18px; }
.case {
    border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
    background: var(--surface); position: relative;
}
.case .ph { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--surface-2); }
.case .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); filter: grayscale(0.1); }
.case:hover .ph img { transform: scale(1.03); }

.case .cap { padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.case .cap h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.case .cap p { color: var(--ink-soft); font-size: 14px; margin-top: 4px; max-width: 60ch; }
.case .chips { display: flex; gap: 7px; flex-wrap: wrap; }

/* ---- Proof + clients ---- */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.proof .p { padding: 28px 26px 28px 0; border-bottom: 1px solid var(--line); }
.proof .p .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.proof .p h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 12px 0 8px; }
.proof .p span { color: var(--ink-soft); font-size: 14px; }
.clients { margin-top: clamp(34px, 5vw, 56px); }
.clients .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.logos { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; }
.logos img { height: 30px; width: auto; object-fit: contain; filter: grayscale(1) contrast(0.9); opacity: 0.6; transition: opacity .25s var(--ease), filter .25s var(--ease); }
.logos img:hover { opacity: 1; filter: grayscale(0); }
/* dark mode: invert so the logos' white backgrounds blend into the dark page */
[data-theme="dark"] .logos img { filter: grayscale(1) invert(1) contrast(1.08); opacity: 0.62; }
[data-theme="dark"] .logos img:hover { filter: grayscale(1) invert(1) contrast(1.08); opacity: 1; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logos img { filter: grayscale(1) invert(1) contrast(1.08); opacity: 0.62; }
    :root:not([data-theme="light"]) .logos img:hover { filter: grayscale(1) invert(1) contrast(1.08); opacity: 1; }
}

/* ---- Pricing ---- */
.price-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 44px); }
.price-big { font-size: clamp(54px, 8vw, 104px); font-weight: 640; letter-spacing: -0.04em; line-height: 0.92; }
.price-big small { font-size: 0.32em; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.price-big .cur { color: var(--accent); }
.price-note { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 14px; max-width: 40ch; line-height: 1.6; }
.price-feats { display: flex; flex-direction: column; }
.price-feats li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.price-feats li::before { content: "→"; color: var(--accent); }
.price-block .btn { margin-top: 22px; }

/* ---- FAQ accordion ---- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 0; text-align: left;
    font-size: clamp(17px, 1.9vw, 22px); font-weight: 600; letter-spacing: -0.015em; color: var(--ink);
    transition: color .22s var(--ease), padding-left .3s var(--ease);
}
.faq-q:hover { color: var(--accent); padding-left: 10px; }
.faq-item[open] > .faq-q { color: var(--accent); }
.faq-q .mk { position: relative; width: 16px; height: 16px; flex: none; transition: transform .4s var(--ease); }
.faq-q .mk::before, .faq-q .mk::after { content: ""; position: absolute; background: var(--accent); transition: transform .3s var(--ease); }
.faq-q .mk::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-q .mk::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-q:hover .mk { transform: scale(1.14); }
.faq-item[open] .faq-q .mk { transform: rotate(180deg); }
.faq-item[open] .faq-q .mk::after { transform: scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .45s var(--ease); }
.faq-a > p {
    margin: 0;
    opacity: 0; transform: translateY(-6px);
    transition: opacity .3s var(--ease), transform .35s var(--ease);
    padding: 0 40px 24px 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; max-width: 70ch;
}
.faq-item[open] .faq-a > p { opacity: 1; transform: none; transition-delay: .12s; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 4vw, 48px); }
.contact-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.contact-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.big-link { font-size: clamp(22px, 3vw, 38px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); display: inline-flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); transition: color .2s var(--ease); }
.big-link:hover { color: var(--accent); }
.big-link .arr { color: var(--ink-soft); transition: transform .2s var(--ease); }
.big-link:hover .arr { transform: translate(4px, -4px); color: var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form > * { grid-column: 1 / -1; }
.form .field:nth-child(1), .form .field:nth-child(2) { grid-column: span 1; }
.form button { justify-self: start; padding-inline: 40px; }
@media (max-width: 620px) {
    .form { grid-template-columns: 1fr; }
    .form .field:nth-child(1), .form .field:nth-child(2) { grid-column: 1 / -1; }
    .form button { justify-self: stretch; }
}
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; font: inherit; font-size: 15px;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--r-sm);
    transition: border-color .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); padding: 30px 0 10px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft); }
.foot a { transition: color .2s var(--ease); }
.foot a:hover { color: var(--accent); }
.credit a { color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.credit a:hover { color: var(--accent); border-color: var(--accent); }
.heart { color: var(--accent); display: inline-block; animation: heartbeat 1.8s var(--ease) infinite; }
@keyframes heartbeat { 0%, 38%, 100% { transform: scale(1); } 14% { transform: scale(1.32); } 26% { transform: scale(1.06); } }

/* ===================================================================
   Hover & micro-interactions — premium, cursor-aware
   =================================================================== */

/* Buttons: light sheen sweep */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 33%, rgba(255, 255, 255, 0.4) 50%, transparent 67%);
    transform: translateX(-135%);
    transition: transform .75s var(--ease);
}
.btn:hover::after { transform: translateX(135%); }

/* Cursor-follow spotlight on cells/rows */
.skill, .proof .p, .svc { position: relative; overflow: hidden; }
.skill > *, .proof .p > *, .svc > * { position: relative; z-index: 1; }
.skill::after, .proof .p::after, .svc::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--accent-wash), transparent 60%);
    opacity: 0; transition: opacity .4s var(--ease);
}
.skill:hover::after, .proof .p:hover::after, .svc:hover::before { opacity: 1; }

/* Service rows — editorial premium hover */
.svc { transition: padding-left .4s var(--ease); }
.svc:hover { padding-left: 12px; }
.svc .num { transition: color .35s var(--ease), transform .35s var(--ease); transform-origin: left center; }
.svc:hover .num { color: var(--accent); transform: scale(1.22); }
.svc h3 { transition: transform .4s var(--ease), color .3s var(--ease); }
.svc:hover h3 { transform: translateX(6px); color: var(--accent); }
.svc .meta { transition: color .3s var(--ease), transform .4s var(--ease); }
.svc:hover .meta { color: var(--accent); transform: translateX(-4px); }

/* Skill cells — underline draw + label spread */
.skill h3 {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
    transition: background-size .45s var(--ease), color .3s var(--ease);
    padding-bottom: 3px;
}
.skill:hover h3 { background-size: 100% 2px; color: var(--accent); }
.skill .k { transition: letter-spacing .35s var(--ease); }
.skill:hover .k { letter-spacing: 0.18em; }

/* Proof cells */
.proof .p { transition: transform .4s var(--ease); }
.proof .p:hover { transform: translateY(-3px); }
.proof .p h3 { transition: color .3s var(--ease); }
.proof .p:hover h3 { color: var(--accent); }

/* Case cards — lift, accent frame, image overlay + badge pop */
.case { transition: transform .45s var(--ease), border-color .35s var(--ease), box-shadow .45s var(--ease); }
.case:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--color-shadow-modern); }
.case .ph::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(0deg, rgba(4, 18, 12, 0.5), transparent 56%);
    opacity: 0; transition: opacity .4s var(--ease);
}
.case:hover .ph::after { opacity: 1; }
.case .ph::before {
    content: "\2197"; position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 50%; background: var(--accent); color: #04240f; font-size: 19px; font-weight: 700;
    opacity: 0; transform: scale(0.5) translateY(-8px);
    transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.case:hover .ph::before { opacity: 1; transform: none; }
.case h3 { transition: color .3s var(--ease); }
.case:hover h3 { color: var(--accent); }

/* Inline links — animated underline draw */
.text-link, .cred {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
    transition: background-size .4s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.text-link:hover, .cred:hover { background-size: 100% 1px; }
.big-link { transition: color .2s var(--ease), border-color .25s var(--ease); }
.big-link:hover { border-bottom-color: var(--accent); }

/* Rail nav — number accent on hover */
.rail-nav a:hover .n { color: var(--accent); }

/* Portrait — zoom + accent frame */
.portrait img { transition: transform .6s var(--ease), filter .4s var(--ease); }
.portrait:hover img { transform: scale(1.05); filter: grayscale(0.04) contrast(1.04); }
.portrait::after { transition: box-shadow .4s var(--ease); }
.portrait:hover::after { box-shadow: inset 0 0 0 1px var(--accent); }

/* Facts / process / tags / rate */
.facts .row { transition: padding-left .3s var(--ease); }
.facts .row:hover { padding-left: 10px; }
.facts .row:hover dt { color: var(--accent); }
.facts .row:hover dd { color: var(--accent); }
.process span { transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease); }
.process span:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-3px); background: var(--accent-wash); }
.tag { transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.tag:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.identity:hover .rate-line .num { color: var(--accent); }
.identity:hover .rate-line .lab { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
    .heart, .marquee__track { animation: none; }
    .btn::after, .skill::after, .proof .p::after, .svc::before,
    .case .ph::after, .case .ph::before, .portrait:hover img { transition: none; }
}

/* Contact CTA row */
.contact-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; }

/* Floating WhatsApp lead button (bottom-left; Tawk chat sits bottom-right) */
.wa-float {
    position: fixed; right: 24px; bottom: 96px; z-index: 50;
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff;
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.32), 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float-label { display: none; } /* icon-only, stacked above the live-chat widget */
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 42px rgba(37, 211, 102, 0.45); }
@media (max-width: 880px) {
    /* rail is a top bar on mobile -> bottom-left is free; chat widget stays bottom-right */
    .wa-float { left: 16px; right: auto; bottom: 18px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

/* ================= Mobile top bar (hidden on desktop) ================= */
.topbar { display: none; }
.nav-drawer { display: none; }

/* reveal — progressive enhancement: visible by default, animate only when JS arms it */
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.reveal-ready .reveal.in { opacity: 1; transform: none; }
html.reveal-done .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================= Responsive ================= */
@media (max-width: 1080px) {
    :root { --rail: 290px; --gap: 48px; }
    .price-block, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
    .shell { grid-template-columns: 1fr; gap: 0; padding: 0; }
    .rail {
        position: static; height: auto; max-height: none; overflow: visible;
        flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px;
        padding: 16px var(--pad);
        border-bottom: 1px solid var(--line);
        position: sticky; top: 0; z-index: 40;
        background: color-mix(in srgb, var(--paper) 86%, transparent);
        backdrop-filter: saturate(1.2) blur(12px);
        -webkit-backdrop-filter: saturate(1.2) blur(12px);
        justify-content: space-between;
    }
    .rail-top { order: 0; flex: 1 1 100%; }
    .portrait, .identity, .rail-nav, .rail-foot { display: none; }
    .rail-top .pill-toggle { display: none; } /* EN/FR lives in the drawer on mobile */
    .rail-controls { gap: 10px; }
    .menu-btn { display: inline-grid; }
    .content { padding: 0 var(--pad) 60px; }
    .hero { padding-top: 40px; }
    .scrolllock { overflow: hidden; }

    /* drawer */
    .nav-drawer {
        display: block; position: fixed; inset: 0; z-index: 60;
        visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility .3s;
    }
    .nav-drawer.open { visibility: visible; opacity: 1; }
    .nav-drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
    .nav-drawer .panel {
        position: absolute; top: 0; right: 0; height: 100%; width: min(86%, 360px);
        background: var(--surface); border-left: 1px solid var(--line);
        padding: 26px var(--pad); display: flex; flex-direction: column; gap: 18px;
        transform: translateX(100%); transition: transform .35s var(--ease);
        overflow-y: auto;
    }
    .nav-drawer.open .panel { transform: none; }
    .nav-drawer .panel nav a { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid var(--line-soft); }
    .nav-drawer .panel nav a .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
    .drawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
}

@media (min-width: 881px) {
    .menu-btn { display: none; }
}

@media (max-width: 760px) {
    .contact-top { grid-template-columns: 1fr; gap: 22px; align-items: start; }
}

@media (max-width: 620px) {
    .facts .row, .t-item, .svc, .hero-sub { grid-template-columns: 1fr; gap: 6px; }
    .svc .meta { text-align: left; }
    .t-item .date { padding-top: 0; }
    .hero-sub { gap: 16px; }
}

/* ── Mobile hero identity card (hidden on desktop) ──────────────────── */
.hero-person { display: none; }

@media (max-width: 880px) {
    .hero-person {
        display: flex; align-items: center; gap: 18px;
        padding: 18px; margin: 24px 0 28px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
    }
    .hero-person .p-photo {
        width: 84px; height: 84px; flex-shrink: 0;
        border-radius: 10px; object-fit: cover; object-position: top center;
    }
    .hero-person .p-info { display: flex; flex-direction: column; min-width: 0; }
    .hero-person .p-name { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
    .hero-person .p-role { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
    .hero-person .p-rate { display: flex; align-items: baseline; gap: 5px; margin-top: 10px; }
    .hero-person .p-num {
        font-size: 28px; font-weight: 750; letter-spacing: -0.035em; line-height: 1;
    }
    .hero-person .p-num sup { font-size: 16px; font-weight: 600; vertical-align: super; }
    .hero-person .p-lab {
        font-family: var(--font-mono); font-size: 9.5px;
        color: var(--ink-soft); letter-spacing: 0.06em;
        text-transform: uppercase; line-height: 1.4;
    }
    .hero-person .p-loc {
        display: flex; align-items: center; gap: 7px;
        margin-top: 5px; font-size: 11.5px; color: var(--ink-soft);
    }
    .hero-person .p-loc::before {
        content: ""; width: 5px; height: 5px; flex-shrink: 0;
        border-radius: 50%; background: var(--accent);
        box-shadow: 0 0 0 2px var(--accent-wash);
    }
}

/* ── Cert section — Trailblazer verify link ─────────────────────────── */
.cert-verify {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 500; color: var(--accent);
    text-decoration: none; border-bottom: 1px solid currentColor;
    padding-bottom: 1px; margin-bottom: 28px;
    transition: opacity .2s var(--ease);
}
.cert-verify:hover { opacity: .7; }
.cert-verify .arr { font-style: normal; }

/* ── Drawer close button ────────────────────────────────────────────── */
@media (max-width: 880px) {
    .drawer-close { align-self: flex-end; }
}
