/* Al-Badawy 2026 — public site stylesheet
 * Token source: /DESIGN.md
 */

/* ---------- Fonts ---------- */
@font-face { font-family: "Madani Arabic"; font-style: normal; font-weight: 100; font-display: swap; src: url("../fonts/madani/Madani-Arabic-Thin.ttf") format("truetype"); }
@font-face { font-family: "Madani Arabic"; font-style: normal; font-weight: 200; font-display: swap; src: url("../fonts/madani/Madani-Arabic-Extra-Light.ttf") format("truetype"); }
@font-face { font-family: "Madani Arabic"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/madani/Madani-Arabic-Light.ttf") format("truetype"); }
@font-face { font-family: "Madani Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/madani/Madani-Arabic-Regular.ttf") format("truetype"); }
@font-face { font-family: "Madani Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/madani/Madani-Arabic-Medium.ttf") format("truetype"); }
@font-face { font-family: "Madani Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/madani/Madani-Arabic-Semi-Bold.ttf") format("truetype"); }
@font-face { font-family: "Madani Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/madani/Madani-Arabic-Bold.ttf") format("truetype"); }
@font-face { font-family: "Madani Arabic"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/madani/Madani-Arabic-Extra-Bold.ttf") format("truetype"); }
@font-face { font-family: "Madani Arabic"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/madani/Madani-Arabic-Black.ttf") format("truetype"); }

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 200; font-display: swap; src: url("../fonts/poppins/Poppins-ExtraLight.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins/Poppins-Light.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins/Poppins-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins/Poppins-Bold.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins/Poppins-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/poppins/Poppins-Black.ttf") format("truetype"); }

/* ---------- Tokens (mirror DESIGN.md) ---------- */
:root {
    --c-primary: #0E1B5E;
    --c-primary-deep: #091245;
    --c-secondary: #1AA0D8;
    --c-accent: #27B5C8;
    --c-ink: #1F2C4D;
    --c-ink-soft: #5B6680;
    --c-paper: #F5F4F0;
    --c-surface: #FFFFFF;
    --c-divider: #E5E3DC;
    --c-muted: #8B8A86;
    --c-success: #1F9D6B;
    --c-danger: #C43A3A;

    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-full: 999px;

    --s-xs: 4px;
    --s-sm: 8px;
    --s-md: 16px;
    --s-lg: 24px;
    --s-xl: 40px;
    --s-2xl: 64px;
    --s-3xl: 96px;

    --shadow-sm: 0 4px 12px rgba(14, 27, 94, 0.06);
    --shadow-md: 0 12px 32px rgba(14, 27, 94, 0.08);
    --shadow-lg: 0 24px 64px rgba(14, 27, 94, 0.10);

    --font-ar: "Madani Arabic", "Poppins", system-ui, sans-serif;
    --font-en: "Poppins", "Madani Arabic", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--c-paper);
    color: var(--c-ink);
    font-family: var(--font-ar);
    font-weight: 400;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
[lang="en"] body { font-family: var(--font-en); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4 { color: var(--c-primary); font-weight: 700; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--c-secondary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout primitives ---------- */
.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.section { padding: var(--s-3xl) 0; }
.section-tight { padding: var(--s-2xl) 0; }
.divider-rule { height: 1px; background: var(--c-divider); border: 0; }

/* ---------- Eyebrow + section title ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--c-secondary);
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    font-size: 0.78rem;
}
.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: var(--r-full);
    background: var(--c-secondary);
}
.eyebrow-ar {
    display: inline-block;
    margin-inline-start: 12px;
    color: var(--c-ink-soft);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
.section-title {
    margin-top: 12px;
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--c-primary);
}
.section-intro {
    max-width: 64ch;
    margin-top: var(--s-md);
    color: var(--c-ink-soft);
    font-size: 1rem;
    line-height: 1.95;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.96rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--c-primary);
    color: var(--c-surface);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--c-primary-deep); box-shadow: var(--shadow-md); }
.btn-ghost {
    background: transparent;
    color: var(--c-primary);
    border: 1px solid var(--c-primary);
}
.btn-ghost:hover { background: var(--c-primary); color: var(--c-surface); }

/* ---------- Top strip & header ---------- */
.top-strip {
    background: var(--c-primary);
    color: #cdd5f3;
    font-size: 0.86rem;
}
.top-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-md);
    padding: 12px 0;
    flex-wrap: wrap;
}
.top-strip a { color: inherit; }
.top-strip a:hover { color: var(--c-surface); }
.top-meta { display: flex; gap: var(--s-lg); align-items: center; flex-wrap: wrap; }
.top-meta span,
.top-meta a { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.top-meta svg { width: 16px; height: 16px; flex-shrink: 0; }
.lang-toggle {
    display: inline-flex;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--r-full);
    padding: 4px;
}
.lang-toggle a {
    padding: 4px 14px;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #cdd5f3;
    transition: 0.2s ease;
}
.lang-toggle a.active {
    background: var(--c-surface);
    color: var(--c-primary);
}

.main-header {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-divider);
    position: sticky;
    top: 0;
    z-index: 50;
}
.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-md);
    padding: 18px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; display: block; }
