/* ============================================================
   Maqam Advisory · shared stylesheet (v45)
   Used by every page. Fonts load from the fonts/ folder.
   ============================================================ */

/* ============================================================
   Fonts (self-hosted, fonts/ folder)
   ============================================================ */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/manrope-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/manrope-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/manrope-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Amiri';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/amiri-arabic-400-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
    --bg-color: #F7F6F2;
    --text-main: #1A1A1A;
    --text-muted: #6B6B6B;
    --text-body: #4A4A4A;            /* body copy */
    --accent-gold: #BFA06A;          /* decorative: rules, icons, borders */
    --gold-text: #BFA06A;            /* gold for text on light */
    --gold-on-dark: #BFA06A;         /* gold for text on slate */
    --accent-slate: #2C3E50;
    --border-color: #E2E0D8;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Manrope', sans-serif;
    --font-arabic: 'Amiri', serif;
    --transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Typography — enlarged and more controlled
   ============================================================ */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.12;
}
h1 {
    font-size: clamp(3.25rem, 6.5vw, 6rem);
    letter-spacing: -0.025em;
    color: var(--text-main);
}
h2 {
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    margin-bottom: 2.5rem;
    color: var(--text-main);
    letter-spacing: -0.015em;
}
p {
    font-size: 1.06rem;
    color: var(--text-body);
    max-width: 680px;
    font-weight: 400;
    line-height: 1.75;
}
a { color: var(--text-main); text-decoration: none; transition: var(--transition); }

/* ============================================================
   Icon
   ============================================================ */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.logo-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent-gold);
    transition: color 0.4s ease;
    animation: settle 0.9s ease-out;
}

@keyframes settle {
    0%   { opacity: 0; transform: translateY(3px); }
    100% { opacity: 1; transform: translateY(0); }
}

.logo-container:hover .logo-icon { color: #9E7F42; }

/* ============================================================
   Navigation
   ============================================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(247, 246, 242, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.035);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
}

.nav-links a:hover { color: var(--gold-text); }
.nav-links a.active { color: var(--gold-text); }

/* Mobile menu */
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; color: var(--text-main); }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor; transition: transform 0.3s ease, top 0.3s ease; }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.menu-btn:focus-visible, .menu-panel a:focus-visible { outline: 1px solid var(--accent-gold); outline-offset: 3px; }
.menu-panel { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999; background: var(--bg-color); padding: 6.5rem 1.5rem 2rem; overflow-y: auto; }
.menu-panel a { display: block; font-family: var(--font-serif); font-size: 1.9rem; padding: 1rem 0; border-bottom: 1px solid var(--border-color); color: var(--text-main); }
.menu-panel a.active { color: var(--gold-text); }
@media (max-width: 768px) {
    .menu-btn { display: block; }
    .menu-panel:not([hidden]) { display: block; }
}
@media (min-width: 769px) { .menu-panel { display: none !important; } }

/* ============================================================
   Section labels
   ============================================================ */
.section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    color: var(--gold-text);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

/* ============================================================
   Architectural margin rules
   ============================================================ */
.page-header,
.page-body,
#home .statement,
#home .explore {
    position: relative;
}

.page-header::before,
.page-header::after,
.page-body::before,
.page-body::after,
#home .statement::before,
#home .statement::after,
#home .explore::before,
#home .explore::after {
    content: '';
    position: absolute;
    top: 4rem;
    bottom: 4rem;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(191, 160, 106, 0.10) 18%,
        rgba(191, 160, 106, 0.10) 82%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

.page-header::before,
.page-body::before,
#home .statement::before,
#home .explore::before {
    left: 3rem;
}

.page-header::after,
.page-body::after,
#home .statement::after,
#home .explore::after {
    right: 3rem;
}

/* On the dark approach section, use a faint light rule */
#approach .page-body::before,
#approach .page-body::after {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(247, 246, 242, 0.06) 18%,
        rgba(247, 246, 242, 0.06) 82%,
        transparent 100%
    );
}

/* ============================================================
   Home hero
   ============================================================ */
#home .hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7.5rem 4rem 5rem;
    background: linear-gradient(135deg, #F7F6F2 0%, #EFEFEA 100%);
}

.hero-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.45em;
    color: var(--gold-text);
    margin-bottom: 2.5rem;
    font-weight: 600;
    line-height: 1.9;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.3s;
}

