/* ==========================================================================
   RCN Egypt — site styles
   ========================================================================== */

/* === Fonts: Montserrat (variable, latin), self-hosted — SIL Open Font License === */
@font-face {
    font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat'; font-style: italic; font-weight: 400 800; font-display: swap;
    src: url('/assets/fonts/montserrat-latin-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === Tokens === */
:root {
    --brand: #0e3d2b;          /* dark green (original site): titles, header, footer */
    --brand-dark: #0a2e20;
    --brand-mid: #1a6b4a;      /* original primary green */
    --accent: #2ecc71;         /* bright green: buttons, bars, highlights on dark green */
    --accent-hover: #27ae60;
    --accent-text: #1a6b4a;    /* green for text on white (WCAG AA) */
    --text: #1f2933;
    --text-light: #56606b;
    --bg: #ffffff;
    --bg-alt: #f4f6f9;
    --border: #dde3ea;
    --white: #ffffff;

    --radius-sm: 2px;
    --radius-md: 4px;
    --shadow: 0 1px 3px rgba(14, 61, 43, 0.08), 0 1px 2px rgba(14, 61, 43, 0.04);
    --shadow-lg: 0 6px 20px rgba(14, 61, 43, 0.10);
    --transition: 0.25s ease;
    --header-h: 72px;
    --gutter: 24px;
}

/* === Reset & base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    /* iteration-count 1 matters: a looping animation squashed to 0.01ms would otherwise race */
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .cta-band :focus-visible, .page-hero :focus-visible {
    outline-color: var(--accent);
}

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 2000;
    background: var(--accent); color: var(--brand); padding: 10px 16px; font-weight: 700;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; text-align: center; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    text-align: center;
}
.btn-primary { background: var(--accent); color: var(--brand); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: var(--white); }
.btn-full { width: 100%; }

.text-link { color: var(--accent-text); font-weight: 700; }
.text-link:hover { text-decoration: underline; }

/* === Header & navigation === */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--brand);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter);
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.35rem; font-weight: 700; letter-spacing: 3px; color: var(--white);
    white-space: nowrap;
}
.logo-img { height: 48px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > li > a {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.88); font-size: 0.93rem; font-weight: 600;
    padding: 8px 0; position: relative;
    transition: color var(--transition);
}
.nav-links > li > a::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
    background: var(--accent); transition: width var(--transition);
}
.nav-links > li > a:hover, .nav-links > li > a[aria-current="page"] { color: var(--white); }
.nav-links > li > a:hover::after, .nav-links > li > a[aria-current="page"]::after { width: 100%; }
.nav-links > li > a.nav-cta {
    border: 2px solid var(--accent); padding: 7px 16px; border-radius: var(--radius-sm); color: var(--white);
}
.nav-links > li > a.nav-cta::after { display: none; }
.nav-links > li > a.nav-cta:hover, .nav-links > li > a.nav-cta[aria-current="page"] { background: var(--accent); color: var(--brand); }

