/* ═══════════════════════════════════════════════════════════════════════
   HANSEATISCH GRUNDBESITZ — Design System
   Premium "Old Money" Corporate Aesthetic
   ═══════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ────────────────────────────────────────────────────────────────────── */
:root {
    /* Backgrounds — deep, layered darks */
    --bg-primary:       #080C0A;
    --bg-secondary:     #0E1512;
    --bg-tertiary:      #162019;
    --bg-navy:          #0C1420;
    --bg-burgundy:      #1E100F;

    /* Gold Accent */
    --gold:             #B8973A;
    --gold-bright:      #D4B855;
    --gold-dim:         rgba(184, 151, 58, 0.35);
    --gold-subtle:      rgba(184, 151, 58, 0.12);

    /* Text */
    --text-primary:     #F0EADD;
    --text-secondary:   #BEB8AA;
    --text-muted:       #7D857A;
    --text-dark:        #080C0A;

    /* Borders */
    --border:           rgba(240, 234, 221, 0.08);
    --border-gold:      rgba(184, 151, 58, 0.18);

    /* Typography */
    --ff-heading:       'Playfair Display', Georgia, 'Times New Roman', serif;
    --ff-body:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    --fs-xs:   clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);   /* ~11–12 */
    --fs-sm:   clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);      /* ~12–14 */
    --fs-base: clamp(0.9375rem, 0.88rem + 0.25vw, 1rem);       /* ~15–16 */
    --fs-lg:   clamp(1rem, 0.93rem + 0.3vw, 1.125rem);         /* ~16–18 */
    --fs-xl:   clamp(1.125rem, 1rem + 0.5vw, 1.375rem);        /* ~18–22 */
    --fs-2xl:  clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);     /* ~22–30 */
    --fs-3xl:  clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);        /* ~28–44 */
    --fs-4xl:  clamp(2.25rem, 1.6rem + 2.5vw, 3.75rem);        /* ~36–60 */
    --fs-5xl:  clamp(2.75rem, 1.8rem + 3.5vw, 5rem);           /* ~44–80 */

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;

    /* Layout */
    --container-max: 1320px;
    --container-px:  clamp(1.25rem, 3vw, 2.5rem);

    /* Motion */
    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:  cubic-bezier(0.25, 1, 0.5, 1);
    --dur-fast:  0.2s;
    --dur-med:   0.4s;
    --dur-slow:  0.7s;

    /* Z-index layers */
    --z-header:  100;
    --z-mobile:  200;
    --z-cookie:  300;
}

/* ──────────────────────────────────────────────────────────────────────
   2. RESET & BASE
   ────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ff-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: var(--gold); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--gold-bright); }
address { font-style: normal; }

::selection { background: var(--gold); color: var(--text-dark); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ──────────────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-primary);
}

.heading-2 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-6);
}

.heading-3 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-4);
}

p {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: var(--space-6);
}

p:last-child { margin-bottom: 0; }

.body-large {
    font-size: var(--fs-xl);
    line-height: 1.85;
}

/* ──────────────────────────────────────────────────────────────────────
   4. LAYOUT
   ────────────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

.section {
    padding-block: var(--space-20);
}

.section--dark   { background-color: var(--bg-primary); }
.section--secondary { background-color: var(--bg-secondary); }

@media (min-width: 768px) {
    .section { padding-block: var(--space-32); }
}

/* Split layout */
.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 900px) {
    .split--6-5 { grid-template-columns: 6fr 5fr; gap: var(--space-20); }
    .split--5-6 { grid-template-columns: 5fr 6fr; gap: var(--space-20); }
    .split--4-6 { grid-template-columns: 4fr 6fr; gap: var(--space-20); }
    .split--reverse .split__visual { order: -1; }
}

/* Section header */
.section-header {
    max-width: 700px;
    margin-bottom: var(--space-12);
}

.section-header--center {
    margin-inline: auto;
    text-align: center;
}

.section-header__desc {
    max-width: 680px;
}

/* Centered CTA */
.section-cta {
    text-align: center;
    margin-top: var(--space-12);
}

/* Narrow content */
.narrow-content {
    max-width: 800px;
    margin-inline: auto;
}

/* ──────────────────────────────────────────────────────────────────────
   5. LABELS & EYEBROWS
   ────────────────────────────────────────────────────────────────────── */
