/* ============================================================
   EPAC GROUP — design system
   Palette  : ivory #FAF7F0 · teal #17767E · ink #0E3A40 · rose #C8405C · sand #EAE2D3
   Type     : Marcellus (display) · Archivo (body) · Almarai (Arabic)
   Signature: the logo swoosh + the "D-curve" media frame
   ============================================================ */

:root {
    --ivory:      #FAF7F0;
    --ivory-deep: #F2EDE2;
    --sand:       #EAE2D3;
    --teal:       #17767E;
    --teal-soft:  #DCEBEA;
    --ink:        #0E3A40;
    --rose:       #C8405C;
    --rose-soft:  #F6E3E7;
    --white:      #FFFFFF;
    --line:       rgba(14, 58, 64, .14);

    --font-display: 'Marcellus', 'Almarai', serif;
    --font-body:    'Archivo', 'Almarai', system-ui, sans-serif;

    --container: 1200px;
    --radius: 22px;
    --shadow: 0 24px 60px -28px rgba(14, 58, 64, .28);
    --ease: cubic-bezier(.22, .8, .26, .99);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--ivory);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.rtl { font-family: 'Almarai', var(--font-body); }
body.rtl .hero-title, body.rtl .section-title, body.rtl .page-title,
body.rtl .cta-title, body.rtl .company-name, body.rtl .mv-card h2 {
    font-family: 'Almarai', sans-serif; font-weight: 800; letter-spacing: 0;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(var(--container), 92%); margin-inline: auto; }
.muted { color: rgba(14,58,64,.6); }

::selection { background: var(--teal); color: var(--ivory); }

.skip-link {
    position: absolute; inset-inline-start: 12px; top: -48px;
    background: var(--ink); color: var(--ivory); padding: .6rem 1rem;
    border-radius: 8px; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- page transition veil ---------- */
.page-veil {
    position: fixed; inset: 0; background: var(--ink); z-index: 150;
    transform-origin: top; transform: scaleY(0); pointer-events: none;
}
body.is-entering .page-veil { animation: veilOut .7s var(--ease) forwards; }
body.is-leaving  .page-veil { animation: veilIn  .45s var(--ease) forwards; pointer-events: all; }
@keyframes veilOut { from { transform: scaleY(1); transform-origin: bottom; } to { transform: scaleY(0); transform-origin: bottom; } }
@keyframes veilIn  { from { transform: scaleY(0); transform-origin: top; }    to { transform: scaleY(1); transform-origin: top; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--ivory) 86%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px -22px rgba(14,58,64,.35);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; padding-block: .9rem;
}
.brand img { width: 82px; height: auto; transition: width .3s var(--ease); }
.site-header.is-scrolled .brand img { width: 64px; }

.main-nav { display: flex; gap: 2rem; }
.nav-link {
    font-size: .95rem; font-weight: 500; letter-spacing: .02em;
    position: relative; padding-block: .4rem; color: rgba(14,58,64,.78);
    transition: color .25s;
}
.nav-link::after {
    content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
    background: var(--rose); transform: scaleX(0); transform-origin: var(--tx-origin, left);
    transition: transform .35s var(--ease);
}
.rtl .nav-link::after { --tx-origin: right; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch {
    font-weight: 700; font-size: .85rem; letter-spacing: .06em;
    color: var(--teal); border: 1px solid var(--line);
    padding: .42rem .85rem; border-radius: 999px; transition: all .25s;
}
.lang-switch:hover { background: var(--teal); color: var(--ivory); border-color: var(--teal); }

.nav-toggle { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--font-body); font-weight: 600; font-size: .98rem;
    padding: .85rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.btn-sm { padding: .55rem 1.2rem; font-size: .88rem; }
.btn-primary { background: var(--teal); color: var(--ivory); box-shadow: 0 14px 30px -16px rgba(23,118,126,.7); }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { background: var(--white); transform: translateY(-2px); }
.btn-arrow { transition: transform .3s var(--ease); display: inline-block; }
.rtl .btn-arrow { transform: scaleX(-1); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.rtl .btn:hover .btn-arrow { transform: scaleX(-1) translateX(4px); }

.text-link {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 600; color: var(--teal); position: relative;
}
.text-link:hover { color: var(--rose); }
.text-link .btn-arrow { font-size: 1.05em; }
.text-link:hover .btn-arrow { transform: translateX(4px); }
.rtl .text-link .btn-arrow { transform: scaleX(-1); }
.rtl .text-link:hover .btn-arrow { transform: scaleX(-1) translateX(4px); }

/* ============================================================
   TYPE / SECTIONS
   ============================================================ */
.eyebrow {
    display: inline-flex; align-items: center; gap: .65rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .22em;
    text-transform: uppercase; color: var(--teal); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--rose); }
.rtl .eyebrow { letter-spacing: .05em; }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; letter-spacing: .005em;
}
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); max-width: 720px; }
.section-head.split {
    max-width: none; display: flex; align-items: flex-end;
    justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem); overflow: hidden; }