.nav-chevron { transition: transform var(--transition); }
.nav-dropdown-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.nav-dropdown { position: relative; }
.nav-dropdown-panel {
    display: none;
    position: absolute; top: calc(100% + 14px); left: -24px;
    min-width: 300px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 20px 24px 18px;
}
/* invisible bridge so the pointer can cross the gap without closing the panel */
.nav-dropdown-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-dropdown.is-open .nav-dropdown-panel { display: block; }
.nav-dropdown-title {
    font-weight: 800; color: var(--brand); font-size: 0.95rem;
    padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
}
.nav-dropdown-panel ul li a {
    display: block; padding: 8px 0; color: var(--text); font-size: 0.92rem; font-weight: 500;
}
.nav-dropdown-panel ul li a:hover { color: var(--accent-text); }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; padding: 11px 10px; border-radius: var(--radius-sm);
}
.nav-toggle-bar { display: block; height: 2px; background: var(--white); margin: 4px 0; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 959px) {
    .nav-toggle { display: block; }
    .primary-nav {
        display: none;
        position: absolute; top: var(--header-h); left: 0; right: 0;
        background: var(--brand);
        border-top: 1px solid rgba(255,255,255,0.08);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .primary-nav.is-open { display: block; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
    .nav-links > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-links > li > a { display: flex; justify-content: space-between; padding: 14px 0; }
    .nav-links > li > a::after { display: none; }
    .nav-links > li > a.nav-cta { justify-content: center; margin-top: 16px; padding: 12px; }
    .nav-links > li:last-child { border-bottom: 0; }
    .nav-dropdown-panel {
        position: static; min-width: 0; box-shadow: none; border: 0; border-radius: 0;
        background: transparent; padding: 0 0 12px 12px;
    }
    .nav-dropdown-panel::before { display: none; }
    .nav-dropdown-title { color: rgba(255,255,255,0.6); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; border-color: rgba(255,255,255,0.1); }
    .nav-dropdown-panel ul li a { color: rgba(255,255,255,0.88); }
    .nav-dropdown-panel ul li a:hover { color: var(--accent); }
}

/* === Hero (home) === */
.hero {
    position: relative;
    min-height: calc(88vh - var(--header-h));
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
    background: var(--brand-dark);
    padding: 80px 0;
}
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(160deg, rgba(9,26,18,0.90) 0%, rgba(14,61,43,0.80) 55%, rgba(26,107,74,0.70) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 960px; padding: 0 var(--gutter); }
.hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 700; color: var(--white);
    letter-spacing: 1px; line-height: 1.15; margin-bottom: 20px;
}
.hero-sub {
    font-size: 1.05rem; color: rgba(255,255,255,0.78);
    max-width: 600px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === Inner page hero === */
.page-hero {
    position: relative; overflow: hidden;
    background: var(--brand);
    color: var(--white);
    padding: 72px 0 64px;
}
.page-hero--image { padding: 120px 0 72px; min-height: 380px; display: flex; align-items: flex-end; }
.page-hero picture, .page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero-img { object-fit: cover; object-position: center 40%; }
.page-hero--image::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(9,26,18,0.92) 0%, rgba(14,61,43,0.70) 50%, rgba(14,61,43,0.45) 100%);
}
.page-hero-content { position: relative; z-index: 2; width: 100%; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.1; margin-bottom: 14px; }
.page-hero-intro { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 680px; }
.eyebrow {
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.78rem; font-weight: 700;
    color: var(--accent); margin-bottom: 12px;
}

/* === Sections === */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
    text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
    color: var(--brand); line-height: 1.2;
}
.section-title--left { text-align: left; }
.accent-bar { display: block; width: 100px; height: 4px; background: var(--accent); margin: 18px auto 48px; }
.accent-bar--left { margin-left: 0; margin-bottom: 28px; }
.section-subtitle {
    text-align: center; color: var(--text-light); font-size: 1.02rem;
    max-width: 680px; margin: -16px auto 40px;
}
.lead-center { font-size: 1.08rem; color: var(--text-light); max-width: 720px; margin: 0 auto 28px; }