.main-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.main-nav a {
    padding: 10px 18px;
    border-radius: var(--r-full);
    color: var(--c-ink);
    font-weight: 500;
    transition: 0.2s ease;
}
.main-nav a:hover { background: var(--c-paper); color: var(--c-primary); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn { min-height: 44px; padding: 0 18px; font-size: 0.88rem; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1000px 500px at 88% 10%, rgba(26, 160, 216, 0.18), transparent 60%),
        radial-gradient(800px 400px at 12% 90%, rgba(39, 181, 200, 0.12), transparent 65%),
        linear-gradient(135deg, var(--c-primary-deep) 0%, var(--c-primary) 60%, #0c1748 100%);
    color: var(--c-surface);
    padding: var(--s-3xl) 0;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
    opacity: 0.4;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--s-2xl);
    align-items: center;
    z-index: 1;
}
.hero-eyebrow {
    color: var(--c-secondary);
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hero-eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--c-secondary);
}
.hero h1 {
    margin-top: var(--s-md);
    font-size: clamp(2.2rem, 5.4vw, 4.4rem);
    font-weight: 800;
    color: var(--c-surface);
    line-height: 1.1;
}
.hero p {
    margin-top: var(--s-lg);
    color: rgba(255,255,255,0.84);
    line-height: 1.95;
    max-width: 56ch;
}
.hero-actions { margin-top: var(--s-xl); display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--c-secondary); }
.hero-actions .btn-primary:hover { background: var(--c-accent); }
.hero-actions .btn-ghost { color: var(--c-surface); border-color: rgba(255,255,255,0.4); }
.hero-actions .btn-ghost:hover { background: var(--c-surface); color: var(--c-primary); }
.hero-stats {
    margin-top: var(--s-2xl);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-md);
}
.hero-stat {
    padding: 18px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-md);
    backdrop-filter: blur(8px);
}
.hero-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--c-surface);
}
.hero-stat span {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}
.hero-media {
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    background: rgba(0,0,0,0.2) center/cover no-repeat;
    position: relative;
}
.hero-media-strip {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.hero-media-strip img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255,255,255,0.22);
}

/* ---------- Section: About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--s-2xl);
    align-items: center;
}
.about-image {
    aspect-ratio: 4/5;
    border-radius: var(--r-lg);
    background: center/cover no-repeat;
    box-shadow: var(--shadow-md);
    position: relative;
}
.about-image-badge {
    position: absolute;
    inset-inline-end: 20px;
    inset-block-end: 20px;
    background: var(--c-surface);
    color: var(--c-primary);
    border-radius: var(--r-md);
    padding: 14px 18px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.about-image-badge strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}
.about-image-badge span {
    display: block;
    margin-top: 4px;
    color: var(--c-ink-soft);
    font-size: 0.8rem;
}
.about-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.about-copy p { margin-top: var(--s-lg); color: var(--c-ink-soft); }

/* ---------- Vision & Mission ---------- */
.vm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-xl);
}
.vm-card {
    background: var(--c-surface);
    border-radius: var(--r-lg);
    padding: var(--s-xl);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: var(--s-lg);
    align-items: flex-start;
}
.vm-icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    background: rgba(26, 160, 216, 0.10);
    color: var(--c-secondary);
}
.vm-icon svg { width: 32px; height: 32px; }
.vm-card h3 { font-size: 1.25rem; }
.vm-card p { margin-top: 10px; color: var(--c-ink-soft); }

