/* ═══════════════════════════════════════════════════════════════
   IT WERKSTATT — Editorial Atelier Build
   Paper-warm palette · Oversized serif · Monospace developer DNA
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Cool paper — professional, serious, modern */
    --paper:        #f4f4f1;
    --paper-soft:   #ebebe6;
    --paper-deep:   #e0e0da;
    --card:         #ffffff;
    --card-raised:  #f7f7f3;
    --ink:          #0d0f14;
    --ink-2:        #272a31;
    --ink-soft:     #54585f;
    --ink-mute:     #858992;
    --ink-ghost:    #b6b9bf;
    --line:         #d9d9d3;
    --line-soft:    #e8e8e3;
    --hair:         rgba(13,15,20,0.08);

    /* Deep navy accent — serious, contemporary */
    --gold:         #2d4a7c;
    --gold-light:   #4a6a9e;
    --gold-deep:    #1a2f52;
    --gold-glow:    rgba(45,74,124,0.16);
    --gold-soft:    rgba(45,74,124,0.06);
    --rust:         #8c3a1f;

    --radius:       2px;
    --radius-lg:    4px;
    --radius-xl:    8px;

    --serif:        'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:         'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono:         ui-monospace, 'SF Mono', 'JetBrains Mono', 'Menlo', 'Consolas', monospace;

    --ease:         cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --nav-h:        84px;

    --c-width:      1280px;
    --gutter:       clamp(1.25rem, 3vw, 2.25rem);

    color-scheme: light;
}

/* ─── Dark mode palette — invert surfaces, keep navy accent ─── */
:root[data-theme="dark"] {
    --paper:        #0f1117;
    --paper-soft:   #161923;
    --paper-deep:   #1c2030;
    --card:         #181c26;
    --card-raised:  #22263a;
    --ink:          #f4f4f1;
    --ink-2:        #dddeda;
    --ink-soft:     #b0b4bc;
    --ink-mute:     #969ba8;
    --ink-ghost:    #525868;
    --line:         #303548;
    --line-soft:    #262b38;
    --hair:         rgba(244,244,241,0.08);

    --gold:         #7a9ad0;
    --gold-light:   #95b1de;
    --gold-deep:    #5a7eb5;
    --gold-glow:    rgba(122,154,208,0.25);
    --gold-soft:    rgba(107,141,192,0.08);

    color-scheme: dark;
}

/* Theme transition — smooth swap */
html, body { transition: background-color 0.35s var(--ease), color 0.35s var(--ease); }

/* Dark-mode specific overrides for hardcoded white surfaces */
:root[data-theme="dark"] .hero-badge,
:root[data-theme="dark"] .card-icon,
:root[data-theme="dark"] .tech-list span {
    background: rgba(244,244,241,0.05) !important;
    border-color: var(--line) !important;
}
:root[data-theme="dark"] .nav {
    background: rgba(18,21,30,0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
}
:root[data-theme="dark"] .nav.scrolled {
    background: rgba(15,17,23,0.96);
    border-bottom-color: var(--line);
    box-shadow: 0 1px 0 rgba(244,244,241,0.04), 0 20px 40px -30px rgba(0,0,0,0.5);
}
:root[data-theme="dark"] .logo img {
    filter: invert(1) brightness(1.8);
}
:root[data-theme="dark"] .nav-cta {
    background: var(--gold);
    color: var(--paper);
    border-color: var(--gold);
}
:root[data-theme="dark"] .nav-cta:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}
:root[data-theme="dark"] .nav-links a {
    color: var(--ink-2);
}
:root[data-theme="dark"] .nav-links a:hover {
    color: var(--ink);
}
:root[data-theme="dark"] .nav-clock {
    color: var(--ink-mute);
}
:root[data-theme="dark"] .cookie {
    background: rgba(22,25,35,0.96) !important;
    border-top-color: var(--line) !important;
}
:root[data-theme="dark"] .hero-photo img { filter: saturate(0.85) contrast(0.95) brightness(0.88); }
:root[data-theme="dark"] .grain { opacity: 0.03; mix-blend-mode: overlay; }
:root[data-theme="dark"] .nav-toggle span { background: var(--ink); }
:root[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--paper); }
:root[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--line); }
:root[data-theme="dark"] .testimonial { border-color: var(--line); }
:root[data-theme="dark"] .testimonial::before { opacity: 0.15; }
:root[data-theme="dark"] .hero-call { border-color: var(--line); }
:root[data-theme="dark"] .hero-trust { border-top-color: var(--line); }
:root[data-theme="dark"] .trust-bar { border-color: var(--line); }
:root[data-theme="dark"] .portfolio-tag { border-color: var(--line); color: var(--ink-soft); }
:root[data-theme="dark"] ::selection { background: var(--gold); color: var(--paper); }

/* Fonts loaded via <link> in each <head>: Inter (variable) + Fraunces (variable). */

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--sans);
    font-size: 16px; line-height: 1.7;
    color: var(--ink-2);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    font-feature-settings: "ss01", "kern", "liga";
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

/* ─── Focus rings (a11y) ─── */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}
.btn:focus-visible,
.nav-cta:focus-visible,
.hero-price-chip:focus-visible {
    outline-offset: 4px;
}
.calc-options label:has(input:focus-visible) {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.calc-options input:focus-visible {
    outline: none;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.container { max-width: var(--c-width); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
    position: absolute; top: -100%; left: 1rem; z-index: 100001;
    padding: 0.5rem 1rem; background: var(--ink); color: var(--paper);
    font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.04em;
}
.skip-link:focus { top: 1rem; }

/* ─── Subtle noise overlay (cool, restrained) ─────────────── */
.grain {
    position: fixed; inset: 0; z-index: 1;
    pointer-events: none; opacity: 0.06;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.1 0 0 0 0 0.14 0 0 0 0.65 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    background-size: 200px 200px;
}
body::before {
    content: ""; position: fixed; inset: 0; z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(1200px 700px at 85% -10%, rgba(45,74,124,0.06), transparent 60%);
}
main, .footer, .nav, .cta-section { position: relative; z-index: 2; }

/* ─── Custom cursor (desktop only) ────────────────────────── */
.cursor {
    position: fixed; top: 0; left: 0; z-index: 99999;
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--ink);
    pointer-events: none;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.25s var(--ease), height 0.25s var(--ease),
                background 0.25s var(--ease), border-color 0.25s var(--ease),
                opacity 0.2s;
    opacity: 0;
}
.cursor.active { opacity: 1; }
.cursor.hover {
    width: 52px; height: 52px;
    background: var(--gold);
    border-color: var(--gold);
    mix-blend-mode: normal;
}
.cursor-dot {
    position: fixed; top: 0; left: 0; z-index: 99999;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ink);
    pointer-events: none;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.2s;
}
.cursor-dot.active { opacity: 1; }
@media (hover: none), (max-width: 900px) {
    .cursor, .cursor-dot { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h); z-index: 1000;
    background: rgba(244,244,241,0.78);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
    background: rgba(244,244,241,0.94);
    border-bottom-color: var(--line-soft);
    box-shadow: 0 1px 0 rgba(27,22,16,0.03), 0 20px 40px -30px rgba(27,22,16,0.12);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo {
    display: inline-flex; align-items: center;
    text-decoration: none;
    line-height: 1;
    color: var(--ink);
    transition: opacity 0.2s;
}
.logo img {
    height: 52px; width: auto; max-width: 220px;
    display: block;
    object-fit: contain;
}
.logo:hover { opacity: 0.78; }
/* Legacy text variant fallback */
.logo span {
    font-family: var(--serif);
    color: var(--gold);
    font-style: italic;
}

.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
    position: relative;
    font-size: 0.83rem; font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.01em;
    transition: color 0.25s;
    padding: 0.3rem 0;
}
.nav-links a::after {
    content: ""; position: absolute; bottom: 0; left: 0; right: 0;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.45s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-meta {
    display: flex; align-items: center; gap: 1rem;
    font-family: var(--mono); font-size: 0.72rem;
    color: var(--ink-mute); letter-spacing: 0.04em;
}
.nav-clock {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line-soft);
    border-radius: 100px;
    background: rgba(255,255,255,0.55);
}
.nav-clock-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
    50% { box-shadow: 0 0 0 5px rgba(34,197,94,0.05); }
}

.nav-cta {
    font-size: 0.8rem; font-weight: 600;
    padding: 0.6rem 1.1rem 0.6rem 1.3rem;
    color: var(--ink);
    border: 1px solid var(--ink);
    background: transparent;
    border-radius: 100px;
    letter-spacing: 0.02em;
    display: inline-flex; align-items: center; gap: 0.55rem;
    transition: all 0.3s var(--ease);
}
.nav-cta::after {
    content: "→"; font-family: var(--serif); font-size: 1rem; line-height: 1;
    transition: transform 0.3s var(--ease);
}
.nav-cta:hover {
    background: var(--ink); color: var(--paper);
}
.nav-cta:hover::after { transform: translateX(4px); }