.label {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: var(--fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.label--gold { color: var(--gold); }

/* ──────────────────────────────────────────────────────────────────────
   6. BUTTONS
   ────────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.9rem 2rem;
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
    line-height: 1.2;
    white-space: nowrap;
}

.btn svg { transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
    background: var(--gold);
    color: var(--text-dark);
    border-color: var(--gold);
}

.btn--primary:hover {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    color: var(--text-dark);
}

.btn--outline:hover {
    background: var(--gold);
    color: var(--text-dark);
}

.btn--sm { padding: 0.6rem 1.4rem; font-size: var(--fs-xs); }

.btn--full { width: 100%; justify-content: center; }

.btn__loading { display: none; }
.btn.is-loading .btn__text { display: none; }
.btn.is-loading .btn__loading { display: inline-flex; animation: spin 1s linear infinite; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ──────────────────────────────────────────────────────────────────────
   7. HEADER
   ────────────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    padding-block: var(--space-5);
    transition: background var(--dur-med) var(--ease),
                padding var(--dur-med) var(--ease),
                backdrop-filter var(--dur-med) var(--ease);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
    opacity: 0;
    transition: opacity var(--dur-med) var(--ease);
}

.site-header.is-scrolled {
    background: rgba(8, 12, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding-block: var(--space-3);
}

.site-header.is-scrolled::after { opacity: 1; }

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo-img {
    height: 52px;
    width: auto;
    max-width: none;
    display: block;
    transition: height var(--dur-med) var(--ease);
}

.site-header.is-scrolled .site-header__logo-img {
    height: 42px;
}

@media (max-width: 1023px) {
    .site-header__logo-img { height: 44px; }
    .site-header.is-scrolled .site-header__logo-img { height: 36px; }
}

@media (max-width: 480px) {
    .site-header__logo-img { height: 38px; }
    .site-header.is-scrolled .site-header__logo-img { height: 32px; }
}

.site-header__nav { display: none; }

@media (min-width: 1024px) {
    .site-header__nav { display: block; }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-list li { position: relative; }

.nav-list a {
    color: var(--text-primary);
    font-size: var(--fs-sm);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding-block: var(--space-1);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--dur-fast) var(--ease);
}

.nav-list a:hover::after,
.nav-list .current-menu-item a::after { width: 100%; }

.nav-list a:hover { color: var(--gold); }

/* Header actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

/* Language switcher */
.lang-switcher {
    display: none;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
}

@media (min-width: 1024px) {
    .lang-switcher { display: flex; }
}

.lang-switcher__link {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    transition: color var(--dur-fast) var(--ease);
    padding: var(--space-1);
}

.lang-switcher__link.is-active,
.lang-switcher__link:hover { color: var(--gold); }

.lang-switcher__sep { color: var(--text-muted); opacity: 0.4; }

/* Mobile toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    z-index: calc(var(--z-mobile) + 10);
    position: relative;
}

@media (min-width: 1024px) {
    .nav-toggle { display: none; }
}

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--dur-med) var(--ease), opacity var(--dur-fast) var(--ease);
    transform-origin: center;
    border-radius: 1px;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ──────────────────────────────────────────────────────────────────────
   8. MOBILE MENU
   ────────────────────────────────────────────────────────────────────── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-mobile);
    background: rgba(8, 12, 10, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-med) var(--ease), visibility var(--dur-med);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .site-header {
    z-index: calc(var(--z-mobile) + 20);
}

.mobile-menu__inner {
    text-align: center;
    padding: var(--space-8);
    width: 100%;
    max-width: 400px;
}

.mobile-menu__list,
.mobile-menu__nav .nav-list,
.mobile-menu__nav > ul {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
    padding: 0;
    list-style: none;
}

.mobile-menu__list a,
.mobile-menu__nav .nav-list a,
.mobile-menu__nav > ul a {
    font-family: var(--ff-heading);
    font-size: var(--fs-3xl);
    color: var(--text-primary);
    font-weight: 400;
    transition: color var(--dur-fast) var(--ease);
    text-transform: none;
    letter-spacing: 0;
}

.mobile-menu__list a:hover,
.mobile-menu__nav .nav-list a:hover,
.mobile-menu__nav > ul a:hover { color: var(--gold); }

.mobile-menu__list a::after,
.mobile-menu__nav .nav-list a::after,
.mobile-menu__nav > ul a::after { display: none; }

.mobile-menu__footer { opacity: 0.6; }

.mobile-menu__info {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-top: var(--space-6);
}

.lang-switcher--mobile {
    display: flex;
    justify-content: center;
}

/* ──────────────────────────────────────────────────────────────────────
   9. FOOTER
   ────────────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.site-footer__top {
    padding-block: var(--space-16) var(--space-12);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: var(--space-8);
    }
}

.site-footer__logo { display: inline-block; }
.site-footer__logo img,
.site-footer__logo-img {
    height: 44px;
    width: auto;
    max-width: none;
    display: block;
    opacity: 0.85;
    margin-bottom: var(--space-5);
    transition: opacity var(--dur-fast) var(--ease);
}
.site-footer__logo:hover img,
.site-footer__logo:hover .site-footer__logo-img { opacity: 1; }

@media (max-width: 480px) {
    .site-footer__logo img,
    .site-footer__logo-img { height: 36px; }
}

.site-footer__tagline {
    font-size: var(--fs-sm) !important;
    color: var(--text-muted) !important;
    max-width: 340px;
    line-height: 1.7 !important;
}

.site-footer__heading {
    font-family: var(--ff-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: var(--space-5);
}

.site-footer__menu li { margin-bottom: var(--space-2); }
.site-footer__menu a {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    transition: color var(--dur-fast) var(--ease);
}
.site-footer__menu a:hover { color: var(--gold); }

.site-footer__address {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    line-height: 1.8;
}
.site-footer__address a { color: var(--text-muted); }
.site-footer__address a:hover { color: var(--gold); }

.site-footer__bottom {
    border-top: 1px solid var(--border);
    padding-block: var(--space-5);
}

.site-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .site-footer__bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.site-footer__copy {
    font-size: var(--fs-xs) !important;
    color: var(--text-muted) !important;
}

.site-footer__bottom-lang {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* ──────────────────────────────────────────────────────────────────────
   10. HERO (Homepage)
   ────────────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: var(--space-32);
    padding-bottom: var(--space-16);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg,
            rgba(8, 12, 10, 0.96) 0%,
            rgba(8, 12, 10, 0.88) 40%,
            rgba(14, 21, 18, 0.82) 100%
        );
}

.hero__content {
    position: relative;
    max-width: 820px;
}

.hero__heading {
    font-size: var(--fs-5xl);
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: var(--space-8);
    letter-spacing: -0.02em;
}

.hero__heading em {
    font-style: italic;
    color: var(--gold);
}

.hero__sub {
    font-size: var(--fs-xl);
    max-width: 600px;
    margin-bottom: var(--space-10);
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero__indicators {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}

.hero__scroll-text {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ──────────────────────────────────────────────────────────────────────
   11. METRICS BAR
   ────────────────────────────────────────────────────────────────────── */
.metrics {
    background: var(--bg-secondary);
    border-block: 1px solid var(--border);
    padding-block: var(--space-10);
}

.metrics__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .metrics__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-6);
    }
}