.hero-title {
    font-style: normal;
    max-width: 900px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.6s;
}

.hero-title em { font-style: italic; }

.hero-desc {
    margin-top: 3rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.9s;
    font-size: 1.2rem;
    max-width: 620px;
}

/* ============================================================
   Statement + Explore (home)
   ============================================================ */
#home .statement {
    padding: 12rem 4rem;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.statement-text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.75vw, 2.25rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-main);
    max-width: 900px;
    letter-spacing: -0.01em;
    margin-top: 3rem;
}

/* Arabic name, glossed once after the first mention of Maqam */
.ar-gloss {
    color: var(--gold-text);
    white-space: nowrap;
}
.ar-gloss bdi {
    font-family: var(--font-arabic);
    font-size: 0.92em;
    letter-spacing: 0;
}

#home .explore {
    padding: 8rem 4rem 12rem;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    margin-top: 4rem;
}

.card-link {
    display: block;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
}

.card-link:hover { border-top-color: var(--accent-gold); }

.card-mark {
    display: block;
    width: 13px;
    height: 13px;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    transition: var(--transition);
}
.card-link:hover .card-mark { color: #9E7F42; }

.card-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-main);
    line-height: 1.2;
    display: block;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
    display: block;
    max-width: 340px;
}

/* ============================================================
   Page header (interior)
   ============================================================ */
.page-header {
    padding: 18rem 4rem 9rem;
    background: linear-gradient(135deg, #F7F6F2 0%, #EFEFEA 100%);
}

.page-header .section-label {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: clamp(2.75rem, 5.5vw, 4.75rem);
    margin-bottom: 2.5rem;
    max-width: 900px;
}

.page-header p {
    font-size: 1.15rem;
    max-width: 640px;
}

.page-header p.page-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    line-height: 1.5;
    color: var(--text-main);
    font-weight: 400;
    letter-spacing: -0.005em;
    max-width: 760px;
}

/* ============================================================
   Services
   ============================================================ */
.page-body {
    padding: 10rem 4rem 12rem;
    background-color: var(--bg-color);
}

.services-list {
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
}

.service-row {
    display: grid;
    grid-template-columns: 90px 1fr 1.5fr;
    gap: 3rem;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-row:hover {
    background-color: rgba(255, 255, 255, 0.6);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.service-number {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--gold-text);
    font-style: italic;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 1rem;
    color: var(--text-body);
    max-width: 100%;
    line-height: 1.75;
}

/* ============================================================
   Cross-Border Coordination — the "equator"
   One hairline with a dot per market; names alternate above
   and below. Becomes a vertical rail at tablet widths.
   Eleven columns: the mark, six European markets, four
   in the Gulf, Asia and Africa.
   ============================================================ */
.eq {
    list-style: none;
    position: relative;
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: 190px auto;
    max-width: 1100px;
    margin: 0;
}
.eq::before {
    content: '';
    position: absolute;
    top: 95px;
    left: calc(100% / 22);
    right: calc(100% / 22);
    height: 1px;
    background: linear-gradient(to right, rgba(191, 160, 106, 0.85), rgba(191, 160, 106, 0.4));
}
.eq-region,
.eq-names { display: contents; }

.eq-mark { grid-column: 1; grid-row: 1; position: relative; list-style: none; }
.eq-mark svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    background: var(--bg-color);
    border-radius: 50%;
    color: var(--accent-gold);
}

.eq-item { grid-row: 1; grid-column: var(--c); position: relative; list-style: none; }
.eq-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-gold);
    transform: translate(-50%, -50%);
}
.eq-item::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 1px;
    height: 9px;
    background: rgba(191, 160, 106, 0.5);
}
.eq-item.up::after { bottom: calc(50% + 4px); }
.eq-item.dn::after { top: calc(50% + 4px); }

.eq-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(200% - 10px);
    text-align: center;
    text-wrap: balance;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.25;
    color: var(--text-main);
    transition: var(--transition);
}
.eq-item.up .eq-name { bottom: calc(50% + 16px); }
.eq-item.dn .eq-name { top: calc(50% + 16px); }
.eq-item:hover .eq-name { color: var(--gold-text); }

.eq-region-name {
    grid-row: 2;
    grid-column: var(--from) / var(--to);
    margin: 1.25rem 0.5rem 0;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(191, 160, 106, 0.45);
    text-align: center;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--gold-text);
    font-weight: 600;
}