.theme-toggle {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s var(--ease);
    margin-left: 0.35rem;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    transform: rotate(10deg);
}
.theme-toggle svg {
    width: 18px; height: 18px;
    position: absolute;
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.theme-toggle .t-icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle .t-icon-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .t-icon-sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .t-icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
@media (max-width: 768px) {
    .theme-toggle { width: 44px; height: 44px; margin-left: auto; margin-right: 0.25rem; }
}

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    position: relative;
    margin: 0 -0.5rem;
}
.nav-toggle span {
    position: absolute; left: 50%; width: 24px; height: 1.75px;
    background: var(--ink); border-radius: 1px;
    transform: translateX(-50%);
    transition: 0.35s var(--ease);
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { bottom: 15px; }
.nav-toggle.active span:first-child { top: 50%; transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle.active span:last-child { bottom: 50%; transform: translate(-50%, 50%) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   HERO — editorial two-column with photograph
   ═══════════════════════════════════════════════════════════ */
.hero {
    padding: calc(var(--nav-h) + 2.25rem) 0 3rem;
    position: relative;
    overflow: hidden;
}
.hero-coords { display: none; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
}

.hero-badges {
    display: flex; align-items: center; gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--mono);
    font-size: 0.68rem; font-weight: 500;
    color: var(--ink-soft);
    padding: 0.4rem 0.85rem 0.4rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: rgba(255,255,255,0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.hero-price-chip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.68rem; font-weight: 500;
    color: var(--paper);
    background: var(--ink);
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--ink);
    border-radius: 100px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.25s var(--ease);
}
.hero-price-chip b {
    color: var(--gold-light);
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: 0;
}
.hero-price-chip span {
    opacity: 0.7;
    transition: opacity 0.25s;
}
.hero-price-chip:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--paper);
}
.hero-price-chip:hover b { color: var(--paper); }
.hero-price-chip:hover span { opacity: 1; }
.hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
    animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 18ch;
}
.hero h1 em {
    font-style: italic;
    color: var(--gold-deep);
    position: relative;
    font-feature-settings: "ss01";
    padding-right: 0.08em;
    display: inline-block;
}
.hero h1 em::after { content: none; }
.hero h1 sup {
    font-family: var(--mono);
    font-size: 0.22em;
    font-weight: 500;
    color: var(--ink-mute);
    vertical-align: super;
    letter-spacing: 0.05em;
    margin-left: 0.15em;
    top: -0.6em;
}

.hero-text { position: relative; }

.hero-kicker {
    display: inline-flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--ink-mute);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.hero-kicker-line {
    width: 36px; height: 1px;
    background: var(--gold);
}

.hero-sub {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: var(--ink-2);
    max-width: 46ch;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 2rem;
}
.hero-sub b {
    font-weight: 600;
    color: var(--ink);
    background: linear-gradient(180deg, transparent 62%, var(--gold-soft) 62%);
    padding: 0 0.15em;
}

.hero-actions {
    display: flex; gap: 0.6rem; flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

/* Hero call link — warm, personal, always visible */
.hero-call {
    display: inline-flex; align-items: center; gap: 0.85rem;
    margin-bottom: 1.75rem;
    padding: 0.75rem 1rem 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--card-raised);
    color: var(--ink);
    text-decoration: none;
    transition: all 0.3s var(--ease);
    max-width: fit-content;
}
.hero-call:hover {
    border-color: var(--gold);
    background: var(--card);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -12px rgba(45,74,124,0.35);
}
.hero-call-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--paper);
    flex-shrink: 0;
}
.hero-call-icon svg { width: 15px; height: 15px; }
.hero-call-body { display: inline-flex; flex-direction: column; line-height: 1.2; }
.hero-call-main {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.hero-call-sub {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--ink-mute);
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}
.hero-call-arrow {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--ink-mute);
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
    margin-left: 0.25rem;
}
.hero-call:hover .hero-call-arrow { transform: translateX(4px); color: var(--gold); }

/* Hero trust trio — replaces old hero-signals */
.hero-trust {
    list-style: none;
    padding: 1.25rem 0 0;
    margin: 0;
    border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
}
.hero-trust li {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ink-2);
    letter-spacing: 0.04em;
    display: inline-flex; align-items: center; gap: 0.45rem;
}
.hero-trust-mark {
    color: var(--gold);
    font-size: 0.6rem;
}
@media (max-width: 768px) {
    .hero-actions { margin-bottom: 1rem; }
    .hero-call {
        margin-bottom: 1.25rem;
        width: 100%; max-width: none;
        justify-content: space-between;
        padding: 0.85rem 1.1rem 0.85rem 1rem;
    }
    .hero-call-main { font-size: 1rem; }
    .hero-trust {
        padding-top: 1rem;
        gap: 0.35rem 1rem;
        justify-content: center;
    }
    .hero-trust li { font-size: 0.68rem; }
}
@media (max-width: 420px) {
    .hero-trust { flex-direction: column; gap: 0.4rem; align-items: flex-start; }
}

.hero-signals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.hero-signal {
    padding-right: 1.25rem;
    border-right: 1px solid var(--line-soft);
    min-width: 0;
}
.hero-signal:not(:first-child) { padding-left: 1.25rem; }
.hero-signal:last-child { border-right: none; padding-right: 0; }
.hero-signal-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.64rem;
    color: var(--ink-mute);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}
.hero-signal b {
    display: block;
    font-size: 0.88rem;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.3;
}
@media (max-width: 520px) {
    .hero-signals { grid-template-columns: 1fr; gap: 1rem; }
    .hero-signal {
        padding: 0; border-right: none;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--line-soft);
    }
    .hero-signal:not(:first-child) { padding-left: 0; padding-top: 0; }
    .hero-signal:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ═══════════════════════════════════════════════════════════
   HERO CUTOUT — clean, minimalist, one accent disc
   ═══════════════════════════════════════════════════════════ */
.hero-visual--cutout {
    padding: 0 !important;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.hero-visual--cutout::before,
.hero-visual--cutout::after { display: none !important; }

.hero-cutout-stage {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Single soft accent disc behind the portrait */
.hero-cutout-disc {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 82%; aspect-ratio: 1/1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, var(--gold-soft) 0%, var(--gold-soft) 55%, transparent 78%);
    z-index: 0;
}

/* The cutout portrait */
.hero-cutout-img {
    position: relative;
    z-index: 2;
    width: 100%;
    display: block;
    filter: drop-shadow(0 14px 24px rgba(13,15,20,0.12));
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 98%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 98%);
}
.hero-cutout-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Simple caption below */
.hero-cutout-caption {
    display: inline-flex; align-items: baseline; gap: 0.6rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--line);
    width: auto;
    max-width: 300px;
}
.hero-cutout-name {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
    font-style: italic;
    letter-spacing: -0.01em;
}
.hero-cutout-role {
    font-family: var(--mono);
    font-size: 0.64rem;
    color: var(--ink-mute);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-visual--cutout { min-height: 0; gap: 0.75rem; }
    .hero-cutout-stage { max-width: 260px; }
    .hero-cutout-name { font-size: 0.9rem; }
    .hero-cutout-role { font-size: 0.56rem; }
}

/* Dark mode — slight tint */
:root[data-theme="dark"] .hero-cutout-img {
    filter: drop-shadow(0 14px 30px rgba(0,0,0,0.5)) brightness(0.96);
}

/* Legacy hero-photo (still used on subpages if any) */
.hero-visual {
    position: relative;
    padding: 28px 28px 0 0;
}
.hero-visual::before,
.hero-visual::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
/* Decorative corner brackets — navy accent */
.hero-visual::before {
    top: 0; right: 0;
    width: 60px; height: 60px;
    border-top: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
}
.hero-visual::after {
    bottom: -28px; left: -28px;
    width: 60px; height: 60px;
    border-bottom: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
}

.hero-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 560px;
    overflow: hidden;
    background: var(--paper-deep);
    border: 1px solid var(--line);
}
.hero-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s var(--ease-out);
    filter: saturate(0.9) contrast(1.02);
}
.hero-photo:hover img { transform: scale(1.03); }
.hero-photo-frame {
    position: absolute; top: 1rem; left: 1rem;
    z-index: 2;
    padding: 0.3rem 0.7rem;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper);
    background: rgba(13,15,20,0.6);
    backdrop-filter: blur(6px);
    border-radius: 100px;
}