.metrics__item { text-align: center; }

.metrics__value {
    display: block;
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.metrics__label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}

/* ──────────────────────────────────────────────────────────────────────
   12. CHECK LIST
   ────────────────────────────────────────────────────────────────────── */
.check-list {
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    font-size: var(--fs-lg);
    color: var(--text-primary);
    font-weight: 300;
    margin-bottom: var(--space-4);
}

.check-list li::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.55em;
    background: var(--gold);
    border-radius: 50%;
}

/* ──────────────────────────────────────────────────────────────────────
   13. FRAMED IMAGE
   ────────────────────────────────────────────────────────────────────── */
.framed-image {
    position: relative;
    padding-right: var(--space-6);
    padding-bottom: var(--space-6);
}

.framed-image img {
    position: relative;
    z-index: 2;
    filter: grayscale(60%) contrast(1.1);
    transition: filter var(--dur-slow) var(--ease-out);
}

.framed-image:hover img {
    filter: grayscale(0%) contrast(1);
}

.framed-image__accent {
    position: absolute;
    top: var(--space-6);
    right: 0;
    bottom: 0;
    left: var(--space-6);
    border: 1px solid var(--border-gold);
    z-index: 1;
}

/* ──────────────────────────────────────────────────────────────────────
   14. PORTFOLIO CARDS (Homepage)
   ────────────────────────────────────────────────────────────────────── */
.portfolio-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-12);
}

@media (min-width: 600px) {
    .portfolio-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .portfolio-cards { grid-template-columns: repeat(3, 1fr); }
}

.portfolio-card { display: block; color: var(--text-primary); }

.portfolio-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    margin-bottom: var(--space-5);
    background: var(--bg-secondary);
}

.portfolio-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
    filter: grayscale(30%);
    background: var(--bg-tertiary);
}