/* Note: states the basis on which markets are listed */
.xb-note {
    max-width: 1000px;
    margin: 3.5rem 0 0;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.75;
}

/* Tablet and phone: a centred vertical line, names alternating
   left and right, region labels sitting on the line. */
@media (max-width: 1024px) {
    .eq { display: block; max-width: 560px; margin: 0 auto; }
    .eq::before {
        top: 14px;
        bottom: 14px;
        left: 50%;
        right: auto;
        width: 1px;
        height: auto;
        background: linear-gradient(to bottom, rgba(191, 160, 106, 0.85), rgba(191, 160, 106, 0.4));
    }
    .eq-region { display: block; }
    .eq-names { display: block; list-style: none; }

    .eq-mark { display: block; height: 28px; margin-bottom: 0.25rem; z-index: 1; }

    .eq-region-name {
        position: relative;
        z-index: 1;
        display: block;
        width: max-content;
        max-width: 100%;
        margin: 1.25rem auto 0.9rem;
        padding: 0.4rem 0.9rem;
        background: var(--bg-color);
        border-top: 0;
        text-align: center;
    }

    .eq-item { display: block; width: 100%; height: 28px; }
    .eq-item::after { display: none; }

    .eq-item.up .eq-name,
    .eq-item.dn .eq-name {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: calc(50% - 1.1rem);
        font-size: 1.25rem;
    }
    .eq-item.up .eq-name { left: 0; right: auto; text-align: right; }
    .eq-item.dn .eq-name { left: auto; right: 0; text-align: left; }

    .xb-note { text-align: center; margin: 2.5rem auto 0; max-width: 560px; }
}

/* ============================================================
   Approach (dark)
   ============================================================ */
#approach .page-body {
    background-color: var(--accent-slate);
    color: #FFFFFF;
}

/* Cross-Border follows the services list directly */
#services .services-body { padding-bottom: 3rem; }
.band-light { padding-top: 5rem; padding-bottom: 9rem; }
.band-light h2 {
    font-size: clamp(2rem, 3.6vw, 3rem);
    margin-bottom: 1.5rem;
}
.band-light .band-intro { max-width: 720px; margin-bottom: 4.5rem; }

.approach-list {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 1000px;
}

.approach-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 2.5rem;
    padding: 2.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Short gold hairline marking each principle */
.approach-number {
    display: block;
    width: 28px;
    height: 1px;
    margin-top: 15px;
    background: var(--accent-gold);
}

.approach-text {
    font-size: 1.06rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    max-width: 100%;
    line-height: 1.75;
}

.approach-text .approach-lead {
    color: #FFFFFF;
    font-weight: 500;
}

/* ============================================================
   Reading
   ============================================================ */
.library-block {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
}
.library-block:first-of-type { border-top: none; padding-top: 0; }

.library-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    color: var(--gold-text);
    font-weight: 600;
    margin-bottom: 4rem;
}

.library-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 5rem;
}

.library-entry {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.library-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.005em;
}

.library-author {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold-text);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.library-note {
    font-size: 0.95rem;
    color: var(--text-body);
    max-width: 100%;
    line-height: 1.75;
}

/* Citation note under a published article: italic, quiet gold-underlined link */
.library-note.citation { font-style: italic; }
.library-note a {
    color: var(--text-main);
    border-bottom: 1px solid rgba(191, 160, 106, 0.55);
    padding-bottom: 1px;
}
.library-note a:hover {
    color: var(--gold-text);
    border-bottom-color: var(--accent-gold);
}

/* ============================================================
   Profile
   ============================================================ */
.page-header h1.profile-name {
    font-size: clamp(2.1rem, 5vw, 4rem);
    max-width: none;
    margin-bottom: 0;
}
.profile-suffix {
    display: block;
    margin-top: 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-text);
    white-space: nowrap;
    vertical-align: baseline;
}

.profile-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 6rem;
    max-width: 1100px;
    align-items: start;
}

/* Photo slot: replace the placeholder with an <img> (see comment in markup) */
.profile-photo {
    aspect-ratio: 4 / 5;
    width: 100%;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, #F7F6F2 0%, #EFEFEA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo-mark { width: 64px; height: 64px; color: var(--accent-gold); opacity: 0.35; }

.profile-text p {
    max-width: 640px;
    font-size: 1.06rem;
    margin-bottom: 2rem;
}
.profile-text p:last-child { margin-bottom: 0; }
.profile-text .profile-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    line-height: 1.5;
    color: var(--text-main);
    font-weight: 400;
    letter-spacing: -0.005em;
    margin-bottom: 3rem;
}