/* === Partner logo strip === */
.logos-section { background: var(--bg-alt); padding: 44px 0 40px; overflow: hidden; }
.logos-label {
    text-align: center; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 2px;
    color: var(--text-light); font-weight: 700; margin-bottom: 26px;
}
.logos-carousel {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.logos-track {
    display: flex; align-items: center; width: max-content;
    animation: scroll-logos 45s linear infinite;
}
/* padding (not gap) so -25% equals exactly one set → seamless loop */
.logos-track a { flex-shrink: 0; display: flex; align-items: center; padding: 0 40px; }
/* every logo gets the same 140×48 box; artwork is fitted inside so wide and square logos balance */
.logos-track img {
    height: 48px; width: auto; max-width: 140px; object-fit: contain;
    opacity: 0.55; filter: grayscale(100%);
    transition: opacity var(--transition), filter var(--transition);
}
.logos-track img.logo-dark { filter: grayscale(100%) invert(1); }
.logos-track a:hover img { opacity: 1; filter: grayscale(0%); }
.logos-track a:hover img.logo-dark { filter: grayscale(0%) invert(1); }
.logo-wordmark {
    display: inline-flex; align-items: center; height: 48px;
    font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; color: var(--text); opacity: 0.55;
}
@keyframes scroll-logos { from { transform: translateX(0); } to { transform: translateX(-25%); } }
.logos-carousel:hover .logos-track { animation-play-state: paused; }
/* Reduce Motion: no scrolling strip, just one centred row of logos */
@media (prefers-reduced-motion: reduce) {
    .logos-carousel { mask-image: none; -webkit-mask-image: none; }
    .logos-track { animation: none !important; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
    .logos-track a[aria-hidden="true"] { display: none; }
}

/* === About teaser & stats === */
.about-teaser { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.about-teaser p, .about-split p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat {
    display: flex; flex-direction: column-reverse; justify-content: flex-end;
    border-top: 4px solid var(--accent); background: var(--bg-alt);
    padding: 20px 16px; border-radius: var(--radius-sm);
}
.stat dd { font-size: 2.1rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); font-weight: 600; margin-top: 6px; }
.stats--stacked { grid-template-columns: 1fr; }

/* === Industry image cards === */
.industry-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.industry-card a {
    position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden;
    border-radius: var(--radius-sm); box-shadow: var(--shadow); background: var(--brand);
}
.industry-card picture, .industry-card-img { width: 100%; height: 100%; }
.industry-card-img { object-fit: cover; transition: transform 0.3s ease; }
.industry-card a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
    background: linear-gradient(to top, rgba(9,26,18,0.92) 0%, rgba(9,26,18,0.55) 55%, rgba(9,26,18,0) 100%);
    transition: background 0.3s ease;
}
.industry-card-name {
    position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 15%;
    text-align: center; color: var(--white); font-weight: 800; font-size: 1.05rem; line-height: 1.25;
}
.industry-card a:hover .industry-card-img, .industry-card a:focus-visible .industry-card-img { transform: scale(1.05); }
.industry-card a:hover::after, .industry-card a:focus-visible::after {
    background: linear-gradient(to top, rgba(9,26,18,0.97) 0%, rgba(9,26,18,0.7) 55%, rgba(9,26,18,0.1) 100%);
}

@media (max-width: 1099px) and (min-width: 768px) {
    .industry-cards { display: flex; flex-wrap: wrap; justify-content: center; }
    .industry-card { width: calc((100% - 40px) / 3); }
}
@media (max-width: 767px) {
    .industry-cards {
        display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px;
        scroll-padding-inline: var(--gutter);
        -webkit-overflow-scrolling: touch; scrollbar-width: thin;
    }
    .industry-card { flex: 0 0 75vw; max-width: 320px; scroll-snap-align: start; }
}

/* === Product list (industry pages) === */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.product-item {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm); padding: 16px 18px;
}
.section-alt .product-item { box-shadow: var(--shadow); border-color: transparent; border-left-color: var(--accent); }
.product-name { font-size: 0.95rem; color: var(--brand); font-weight: 700; margin-bottom: 4px; }
.product-item p { font-size: 0.86rem; color: var(--text-light); line-height: 1.5; flex: 1; }
.product-quote { margin-top: 10px; font-size: 0.8rem; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: 1px; }
.product-quote:hover { text-decoration: underline; }

/* === CTA band === */
.cta-band { background: var(--brand); color: var(--white); padding: 56px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 640px; }