/* Floating project card — overlaps the photo bottom-left */
.hero-project-card {
    position: absolute;
    bottom: -1.75rem; left: -1.75rem;
    z-index: 3;
    width: 58%; max-width: 280px;
    padding: 1.1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(13,15,20,0.12);
}
.hero-project-card-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.6rem;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.hero-project-card-live {
    display: inline-flex; align-items: center; gap: 0.35rem;
    color: #16a34a;
}
.hero-project-card-live::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
    animation: pulse 2.4s ease-in-out infinite;
}
.hero-project-card h4 {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}
.hero-project-card p {
    font-size: 0.78rem;
    color: var(--ink-soft);
    line-height: 1.45;
    margin-bottom: 0.75rem;
}
.hero-project-card-kpi {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line-soft);
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
}
.hero-project-card-kpi b {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
}

@media (max-width: 960px) {
    .hero-visual { padding: 20px 20px 0 0; }
    .hero-visual::before,
    .hero-visual::after { width: 40px; height: 40px; }
    .hero-photo { aspect-ratio: 16 / 11; max-height: 340px; }
    .hero-project-card {
        position: static; width: 100%; max-width: none;
        margin-top: 2rem;
    }
}

/* Mobile hero compression — show visual above the fold */
@media (max-width: 768px) {
    .hero-grid { gap: 1.25rem; }
    .hero-visual:not(.hero-visual--cutout) {
        order: -1;
        padding: 10px 10px 0 0;
        margin: 0 auto 0.5rem;
        max-width: 200px;
    }
    .hero-visual--cutout {
        order: -1;
        margin: 0 auto 0.25rem;
        max-width: 320px;
    }
    .hero-visual:not(.hero-visual--cutout)::before,
    .hero-visual:not(.hero-visual--cutout)::after { width: 18px; height: 18px; }
    .hero-photo { aspect-ratio: 4 / 5; max-height: 250px; }
    .hero-photo img { object-position: center 15%; }
    .hero-photo-frame { font-size: 0.56rem; padding: 0.22rem 0.55rem; top: 0.6rem; left: 0.6rem; }
    .hero-project-card { display: none; }
    .hero-badges { margin-bottom: 1rem; }
    .hero h1 {
        font-size: clamp(1.75rem, 7.5vw, 2.4rem);
        line-height: 1.08;
        margin-bottom: 0.9rem;
        max-width: none;
    }
    .hero-sub {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 1.4rem;
    }
    .hero-actions { margin-bottom: 1.75rem; }
    .hero-signals { gap: 0.75rem; }
    .hero-price-chip { font-size: 0.62rem; padding: 0.35rem 0.7rem; }
}

.hero-scroll-hint {
    display: none;
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--ink-mute);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem;
    opacity: 0; animation: fadeIn 1s 1.4s var(--ease) forwards;
}
.hero-scroll-hint::after {
    content: ""; width: 1px; height: 34px;
    background: linear-gradient(180deg, var(--ink-mute), transparent);
    animation: scrollDrop 1.8s var(--ease) infinite;
}
@keyframes scrollDrop {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeIn { to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════
   TRUST BAR — four refined metrics
   ═══════════════════════════════════════════════════════════ */
.trust-bar {
    position: relative;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--card-raised);
}
.trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.trust-item {
    padding: 1.4rem 1.5rem;
    border-right: 1px solid var(--line-soft);
    display: flex; align-items: baseline; gap: 0.9rem;
    min-width: 0;
}
.trust-item:last-child { border-right: none; }
.trust-item-num {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}
.trust-item-num sup {
    font-size: 0.45em;
    vertical-align: super;
    color: var(--gold);
    margin-left: 0.05em;
}
.trust-item-body strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
    margin-bottom: 0.15rem;
}
.trust-item-body span {
    display: block;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--ink-mute);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
@media (max-width: 900px) {
    .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2) { border-right: none; }
    .trust-item:nth-child(1),
    .trust-item:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 520px) {
    .trust-bar-inner { grid-template-columns: 1fr; }
    .trust-item { border-right: none; border-bottom: 1px solid var(--line-soft); }
    .trust-item:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════
   TECH STRIP
   ═══════════════════════════════════════════════════════════ */
.tech-strip {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--line-soft);
}
.tech-strip-label {
    font-family: var(--mono);
    font-size: 0.7rem; font-weight: 500;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.tech-strip-label::before,
.tech-strip-label::after {
    content: ""; width: 40px; height: 1px; background: var(--line);
}
.tech-list {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0.4rem;
}
.tech-list span {
    font-family: var(--mono);
    font-size: 0.76rem; font-weight: 500;
    padding: 0.4rem 1rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--ink-soft);
    background: rgba(255,255,255,0.45);
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease);
    cursor: default;
}
.tech-list span:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--paper-deep);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .tech-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        max-width: 420px;
        margin: 0 auto;
    }
    .tech-list span {
        text-align: center;
        font-size: 0.68rem;
        padding: 0.5rem 0.65rem;
        line-height: 1.3;
    }
    .tech-strip { padding: 2rem 0; }
    .tech-strip-label { margin-bottom: 1rem; }
}
@media (max-width: 420px) {
    .tech-list span { font-size: 0.62rem; padding: 0.45rem 0.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS — direct color swap on hover (clean contrast)
   ═══════════════════════════════════════════════════════════ */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
    font-weight: 600; font-size: 0.88rem;
    padding: 1rem 2rem;
    min-height: 48px;
    border-radius: 100px;
    background: var(--gold); color: var(--paper);
    letter-spacing: 0.01em;
    border: 1px solid var(--gold);
    box-shadow: 0 6px 18px -8px rgba(45,74,124,0.4);
    transition:
        background-color 0.3s var(--ease),
        color 0.3s var(--ease),
        border-color 0.3s var(--ease),
        transform 0.3s var(--ease),
        box-shadow 0.3s var(--ease);
    text-decoration: none;
    cursor: pointer;
}
.btn:hover {
    background: var(--gold-deep);
    color: var(--paper);
    border-color: var(--gold-deep);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -10px rgba(26,47,82,0.55);
}
.btn::after {
    content: "→"; font-family: var(--serif); font-size: 1.1rem; line-height: 1;
    transition: transform 0.3s var(--ease);
}
.btn:hover::after { transform: translateX(5px); }

.btn--outline {
    background: transparent; color: var(--ink);
    border: 1.5px solid var(--ink);
    box-shadow: none;
}
.btn--outline:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    box-shadow: 0 10px 28px -8px rgba(13,15,20,0.35);
}
.btn--dark {
    background: var(--ink); color: var(--paper);
    border-color: var(--ink);
    box-shadow: 0 6px 18px -8px rgba(13,15,20,0.4);
}
.btn--dark:hover {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 14px 32px -10px rgba(45,74,124,0.55);
}
.btn--full { width: 100%; }
.btn--small { padding: 0.6rem 1.3rem; font-size: 0.8rem; }

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section { padding: 7rem 0; position: relative; }
.section--gray { background: var(--paper-soft); }
.section--deep { background: var(--paper-deep); }
.section + .section { border-top: 1px solid var(--line-soft); }

/* Testimonials block gets extra visual gravity */
#testimonials {
    background: var(--paper-deep);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
#testimonials .testimonials-grid {
    background: var(--line);
    border-color: var(--line);
}
#testimonials .testimonial { background: var(--card); }
#testimonials .testimonial:hover { background: var(--paper); }

.section-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: end;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}
.section-num {
    font-family: var(--mono);
    font-size: 0.78rem; font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.12em;
    padding-top: 0.5rem;
    white-space: nowrap;
}
.section-num::before {
    content: "◇";
    display: inline-block;
    margin-right: 0.5rem;
    transform: translateY(-1px);
}

.section-label {
    font-family: var(--mono);
    font-size: 0.72rem; font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 18ch;
}
.section-title em {
    font-style: italic;
    color: var(--gold-deep);
}

/* When used outside section-head (legacy support) */
.section > .container > .section-label { margin-bottom: 0.75rem; }
.section > .container > .section-title { margin-bottom: 3.5rem; }

/* ═══════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}
.card {
    position: relative;
    padding: 2.5rem 2rem 2.25rem;
    background: var(--card);
    transition: all 0.5s var(--ease);
    counter-increment: serv;
    overflow: hidden;
    display: flex; flex-direction: column;
    min-height: 320px;
}
.card::before {
    content: counter(serv, decimal-leading-zero);
    position: absolute; top: 1.5rem; right: 1.5rem;
    font-family: var(--mono);
    font-size: 0.72rem; font-weight: 500;
    color: var(--ink-ghost);
    letter-spacing: 0.1em;
    transition: color 0.3s;
}
.card::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(600px 200px at 0% 100%, var(--gold-soft), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}
.card:hover {
    background: var(--card-raised);
    transform: translateY(-1px);
}
.card:hover::before { color: var(--gold); }
.card:hover::after { opacity: 1; }
.services-grid { counter-reset: serv; }

.card-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.75rem;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: all 0.5s var(--ease);
}
.card-icon svg { width: 22px; height: 22px; stroke-width: 1.3; }
.card:hover .card-icon {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    transform: rotate(-6deg);
}

.card h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.card h3 span,
.card h3 a {
    color: inherit;
    background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100%/0 1px;
    transition: background-size 0.4s var(--ease), color 0.3s;
    display: inline;
}
.card:hover h3 span,
.card:hover h3 a { background-size: 100% 1px; color: var(--gold-deep); }

/* Card as anchor */
a.card { text-decoration: none; color: inherit; }