/* Quiet inline link: gold hairline underline, no colour change at rest */
.profile-text a.text-link {
    color: var(--text-main);
    border-bottom: 1px solid rgba(191, 160, 106, 0.55);
    padding-bottom: 1px;
}
.profile-text a.text-link:hover {
    color: var(--gold-text);
    border-bottom-color: var(--accent-gold);
}

/* ============================================================
   Contact — Enquiries
   ============================================================ */
#contact .page-header {
    padding: 18rem 4rem 8rem;
}

#contact .page-header .section-label { margin-bottom: 2rem; }
#contact .page-header h1 { font-size: clamp(2.75rem, 5.5vw, 4.75rem); margin-bottom: 2rem; }

#contact .brand-line {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    font-style: italic;
}

/* The address, shown in the page header beneath the brand line */
#contact .contact-direct {
    margin-top: 1rem;
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.4;
    color: var(--text-main);
    max-width: none;
    overflow-wrap: anywhere;
}
#contact .contact-direct a {
    border-bottom: 1px solid rgba(191, 160, 106, 0.55);
    padding-bottom: 2px;
}
#contact .contact-direct a:hover { color: var(--gold-text); border-bottom-color: var(--accent-gold); }

/* Office address, beneath the email in the Contact header */
#contact .contact-address {
    margin-top: 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.contact-body {
    background-color: var(--accent-slate);
    color: #FFFFFF;
    padding: 12rem 4rem 15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.3s;
}

.contact-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: -0.005em;
    max-width: 100%;
    margin: 0 auto;
}

.contact-instruction,
.contact-guidance {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    max-width: 520px;
    margin: 3rem auto 0;
    line-height: 1.8;
}

/* Enquiry guidance: sits close beneath the invitation */
.contact-guidance { margin-top: 1.5rem; }

.contact-btn {
    display: inline-block;
    margin-top: 4rem;
    padding: 1.35rem 3.5rem;
    border: 1px solid var(--accent-gold);
    color: var(--gold-on-dark);
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    font-family: var(--font-sans);
}

.contact-btn:hover { background-color: var(--accent-gold); color: var(--accent-slate); }

.contact-licence { margin: 5rem auto 0; font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.06em; font-weight: 400; color: rgba(255, 255, 255, 0.45); max-width: 100%; }

/* ============================================================
   Footer nav + Footer
   ============================================================ */
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 4rem 4rem 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 500;
    background-color: var(--bg-color);
}

.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--gold-text); }