.portfolio-card:hover .portfolio-card__img-wrap img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.portfolio-card__badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--bg-primary);
    color: var(--gold);
    padding: 0.2rem 0.8rem;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.portfolio-card__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: 500;
    margin-bottom: var(--space-1);
    transition: color var(--dur-fast) var(--ease);
}

.portfolio-card:hover .portfolio-card__title { color: var(--gold); }

.portfolio-card__meta {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* ──────────────────────────────────────────────────────────────────────
   15. TECH VISUALIZATION
   ────────────────────────────────────────────────────────────────────── */
.tech-vis {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-vis__ring {
    position: absolute;
    width: 90%;
    height: 90%;
    border: 1px solid var(--gold-subtle);
    border-radius: 50%;
    animation: rotateRing 30s linear infinite;
}

.tech-vis__ring--inner {
    width: 65%;
    height: 65%;
    animation-direction: reverse;
    animation-duration: 22s;
}

.tech-vis__core {
    width: 40%;
    height: 40%;
    color: var(--gold);
}

.tech-vis__core svg {
    width: 100%;
    height: 100%;
}

.tech-vis__pulse {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotateRing {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.8); opacity: 0; }
}

/* Feature row */
.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

@media (min-width: 600px) {
    .feature-row { grid-template-columns: 1fr 1fr; }
}

.feature-row__title {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--gold);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feature-row__text {
    font-size: var(--fs-sm) !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

/* ──────────────────────────────────────────────────────────────────────
   16. CTA BAND
   ────────────────────────────────────────────────────────────────────── */
.cta-band {
    background: var(--bg-secondary);
    border-block: 1px solid var(--border);
    padding-block: var(--space-16);
}

.cta-band__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .cta-band__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cta-band__text p {
    margin-bottom: 0;
}

/* ──────────────────────────────────────────────────────────────────────
   17. PAGE HERO (Inner pages)
   ────────────────────────────────────────────────────────────────────── */
.page-hero {
    position: relative;
    padding-top: calc(var(--space-32) + var(--space-8));
    padding-bottom: var(--space-16);
    background: var(--bg-primary);
    text-align: center;
    overflow: hidden;
}

.page-hero--short {
    min-height: 50vh;
    min-height: 50dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero--minimal {
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--border);
}

.page-hero--tech { min-height: 55vh; display: flex; align-items: center; justify-content: center; }

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__bg--grid {
    background: var(--bg-primary);
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,12,10,0.92) 0%, rgba(8,12,10,0.85) 100%);
}

.page-hero__overlay--radial {
    background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 75%);
}

.page-hero__content {
    position: relative;
    z-index: 1;
}

.page-hero__title {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-5);
}

.page-hero__sub {
    font-size: var(--fs-xl);
    color: var(--gold);
    font-family: var(--ff-heading);
    font-style: italic;
    font-weight: 400;
    max-width: 650px;
    margin-inline: auto;
    line-height: 1.6;
}

/* Grid background for tech page */
.grid-bg {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(var(--gold-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--gold-subtle) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(600px) rotateX(55deg);
    animation: gridSlide 25s linear infinite;
    opacity: 0.4;
}

@keyframes gridSlide {
    0% { transform: perspective(600px) rotateX(55deg) translateY(-50px); }
    100% { transform: perspective(600px) rotateX(55deg) translateY(0); }
}

/* ──────────────────────────────────────────────────────────────────────
   18. QUOTES
   ────────────────────────────────────────────────────────────────────── */
.pull-quote {
    border-left: 2px solid var(--gold);
    padding-left: var(--space-8);
    margin-bottom: var(--space-10);
}

.pull-quote p {
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    color: var(--text-primary);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
}

.inline-quote {
    border-left: 2px solid var(--gold);
    padding-left: var(--space-6);
    margin-top: var(--space-10);
}

.inline-quote p {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    color: var(--gold);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: var(--space-2);
}

.inline-quote footer {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ──────────────────────────────────────────────────────────────────────
   19. VALUES GRID
   ────────────────────────────────────────────────────────────────────── */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-12);
}

@media (min-width: 600px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .values-grid { grid-template-columns: repeat(4, 1fr); }
}

.value-card {
    padding: var(--space-8);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.value-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
}

.value-card__number {
    display: block;
    font-family: var(--ff-heading);
    font-size: var(--fs-3xl);
    color: var(--gold-dim);
    font-weight: 400;
    margin-bottom: var(--space-4);
    line-height: 1;
}

.value-card__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.value-card__text {
    font-size: var(--fs-sm) !important;
    color: var(--text-muted) !important;
    line-height: 1.7 !important;
}