.card p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.65;
    flex: 1;
}
.card-more {
    margin-top: 1.25rem;
    font-family: var(--mono);
    font-size: 0.72rem; font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 0.5rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s var(--ease);
}
.card:hover .card-more {
    opacity: 1;
    transform: translateY(0);
}
.card-more::after {
    content: "→"; font-family: var(--serif); font-size: 1rem;
    transition: transform 0.3s;
}
.card:hover .card-more::after { transform: translateX(4px); }

/* Touch devices: always show the "more" indicator */
@media (hover: none) {
    .card-more { opacity: 1; transform: translateY(0); }
}
/* Mobile: tighter card padding */
@media (max-width: 768px) {
    .card {
        min-height: 0;
        padding: 1.75rem 1.5rem 1.75rem;
    }
    .card-icon { width: 44px; height: 44px; margin-bottom: 1.25rem; }
    .card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
    .card p { font-size: 0.88rem; }
    .card-more { margin-top: 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   MINI CTA
   ═══════════════════════════════════════════════════════════ */
.mini-cta {
    padding: 3rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, transparent, var(--gold-soft), transparent),
        var(--card);
}
.mini-cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.mini-cta-inner p {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.25;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO — asymmetric editorial rows
   ═══════════════════════════════════════════════════════════ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem 1.5rem;
}
.portfolio-item {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line-soft);
    overflow: hidden;
    transition: all 0.5s var(--ease);
    display: flex; flex-direction: column;
}
.portfolio-item:nth-child(1) { grid-column: span 7; }
.portfolio-item:nth-child(2) { grid-column: span 5; }
.portfolio-item:nth-child(3) { grid-column: span 5; }
.portfolio-item:nth-child(4) { grid-column: span 7; }

.portfolio-item:hover {
    border-color: var(--ink);
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -20px rgba(27,22,16,0.18);
}

.portfolio-visual {
    aspect-ratio: 16 / 9;
    background: var(--bg, var(--paper-deep));
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    display: flex; align-items: flex-start; justify-content: flex-start;
    border-bottom: 1px solid var(--line-soft);
}
.portfolio-visual::before {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(135deg, transparent 40%, rgba(27,22,16,0.02) 100%),
        repeating-linear-gradient(90deg, rgba(27,22,16,0.025) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(0deg, rgba(27,22,16,0.025) 0 1px, transparent 1px 40px);
    pointer-events: none;
}

.portfolio-badge {
    position: relative; z-index: 2;
    font-family: var(--mono);
    font-size: 0.68rem; font-weight: 600;
    padding: 0.3rem 0.75rem;
    background: var(--ink);
    color: var(--paper);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
}
.portfolio-result {
    position: absolute; bottom: 1.25rem; right: 1.25rem;
    z-index: 2;
    font-family: var(--mono);
    font-size: 0.7rem; font-weight: 600;
    padding: 0.4rem 0.9rem 0.4rem 1.75rem;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 100px;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 12px rgba(27,22,16,0.1);
}
.portfolio-result::before {
    content: "";
    position: absolute; left: 0.7rem; top: 50%;
    transform: translateY(-50%);
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}

/* Browser mockups */
.browser-mock {
    position: absolute;
    bottom: -40px; left: 50%; transform: translateX(-50%);
    width: 78%; max-width: 420px;
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 20px 40px -10px rgba(27,22,16,0.2), 0 0 0 1px rgba(27,22,16,0.06);
    overflow: hidden;
    transition: transform 0.6s var(--ease);
}
.portfolio-item:hover .browser-mock {
    transform: translateX(-50%) translateY(-6px);
}
.browser-bar {
    display: flex; gap: 5px; align-items: center;
    padding: 8px 12px;
    background: #f0f0ec;
    border-bottom: 1px solid #e5e0d2;
}
.browser-bar span {
    width: 8px; height: 8px; border-radius: 50%;
    background: #d7d1bf;
}
.browser-bar span:first-child { background: #e07b5a; }
.browser-bar span:nth-child(2) { background: #e0b75a; }
.browser-bar span:nth-child(3) { background: #7fa878; }

.browser-content { padding: 14px 16px; background: #fff; }
.mock-line { height: 7px; background: #eae4d3; border-radius: 2px; margin-bottom: 7px; }
.mock-blocks { display: flex; gap: 8px; margin-bottom: 8px; }
.mock-block {
    flex: 1; height: 40px;
    background: #f7f2e4;
    border-radius: 3px;
    border: 1px solid #eae4d3;
}
.mock-hero-img {
    height: 56px;
    background: linear-gradient(135deg, #2d4a7c, #4a6a9e);
    border-radius: 3px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}
.mock-hero-img::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.25), transparent 50%);
}
.mock-chat-bubble {
    width: 54%; height: 22px;
    background: linear-gradient(135deg, #4a6a9e, #6d8ab7);
    border-radius: 12px 12px 12px 4px;
    margin-top: 4px;
    margin-left: auto;
}

/* Terminal mockup */
.browser-mock--terminal { background: #1b1610; }
.browser-bar--dark { background: #0f0d0a; border-bottom-color: #2a241d; }
.browser-bar--dark span { background: #3d352b; }
.browser-bar--dark span:first-child { background: #d96a52; }
.browser-bar--dark span:nth-child(2) { background: #d9a552; }
.browser-bar--dark span:nth-child(3) { background: #87ad7f; }
.browser-content--dark { padding: 12px 14px; background: #1b1610; }
.mock-terminal-line {
    font-family: var(--mono);
    font-size: 10px;
    color: #8a7f6f;
    line-height: 1.8;
    white-space: nowrap;
    overflow: hidden;
}
.mock-terminal-line--dim { color: #5a5145; }
.mock-terminal-line--gold { color: var(--gold-light); }

/* Portfolio body */
.portfolio-body {
    padding: 1.75rem;
    display: flex; flex-direction: column;
    flex: 1;
}
.portfolio-item h3 {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 400;
    color: var(--ink);
    padding: 0;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.portfolio-item > p {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.65;
    padding: 0;
    flex: 1;
    margin-bottom: 1.25rem;
}
.tags {
    display: flex; gap: 0.35rem; flex-wrap: wrap;
    padding: 0;
    margin-top: auto;
}
.tags span {
    font-family: var(--mono);
    font-size: 0.68rem; font-weight: 500;
    padding: 0.3rem 0.7rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--ink-soft);
    letter-spacing: 0.03em;
    transition: all 0.25s;
}
.portfolio-item:hover .tags span {
    border-color: var(--ink);
    color: var(--ink);
}

/* Fix legacy padding nesting - the existing HTML has h3/p/tags outside portfolio-body.
   Support both layouts. */
.portfolio-item:not(:has(.portfolio-body)) h3 {
    padding: 1.75rem 1.75rem 0.75rem;
}
.portfolio-item:not(:has(.portfolio-body)) > p {
    padding: 0 1.75rem;
    margin-bottom: 1.25rem;
}
.portfolio-item:not(:has(.portfolio-body)) .tags {
    padding: 0 1.75rem 1.75rem;
}

/* ═══════════════════════════════════════════════════════════
   STATS — navy block for visual gravity
   ═══════════════════════════════════════════════════════════ */
.stats-section {
    padding: 5.5rem 0;
    background: linear-gradient(180deg, var(--gold-deep) 0%, var(--gold) 100%);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.stats-section > .container { position: relative; z-index: 1; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.stat {
    padding: 1rem 2rem;
    text-align: left;
    border-right: 1px solid rgba(244,244,241,0.15);
    position: relative;
}
.stat:last-child { border-right: none; }
.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: clamp(3rem, 5.5vw, 5rem);
    color: var(--paper);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 400;
}
.stat-num::after {
    content: "+";
    font-size: 0.5em;
    color: rgba(244,244,241,0.65);
    vertical-align: super;
    margin-left: 0.1em;
}
.stat-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: rgba(244,244,241,0.78);
    margin-top: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}
.testimonial {
    padding: 2.5rem;
    background: var(--card);
    display: flex; flex-direction: column;
    transition: all 0.4s var(--ease);
    position: relative;
}
.testimonial::before {
    content: "\201C";
    position: absolute;
    top: 1rem; left: 1.5rem;
    font-family: var(--serif);
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.2;
    line-height: 1;
}
.testimonial:hover { background: var(--card-raised); }

.testimonial-stars {
    display: flex; gap: 2px;
    color: var(--gold);
    margin-bottom: 1.25rem;
    position: relative;
}
.testimonial p {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1.75rem;
    font-style: italic;
    letter-spacing: -0.005em;
    position: relative;
}
.testimonial footer {
    display: flex; align-items: center; gap: 0.9rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-soft);
}
.testimonial-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif);
    font-size: 0.95rem;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}
.testimonial footer strong {
    display: block;
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 600;
}
.testimonial footer span {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ink-mute);
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════
   PROCESS — timeline
   ═══════════════════════════════════════════════════════════ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    counter-reset: proc;
}
.process-grid::before {
    content: "";
    position: absolute;
    top: 36px; left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
    z-index: 0;
}
.process-step {
    padding: 0 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    counter-increment: proc;
    transition: transform 0.3s var(--ease);
}
.process-step:hover { transform: translateY(-4px); }
.process-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s var(--ease);
    position: relative;
}
.process-num::before {
    content: counter(proc, decimal-leading-zero);
    position: absolute; top: -8px; right: -8px;
    width: 24px; height: 24px;
    background: var(--gold);
    color: var(--paper);
    border-radius: 50%;
    font-family: var(--mono);
    font-size: 0.65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    letter-spacing: 0.02em;
}
.process-step:hover .process-num {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.process-step h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}
.process-step p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 28ch;
    margin: 0 auto 1rem;
}
.process-deliverables {
    list-style: none; padding: 0; margin: 1rem auto 0;
    display: flex; flex-direction: column; gap: 0.35rem;
    text-align: left;
    max-width: 24ch;
}
.process-deliverables li {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ink-2);
    letter-spacing: 0.02em;
    line-height: 1.5;
    padding-left: 1.2rem;
    position: relative;
}
.process-deliverables li::before {
    content: "+";
    position: absolute; left: 0; top: 0;
    color: var(--gold); font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   WHY US
   ═══════════════════════════════════════════════════════════ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}
.why-item {
    display: flex; flex-wrap: wrap;
    column-gap: 1.5rem; row-gap: 0.6rem;
    padding: 2.75rem 2.25rem;
    background: var(--card);
    transition: all 0.4s var(--ease);
    align-items: flex-start;
}
.why-item > h3,
.why-item > p { flex: 1 1 100%; min-width: 0; }
.why-item > h3 { flex-basis: calc(100% - 54px - 1.5rem); margin-top: 0.1rem; }
.why-item:hover { background: var(--card-raised); }

.why-icon {
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    transition: all 0.4s var(--ease);
}
.why-icon svg { width: 22px; height: 22px; stroke-width: 1.3; }
.why-item:hover .why-icon {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    transform: rotate(-6deg);
}
.why-item h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.why-item p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   INCLUSIVE BAND — full-service checklist
   ═══════════════════════════════════════════════════════════ */
.inclusive-band {
    padding: 4rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--card-raised);
    position: relative;
}
.inclusive-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line-soft);
}
.inclusive-kicker {
    font-family: var(--mono);
    font-size: 0.7rem; font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.inclusive-title {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.inclusive-list {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem 2rem;
}
.inclusive-list li {
    display: flex; align-items: center; gap: 0.7rem;
    font-size: 0.92rem;
    color: var(--ink-2);
    letter-spacing: -0.005em;
}
.inclusive-list li svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--gold);
    background: var(--gold-soft);
    border-radius: 50%;
    padding: 3px;
    border: 1px solid var(--gold-glow);
}
@media (max-width: 1024px) {
    .inclusive-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .inclusive-list { grid-template-columns: repeat(2, 1fr); }
    .inclusive-head { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
@media (max-width: 960px) {
    .about-grid { grid-template-columns: 1fr; }
}
.about-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--paper-deep);
    border: 1px solid var(--line);
}
.about-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(0.85) contrast(1.02);
    transition: transform 1.2s var(--ease-out);
}
.about-photo:hover img { transform: scale(1.03); }
.about-photo-tag {
    position: absolute; top: 1rem; left: 1rem;
    z-index: 2;
    padding: 0.3rem 0.7rem;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper);
    background: rgba(13,15,20,0.55);
    backdrop-filter: blur(6px);
    border-radius: 100px;
}
.about-text > p.section-label { display: block; }
.about-text .section-title { margin-bottom: 2rem; max-width: 14ch; }
.about-text p {
    color: var(--ink-2);
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    max-width: 62ch;
}
.about-text p strong { color: var(--ink); font-weight: 600; }
.about-text p:first-of-type::first-letter {
    font-family: var(--serif);
    font-size: 3.5em;
    float: left;
    line-height: 0.9;
    padding: 0.1em 0.1em 0 0;
    color: var(--gold-deep);
    font-style: italic;
}
.about-facts {
    display: flex; gap: 3rem; flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.about-fact strong {
    display: block;
    font-family: var(--mono);
    font-size: 0.68rem; font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.35rem;
}
.about-fact span {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--ink);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq-list {
    max-width: 820px;
    margin-top: 0;
}
.faq-item {
    border-top: 1px solid var(--line);
    transition: background 0.3s;
}
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item.open { background: var(--card); }
.faq-q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 1.75rem 0.5rem;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.15rem; font-weight: 400;
    text-align: left;
    cursor: pointer;
    letter-spacing: -0.01em;
    line-height: 1.3;
    transition: color 0.3s, padding 0.3s;
}
.faq-item.open .faq-q { padding: 1.75rem 1rem; color: var(--gold-deep); }
.faq-q:hover { color: var(--gold-deep); }
.faq-q svg {
    width: 22px; height: 22px;
    flex-shrink: 0;
    color: var(--ink-mute);
    transition: transform 0.4s var(--ease), color 0.3s;
    stroke-width: 1.5;
}
.faq-item.open .faq-q svg {
    transform: rotate(180deg);
    color: var(--gold);
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease);
}
.faq-item.open .faq-a { max-height: 420px; }
.faq-a p {
    padding: 0 1rem 1.75rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.75;
    max-width: 62ch;
}