/* ---------- Why Us ---------- */
.why {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--s-2xl);
    align-items: center;
    background: var(--c-surface);
    border-radius: var(--r-lg);
    padding: var(--s-2xl);
    box-shadow: var(--shadow-md);
}
.why-mark {
    text-align: center;
    color: var(--c-primary);
}
.why-mark strong {
    font-size: clamp(5rem, 14vw, 9rem);
    line-height: 0.85;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--c-primary);
    background: linear-gradient(180deg, var(--c-primary), var(--c-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}
.why-mark span {
    display: block;
    margin-top: 8px;
    color: var(--c-ink-soft);
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.84rem;
}

/* ---------- Services grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-lg);
    margin-top: var(--s-xl);
}
.service-card {
    background: var(--c-surface);
    padding: var(--s-xl);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    background: rgba(26, 160, 216, 0.10);
    color: var(--c-secondary);
    display: grid;
    place-items: center;
    margin-bottom: var(--s-md);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.05rem; color: var(--c-primary); }
.service-card p { margin-top: 8px; color: var(--c-ink-soft); font-size: 0.92rem; }

/* ---------- Products grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-lg);
    margin-top: var(--s-xl);
}
.product-card {
    background: var(--c-surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-media {
    aspect-ratio: 16/10;
    background: var(--c-paper) center/cover no-repeat;
    border-bottom: 1px solid var(--c-divider);
}
.product-body { padding: var(--s-xl); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { color: var(--c-primary); font-size: 1.1rem; }
.product-body p { color: var(--c-ink-soft); font-size: 0.92rem; line-height: 1.7; flex: 1; }
.product-link {
    align-self: flex-start;
    font-weight: 600;
    color: var(--c-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.product-link::after { content: "→"; transition: transform 0.2s ease; }
[dir="rtl"] .product-link::after { content: "←"; }
.product-card:hover .product-link::after { transform: translateX(4px); }
[dir="rtl"] .product-card:hover .product-link::after { transform: translateX(-4px); }

/* ---------- Projects grid ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-lg);
    margin-top: var(--s-xl);
}
.project-card {
    background: var(--c-surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.project-card.featured { grid-column: span 2; grid-row: span 1; }
.project-media {
    display: block;
    aspect-ratio: 16/10;
    background: var(--c-paper) center/cover no-repeat;
    min-height: 180px;
}
.project-card.featured .project-media { aspect-ratio: 16/9; }
.project-body { padding: var(--s-lg); }
.project-kicker {
    color: var(--c-secondary);
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 600;
}
.project-body h3 { margin-top: 8px; font-size: 1.05rem; color: var(--c-primary); }
.project-body p { margin-top: 8px; color: var(--c-ink-soft); font-size: 0.9rem; }

/* ---------- Contact section ---------- */
.contact-band {
    background: var(--c-primary);
    color: var(--c-surface);
    border-radius: var(--r-lg);
    padding: var(--s-2xl);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--s-xl);
}
.contact-band h2 { color: var(--c-surface); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.contact-band p { margin-top: 12px; color: rgba(255,255,255,0.85); }
.contact-list { margin-top: var(--s-lg); display: grid; gap: 10px; }
.contact-list a, .contact-list span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.92);
}
.contact-list svg { width: 18px; height: 18px; color: var(--c-secondary); }
.locations-list { display: grid; gap: var(--s-md); }
.location-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-md);
    padding: var(--s-lg);
}
.location-card strong { display: block; font-size: 1rem; }
.location-card span { display: block; margin-top: 6px; color: rgba(255,255,255,0.78); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: var(--s-2xl);
    background: var(--c-primary-deep);
    color: rgba(255,255,255,0.78);
    padding: var(--s-2xl) 0 var(--s-lg);
}
.site-footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--s-lg);
}
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-md);
    flex-wrap: wrap;
}
.footer-socials { display: flex; gap: 8px; }
.social-pill {
    width: 40px;
    height: 40px;
    border-radius: var(--r-full);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    display: grid;
    place-items: center;
    color: var(--c-surface);
    transition: 0.2s ease;
}
.social-pill:hover { background: var(--c-secondary); border-color: var(--c-secondary); color: var(--c-surface); transform: translateY(-2px); }
.social-pill svg { width: 18px; height: 18px; }
.footer-copy { font-size: 0.86rem; }
.footer-copy a { color: var(--c-secondary); }