.hero::before { /* faint blueprint grid in the ivory field */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(23,118,126,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23,118,126,.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(80% 70% at 30% 30%, #000 30%, transparent 75%);
}
.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative;
}
.hero-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.06; margin-bottom: 1.4rem;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--teal); }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: rgba(14,58,64,.78); max-width: 34rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* load-in choreography */
[data-load] { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; }
[data-load="1"] { animation-delay: .05s; } [data-load="2"] { animation-delay: .15s; }
[data-load="3"] { animation-delay: .28s; } [data-load="4"] { animation-delay: .42s; }
[data-load="5"] { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* the swoosh — drawn after load */
.swoosh { width: min(420px, 80%); margin-top: 2.6rem; overflow: visible; }
.swoosh-line {
    fill: none; stroke-width: 3.4; stroke-linecap: round;
    stroke-dasharray: 460; stroke-dashoffset: 460;
    animation: draw 1.5s var(--ease) forwards .8s;
}
.swoosh-teal { stroke: var(--teal); }
.swoosh-rose { stroke: var(--rose); animation-delay: 1.05s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* the D-curve frame — echoes the logo's terminal letterform */
.hero-media { position: relative; }
.hero-frame {
    border-radius: 30px 46% 46% 30px / 30px 50% 50% 30px;
    overflow: hidden; box-shadow: var(--shadow);
    border: 1px solid var(--line);
    aspect-ratio: 4 / 4.6; background: var(--sand);
}
.rtl .hero-frame { border-radius: 46% 30px 30px 46% / 50% 30px 30px 50%; }
.hero-frame img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.hero-caption {
    margin-top: .9rem; font-size: .82rem; letter-spacing: .08em;
    text-transform: uppercase; color: rgba(14,58,64,.55);
}
.hero-dot {
    position: absolute; top: -14px; inset-inline-end: 8%;
    width: 46px; height: 34px; background: var(--teal); border-radius: 50%;
}
.hero-dot::after {
    content: ''; position: absolute; top: 50%; left: 60%; width: 9px; height: 9px;
    background: var(--rose); border-radius: 50%; transform: translate(-50%, -50%);
}

.scroll-cue {
    position: absolute; bottom: 1.6rem; inset-inline-start: 50%; translate: -50% 0;
    display: flex; flex-direction: column; align-items: center; gap: .45rem;
    font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(14,58,64,.5);
}
.rtl .scroll-cue { translate: 50% 0; letter-spacing: .08em; }
.scroll-cue i { width: 1px; height: 38px; background: var(--ink); opacity: .35; animation: cue 2s infinite var(--ease); }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--ink); color: var(--ivory); padding-block: clamp(2.6rem, 5vw, 4rem); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { position: relative; padding-inline-start: 1.2rem; }
.stat::before { content: ''; position: absolute; inset-inline-start: 0; top: .4rem; bottom: .4rem; width: 3px; background: var(--rose); border-radius: 2px; }
.stat-value { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1; display: block; color: var(--ivory); }
.stat-value b { font-weight: 400; }
.stat-label { font-size: .88rem; color: rgba(250,247,240,.62); margin-top: .5rem; display: block; }

/* ============================================================
   INTRO
   ============================================================ */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.intro-body { font-size: 1.08rem; color: rgba(14,58,64,.78); border-inline-start: 3px solid var(--teal); padding-inline-start: 1.5rem; }

/* ============================================================
   COMPANY CARDS
   ============================================================ */
.company-stack { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); }
.company-card {
    display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .45s var(--ease), box-shadow .45s;
}
.company-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.company-card:nth-child(even) { grid-template-columns: 1.1fr .9fr; }
.company-card:nth-child(even) .company-media { order: 2; }
.company-media { overflow: hidden; min-height: 300px; }
.company-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.company-card:hover .company-media img { transform: scale(1.05); }
.company-body { padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.badge {
    font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    padding: .4rem .9rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal);
}
.rtl .badge { letter-spacing: .03em; }
.tone-rose .badge { background: var(--rose-soft); color: var(--rose); }
.tone-ink  .badge { background: var(--sand); color: var(--ink); }
.company-name { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; }
.company-name a:hover { color: var(--teal); }
.company-short { font-weight: 600; color: var(--rose); font-size: .95rem; }
.tone-ink .company-short { color: var(--teal); }
.company-desc { color: rgba(14,58,64,.72); }