/* ──────────────────────────────────────────────────────────────────────
   20. PORTRAIT (CEO)
   ────────────────────────────────────────────────────────────────────── */
.portrait {
    position: relative;
    padding-right: var(--space-6);
    padding-bottom: var(--space-6);
    max-width: 400px;
}

.portrait img {
    position: relative;
    z-index: 2;
    filter: grayscale(70%) contrast(1.1);
    transition: filter var(--dur-slow) var(--ease-out);
    width: 100%;
}

.portrait:hover img { filter: grayscale(0%) contrast(1); }

.portrait__accent {
    position: absolute;
    top: var(--space-6);
    right: 0;
    bottom: 0;
    left: var(--space-6);
    border: 1px solid var(--border-gold);
    z-index: 1;
}

.portrait--placeholder {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait--placeholder::after {
    content: 'CEO';
    font-family: var(--ff-heading);
    font-size: var(--fs-3xl);
    color: var(--gold-dim);
}

/* ──────────────────────────────────────────────────────────────────────
   21. PROJECT GRID (Portfolio page)
   ────────────────────────────────────────────────────────────────────── */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-12);
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
    background: var(--gold);
    color: var(--text-dark);
    border-color: var(--gold);
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
}

@media (min-width: 768px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}

.project-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--dur-fast) var(--ease);
}

.project-card:hover { border-color: var(--border-gold); }

.project-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-secondary);
}

.project-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
    filter: grayscale(20%);
    background: var(--bg-tertiary);
}

.project-card:hover .project-card__img-wrap img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.project-card__badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--gold);
    color: var(--text-dark);
    padding: 0.2rem 0.8rem;
    font-size: var(--fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-card__body {
    padding: var(--space-8);
}

.project-card__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.project-card__meta {
    display: flex;
    gap: var(--space-6);
    font-size: var(--fs-sm);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.project-card__desc {
    font-size: var(--fs-base) !important;
    color: var(--text-muted) !important;
}

.project-card.is-hidden {
    display: none;
}

/* ──────────────────────────────────────────────────────────────────────
   22. SERVICE GRID (Digital Solutions)
   ────────────────────────────────────────────────────────────────────── */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-12);
}

@media (min-width: 768px) {
    .service-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
    padding: var(--space-10);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
}

.service-card__icon {
    color: var(--gold);
    margin-bottom: var(--space-6);
}

.service-card__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    font-weight: 500;
    margin-bottom: var(--space-4);
}

.service-card__text {
    font-size: var(--fs-base) !important;
    color: var(--text-muted) !important;
    margin-bottom: var(--space-6) !important;
}

.service-card__list li {
    position: relative;
    padding-left: var(--space-5);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

/* ──────────────────────────────────────────────────────────────────────
   23. CONTACT
   ────────────────────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
}

@media (min-width: 900px) {
    .contact-grid { grid-template-columns: 5fr 7fr; gap: var(--space-20); }
}

.contact-info__block {
    margin-bottom: var(--space-6);
}

.contact-info__label {
    font-family: var(--ff-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: var(--space-2);
}

.contact-info address,
.contact-info p {
    font-size: var(--fs-base) !important;
    color: var(--text-secondary) !important;
}

.contact-info__divider {
    width: 40px;
    height: 1px;
    background: var(--border-gold);
    margin-block: var(--space-8);
}

.contact-info__note {
    font-size: var(--fs-sm) !important;
    color: var(--text-muted) !important;
    font-style: italic;
}

/* Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

@media (min-width: 600px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group { margin-bottom: var(--space-5); }
.form-row .form-group { margin-bottom: 0; }

.form-group label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group .required { color: var(--gold); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    transition: border-color var(--dur-fast) var(--ease);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-group--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 300;
    font-size: var(--fs-sm);
    cursor: pointer;
}

.form-group--checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--gold);
    cursor: pointer;
}

.form-status {
    min-height: 1.5em;
    margin-bottom: var(--space-4);
    font-size: var(--fs-sm);
}

.form-status--success { color: #6DBF73; }
.form-status--error   { color: #D46B6B; }

/* ──────────────────────────────────────────────────────────────────────
   24. LEGAL CONTENT
   ────────────────────────────────────────────────────────────────────── */
.legal-content {
    max-width: 800px;
    margin-inline: auto;
}

.legal-content h2 {
    font-size: var(--fs-2xl);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
    font-size: var(--fs-xl);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    color: var(--gold);
}

.legal-content p,
.legal-content address {
    font-size: var(--fs-base) !important;
    color: var(--text-secondary) !important;
    line-height: 1.8 !important;
}

.legal-content a { text-decoration: underline; text-underline-offset: 3px; }

/* ──────────────────────────────────────────────────────────────────────
   25. 404
   ────────────────────────────────────────────────────────────────────── */
.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-404__content {
    max-width: 500px;
}

.error-404__code {
    display: block;
    font-family: var(--ff-heading);
    font-size: clamp(6rem, 10vw, 12rem);
    font-weight: 400;
    color: var(--gold-dim);
    line-height: 1;
    margin-bottom: var(--space-4);
}

/* ──────────────────────────────────────────────────────────────────────
   26. POSTS GRID
   ────────────────────────────────────────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

.post-card {
    padding: var(--space-8);
    border: 1px solid var(--border);
    transition: border-color var(--dur-fast) var(--ease);
}

.post-card:hover { border-color: var(--border-gold); }

.post-card__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-2);
}

.post-card__title a { color: var(--text-primary); }
.post-card__title a:hover { color: var(--gold); }

.post-card__date {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: var(--space-4);
}

.post-card__excerpt p {
    font-size: var(--fs-sm) !important;
    color: var(--text-muted) !important;
}

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    margin-top: var(--space-4);
}

.post-card__link svg { transition: transform var(--dur-fast) var(--ease); }
.post-card__link:hover svg { transform: translateX(3px); }

/* ──────────────────────────────────────────────────────────────────────
   27. COOKIE CONSENT
   ────────────────────────────────────────────────────────────────────── */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-cookie);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-gold);
    transform: translateY(100%);
    transition: transform var(--dur-med) var(--ease);
}

