:root {
    --bg: #0a0a0f;
    --bg-muted: #12121a;
    --bg-card: #1a1a24;
    --text: #f5f5f0;
    --text-muted: #a8a8b3;
    --gold: #c9a962;
    --gold-hover: #dbbe78;
    --border: #2a2a38;
    --accent: #c9a962;
    --radius: 8px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --max-width: 1200px;
    --focus: #dbbe78;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hover); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--gold);
    color: var(--bg);
    padding: 0.75rem 1.25rem;
    z-index: 9999;
    font-weight: 600;
    border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2rem, var(--max-width)); margin-inline: auto; }

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--gold { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--bg); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 62ch; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
}
.logo__mark {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: var(--bg);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}
.primary-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.primary-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--gold); }
.header-cta { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
}

/* Hero */
.hero { padding: 4rem 0 3rem; }
.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero__visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.stats-bar {
    background: var(--bg-muted);
    border-block: 1px solid var(--border);
    padding: 2rem 0;
}
.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.stats-bar strong { display: block; font-family: var(--font-display); font-size: 1.75rem; color: var(--gold); }
.stats-bar span { font-size: 0.875rem; color: var(--text-muted); }

.section { padding: 5rem 0; }
.section--dark { background: var(--bg-muted); }
.section--muted { background: var(--bg-card); }
.section--accent { background: linear-gradient(135deg, #1a1810 0%, var(--bg-muted) 100%); }
.section-header { max-width: 720px; margin-bottom: 3rem; }
.section-header--center { text-align: center; margin-inline: auto; }

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.service-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.service-card h3, .service-card p, .service-card a { padding-inline: 1.5rem; }
.service-card h3 { margin-top: 1.25rem; }
.service-card p { color: var(--text-muted); font-size: 0.9375rem; }
.service-card a { display: inline-block; padding-bottom: 1.5rem; font-weight: 600; }

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.split-section__image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.case-card {
    padding: 0;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.case-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin: 0;
}
.case-card__tag {
    display: inline-block;
    margin: 1.25rem 1.5rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
}
.case-card h3 { padding-inline: 1.5rem; margin-top: 0.65rem; }
.case-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    padding: 0 1.5rem 1.5rem;
}

.cta-panel { text-align: center; max-width: 640px; margin-inline: auto; }
.cta-panel p { color: var(--text-muted); margin-bottom: 2rem; }

.page-hero { padding: 4rem 0 2rem; border-bottom: 1px solid var(--border); }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 1.25rem; }

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.service-detail--reverse { direction: rtl; }
.service-detail--reverse > * { direction: ltr; }
.service-detail img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}
.feature-list article {
    padding: 0;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.feature-list article img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.feature-list article h3 {
    padding: 1.25rem 1.5rem 0;
    margin: 0;
}
.feature-list article p {
    padding: 0.65rem 1.5rem 1.5rem;
    margin: 0;
}

.work-item { margin-bottom: 4rem; }
.work-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}
.work-item__meta { font-size: 0.8125rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.work-item p { color: var(--text-muted); }

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.375rem; font-size: 0.9375rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-color: var(--gold);
}
.form-group--error input, .form-group--error textarea { border-color: #e57373; }
.form-note, .form-disclaimer { font-size: 0.8125rem; color: var(--text-muted); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert--success {
    padding: 1.5rem;
    background: rgba(201, 169, 98, 0.12);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
}
.alert--success h2 { font-size: 1.25rem; margin-top: 0; }

.contact-details {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.contact-details img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}
.contact-details h2 { margin-top: 0; }
.contact-details address { font-style: normal; color: var(--text-muted); }
.contact-details a { color: var(--gold); }

.map-wrap, .map-block { min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); }
.map-wrap iframe, .map-block iframe { width: 100%; height: 360px; border: 0; }
.map-placeholder, .map-block__consent {
    display: grid;
    place-items: center;
    min-height: 360px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}
.map-fallback { padding: 2rem; color: var(--text-muted); }

.text-center { text-align: center; }
.case-studies-note { max-width: 65ch; margin: 2rem auto 0; color: var(--text-muted); text-align: center; }

/* Footer */
.site-footer {
    background: var(--bg-muted);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 2rem;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.site-footer__heading { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; color: var(--text-muted); font-size: 0.9375rem; }
.site-footer__tagline, .site-footer__hours { color: var(--text-muted); font-size: 0.9375rem; }
.site-footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.site-footer__disclaimer { margin-top: 0.75rem; max-width: 72ch; }

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1.25rem;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { max-width: var(--max-width); margin-inline: auto; }
.cookie-banner h2 { font-size: 1.125rem; margin: 0 0 0.5rem; }
.cookie-banner p { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 1rem; max-width: 72ch; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.cookie-banner__link { font-size: 0.875rem; color: var(--gold); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (max-width: 960px) {
    .hero__grid, .split-section, .service-detail, .contact-layout, .site-footer__grid { grid-template-columns: 1fr; }
    .service-cards, .case-grid, .feature-list, .stats-bar__grid { grid-template-columns: 1fr; }
    .service-detail--reverse { direction: ltr; }
    .nav-toggle { display: flex; }
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-muted);
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .primary-nav.is-open { display: flex; }
    .site-header__inner { position: relative; flex-wrap: wrap; }
}

@media (min-width: 961px) {
    .header-cta { display: inline-block; }
}

/* Premium polish */
html { color-scheme: dark; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(900px 500px at 100% -20%, rgba(201, 169, 98, 0.08), transparent 55%),
        radial-gradient(700px 420px at 0% 30%, rgba(201, 169, 98, 0.05), transparent 50%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}
body > .skip-link { position: fixed; }
body > .cookie-banner { position: fixed; }
body > .site-header,
body > main,
body > .site-footer { width: 100%; }
main { flex: 1; }

::selection {
    background: rgba(201, 169, 98, 0.28);
    color: var(--text);
}

.hero {
    position: relative;
    isolation: isolate;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.35), transparent);
}

.page-hero {
    background:
        linear-gradient(180deg, rgba(18, 18, 26, 0.95) 0%, rgba(10, 10, 15, 0.4) 100%);
}

.logo__mark {
    box-shadow: 0 8px 24px rgba(201, 169, 98, 0.25);
    letter-spacing: 0.04em;
}

.service-card,
.case-card,
.feature-list article,
.cta-panel,
.contact-details,
.alert--success {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.service-card,
.case-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover,
.case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 98, 0.45);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.case-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero__visual img,
.split-section__image img,
.service-detail img,
.work-item img {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero__visual img:hover,
.split-section__image img:hover,
.service-detail img:hover {
    transform: translateY(-3px);
}

.btn--gold {
    background: linear-gradient(135deg, #d4b56a 0%, var(--gold) 55%, #b8934f 100%);
    box-shadow: 0 10px 30px rgba(201, 169, 98, 0.22);
}
.btn--gold:hover {
    box-shadow: 0 14px 36px rgba(201, 169, 98, 0.32);
}

.stats-bar {
    background: linear-gradient(180deg, var(--bg-muted) 0%, rgba(18, 18, 26, 0.85) 100%);
}

.section-header h2,
.hero h1,
.page-hero h1 {
    letter-spacing: -0.02em;
}

.contact-form input,
.contact-form textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.15);
}

.alert--success h2 { color: var(--gold); }

.site-header {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.primary-nav a {
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}
.btn {
    letter-spacing: 0.02em;
}
.cta-panel {
    padding: 3.5rem 2rem;
    border: 1px solid rgba(201, 169, 98, 0.28);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(26, 26, 36, 0.9), rgba(18, 18, 26, 0.7));
}
.error-page, .page-hero .lead + p { margin-top: 1.5rem; }
.legal-prose, .prose { max-width: 760px; }
.cookie-banner {
    backdrop-filter: blur(16px);
    background: rgba(26, 26, 36, 0.96);
    border-top: 1px solid rgba(201, 169, 98, 0.28);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