footer {
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    background-color: var(--bg-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-locations { display: flex; align-items: center; gap: 10px; }

.footer-icon {
    display: block;
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: var(--accent-gold);
    opacity: 0.85;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in { opacity: 0; animation: fadeUp 1s ease forwards; }
.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
    nav { padding: 1.75rem 3rem; }
    .nav-links { gap: 1.4rem; font-size: 0.65rem; }
}

@media (max-width: 1024px) {
    .nav-links { gap: 1rem; font-size: 0.6rem; letter-spacing: 0.08em; }
    .card-grid { grid-template-columns: 1fr; gap: 0; }
    .card-link { padding: 2.5rem 0; }

    /* Suspend the architectural rules on tablets and below */
    .page-header::before,
    .page-header::after,
    .page-body::before,
    .page-body::after,
    #home .statement::before,
    #home .statement::after,
    #home .explore::before,
    #home .explore::after {
        display: none;
    }
}

@media (max-width: 900px) {
    .service-row { grid-template-columns: 1fr; gap: 1.25rem; padding: 2.5rem 0; }
    .service-row:hover { padding-left: 0; padding-right: 0; background-color: transparent; }
    .library-list { grid-template-columns: 1fr; gap: 3rem; }
    .profile-layout { grid-template-columns: 1fr; gap: 3rem; }
    .profile-photo { max-width: 340px; }
}

@media (max-width: 768px) {
    nav { padding: 1.25rem 1.5rem; }
    .nav-links { display: none; }

    #home .hero { padding: 7rem 2rem 4rem; }
    /* Scales with screen width so "Considered judgement," holds one line on phones */
    .hero-title { font-size: min(calc((100vw - 4rem) / 8.8), 3.25rem); }
    #home .statement { padding: 7rem 2rem; }
    #home .explore { padding: 5rem 2rem 8rem; }

    .page-header { padding: 11rem 2rem 6rem; }
    .page-body { padding: 6rem 2rem 8rem; }
    #services .services-body { padding-bottom: 2rem; }
    #services .band-light { padding-top: 4rem; padding-bottom: 8rem; }

    #contact .page-header { padding: 11rem 2rem 5rem; }
    .contact-body { padding: 7rem 2rem 10rem; }

    .contact-btn { padding: 1.2rem 1.25rem; font-size: 0.8rem; letter-spacing: 0.04em; max-width: 100%; }

    .approach-item { grid-template-columns: 1fr; gap: 1rem; }
    .approach-number { margin-top: 0; }

    .footer-nav { gap: 1.5rem; padding: 3rem 2rem 0; font-size: 0.62rem; }
    footer { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-locations { justify-content: center; }
}

/* Not-found page link: quiet gold hairline, as elsewhere */
a.text-link-404 { color: var(--text-main); border-bottom: 1px solid rgba(191, 160, 106, 0.55); padding-bottom: 1px; }
a.text-link-404:hover { color: var(--gold-text); border-bottom-color: var(--accent-gold); }

/* ============================================================
   Privacy notice
   ============================================================ */
.privacy-text { max-width: 720px; }
.privacy-text h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    margin: 3.5rem 0 1.25rem;
    letter-spacing: -0.005em;
}
.privacy-text h2:first-child { margin-top: 0; }
.privacy-text p { margin-bottom: 1.25rem; }
.privacy-text ul { list-style: none; padding: 0; margin: 0 0 1.25rem; max-width: 680px; }
.privacy-text li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.06rem;
    line-height: 1.75;
    color: var(--text-body);
}
.privacy-text li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 0.6rem;
    height: 1px;
    background: var(--accent-gold);
}
.privacy-text strong { color: var(--text-main); font-weight: 600; }
.privacy-text a.text-link {
    color: var(--text-main);
    border-bottom: 1px solid rgba(191, 160, 106, 0.55);
    padding-bottom: 1px;
}
.privacy-text a.text-link:hover { color: var(--gold-text); border-bottom-color: var(--accent-gold); }
.privacy-updated { margin-top: 2.5rem; font-size: 0.85rem; color: var(--text-muted); }

/* Footer privacy link */
.footer-privacy { margin-left: 1.5rem; color: var(--text-muted); }
.footer-privacy:hover { color: var(--gold-text); }
@media (max-width: 768px) {
    .footer-legal { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
    .footer-privacy { margin-left: 0; }
}


/* Quiet inline link inside service descriptions */
.service-desc a.text-link { color: var(--text-main); border-bottom: 1px solid rgba(191, 160, 106, 0.55); padding-bottom: 1px; }
.service-desc a.text-link:hover { color: var(--gold-text); border-bottom-color: var(--accent-gold); }

/* ============================================================
   Insight actions: Download PDF and Copy link, below an insight
   ============================================================ */
.insight-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.9rem 2.25rem;
    margin: 2.25rem 0 1.75rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 500;
}
.insight-actions a.text-link,
.insight-actions .copy-link {
    color: var(--text-main);
    border-bottom: 1px solid rgba(191, 160, 106, 0.55);
    padding-bottom: 3px;
}
.insight-actions .copy-link {
    background: none;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
    border-radius: 0;
}
.insight-actions .copy-link[hidden] { display: none; }
.insight-actions a.text-link:hover,
.insight-actions .copy-link:hover { color: var(--gold-text); border-bottom-color: var(--accent-gold); }
.insight-actions a.text-link:focus-visible,
.insight-actions .copy-link:focus-visible { outline: 1px solid var(--accent-gold); outline-offset: 4px; }
.copy-note {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: none;
    font-weight: 400;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}


/* ============================================================
   Accessibility: skip link, reduced motion
   ============================================================ */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 2000;
    padding: 0.7rem 1.1rem;
    background: var(--bg-color);
    color: var(--text-main);
    border: 1px solid var(--accent-gold);
    font-size: 0.85rem;
    text-decoration: none;
}
.skip-link { transition: none; }
.skip-link:focus { top: 1rem; outline: 1px solid var(--accent-gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .fade-in { animation: none; opacity: 1; }
    * { transition: none !important; scroll-behavior: auto !important; }
}