.cookie-consent.is-visible {
    transform: translateY(0);
}

.cookie-consent__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding: var(--space-6) var(--container-px);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

@media (min-width: 768px) {
    .cookie-consent__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-consent__title {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.cookie-consent__text p {
    font-size: var(--fs-sm) !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

.cookie-consent__actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────────────────
   28. SERVICES PAGE
   ────────────────────────────────────────────────────────────────────── */
.page-hero--services {
    min-height: 72vh;
    min-height: 72dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero__overlay--services {
    background:
        linear-gradient(135deg, rgba(8, 12, 10, 0.86) 0%, rgba(8, 12, 10, 0.64) 55%, rgba(8, 12, 10, 0.82) 100%),
        radial-gradient(circle at 80% 20%, rgba(184, 151, 58, 0.26), transparent 42%);
}

.services-hero__actions {
    justify-content: center;
    margin-top: var(--space-8);
}

.services-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 900px) {
    .services-profile-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.services-profile-card {
    padding: var(--space-10);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.services-profile-card__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-5);
}

.services-bullet-list li {
    position: relative;
    padding-left: var(--space-5);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.services-bullet-list li::before {
    content: '';
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

.services-profile-note {
    margin-top: var(--space-10);
    border: 1px solid var(--border-gold);
    background: linear-gradient(180deg, rgba(184, 151, 58, 0.08) 0%, rgba(184, 151, 58, 0.03) 100%);
    padding: var(--space-8);
}

.services-profile-note__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-3);
}

.services-profile-note p {
    font-size: var(--fs-base) !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
}

.services-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .services-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .services-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.services-showcase-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.services-showcase-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
}

.services-showcase-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.services-showcase-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(22%);
    transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-fast) var(--ease);
}

.services-showcase-card:hover .services-showcase-card__media img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.services-showcase-card__body {
    padding: var(--space-6) var(--space-8) var(--space-8);
}

.services-showcase-card__meta {
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-2);
}

.services-showcase-card__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-2);
}

.services-showcase-card__tags {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: 0;
}

.services-esg-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.services-esg-stats__item {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    padding: var(--space-5);
}

.services-esg-stats__value {
    display: block;
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: var(--space-2);
}

.services-esg-stats__label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.services-footnote {
    font-size: var(--fs-sm) !important;
    color: var(--text-muted) !important;
    margin-top: var(--space-6);
}

.services-infographic-stack {
    display: grid;
    gap: var(--space-5);
}

.services-infographic {
    border: 1px solid var(--border);
    background: #fff;
    padding: var(--space-4);
}

.services-infographic--light {
    background: #f5f5f5;
}

.services-infographic img {
    width: 100%;
    height: auto;
}