/* ═══════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════ */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    position: relative;
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
}
.cta-section::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(600px 400px at 50% 0%, rgba(201,168,76,0.12), transparent 70%),
        radial-gradient(800px 500px at 50% 100%, rgba(201,168,76,0.06), transparent 70%);
}
.cta-section::after {
    content: "";
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.9 0 0 0 0 0.6 0 0 0 0.3 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    opacity: 0.15; mix-blend-mode: overlay;
    pointer-events: none;
}
.cta-section > .container { position: relative; z-index: 1; }
.cta-section h2 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--paper);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.05;
    max-width: 16ch;
    margin-left: auto; margin-right: auto;
}
.cta-section h2 em {
    font-style: italic;
    color: var(--gold-light);
}
.cta-section p {
    color: rgba(244,244,241,0.72);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto; margin-right: auto;
    line-height: 1.6;
}
.cta-section .btn {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}
.cta-section .btn:hover {
    background: var(--gold);
    color: var(--paper);
    border-color: var(--gold);
    box-shadow: 0 14px 40px -10px rgba(74,106,158,0.55);
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; padding-top: 0.5rem; }
.contact-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.68rem; font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.45rem;
}
.contact-item a,
.contact-item span {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--ink);
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color 0.25s;
}
.contact-item a { position: relative; }
.contact-item a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.contact-item a:hover::after { transform: scaleX(1); }
.contact-item a:hover { color: var(--gold-deep); }

.contact-form {
    display: flex; flex-direction: column; gap: 1.2rem;
    padding: 2.75rem;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    position: relative;
}
.contact-form::before {
    content: "→ Anfrage";
    position: absolute; top: -11px; left: 2rem;
    font-family: var(--mono);
    font-size: 0.7rem; font-weight: 500;
    padding: 0.15rem 0.7rem;
    background: var(--card);
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-left: 1px solid var(--line-soft);
    border-right: 1px solid var(--line-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem; font-weight: 500;
    color: var(--ink-mute);
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 0.85rem 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--ink);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    -webkit-appearance: none;
    font-family: var(--sans);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-ghost); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--ink);
    background: var(--card);
    box-shadow: 0 0 0 3px var(--gold-soft);
}
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-alt {
    text-align: center;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-mute);
    margin-top: 0.75rem;
    letter-spacing: 0.03em;
}
.form-alt a {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 500;
}
.form-alt a:hover { color: var(--gold-deep); }
.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23857868'%3E%3Cpath d='M6 8.5 1 3.5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.4rem;
}
.form-group select option { background: var(--card); color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--line);
    background: var(--paper-soft);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-brand .logo img { height: 100px; max-width: 380px; }