/* === Industry page === */
.industry-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.industry-overview h2, .industry-applications h2 { color: var(--brand); font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; }
.industry-overview p { font-size: 1.08rem; color: var(--text-light); line-height: 1.75; }
.industry-applications { background: var(--bg-alt); border-top: 4px solid var(--accent); padding: 24px 28px; border-radius: var(--radius-sm); }
.industry-applications li { position: relative; padding: 8px 0 8px 20px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.industry-applications li:last-child { border-bottom: 0; }
.industry-applications li::before { content: ''; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; background: var(--accent); }
.other-industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.other-industries a, .industry-chips a {
    display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-weight: 700; color: var(--brand); transition: border-color var(--transition), background var(--transition);
}
.other-industries a:hover, .industry-chips a:hover { border-color: var(--brand); background: var(--bg-alt); }
.industry-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 28px; }
.industry-chips a { padding: 10px 16px; background: var(--white); font-size: 0.92rem; }

/* === About page === */
.about-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
.markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.markets li { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--accent); padding: 22px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.markets h3 { color: var(--brand); font-size: 1.05rem; margin-bottom: 6px; }
.markets p { font-size: 0.9rem; color: var(--text-light); }
.office { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.office address { font-size: 1.05rem; line-height: 1.8; margin-bottom: 12px; }
.office p { color: var(--text-light); margin-bottom: 20px; }

/* === Contact details list (About + Contact) === */
.contact-details li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-details--divided li { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-details--divided li:first-child { padding-top: 0; }
.contact-icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: #e8f3ee; color: var(--accent-text);
}
.contact-label {
    display: block; margin-bottom: 2px;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-light); font-weight: 700;
}
.contact-details a { color: var(--brand); font-weight: 600; }
.contact-details a:hover { color: var(--accent-text); }

/* === Contact page === */
.contact-inquiry-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.contact-info h2, .inquiry-side h2 {
    font-size: 1.3rem; font-weight: 800; color: var(--brand);
    padding-bottom: 12px; margin-bottom: 24px; border-bottom: 3px solid var(--accent); display: inline-block;
}
.inquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry-form .form-group { margin-bottom: 16px; }
.inquiry-form .form-group[hidden] { display: none; }
.inquiry-form label {
    display: block; font-size: 0.78rem; font-weight: 700; color: var(--brand);
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
    width: 100%; padding: 11px 14px;
    border: 1px solid #c5ced8; border-radius: var(--radius-sm);
    font-size: 0.95rem; font-family: inherit; color: var(--text); background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,204,113,0.35);
}
.inquiry-form textarea { resize: vertical; }

/* === Message pages (thank-you, 404) === */
.message-page { padding: 120px 0; background: var(--bg-alt); min-height: 60vh; }
.message-page h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--brand); font-weight: 800; margin-bottom: 16px; }
.message-page .eyebrow { color: var(--accent-text); }
.message-page .btn { margin: 6px; }