.services-partners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .services-partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1180px) {
    .services-partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.services-partner-card {
    border: 1px solid var(--border);
    padding: var(--space-6);
    background: var(--bg-primary);
}

.services-partner-card__logo {
    height: 44px;
    display: flex;
    align-items: center;
    margin-bottom: var(--space-4);
}

.services-partner-card__logo img {
    max-height: 100%;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.services-partner-card__title {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.services-partner-card__text {
    font-size: var(--fs-sm) !important;
    color: var(--text-muted) !important;
    margin-bottom: var(--space-3) !important;
}

.services-partner-card a {
    font-size: var(--fs-sm);
}

.services-location-panel {
    border: 1px solid var(--border);
    background: var(--bg-primary);
    overflow: hidden;
}

.services-location-panel__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.services-location-panel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95) contrast(1.05);
}

.services-location-panel__body {
    padding: var(--space-8);
}

.services-location-list {
    margin-block: var(--space-5) var(--space-8);
}

.services-location-list li {
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.services-location-list strong {
    color: var(--text-primary);
    font-weight: 500;
}

.services-location-panel__title {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.services-contact-block p {
    margin-bottom: var(--space-4);
    font-size: var(--fs-sm);
    line-height: 1.8;
}

.services-contact-block p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .services-esg-stats {
        grid-template-columns: 1fr;
    }

    .services-location-panel__body {
        padding: var(--space-6);
    }
}

@media (max-width: 480px) {
    .page-hero--services {
        min-height: 58vh;
        min-height: 58dvh;
    }

    .services-showcase-card__body,
    .services-profile-card,
    .services-profile-note {
        padding: var(--space-6);
    }
}

/* ──────────────────────────────────────────────────────────────────────
   29-A. PORTFOLIO PAGE — Hero, Flagship, Holdings, Geo
   ────────────────────────────────────────────────────────────────────── */

/* Portfolio hero */
.page-hero--portfolio {
    min-height: 62vh;
    min-height: 62dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero__overlay--portfolio {
    background:
        linear-gradient(160deg,
            rgba(8, 12, 10, 0.94) 0%,
            rgba(8, 12, 10, 0.82) 50%,
            rgba(14, 21, 18, 0.88) 100%
        );
}

.portfolio-hero-stats {
    display: flex;
    gap: var(--space-10);
    margin-top: var(--space-10);
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-hero-stats__item {
    text-align: center;
}

.portfolio-hero-stats__value {
    display: block;
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-1);
}

.portfolio-hero-stats__label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}

/* Flagship card */
.flagship-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--dur-fast) var(--ease);
}

.flagship-card:hover { border-color: var(--border-gold); }

@media (min-width: 900px) {
    .flagship-card {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .flagship-card--reverse .flagship-card__image { order: 1; }
    .flagship-card--reverse .flagship-card__content { order: 0; }
}

.flagship-card__image {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    background: var(--bg-tertiary);
}

.flagship-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
    filter: grayscale(20%);
}

.flagship-card:hover .flagship-card__image img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.flagship-card__badge {
    position: absolute;
    top: var(--space-5);
    left: var(--space-5);
    background: var(--gold);
    color: var(--text-dark);
    padding: 0.3rem 1rem;
    font-size: var(--fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.flagship-card__content {
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flagship-card__category {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: var(--space-4);
}

.flagship-card__location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm) !important;
    color: var(--text-muted) !important;
    margin-bottom: var(--space-5) !important;
}

.flagship-card__location svg { flex-shrink: 0; color: var(--gold); opacity: 0.7; }

.flagship-card__desc {
    font-size: var(--fs-base) !important;
    color: var(--text-secondary) !important;
    line-height: 1.8 !important;
    margin-bottom: var(--space-6) !important;
}

.flagship-card__stats {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    margin-bottom: var(--space-5);
}

.flagship-card__stat { text-align: center; flex: 1; min-width: 80px; }

.flagship-card__stat-value {
    display: block;
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-1);
}

.flagship-card__stat-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.flagship-card__highlights { margin-top: var(--space-4); margin-bottom: 0; }

/* Holdings grid */
.holdings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .holdings-grid { grid-template-columns: repeat(2, 1fr); }
}

.holding-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.holding-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
}

.holding-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-tertiary);
}

.holding-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
    filter: grayscale(20%);
}