.footer-brand p {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin-top: 1rem; max-width: 340px;
    line-height: 1.65;
}
.footer-mono {
    margin-top: 1.5rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ink-mute);
    line-height: 1.9;
    letter-spacing: 0.03em;
}
.footer-mono b { color: var(--ink); font-weight: 600; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h4 {
    font-family: var(--mono);
    font-size: 0.68rem; font-weight: 500;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}
.footer-col a {
    font-size: 0.92rem;
    color: var(--ink-2);
    transition: color 0.2s;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.footer-col a::before {
    content: "→";
    font-family: var(--serif);
    font-size: 0.9rem;
    color: var(--gold);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s var(--ease);
}
.footer-col a:hover { color: var(--gold-deep); }
.footer-col a:hover::before { opacity: 1; transform: translateX(0); }

.footer-signature {
    padding: 2rem 0 0;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    font-family: var(--mono);
    font-size: 0.75rem; color: var(--ink-mute);
    letter-spacing: 0.03em;
}
.footer-signature b { color: var(--ink); font-weight: 600; }

.footer-bottom {
    padding-top: 1.5rem;
    font-family: var(--mono);
    font-size: 0.75rem; color: var(--ink-mute);
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   CHATBOT (preserved, retuned)
   ═══════════════════════════════════════════════════════════ */
.chatbot { position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 9000; transition: bottom 0.4s var(--ease); }
body:has(.cookie.visible) .chatbot { bottom: calc(1.75rem + 64px); }
body:has(.cookie.visible) .back-top { bottom: calc(1.75rem + 64px); }
@media (max-width: 768px) {
    body:has(.cookie.visible) .chatbot { bottom: calc(1rem + 56px); }
    body:has(.cookie.visible) .back-top { bottom: calc(1rem + 56px); }
    .chatbot { bottom: 1rem; right: 1rem; }
    .back-top { bottom: 1rem; left: 1rem; }
    .chatbot-btn { width: 54px; height: 54px; }
}
.chatbot-label {
    position: absolute; bottom: 68px; right: 0;
    background: var(--ink); color: var(--paper);
    font-family: var(--mono);
    font-size: 0.72rem; font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 24px rgba(27,22,16,0.2);
    animation: labelPulse 3s ease-in-out infinite, labelSlide 0.5s var(--ease) both;
    animation-delay: 3s, 3s;
    opacity: 0;
}
.chatbot-label::after {
    content: ''; position: absolute; bottom: -5px; right: 22px;
    width: 10px; height: 10px; background: var(--ink);
    transform: rotate(45deg);
}
.chatbot.open .chatbot-label { display: none; }
@keyframes labelSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes labelPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.chatbot-btn {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: var(--ink); color: var(--paper);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(27,22,16,0.25), 0 0 0 0 var(--gold-glow);
    transition: all 0.3s var(--ease);
    position: relative; z-index: 2;
    animation: btnRing 3s ease-in-out infinite;
    border: 1px solid var(--ink);
}
@keyframes btnRing {
    0%, 100% { box-shadow: 0 6px 24px rgba(27,22,16,0.25), 0 0 0 0 rgba(201,168,76,0.2); }
    50% { box-shadow: 0 6px 24px rgba(27,22,16,0.25), 0 0 0 10px rgba(201,168,76,0); }
}
.chatbot.open .chatbot-btn { animation: none; background: var(--gold); border-color: var(--gold); color: var(--paper); }
.chatbot-btn:hover { transform: scale(1.08); }
.chatbot-btn svg { width: 26px; height: 26px; }
.ico-close { display: none; }
.chatbot.open .ico-open { display: none; }
.chatbot.open .ico-close { display: block; }

.chatbot-window {
    position: absolute; bottom: 80px; right: 0;
    width: 400px; max-height: 560px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: flex; flex-direction: column;
    opacity: 0; transform: translateY(12px) scale(0.96);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(27,22,16,0.25);
}
.chatbot.open .chatbot-window {
    opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}

.chatbot-head {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 1.1rem 1.3rem;
    background: var(--ink);
    color: var(--paper);
    border-bottom: 1px solid var(--line);
}
.chatbot-head strong { color: var(--paper) !important; }
.chatbot-head span { color: rgba(244,244,241,0.68) !important; font-family: var(--mono); font-size: 0.72rem; }
.chatbot-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gold); color: var(--paper);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif);
    font-weight: 400; font-size: 0.95rem;
    flex-shrink: 0;
}
.chatbot-head-info { flex: 1; }
.chatbot-head-info strong { display: block; font-size: 0.95rem; color: var(--paper); font-family: var(--serif); font-weight: 400; }
.chatbot-head-info span { display: flex; align-items: center; gap: 0.4rem; }
.chatbot-status {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.chatbot-body {
    flex: 1; overflow-y: auto;
    padding: 1.25rem;
    display: flex; flex-direction: column; gap: 0.5rem;
    scroll-behavior: smooth;
    background: var(--card);
}
.chatbot-body::-webkit-scrollbar { width: 4px; }
.chatbot-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.chat-msg {
    max-width: 88%;
    padding: 0.75rem 1rem;
    font-size: 0.88rem; line-height: 1.55;
    animation: msgIn 0.3s var(--ease) both;
}
.chat-msg--bot {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 2px 12px 12px 12px;
    align-self: flex-start;
    color: var(--ink-2);
}
.chat-msg--user {
    background: var(--ink);
    color: var(--paper);
    font-weight: 500;
    border-radius: 12px 2px 12px 12px;
    align-self: flex-end;
}
.chat-msg--bot strong { color: var(--gold-deep); font-weight: 600; }
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-typing { padding: 0 1.25rem 0.5rem; display: none; }
.chatbot-typing.active { display: block; }
.typing-dots {
    display: inline-flex; gap: 4px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 2px 12px 12px 12px;
    padding: 0.7rem 1rem;
}
.typing-dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ink-mute);
    animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

.chat-opts { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.4rem; }
.chat-opt {
    padding: 0.65rem 1rem;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    font-size: 0.82rem; font-weight: 500;
    color: var(--ink-2);
    cursor: pointer; text-align: left;
    transition: all 0.25s;
    display: flex; align-items: center; gap: 0.55rem;
}
.chat-opt:hover {
    background: var(--paper);
    border-color: var(--ink);
    color: var(--ink);
    transform: translateX(3px);
}
.chat-opt-icon { font-size: 1rem; line-height: 1; flex-shrink: 0; width: 1.2rem; text-align: center; }

.chatbot-foot {
    display: flex; gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--line-soft);
    background: var(--paper);
}
.chatbot-foot input {
    flex: 1; padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 10px; font-size: 0.85rem;
    background: var(--card); color: var(--ink);
    transition: border-color 0.2s;
}
.chatbot-foot input:focus { outline: none; border-color: var(--ink); }
.chatbot-foot button {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: var(--paper);
    border-radius: 10px;
    transition: transform 0.2s, background 0.2s;
}
.chatbot-foot button:hover { transform: scale(1.08); background: var(--gold); color: var(--paper); }
.chatbot-foot button svg { width: 16px; height: 16px; }

.chatbot-footer-info {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.55rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--ink-mute);
    border-top: 1px solid var(--line-soft);
    letter-spacing: 0.04em;
    background: var(--paper);
}

/* ═══════════════════════════════════════════════════════════
   STICKY MOBILE CTA BAR — thumb-reach conversion
   ═══════════════════════════════════════════════════════════ */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 8997;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(13,15,20,0.08);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    gap: 0.5rem;
    transform: translateY(110%);
    transition: transform 0.35s var(--ease);
}
.sticky-cta.visible { transform: translateY(0); }
:root[data-theme="dark"] .sticky-cta { background: rgba(22,25,35,0.96); }

