/* ==========================================================================
   TZD Global — site design system (self-contained, no legacy theme deps)
   ========================================================================== */

:root {
    --color-primary: #2b579a;
    --color-primary-dark: #0f1a3a;
    --color-accent: #f0a63d;
    --color-text: #1c2430;
    --color-muted: #626b7a;
    --color-border: #e6e9f0;
    --color-bg: #ffffff;
    --color-bg-alt: #f6f8fb;
    --shadow-sm: 0 1px 3px rgba(15, 26, 58, .1);
    --shadow-md: 0 6px 18px rgba(15, 26, 58, .16);
    --shadow-lg: 0 14px 36px rgba(15, 26, 58, .22);
    --radius: 2px;
    --container: 1180px;
    --ease: cubic-bezier(.22, .68, 0, 1);
    --nav-h: 64px;
    --nav-w: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body.tzd {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
.tzd h1, .tzd h2, .tzd h3, .tzd h4 {
    font-family: 'Oswald', 'Exo', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    line-height: 1.2;
    margin: 0;
    color: var(--color-primary-dark);
}
.tzd a { text-decoration: none; color: inherit; }
.tzd img { max-width: 100%; display: block; }
.tzd ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; width: 100%; min-width: 0; }

.eyebrow {
    display: inline-block;
    position: relative;
    padding-left: 36px;
    max-width: 100%;
    font-family: 'Oswald', sans-serif;
    font-size: 12.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--color-primary);
}
.eyebrow::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 2px; background: var(--color-accent); }

/* ------------------------------------------------------------------ Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 30px;
    font-family: 'Exo', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .4px; text-transform: uppercase;
    border-radius: 0; border: 2px solid transparent; cursor: pointer;
    transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out, box-shadow .2s ease-out;
}
.btn:hover { transform: none; }
.btn-primary { background: var(--color-accent); color: var(--color-primary-dark); box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.btn-primary:hover { background: #fff; color: var(--color-primary-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline:hover { background: #fff; border-color: #fff; color: var(--color-primary-dark); }
.btn-dark { background: var(--color-primary-dark); color: #fff; }
.btn-dark:hover { background: var(--color-primary); }

/* ---------------------------------------------------------------------- Nav
   A slim fixed rail on the left (desktop/tablet) holding just the logo and
   a menu trigger. The full link list — including the services sub-items —
   lives in the single off-canvas overlay (.mobile-menu) at every screen
   size, opened by that trigger. Below 900px the rail becomes a slim top
   bar instead, since a fixed left column is too wide on a phone screen. */
.nav {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 500;
    width: var(--nav-w);
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    background: #007bff;
    box-shadow: var(--shadow-sm);
}
.nav .container { display: flex; flex-direction: column; align-items: center; width: auto; max-width: none; height: 100%; padding: 22px 0; margin: 0; }
.nav-logo img { height: 32px; width: auto; }
.nav-links, .nav-cta { display: none; }
.dropdown, .dropdown-menu { display: none; }

.nav-toggle {
    display: flex; align-items: center; justify-content: center;
    margin-top: auto; margin-bottom: auto;
    background: none; border: none; cursor: pointer; padding: 14px 8px;
}
.nav-toggle span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
    color: #fff;
}