/* === News index === */
.news-index { padding: 64px 0 88px; }
.page-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--brand); line-height: 1.1; }
.news-date { font-style: italic; color: var(--text-light); font-size: 0.88rem; }
.news-featured { margin-bottom: 48px; }
.news-featured-link {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
    border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--white);
    box-shadow: var(--shadow);
}
.news-featured-media img, .news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.news-featured-media { aspect-ratio: 16 / 10; overflow: hidden; }
.news-featured-body { padding: 36px 36px 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.news-featured-title { font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--brand); font-weight: 800; line-height: 1.2; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card-link {
    display: flex; flex-direction: column; height: 100%;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.news-card-media { aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.news-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.news-card-title { font-size: 1.12rem; font-weight: 800; color: var(--brand); line-height: 1.3; }
.news-card-excerpt { color: var(--text-light); font-size: 0.93rem; flex: 1; }
.news-card-more { color: var(--accent-text); font-weight: 700; font-size: 0.88rem; }
.news-card-link:hover .news-card-media img, .news-featured-link:hover .news-featured-media img { transform: scale(1.04); }
.news-card-link:hover .news-card-more, .news-featured-link:hover .news-card-more { text-decoration: underline; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 48px; font-weight: 600; }
.pagination a { color: var(--accent-text); font-weight: 700; }

/* === Article === */
.article { padding: 56px 0 72px; }
.article-header, .article-body, .article-footer { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: content-box; }
.article-header .eyebrow a { color: var(--accent-text); }
.article-title {
    font-size: clamp(2rem, 5.2vw, 3.4rem); /* 32px mobile → ~54px desktop */
    font-weight: 800; color: var(--brand); line-height: 1.08; letter-spacing: -0.5px; margin-bottom: 24px;
}
.article-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.share { display: flex; gap: 6px; }
.share a, .share button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--white); color: var(--brand); cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.share a:hover, .share button:hover { background: var(--brand); color: var(--white); border-color: var(--brand); }
.article-date { font-style: italic; color: var(--text-light); }
.copy-status { font-size: 0.85rem; color: var(--accent-text); font-weight: 600; }
.article-lead { font-size: clamp(1.15rem, 2.2vw, 1.375rem); font-style: italic; color: var(--text-light); line-height: 1.55; margin-bottom: 36px; }
.article-cover { max-width: 1000px; margin: 0 auto 44px; padding: 0 var(--gutter); box-sizing: content-box; }
.article-cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius-sm); }
.article-cover figcaption { font-style: italic; color: var(--text-light); font-size: 0.9rem; margin-top: 10px; }
.article-body { font-size: 1.125rem; line-height: 1.7; color: var(--text); }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { color: var(--brand); font-size: 1.65rem; font-weight: 800; line-height: 1.25; margin-top: 1.8em; }
.article-body h3 { color: var(--brand); font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-top: 1.5em; }
.article-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul { list-style: disc; padding-left: 1.4em; }
.article-body ol { list-style: decimal; padding-left: 1.4em; }
.article-body li + li { margin-top: 0.4em; }
.article-body blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 20px; color: var(--text-light); font-style: italic; }
.article-body img { border-radius: var(--radius-sm); }
.article-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }

/* === Footer === */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,0.72); padding: 64px 0 24px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.4fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--white); letter-spacing: 3px; }
.footer-brand p { margin-top: 8px; }
.footer-note { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-heading { color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.social-icon {
    display: inline-flex; align-items: center; justify-content: center; margin-top: 8px;
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: var(--accent); color: var(--brand); transition: background var(--transition);
}
.social-icon:hover { background: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.82rem; }

/* === Responsive === */
@media (max-width: 1023px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .markets, .other-industries { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .about-teaser, .about-split, .industry-intro, .office, .contact-inquiry-grid { grid-template-columns: 1fr; gap: 40px; }
    .news-featured-link { grid-template-columns: 1fr; }
    .news-featured-body { padding: 24px; }
}
@media (max-width: 767px) {
    :root { --gutter: 16px; --header-h: 64px; }
    .logos-track { animation-duration: 40s; }
    .logos-track a { padding: 0 24px; }
    .logos-track img { height: 36px; max-width: 110px; }
    .section { padding: 64px 0; }
    .logo { font-size: 1.15rem; letter-spacing: 2px; }
    .logo-img { height: 40px; }
    .accent-bar { margin-bottom: 36px; }
    .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .stat { padding: 14px 10px; }
    .stat dd { font-size: 1.6rem; }
    .stat dt { font-size: 0.68rem; letter-spacing: 0.5px; }
    .inquiry-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .markets, .other-industries, .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-band-inner .btn { width: 100%; }
    .page-hero--image { min-height: 320px; padding-top: 96px; }
}

/* === Print (articles) === */
@media print {
    .site-header, .site-footer, .share, .cta-band, .article-footer, section[aria-labelledby="related-heading"], .skip-link { display: none !important; }
    .article { padding: 0; }
    .article-body a { color: inherit; }
}