.sticky-cta-call {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--card-raised);
    color: var(--ink);
    border: 1px solid var(--line);
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.2s var(--ease);
}
.sticky-cta-call:hover, .sticky-cta-call:active {
    background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.sticky-cta-call svg { width: 20px; height: 20px; }

.sticky-cta-primary {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    height: 48px;
    padding: 0 1rem;
    border-radius: 100px;
    background: var(--gold);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 6px 18px -8px rgba(45,74,124,0.55);
    transition: background 0.2s var(--ease);
}
.sticky-cta-primary:active { background: var(--gold-deep); }

@media (max-width: 768px) {
    .sticky-cta { display: flex; }
    /* Nudge chat bubble and back-top when sticky CTA is visible */
    body:has(.sticky-cta.visible) .chatbot { bottom: calc(1rem + 72px); }
    body:has(.sticky-cta.visible) .back-top { bottom: calc(1rem + 72px); }
    /* If BOTH cookie + sticky CTA are up, stack further */
    body:has(.cookie.visible):has(.sticky-cta.visible) .chatbot { bottom: calc(1rem + 128px); }
    body:has(.cookie.visible):has(.sticky-cta.visible) .back-top { bottom: calc(1rem + 128px); }
    /* Push sticky CTA above cookie when both shown */
    body:has(.cookie.visible) .sticky-cta { bottom: 56px; }
}

/* ═══════════════════════════════════════════════════════════
   COOKIE
   ═══════════════════════════════════════════════════════════ */
.cookie {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 8999;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 0.85rem 0;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 -8px 30px rgba(27,22,16,0.08);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    background: rgba(255,255,255,0.94);
}
.cookie.visible { transform: translateY(0); }
.cookie-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.cookie-inner p {
    font-size: 0.82rem; color: var(--ink-2);
    font-family: var(--mono);
    letter-spacing: 0.01em;
    line-height: 1.4;
    margin: 0;
}
.cookie-inner a { color: var(--gold-deep); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.45rem; flex-shrink: 0; }
.cookie .btn--small { padding: 0.5rem 1.1rem; font-size: 0.78rem; }
@media (max-width: 768px) {
    .cookie { padding: 0.6rem 0; }
    .cookie-inner p {
        font-size: 0.72rem;
        line-height: 1.35;
    }
    .cookie .btn--small { padding: 0.42rem 0.85rem; font-size: 0.72rem; }
    .cookie .btn--small::after { display: none; }
    .cookie-btns { gap: 0.35rem; }
}
@media (max-width: 420px) {
    .cookie-inner p { font-size: 0.68rem; }
}

/* ═══════════════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════════════ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.blog-card {
    display: flex; flex-direction: column;
    padding: 2.25rem;
    background: var(--card);
    border: 1px solid var(--line-soft);
    text-decoration: none;
    transition: all 0.4s var(--ease);
}
.blog-card:hover {
    border-color: var(--ink);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(27,22,16,0.15);
}
.blog-card--soon { opacity: 0.5; pointer-events: none; }
.blog-card-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.68rem; font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.85rem;
}
.blog-card h2 {
    font-family: var(--serif);
    font-size: 1.4rem; font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.6rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.blog-card p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1rem;
}
.blog-card-meta {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ink-mute);
    letter-spacing: 0.03em;
}
.blog-card:hover h2 { color: var(--gold-deep); }

/* ═══════════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════════ */
.back-top {
    position: fixed;
    bottom: 1.75rem; left: 1.75rem;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    z-index: 8998;
    opacity: 0; transform: translateY(10px);
    pointer-events: none;
    transition: all 0.35s var(--ease);
}
.back-top svg { width: 20px; height: 20px; stroke-width: 1.5; }
.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover {
    background: var(--ink); color: var(--paper);
    border-color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   FADE IN / REVEAL
   ═══════════════════════════════════════════════════════════ */
.fade-in { opacity: 1; transform: none; }
.js .fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .fade-in.visible { opacity: 1; transform: translateY(0); }
/* Once Motion One has booted it owns the reveal — clear the CSS hide
   so we don't fight Motion's inline opacity/transform. */
.motion-ready .fade-in { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
    .js .fade-in { opacity: 1; transform: none; transition: none; }
}

/* Top scroll progress indicator */
.scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 2px; width: 100%;
    background: var(--gold);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 10000;
    pointer-events: none;
}

.services-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.1s; }
.services-grid .fade-in:nth-child(5) { transition-delay: 0.18s; }
.services-grid .fade-in:nth-child(6) { transition-delay: 0.26s; }
.portfolio-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.portfolio-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.portfolio-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.process-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.process-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.process-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }

/* Hero staggered reveal */
.hero .fade-in:nth-child(1) { transition-delay: 0.05s; }
.hero .fade-in:nth-child(2) { transition-delay: 0.15s; }
.hero .fade-in:nth-child(3) { transition-delay: 0.25s; }
.hero .fade-in:nth-child(4) { transition-delay: 0.35s; }
.hero .fade-in:nth-child(5) { transition-delay: 0.45s; }

/* Hero title: subtle fade-up on load */
.hero h1 {
    opacity: 0;
    transform: translateY(20px);
    animation: heroRise 1s 0.15s var(--ease-out) forwards;
}
@keyframes heroRise {
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   SERVICE / LEGAL PAGES (for sub-pages)
   ═══════════════════════════════════════════════════════════ */
.service-hero {
    padding: calc(var(--nav-h) + 5rem) 0 4rem;
    position: relative;
    border-bottom: 1px solid var(--line-soft);
}
.breadcrumb {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.78rem; font-weight: 500;
    color: var(--gold);
    margin-bottom: 1.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: opacity 0.2s;
}
.breadcrumb::before { content: "←"; font-family: var(--serif); font-size: 1rem; }
.breadcrumb:hover { opacity: 0.65; }
.service-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.05;
    max-width: 16ch;
}
.service-hero h1 em { font-style: italic; color: var(--gold-deep); }
.service-hero-sub {
    font-size: 1.15rem;
    color: var(--ink-2);
    max-width: 60ch;
    line-height: 1.65;
    margin-bottom: 2.5rem;
}

.service-content { max-width: 820px; }
.service-content h2 {
    font-family: var(--serif);
    font-size: 1.75rem; font-weight: 400;
    color: var(--ink);
    margin-top: 4rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}
.service-content h2:first-child { margin-top: 0; }
.service-content p {
    font-size: 1rem;
    color: var(--ink-2);
    line-height: 1.8;
    margin-bottom: 0.85rem;
}
.service-content a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.service-content a:hover { color: var(--gold); }

.service-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
}
.service-type {
    padding: 1.75rem;
    background: var(--card);
    border: 1px solid var(--line-soft);
    transition: all 0.35s var(--ease);
}
.service-type:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}
.service-type h3 {
    font-family: var(--serif);
    font-size: 1.25rem; font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.service-type p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 0.85rem;
    line-height: 1.6;
}
.service-price {
    font-family: var(--mono);
    font-size: 0.78rem; font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.service-steps { display: grid; gap: 0.75rem; margin-top: 1.75rem; }
.service-step {
    padding: 1.4rem 1.6rem;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--gold);
}
.service-step strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.1rem; font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.35rem;
}
.service-step p { font-size: 0.9rem; margin-bottom: 0; }
.service-step ul {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.3rem 1rem;
}
.service-step ul li {
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--ink-2);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
    letter-spacing: 0.01em;
}
.service-step ul li::before {
    content: "+";
    position: absolute; left: 0; top: 0;
    color: var(--gold); font-weight: 700;
}

.service-benefits {
    list-style: none; padding: 0;
    margin: 1rem 0 2.5rem;
    display: grid; gap: 0.9rem;
}
.service-benefits li {
    font-size: 1rem; line-height: 1.65;
    color: var(--ink-2);
    padding-left: 1.7rem;
    position: relative;
}
.service-benefits li::before {
    content: "";
    position: absolute; left: 0; top: 0.5em;
    width: 10px; height: 10px;
    border-bottom: 1.8px solid var(--gold);
    border-right: 1.8px solid var(--gold);
    transform: rotate(45deg) translateY(-2px);
}
.service-benefits li strong { color: var(--ink); font-weight: 600; }

.service-results { list-style: none; padding: 0; margin-top: 1.25rem; }
.service-results li {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.95rem;
    color: var(--ink-2);
    line-height: 1.7;
}
.service-results li:last-child { border-bottom: none; }
.service-results li strong { color: var(--gold-deep); }

.service-cta-box {
    margin-top: 5rem;
    padding: 3rem;
    background: var(--card);
    border: 1px solid var(--line-soft);
    text-align: center;
    position: relative;
}
.service-cta-box::before {
    content: "◇";
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 24px;
    background: var(--paper);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}
.service-cta-box h2 { margin-top: 0; margin-bottom: 0.75rem; }
.service-cta-box p { max-width: 500px; margin: 0 auto 1.75rem; }
.service-cta-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   PRICING PAGE — package cards + live calculator
   ═══════════════════════════════════════════════════════════ */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}