.mobile-menu {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(400px, 88vw); z-index: 600; background: #007bff;
    display: flex; flex-direction: column; padding: 26px 28px 40px;
    overflow-y: auto; box-shadow: 30px 0 60px rgba(0,0,0,.35);
    transform: translateX(-100%); transition: transform .4s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a { display: block; padding: 12px 0; font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 500; text-transform: uppercase; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu-logo { display: block; border-bottom: none !important; padding: 0 0 30px !important; }
.mobile-menu-logo img { height: 30px; width: auto; }

/* Expandable rows (Services / Documents): clicking anywhere on the row
   (label or chevron) toggles its submenu open/closed. "All Services" /
   the four document links live inside the submenu itself. On a
   hover-capable pointer (desktop/trackpad), just hovering the row also
   reveals the submenu, without needing a click. */
.mobile-row { display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-row > a, .mobile-row > .mobile-row-btn { flex: 1; border-bottom: none; padding: 12px 0; }
.mobile-row-btn { display: block; background: none; border: none; text-align: left; cursor: pointer; font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 500; text-transform: uppercase; color: #fff; }
.mobile-toggle {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-left: 6px;
    background: none; border: none; color: #fff; opacity: .7; cursor: pointer;
    transition: transform .3s var(--ease);
}
.mobile-toggle.is-open { transform: rotate(180deg); }
.mobile-sub { display: none; padding-bottom: 4px; }
.mobile-sub.is-open { display: block; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu .mobile-sub a { font-size: 15px; opacity: .75; padding: 9px 0 9px 18px; border-bottom: none; }
.mobile-menu .mobile-sub a svg { vertical-align: -2px; margin-left: 4px; opacity: .7; }

@media (hover: hover) and (pointer: fine) {
    .mobile-item:hover .mobile-sub { display: block; border-bottom: 1px solid rgba(255,255,255,.1); }
    .mobile-item:hover .mobile-toggle { transform: rotate(180deg); }
}
.mobile-close { position: absolute; top: 26px; right: 24px; background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; }

@media (max-width: 900px) {
    .nav {
        top: 0; left: 0; right: 0; bottom: auto; z-index: 500;
        width: auto; height: var(--nav-h);
        flex-direction: row;
    }
    .nav .container { flex-direction: row; justify-content: space-between; height: auto; padding: 0 20px; max-width: none; }
    .nav-toggle { margin: 0; padding: 10px; }
    .nav-toggle span { writing-mode: horizontal-tb; transform: none; font-size: 13px; letter-spacing: 1px; }
}

/* --------------------------------------------------------- Horizontal scroll
   Every direct child of #panels becomes one full-screen "slide". The JS
   pages between them (one wheel-tick / swipe / arrow-key = one slide) and
   never lets two slides be visible at once. Mobile falls back to normal
   vertical scrolling. */
#panels {
    display: flex;
    height: 100vh;
    overflow: hidden;
}
#panels > * {
    flex: 0 0 100vw;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-left: var(--nav-w);
    scrollbar-width: thin;
}
.tzd.has-panels { overflow: hidden; }
/* Top-aligned, not centered: centered flex content that overflows 100vh
   becomes unreachable (no browser lets you scroll "above" centered
   overflow), silently hiding whatever came first in the slide. Top-align
   plus vertical auto-margins gives the same centered *look* for short
   content while guaranteeing tall content is always fully scrollable. */
.panel-inner { padding: 40px 0; min-height: 100vh; width: 100%; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; }
.panel-inner > *:first-child { margin-top: auto; }
.panel-inner > *:last-child { margin-bottom: auto; }
.panel-inner > * { min-width: 0; }
.panel-inner.top { padding-top: 40px; }
.panel-inner.top > *:first-child { margin-top: 0; }

.scroll-hint {
    position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 400;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 16px; background: rgba(15,26,58,.8);
    border-radius: 0; color: #fff;
    font-family: 'Oswald', sans-serif; font-size: 11.5px; font-weight: 500; letter-spacing: .8px; text-transform: uppercase;
    opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.scroll-hint.is-visible { opacity: 1; }
.scroll-hint svg { animation: hint-arrow 1.6s ease-in-out infinite; }
@keyframes hint-arrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

@media (max-width: 900px) {
    #panels { display: block; height: auto; overflow: visible; }
    #panels > * { width: auto; max-width: none; height: auto; overflow: visible; padding-left: 0; padding-top: calc(var(--nav-h) + 20px); }
    .tzd.has-panels { overflow: visible; }
    .scroll-hint { display: none; }
    .panel-inner { min-height: 0; padding: 40px 0; }
}

/* ---------------------------------------------------------------------- Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
}
.hero-slide:nth-child(1) { animation-delay: 0s, 0s; }
.hero-slide:nth-child(2) { animation-delay: 3s, 3s; }
.hero-slide:nth-child(3) { animation-delay: 6s, 6s; }
.hero-slide:nth-child(4) { animation-delay: 9s, 9s; }
.hero-slide:nth-child(5) { animation-delay: 12s, 12s; }
@keyframes hero-fade { 0% {opacity:0;} 3% {opacity:1;} 20% {opacity:1;} 23% {opacity:0;} 100% {opacity:0;} }
@keyframes hero-zoom { 0% {transform:scale(1);} 100% {transform:scale(1.14);} }

/* Homepage hero: each image slides in from the right and pushes out to
   the left, like the reference video, instead of a plain crossfade. */
@keyframes hero-slide-img {
    0%   { opacity: 1; transform: translateX(120%) scale(1.08); }
    3%   { opacity: 1; transform: translateX(0%) scale(1.08); }
    20%  { opacity: 1; transform: translateX(0%) scale(1.14); }
    23%  { opacity: 1; transform: translateX(-120%) scale(1.14); }
    100% { opacity: 1; transform: translateX(-120%) scale(1.14); }
}
.hero .hero-slide {
    opacity: 1; transform: translateX(120%);
    animation-name: hero-slide-img; animation-duration: 15s; animation-iteration-count: infinite;
    animation-timing-function: ease-in-out; animation-fill-mode: backwards;
}
/* Page hero (subpages, often just 1-2 images): keep the simple crossfade —
   a slide transition would leave a blank gap on single-image pages. */
.page-hero .hero-slide { opacity: 0; animation-name: hero-fade, hero-zoom; animation-duration: 20s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }

/* Label stack that crossfades in lockstep with the hero image behind it —
   previous/next titles shown small and muted above/below the current one,
   exactly like the reference video's scene titles. */
.hero-labels { position: relative; z-index: 2; height: 260px; }
.hero-label {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 16px;
    opacity: 0; animation: hero-fade 15s infinite; animation-timing-function: ease-in-out;
}
.hero-label:nth-child(1) { animation-delay: 0s; }
.hero-label:nth-child(2) { animation-delay: 3s; }
.hero-label:nth-child(3) { animation-delay: 6s; }
.hero-label:nth-child(4) { animation-delay: 9s; }
.hero-label:nth-child(5) { animation-delay: 12s; }
.label-line {
    font-family: 'Oswald', sans-serif; text-transform: uppercase; color: #fff;
    letter-spacing: 1px; line-height: 1.15;
}
.label-prev, .label-next { font-size: clamp(16px, 1.8vw, 22px); font-weight: 400; opacity: .55; }
.label-current { font-size: clamp(38px, 6vw, 72px); font-weight: 600; opacity: 1; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.label-prev, .label-next { text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hero::before { content:''; position:absolute; inset:0; background: linear-gradient(115deg, rgba(9,15,36,.55) 0%, rgba(15,26,58,.4) 42%, rgba(15,26,58,.18) 100%); z-index:1; }
.hero-content { position: relative; z-index: 2; max-width: 680px; min-width: 0; }
.hero-title { font-size: clamp(36px, 5.6vw, 62px); margin: 22px 0 20px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hero-title .accent { color: var(--color-accent); }
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,.85); max-width: 540px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.page-hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.page-hero::before { content:''; position:absolute; inset:0; background: linear-gradient(115deg, rgba(9,15,36,.55) 0%, rgba(15,26,58,.38) 55%, rgba(15,26,58,.15) 100%); z-index:1; }
.page-hero-content { position: relative; z-index: 2; max-width: 720px; }
.page-hero-content h1 { color: #fff; font-size: clamp(30px, 4.2vw, 46px); margin: 16px 0 0; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.page-hero-content p { color: rgba(255,255,255,.82); font-size: 16.5px; margin-top: 16px; max-width: 560px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,.65); margin-top: 14px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--color-accent); }

/* --------------------------------------------------------------------- Stats */
.stats { position: relative; z-index: 2; background: #fff; border-radius: 0; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 20px 16px; text-align: center; border-right: 1px solid var(--color-border); }
.stat:last-child { border-right: none; }
.stat-number { font-family: 'Oswald', sans-serif; font-size: 34px; font-weight: 600; color: var(--color-primary); }
.stat-label { font-size: 13px; color: var(--color-muted); margin-top: 6px; }

/* ------------------------------------------------------------------- Section */
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-primary-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin-top: 10px; }
.section-head p { color: var(--color-muted); font-size: 15px; margin-top: 10px; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

.grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 36px; align-items: center; width: 100%; }

/* ------------------------------------------------------------------- Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; width: 100%; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: 0; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .3s ease-out; }
.card:hover { box-shadow: var(--shadow-md); }
.card-media { height: 150px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(70%); transition: filter .4s ease-out, transform .6s var(--ease); }
.card:hover .card-media img { filter: grayscale(0%); transform: scale(1.05); }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-body .card-eyebrow { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #8792ab; margin: 0 0 6px; }
.card-body h3, .card-body h4 { font-size: 16px; margin-bottom: 8px; text-transform: none; }
.card-body p { color: var(--color-muted); font-size: 13.5px; line-height: 1.55; margin: 0 0 10px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; font-family: 'Oswald', sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--color-primary); margin-top: auto; }
.card-link:hover { gap: 12px; }

/* -------------------------------------------------------------- Feature row */
.feature { display: flex; align-items: center; gap: 40px; width: 100%; }
.feature-text { flex: 1 1 0; min-width: 0; max-width: 460px; }
.feature-icon { width: 44px; height: 44px; border-radius: 0; background: rgba(43,87,154,.1); display: flex; align-items: center; justify-content: center; color: var(--color-primary); margin-bottom: 12px; }
.feature-text h3 { font-size: 21px; margin-bottom: 8px; }
.feature-text p { font-size: 14.5px; line-height: 1.6; color: var(--color-muted); }
.feature-image { flex: 1 1 0; min-width: 0; height: 260px; border-radius: 0; overflow: hidden; background-size: cover; background-position: center; filter: grayscale(35%); }
.section-dark .feature-text p { color: rgba(255,255,255,.72); }

/* ---------------------------------------------------------------- Value list */
.values { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; width: 100%; }
.value-icon { width: 44px; height: 44px; border-radius: 0; background: rgba(43,87,154,.1); display: flex; align-items: center; justify-content: center; color: var(--color-primary); margin-bottom: 12px; }
.value h4 { font-size: 15px; margin-bottom: 6px; text-transform: none; font-family: 'Exo', sans-serif; font-weight: 700; }
.value p { font-size: 13.5px; line-height: 1.5; margin: 0; color: var(--color-muted); }
.section-dark .value h4 { color: #fff; }
.section-dark .value p { color: rgba(255,255,255,.7); }

/* ------------------------------------------------------------------- Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; width: 100%; }
.gallery-item { aspect-ratio: 3/4; border-radius: 0; overflow: hidden; }
.gallery-item:nth-child(2), .gallery-item:nth-child(4) { aspect-ratio: 3/5; margin-top: -30px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(60%); transition: filter .4s ease-out, transform .6s var(--ease); }
.gallery-item:hover img { filter: grayscale(0%); transform: scale(1.05); }

/* ----------------------------------------------------------------------- CTA */
.cta { position: relative; border-radius: 0; overflow: hidden; padding: 34px 40px; background: var(--color-primary-dark); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.8); margin: 0; }
.cta-contact { color: rgba(255,255,255,.85); font-size: 13.5px; margin-top: 10px; }

/* -------------------------------------------------------------------- Footer */
.footer { background: var(--color-primary-dark); color: rgba(255,255,255,.65); padding: 36px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo img { height: 26px; margin-bottom: 10px; }
.footer h5 { color: #fff; font-family: 'Oswald', sans-serif; font-size: 12.5px; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 10px; }
.footer ul li { margin-bottom: 6px; }
.footer a { font-size: 13.5px; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; font-size: 12.5px; flex-wrap: wrap; gap: 12px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 32px; height: 32px; border-radius: 0; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.footer-socials a:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-primary-dark); }

/* ------------------------------------------------------------------- Prose */
.prose { max-width: 760px; }
.prose h4 { font-size: 17px; margin: 20px 0 8px; color: var(--color-primary-dark); }
.prose h4:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--color-muted); font-size: 14px; line-height: 1.6; }
.prose ul { padding-left: 20px; margin: 8px 0; }
.prose li { list-style: disc; margin-bottom: 6px; }
.prose a { color: var(--color-primary); font-weight: 600; text-decoration: underline; }

/* -------------------------------------------------------------------- Form */
.form-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; width: 100%; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--color-primary-dark); margin-bottom: 5px; }
.field label span { color: var(--color-accent); }
.field input, .field select, .field textarea {
    width: 100%; padding: 9px 13px; font-family: 'Exo', sans-serif; font-size: 14px; color: var(--color-text);
    background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 0;
    transition: border-color .2s ease-out, background-color .2s ease-out;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 3px rgba(43,87,154,.12); }
.field textarea { resize: vertical; min-height: 60px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--color-muted); margin-bottom: 16px; }
.checkbox input { width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; }

/* Contact page layout: info + stacked contact cards on the left, the
   actual form set apart in its own elevated card on the right — not a
   single flat wall of fields. */
.contact-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; width: 100%; margin-top: 14px; }
.contact-cards-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.contact-card { background: var(--color-bg-alt); border-radius: 0; padding: 14px 18px; border-left: 3px solid var(--color-primary); }
.contact-card h4 { font-size: 14px; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 13.5px; color: var(--color-muted); }
.contact-card a:hover { color: var(--color-primary); }
.form-card { background: #fff; border: 1px solid var(--color-border); box-shadow: var(--shadow-md); padding: 28px 34px; }
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; gap: 30px; }
    .form-card { padding: 28px 22px; }
}

/* --------------------------------------------------------------- Reveal ---- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .33s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
    .hero .hero-slide, .page-hero .hero-slide { animation: hero-fade 15s infinite; }
}

/* -------------------------------------------------------------- Responsive */
/* This breakpoint matches #panels' own 900px fallback exactly (see above) —
   keeping them in lockstep avoids a "dead zone" where content collapses to
   a single column while the site is still in fixed-height desktop panel
   mode, which made tall stacked content overflow its 100vh slide. */
@media (max-width: 900px) {
    .stats { grid-template-columns: repeat(2,1fr); }
    .stat:nth-child(2) { border-right: none; }
    .grid-2 { grid-template-columns: 1fr; gap: 30px; }
    .cards { grid-template-columns: 1fr; }
    .values { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .feature { flex-direction: column; }
    .feature-text { max-width: none; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta { padding: 32px 22px; }
}