.holding-card:hover .holding-card__image img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.holding-card__status {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--bg-primary);
    color: var(--gold);
    padding: 0.2rem 0.8rem;
    font-size: var(--fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.holding-card__body {
    padding: var(--space-8);
}

.holding-card__category {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: var(--space-2);
}

.holding-card__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.holding-card__location {
    font-size: var(--fs-sm) !important;
    color: var(--text-muted) !important;
    margin-bottom: var(--space-4) !important;
}

.holding-card__desc {
    font-size: var(--fs-sm) !important;
    color: var(--text-secondary) !important;
    margin-bottom: var(--space-5) !important;
    line-height: 1.7 !important;
}

.holding-card__stats {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

.holding-card__stat { text-align: center; flex: 1; min-width: 60px; }

.holding-card__stat-val {
    display: block;
    font-family: var(--ff-heading);
    font-size: var(--fs-lg);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 2px;
}

.holding-card__stat-lbl {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* Geo grid */
.geo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .geo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .geo-grid { grid-template-columns: repeat(6, 1fr); }
}

.geo-card {
    text-align: center;
    padding: var(--space-6);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: border-color var(--dur-fast) var(--ease);
}

.geo-card:hover { border-color: var(--border-gold); }

.geo-card__flag {
    display: block;
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--gold);
    margin-bottom: var(--space-3);
    letter-spacing: 0.05em;
}

.geo-card__country {
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.geo-card__cities {
    font-size: var(--fs-xs) !important;
    color: var(--text-muted) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Portfolio page responsive */
@media (max-width: 768px) {
    .page-hero--portfolio {
        min-height: 50vh;
    }

    .portfolio-hero-stats {
        gap: var(--space-6);
    }

    .flagship-card__content {
        padding: var(--space-6);
    }

    .holdings-grid {
        grid-template-columns: 1fr;
    }

    .geo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .page-hero--portfolio {
        min-height: 45vh;
    }

    .portfolio-hero-stats {
        flex-direction: row;
        gap: var(--space-5);
    }

    .portfolio-hero-stats__value {
        font-size: var(--fs-lg);
    }

    .flagship-card__stats {
        gap: var(--space-3);
    }

    .geo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .geo-card {
        padding: var(--space-4);
    }

    .holding-card__body {
        padding: var(--space-6);
    }
}

/* ──────────────────────────────────────────────────────────────────────
   29. ANIMATIONS
   ────────────────────────────────────────────────────────────────────── */
.anim-fade {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--dur-slow) var(--ease-out),
                transform var(--dur-slow) var(--ease-out);
}

.anim-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ──────────────────────────────────────────────────────────────────────
   30. RESPONSIVE REFINEMENTS
   ────────────────────────────────────────────────────────────────────── */

/* Desktop nav: hide on mobile */
@media (max-width: 1023px) {
    .site-header__nav {
        display: none !important;
    }

    .site-header__actions .lang-switcher:not(.lang-switcher--mobile) {
        display: none !important;
    }
}

/* Tablet (768px) */
@media (max-width: 768px) {
    .hero__heading {
        font-size: var(--fs-4xl);
    }

    .hero__indicators {
        display: none;
    }

    .split--reverse .split__visual {
        order: 0;
    }

    .page-hero--short {
        min-height: 40vh;
    }

    .portfolio-cards {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-band__inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .hero {
        padding-top: calc(var(--space-24) + var(--space-4));
        min-height: 85vh;
    }

    .hero__heading {
        font-size: var(--fs-3xl);
    }

    .hero__sub {
        font-size: var(--fs-base);
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .metrics__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }

    .metrics__value {
        font-size: var(--fs-lg);
    }

    .page-hero__title {
        font-size: var(--fs-3xl);
    }

    .page-hero__sub {
        font-size: var(--fs-base);
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .value-card {
        padding: var(--space-6);
    }

    .service-card {
        padding: var(--space-6);
    }

    .section {
        padding-block: var(--space-12);
    }

    .section-header {
        margin-bottom: var(--space-8);
    }

    .portfolio-filters {
        gap: var(--space-2);
        margin-bottom: var(--space-8);
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: var(--fs-xs);
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .pull-quote {
        padding-left: var(--space-5);
    }

    .pull-quote p {
        font-size: var(--fs-xl);
    }

    .split {
        gap: var(--space-8);
    }

    .tech-vis {
        max-width: 280px;
    }

    .check-list li {
        font-size: var(--fs-base);
    }

    .btn {
        padding: 0.8rem 1.6rem;
    }
}

/* Large screens */
@media (min-width: 1440px) {
    :root {
        --container-px: 3rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .anim-fade {
        opacity: 1;
        transform: none;
    }

    html { scroll-behavior: auto; }
}

/* Print */
@media print {
    .site-header, .site-footer, .mobile-menu, .cookie-consent,
    .hero__indicators, .nav-toggle, .cta-band { display: none !important; }
    body { background: white; color: black; }
    .section { padding-block: 1rem; }
}