/* ---------- Empty / fallback ---------- */
.empty {
    padding: var(--s-xl);
    border: 1px dashed var(--c-divider);
    border-radius: var(--r-md);
    color: var(--c-ink-soft);
    text-align: center;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Product detail page ---------- */
.product-hero {
    background: var(--c-primary);
    color: var(--c-surface);
    padding: var(--s-2xl) 0;
}
.product-hero h1 { color: var(--c-surface); font-size: clamp(1.8rem, 4vw, 3rem); }
.product-hero p { margin-top: var(--s-md); color: rgba(255,255,255,0.86); max-width: 64ch; }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--s-2xl);
    align-items: start;
    margin-top: var(--s-2xl);
}
.product-detail-image {
    aspect-ratio: 4/3;
    border-radius: var(--r-lg);
    background: var(--c-paper) center/cover no-repeat;
    box-shadow: var(--shadow-md);
}
.product-features {
    list-style: none;
    padding: 0;
    margin: var(--s-md) 0 0;
    display: grid;
    gap: 10px;
}
.product-features li {
    padding-inline-start: 26px;
    position: relative;
    color: var(--c-ink-soft);
}
.product-features li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 12px;
    width: 14px;
    height: 1px;
    background: var(--c-secondary);
}

/* ---------- Project detail ---------- */
.project-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--s-2xl);
    align-items: start;
}
.project-detail-image {
    aspect-ratio: 4/3;
    border-radius: var(--r-lg);
    background: var(--c-paper) center/cover no-repeat;
    box-shadow: var(--shadow-md);
}
.project-gallery {
    display: grid;
    gap: var(--s-md);
}
.project-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
}
.project-gallery-thumb {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--r-sm);
    background: var(--c-paper) center/cover no-repeat;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.project-gallery-thumb span {
    position: absolute;
    inset-inline-start: 8px;
    inset-block-start: 8px;
    width: 24px;
    height: 24px;
    border-radius: var(--r-full);
    background: rgba(11, 31, 63, 0.82);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-family: var(--font-en);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero-inner,
    .about-grid,
    .vm-grid,
    .why,
    .contact-band,
    .product-detail-grid,
    .project-detail-grid {
        grid-template-columns: 1fr;
    }
    .why-mark { order: -1; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card.featured { grid-column: span 2; }
}
@media (max-width: 720px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: var(--r-sm);
        background: var(--c-paper);
    }
    .main-nav { display: none; width: 100%; flex-direction: column; padding-top: var(--s-md); }
    .main-nav.is-open { display: flex; }
    .header-cta { display: none; }
    .hero-stats { grid-template-columns: 1fr; }
    .services-grid,
    .products-grid,
    .projects-grid { grid-template-columns: 1fr; }
    .project-card.featured { grid-column: auto; }
    .top-meta { gap: 12px; }
    .top-strip-inner { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
    .btn:hover, .product-card:hover, .project-card:hover, .service-card:hover { transform: none; }
}