/* ============================================================
   PROJECT GRID
   ============================================================ */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem); }
.project-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: var(--white); border: 1px solid var(--line);
    transition: transform .45s var(--ease), box-shadow .45s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card.is-wide { grid-column: span 2; }
.project-card figure { overflow: hidden; aspect-ratio: 16/9; }
.project-card.is-wide figure { aspect-ratio: 21/9; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover img { transform: scale(1.06); }
.project-meta { padding: 1.4rem 1.6rem 1.6rem; }
.project-co { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.rtl .project-co { letter-spacing: .03em; }
.project-meta h2, .project-meta h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin-block: .35rem .3rem; }
.project-meta p { color: rgba(14,58,64,.68); font-size: .95rem; }
.project-card.text-only { display: flex; align-items: center; background: var(--ivory-deep); min-height: 200px; }
.project-card.text-only:hover { background: var(--white); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { padding-block: clamp(3.4rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.4rem); }
.page-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; max-width: 18ch; }
.page-lead { margin-top: 1.2rem; max-width: 46rem; font-size: 1.08rem; color: rgba(14,58,64,.75); }
.company-hero .badge { margin-bottom: 1.2rem; }
.crumbs { display: flex; gap: .7rem; font-size: .85rem; color: rgba(14,58,64,.55); margin-bottom: 1.2rem; flex-wrap: wrap; }
.crumbs a:hover { color: var(--teal); }

/* ============================================================
   ABOUT
   ============================================================ */
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story-text p { font-size: 1.06rem; color: rgba(14,58,64,.8); margin-bottom: 1.3rem; }
.story-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.mv { padding-block: 0; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.2rem); }
.mv-card { background: var(--ink); color: var(--ivory); border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem); }
.mv-card.alt { background: var(--teal); }
.mv-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; margin-bottom: .9rem; }
.mv-card p { color: rgba(250,247,240,.85); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.value-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: transform .4s var(--ease), box-shadow .4s; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-tick { display: block; width: 30px; height: 3px; background: var(--rose); border-radius: 2px; margin-bottom: 1.1rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.value-card p { font-size: .94rem; color: rgba(14,58,64,.68); }

.team-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.team-grid p { font-size: 1.05rem; color: rgba(14,58,64,.78); }

/* ============================================================
   SERVICES / MEP
   ============================================================ */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2.4rem; }
.service-item {
    display: flex; align-items: center; gap: 1rem;
    background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    padding: 1.05rem 1.3rem; font-weight: 500;
}
.service-item .value-tick { width: 18px; margin: 0; flex: none; }

.mep { background: var(--ivory-deep); }
.mep-list { display: grid; gap: .2rem; }
.mep-row { display: flex; align-items: baseline; gap: 1.2rem; padding-block: 1.05rem; border-bottom: 1px solid var(--line); }
.mep-name { font-weight: 500; }
.mep-rule { flex: 1; border-bottom: 1px dashed rgba(14,58,64,.25); }
.mep-value { font-family: var(--font-display); color: var(--teal); white-space: nowrap; }

/* ============================================================
   PROJECT DETAIL / GALLERY
   ============================================================ */
.project-facts { display: flex; gap: 3rem; margin-top: 1.6rem; flex-wrap: wrap; }
.project-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(14,58,64,.5); }
.rtl .project-facts dt { letter-spacing: .03em; }
.project-facts dd { font-weight: 600; margin-top: .25rem; }
.project-facts a { color: var(--teal); }
.project-facts a:hover { color: var(--rose); }

.cover-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.scope-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 4rem); }
.scope-grid p { font-size: 1.06rem; color: rgba(14,58,64,.8); }

.gallery-section { padding-top: 0; }
.gallery { columns: 3; column-gap: 1.2rem; }
.gallery-item {
    display: block; width: 100%; margin-bottom: 1.2rem; border: 0; padding: 0;
    border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--sand);
}
.gallery-item img { transition: transform .6s var(--ease), filter .6s; }
.gallery-item:hover img { transform: scale(1.04); filter: brightness(1.04); }