.package {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    background: var(--card);
    display: flex; flex-direction: column;
    transition: background 0.35s var(--ease);
    min-height: 560px;
}
.package:hover { background: var(--card-raised); }
.package--featured {
    background: var(--ink);
    color: var(--paper);
}
.package--featured:hover { background: #0a0c10; }
.package-flag {
    position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    padding: 0.35rem 1rem;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.64rem; font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.package-top { margin-bottom: 1.75rem; }
.package-tag {
    font-family: var(--mono);
    font-size: 0.65rem; font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}
.package--featured .package-tag { color: var(--gold-light); }
.package h3 {
    font-family: var(--serif);
    font-size: 1.75rem; font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}
.package--featured h3 { color: var(--paper); }
.package-blurb {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.55;
}
.package--featured .package-blurb { color: rgba(244,244,241,0.7); }

.package-price {
    padding: 1.25rem 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    display: flex; align-items: baseline; gap: 0.5rem;
    flex-wrap: wrap;
}
.package--featured .package-price {
    border-color: rgba(244,244,241,0.12);
}
.package-price-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.package--featured .package-price-label { color: rgba(244,244,241,0.6); }
.package-price strong {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1;
}
.package--featured .package-price strong { color: var(--paper); }
.package-price strong small {
    font-size: 0.5em;
    color: var(--gold);
    font-weight: 400;
    vertical-align: super;
    margin-left: 0.05em;
}
.package-price-sub {
    width: 100%;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}
.package--featured .package-price-sub { color: rgba(244,244,241,0.5); }

.package-features {
    list-style: none; padding: 0; margin: 0 0 1.75rem;
    display: flex; flex-direction: column; gap: 0.55rem;
    flex: 1;
}
.package-features li {
    font-size: 0.88rem;
    color: var(--ink-2);
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.5;
}
.package-features li::before {
    content: "";
    position: absolute; left: 0; top: 0.5em;
    width: 8px; height: 8px;
    border-bottom: 1.5px solid var(--gold);
    border-right: 1.5px solid var(--gold);
    transform: rotate(45deg) translateY(-2px);
}
.package--featured .package-features li { color: rgba(244,244,241,0.85); }
.package--featured .package-features li::before {
    border-color: var(--gold-light);
}
.package .btn--outline { color: var(--ink); border-color: var(--line); }
.package .btn--outline:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.package--featured .btn {
    background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.package--featured .btn:hover {
    background: var(--gold);
    color: var(--paper);
    border-color: var(--gold);
}

@media (max-width: 1100px) {
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .packages-grid { grid-template-columns: 1fr; }
    .package { min-height: 0; }
}

/* ─── Calculator ─── */
.calc-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: start;
}
.calc-form {
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--line-soft);
    display: flex; flex-direction: column; gap: 1.75rem;
}
.calc-field {
    border: none; padding: 0; margin: 0;
}
.calc-field legend {
    font-family: var(--mono);
    font-size: 0.72rem; font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    padding: 0;
}
.calc-hint {
    font-family: var(--sans);
    font-size: 0.72rem;
    color: var(--ink-mute);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    margin-left: 0.4rem;
}
.calc-options {
    display: grid;
    gap: 0.55rem;
}
.calc-options--radio { grid-template-columns: repeat(2, 1fr); }
.calc-options--check { grid-template-columns: repeat(2, 1fr); }
.calc-options label {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    background: var(--paper);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    position: relative;
}
.calc-options label:hover {
    border-color: var(--ink);
    background: var(--card);
}
.calc-options input {
    appearance: none; -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}
.calc-options input[type="checkbox"] { border-radius: 3px; }
.calc-options input:checked {
    border-color: var(--gold);
    background: var(--gold);
}
.calc-options input:checked::after {
    content: "";
    position: absolute;
    left: 50%; top: 45%;
    width: 4px; height: 8px;
    border: solid var(--paper);
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}
.calc-options label:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold-soft);
}
.calc-options label span {
    display: flex; flex-direction: column;
    font-size: 0.92rem; color: var(--ink);
    font-weight: 500;
    line-height: 1.25;
    min-width: 0;
}
.calc-options label span small {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--ink-mute);
    font-weight: 400;
    margin-top: 0.15rem;
    letter-spacing: 0.02em;
}

/* ─── Calculator result panel ─── */
.calc-result {
    position: sticky; top: calc(var(--nav-h) + 1rem);
    padding: 2rem;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
}
.calc-result-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem;
}
.calc-result-kicker {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: rgba(244,244,241,0.65);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.calc-result-live {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: #22c55e;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.calc-result-range {
    display: flex; align-items: baseline; flex-wrap: wrap;
    gap: 0.4rem;
    padding: 1.25rem 0 1rem;
    border-top: 1px solid rgba(244,244,241,0.12);
    border-bottom: 1px solid rgba(244,244,241,0.12);
    margin-bottom: 1rem;
}
.calc-result-from,
.calc-result-dash,
.calc-result-unit {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: rgba(244,244,241,0.55);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.calc-result-num {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1;
    color: var(--paper);
    letter-spacing: -0.03em;
    font-weight: 400;
}
.calc-result-note {
    font-size: 0.82rem;
    color: rgba(244,244,241,0.65);
    line-height: 1.55;
    margin-bottom: 1.5rem;
}
.calc-result-breakdown {
    margin-bottom: 1.5rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: rgba(244,244,241,0.75);
    display: flex; flex-direction: column; gap: 0.4rem;
}
.calc-bd-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(244,244,241,0.12);
}
.calc-bd-row:last-child { border-bottom: none; }
.calc-bd-row b {
    color: var(--gold-light);
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: 0;
}
.calc-result .btn {
    background: var(--gold);
    color: var(--paper);
    border-color: var(--gold);
}
.calc-result .btn:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
    box-shadow: 0 10px 28px -8px rgba(244,244,241,0.4);
}
.calc-result-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(244,244,241,0.12);
}
.calc-result-meta > div { min-width: 0; }
.calc-result-meta span {
    display: block;
    font-family: var(--mono);
    font-size: 0.62rem;
    color: rgba(244,244,241,0.55);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}
.calc-result-meta b {
    display: block;
    font-size: 0.8rem;
    color: var(--paper);
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .calc-grid { grid-template-columns: 1fr; }
    .calc-result { position: static; }
}
@media (max-width: 520px) {
    .calc-options--radio,
    .calc-options--check { grid-template-columns: 1fr; }
}

/* Nav active state */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

/* Legal pages */
.legal-page { padding: calc(var(--nav-h) + 4rem) 0 5rem; }
.legal-page .container { max-width: 820px; }
.legal-page h1 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--line);
    letter-spacing: -0.02em;
}
.legal-page h2 {
    font-family: var(--serif);
    font-size: 1.35rem; font-weight: 400;
    color: var(--ink);
    margin-top: 2.75rem;
    margin-bottom: 0.85rem;
}
.legal-page h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.legal-page p {
    font-size: 0.95rem;
    color: var(--ink-2);
    line-height: 1.8;
    margin-bottom: 0.85rem;
}
.legal-page p strong { color: var(--ink); }
.legal-page a { color: var(--gold-deep); text-decoration: underline; }
.legal-page a:hover { color: var(--gold); }
.legal-page ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.85rem; }
.legal-page ul li { font-size: 0.95rem; color: var(--ink-2); line-height: 1.75; margin-bottom: 0.25rem; }
.legal-page ul li strong { color: var(--ink); }
.legal-page article table { width: 100%; }
.legal-date {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-mute);
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in { opacity: 1; transform: none; }
    .hero h1 .word span { transform: none; }
    html { scroll-behavior: auto; }
    .marquee-track { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 0; }
    .process-grid::before { display: none; }
    .why-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .portfolio-item:nth-child(1),
    .portfolio-item:nth-child(2),
    .portfolio-item:nth-child(3),
    .portfolio-item:nth-child(4) { grid-column: span 12; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .nav-meta { display: none; }
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; background: transparent; border: none; }
    .stat {
        background: transparent;
        border-right: 1px solid rgba(244,244,241,0.15);
        border-bottom: 1px solid rgba(244,244,241,0.15);
        padding: 1.25rem 1rem;
    }
    .stat:nth-child(2n) { border-right: none; }
    .stat:nth-last-child(-n+2) { border-bottom: none; }
    .stats-section { padding: 3.5rem 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-meta { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-mono { text-align: left; }
    .section-head { grid-template-columns: 1fr; gap: 1rem; }
    .about-facts { gap: 1.5rem 2.5rem; }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        width: 100vw;
        height: calc(100vh - var(--nav-h));
        background: var(--paper);
        padding: 3rem 2rem; gap: 1.75rem;
        z-index: 999;
        overflow-y: auto;
        align-items: flex-start;
    }
    .nav-links.open a {
        font-family: var(--serif);
        font-size: 1.75rem; color: var(--ink);
        font-weight: 400;
        width: 100%;
        padding: 0.85rem 0;
        min-height: 52px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--line-soft);
    }

    .hero { padding: calc(var(--nav-h) + 1.25rem) 0 2.5rem; }
    .hero-scroll-hint { display: none; }
    .section { padding: 5rem 0; }
    .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .services-grid, .testimonials-grid, .why-grid { gap: 1px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 1.75rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .chatbot-window { width: calc(100vw - 2rem); right: -0.5rem; max-height: 75vh; }
    .chatbot-label { display: none !important; }
    .cta-section { padding: 5rem 0; }
    .section-head { margin-bottom: 2.5rem; }
    .service-types { grid-template-columns: 1fr; }
    .service-hero { padding: calc(var(--nav-h) + 3rem) 0 3rem; }
    .mini-cta-inner { flex-direction: column; text-align: center; align-items: center; }
    .footer-signature { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .contact-form { padding: 1.25rem; }
}