.lightbox {
    position: fixed; inset: 0; z-index: 180; display: grid; place-items: center;
    background: rgba(10, 32, 36, .92); padding: 4vmin; backdrop-filter: blur(6px);
}
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.lightbox-close {
    position: absolute; top: 1.2rem; inset-inline-end: 1.6rem;
    font-size: 2.2rem; line-height: 1; color: var(--ivory);
    background: none; border: 0; cursor: pointer; opacity: .8;
}
.lightbox-close:hover { opacity: 1; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
    background: linear-gradient(120deg, var(--teal) 0%, var(--ink) 80%);
    color: var(--ivory); padding-block: clamp(3rem, 6vw, 4.6rem);
    position: relative; overflow: hidden;
}
.cta-band::after { /* ghost swoosh */
    content: ''; position: absolute; inset-inline-end: -8%; top: -45%;
    width: 60%; aspect-ratio: 1; border: 60px solid rgba(250,247,240,.06); border-radius: 50%;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2.4rem; flex-wrap: wrap; position: relative; }
.cta-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .55rem; }
.cta-body { color: rgba(250,247,240,.75); max-width: 38rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { padding-top: clamp(2rem, 4vw, 3rem); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-block { margin-bottom: 1.8rem; }
.info-block h2 { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: .4rem; }
.rtl .info-block h2 { letter-spacing: .03em; }
.info-block a { font-weight: 600; }
.info-block a:hover { color: var(--rose); }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem); display: grid; gap: 1.2rem; }
.contact-form label { display: grid; gap: .45rem; font-size: .9rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
    font: inherit; font-weight: 400; color: var(--ink);
    background: var(--ivory); border: 1px solid var(--line); border-radius: 12px;
    padding: .85rem 1rem; transition: border-color .25s, box-shadow .25s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(23,118,126,.14);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-success { background: var(--teal-soft); color: var(--teal); padding: .9rem 1.2rem; border-radius: 12px; font-weight: 600; }
.form-error { color: var(--rose); font-style: normal; font-weight: 500; font-size: .82rem; }
.contact-form .btn { justify-self: start; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(250,247,240,.78); margin-top: 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1.2fr;
    gap: 2.6rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.footer-brand img { margin-bottom: 1.1rem; opacity: .95; }
.footer-brand p { font-size: .92rem; max-width: 26rem; }
.footer-col { display: grid; gap: .55rem; align-content: start; }
.footer-col h3 {
    font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ivory); margin-bottom: .5rem;
}
.rtl .footer-col h3 { letter-spacing: .04em; }
.footer-col a { font-size: .94rem; transition: color .25s; }
.footer-col a:hover { color: var(--rose); }
.footer-col p { font-size: .92rem; }
.footer-base { border-top: 1px solid rgba(250,247,240,.14); padding-block: 1.4rem; font-size: .85rem; color: rgba(250,247,240,.55); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ============================================================
   SECTION LEAD
   ============================================================ */
.section-lead { margin-top: 1rem; color: rgba(14,58,64,.72); font-size: 1.05rem; line-height: 1.6; max-width: 64ch; }

/* ============================================================
   STATS — skyline that builds on scroll (signature)
   ============================================================ */
.stats-band { background: var(--ink); color: var(--ivory); padding-block: clamp(3rem, 6vw, 4.6rem); overflow: hidden; }
.skyline {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem);
    align-items: end;
}
.sky-col { display: flex; flex-direction: column; gap: 1.1rem; }
.sky-bar {
    position: relative; height: 130px; border-radius: 8px 8px 0 0;
    background: rgba(250,247,240,.06);
    box-shadow: inset 0 0 0 1px rgba(250,247,240,.08);
}
.sky-fill {
    position: absolute; inset-inline: 0; bottom: 0; height: 0;
    border-radius: 8px 8px 0 0;
    transition: height 1.1s var(--ease);
}
.skyline.is-built .sky-bar.is-teal .sky-fill { height: var(--h); background: linear-gradient(180deg, var(--teal), #1f8e97); }
.skyline.is-built .sky-bar.is-rose .sky-fill { height: var(--h); background: linear-gradient(180deg, var(--rose), #d8546e); }
.sky-fill::after { /* lit windows hint */
    content: ''; position: absolute; inset: 8px 8px 0; opacity: .16;
    background-image: linear-gradient(90deg, transparent 50%, rgba(250,247,240,.9) 50%),
                      linear-gradient(0deg, transparent 50%, rgba(250,247,240,.9) 50%);
    background-size: 10px 14px;
}
.sky-meta { display: flex; flex-direction: column; }
.stats-band .stat-value { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1; color: var(--ivory); }
.stats-band .stat-value b { font-weight: 400; }
.stats-band .stat-label { font-size: .9rem; color: rgba(250,247,240,.64); margin-top: .5rem; }

/* ============================================================
   CAPABILITIES — line glyphs that draw on reveal
   ============================================================ */
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.cap {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1.6rem, 3vw, 2.2rem); position: relative; overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cap::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; }
.cap-teal::before { background: var(--teal); }
.cap-rose::before { background: var(--rose); }
.cap-ink::before  { background: var(--ink); }
.cap:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cap .glyph { width: 64px; height: 64px; margin-bottom: 1.4rem; display: block; }
.cap h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin-bottom: .6rem; }
.cap p { color: rgba(14,58,64,.72); line-height: 1.6; font-size: .98rem; }
.gline { stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cap-teal .gline { stroke: var(--teal); }
.cap-rose .gline { stroke: var(--rose); }
.cap-ink  .gline { stroke: var(--ink); }
.gdraw { stroke-dasharray: var(--len, 120); stroke-dashoffset: var(--len, 120); }
.cap.is-drawn .gdraw { transition: stroke-dashoffset 1.1s var(--ease); stroke-dashoffset: 0; }
.cap-ink .pulse { fill: var(--rose); }

/* ============================================================
   COMPANY index marker
   ============================================================ */
.company-media { position: relative; }
.company-index {
    position: absolute; inset-block-start: .9rem; inset-inline-start: .9rem;
    font-family: var(--font-display); font-size: 1rem; letter-spacing: .12em;
    color: var(--ivory); background: rgba(14,58,64,.55); backdrop-filter: blur(6px);
    width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%;
}

/* ============================================================
   PROJECT tag
   ============================================================ */
.project-tag {
    display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--teal); margin-bottom: .5rem;
}
.project-card.is-wide .project-tag { color: var(--ivory); opacity: .85; }

/* ============================================================
   LEADERSHIP / MANAGEMENT
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.member {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1.4rem, 2.4vw, 1.9rem); display: flex; flex-direction: column; gap: 1rem;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.member.is-lead { grid-column: span 1; }
.member-photo {
    width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: none;
    display: grid; place-items: center; position: relative;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.monogram {
    width: 100%; height: 100%; display: grid; place-items: center;
    font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .04em; color: var(--white);
}
.tone-teal .monogram { background: linear-gradient(135deg, var(--teal), var(--ink)); }
.tone-rose .monogram { background: linear-gradient(135deg, var(--rose), #9c2f47); }
.tone-ink  .monogram { background: linear-gradient(135deg, var(--ink), #08262a); }
.member-photo::after {
    content: ''; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none;
    border: 2px solid transparent;
}
.tone-teal .member-photo::after { border-color: var(--teal-soft); }
.tone-rose .member-photo::after { border-color: var(--rose-soft); }
.member-name { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
.member-role { color: var(--rose); font-size: .85rem; letter-spacing: .04em; margin-top: .2rem; }
.tone-teal .member-role { color: var(--teal); }
.tone-ink  .member-role { color: var(--ink); }
.member-bio { color: rgba(14,58,64,.7); font-size: .94rem; line-height: 1.6; }
.member.is-lead .member-name { font-size: 1.4rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
    .hero-grid, .intro-grid, .story-grid, .scope-grid, .contact-grid, .team-grid { grid-template-columns: 1fr; }
    .hero-media { max-width: 480px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .company-card, .company-card:nth-child(even) { grid-template-columns: 1fr; }
    .company-card:nth-child(even) .company-media { order: 0; }
    .company-media { min-height: 240px; max-height: 320px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery { columns: 2; }
    .caps-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .main-nav {
        position: fixed; inset: 0; top: 0; padding-top: 6.4rem; z-index: -1;
        background: var(--ivory); flex-direction: column; align-items: center;
        gap: 1.6rem; font-size: 1.25rem;
        opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
    }
    .main-nav.is-open { opacity: 1; pointer-events: all; z-index: 90; }
    .nav-toggle {
        display: grid; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; z-index: 95;
    }
    .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .header-cta { display: none; }

    .project-grid, .form-row, .mv-grid, .service-grid, .values-grid { grid-template-columns: 1fr; }
    .project-card.is-wide { grid-column: span 1; }
    .stats-grid { gap: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .gallery { columns: 1; }
    .scroll-cue { display: none; }
    .mep-row { flex-direction: column; gap: .2rem; }
    .mep-rule { display: none; }
    .skyline { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
    .team-grid { grid-template-columns: 1fr; }
    .sky-bar { height: 96px; }
}

/* ============================================================
   MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    [data-load], [data-reveal] { opacity: 1 !important; transform: none !important; }
    .swoosh-line { stroke-dashoffset: 0; }
    .skyline .sky-fill { height: var(--h) !important; transition: none !important; }
    .gdraw { stroke-dashoffset: 0 !important; }
    .cap-ink .pulse { display: none; }
    html { scroll-behavior: auto; }
}

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
