/* ==========================================================================
   LIDYA TRADE — Design System v4 (corporate trade & logistics)
   Deep petrol navy · cool neutrals · brand gold as signal colour
   Type: Geist / Geist Mono
   ========================================================================== */

:root {
    --navy: #0a1f23;
    --navy-2: #0f2a2f;
    --navy-3: #071619;
    --teal: #165151;
    --teal-2: #2b7470;
    --gold: #c9996b;
    --gold-2: #deb58c;

    --bg: #f3f5f4;
    --white: #ffffff;
    --mist: #e8eceb;

    --text: #0f1d20;
    --text-soft: #4d5d60;
    --text-mute: #7d8b8d;
    --line: rgba(15, 29, 32, 0.1);
    --line-strong: rgba(15, 29, 32, 0.2);

    --d-text: #f2f5f4;
    --d-soft: rgba(242, 245, 244, 0.68);
    --d-mute: rgba(242, 245, 244, 0.42);
    --d-line: rgba(242, 245, 244, 0.1);

    --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --container: 1320px;
    --gutter: clamp(20px, 4vw, 56px);
    --section: clamp(96px, 11vw, 168px);
    --nav-h: 80px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

    --z-float: 50;
    --z-nav: 100;
    --z-modal: 200;
}

/* ----- Reset ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--teal); color: var(--white); }

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

/* ----- Type ----- */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--text-mute); }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em { color: var(--d-mute); }
p { text-wrap: pretty; }

.t-hero { font-size: clamp(2.9rem, 6.4vw, 6.6rem); line-height: 0.98; letter-spacing: -0.045em; }
.t-xl { font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -0.04em; }
.t-lg { font-size: clamp(2.1rem, 3.6vw, 3.6rem); }

.label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
}
.label::before { content: ''; width: 8px; height: 8px; background: var(--gold); flex-shrink: 0; }
.on-dark .label { color: var(--gold-2); }

.lede { font-size: clamp(1.05rem, 1.3vw, 1.22rem); line-height: 1.6; color: var(--text-soft); max-width: 48ch; }
.on-dark .lede { color: var(--d-soft); }

/* Word reveal (JS wraps words; text is unchanged) */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0.03em 0.12em; margin: -0.14em -0.03em -0.12em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(120%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
.js [data-split].is-visible .w > span { transform: none; }

/* ----- Buttons ----- */
.btn {
    --bg: var(--navy);
    --fg: var(--white);
    --bg-h: var(--teal);
    --fg-h: var(--white);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 17px 26px;
    border-radius: 2px;
    background: var(--bg);
    color: var(--fg);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.45s var(--ease), transform 0.25s var(--ease);
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bg-h);
    transform: translateY(101%);
    transition: transform 0.55s var(--ease);
}
.btn:hover { color: var(--fg-h); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:disabled { cursor: default; }
.btn--gold { --bg: var(--gold); --fg: var(--navy); --bg-h: var(--white); --fg-h: var(--navy); }
.btn--ghost { --bg: transparent; --fg: var(--white); --bg-h: var(--white); --fg-h: var(--navy); box-shadow: inset 0 0 0 1px rgba(242, 245, 244, 0.3); }

/* ----- Navigation (always on dark, logo stays on dark) ----- */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: var(--z-nav);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--d-line);
    transition: height 0.5s var(--ease), background-color 0.5s;
}
.navbar.scrolled {
    height: 68px;
    background: rgba(10, 31, 35, 0.9);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.nav-logo { display: inline-flex; flex-shrink: 0; position: relative; z-index: 2; }
.brand-logo { height: 38px; width: auto; transition: height 0.5s var(--ease); }
.navbar.scrolled .brand-logo { height: 32px; }

.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav-links a { position: relative; font-size: 0.9rem; color: var(--d-soft); transition: color 0.3s; }
.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -29px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease), bottom 0.5s var(--ease);
}
.navbar.scrolled .nav-links a:not(.nav-cta)::after { bottom: -23px; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-links .nav-cta {
    padding: 11px 20px;
    border-radius: 2px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 500;
    transition: background-color 0.4s var(--ease), color 0.4s;
}
.nav-links .nav-cta:hover, .nav-links .nav-cta.active { background: var(--white); color: var(--navy); }

.hamburger { display: none; position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--d-line); }
.hamburger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--white); transition: transform 0.5s var(--ease), opacity 0.3s; }
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ----- Sections ----- */
.section { position: relative; padding: var(--section) 0; }
.bg-light { background: var(--bg); }
.on-dark { background: var(--navy); color: var(--d-text); }

.grid-lines { position: relative; isolation: isolate; }
.grid-lines::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(242, 245, 244, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(242, 245, 244, 0.045) 1px, transparent 1px);
    background-size: 88px 88px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}

.head {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 28px clamp(40px, 8vw, 128px);
    align-items: end;
    margin-bottom: clamp(48px, 6vw, 88px);
}
.head .label { margin-bottom: 26px; }
.head__aside { color: var(--text-soft); max-width: 46ch; font-size: 1.02rem; }
.on-dark .head__aside { color: var(--d-soft); }
.head--solo { grid-template-columns: minmax(0, 1fr); }

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(ellipse at 75% 30%, #123a40 0%, var(--navy) 55%, var(--navy-3) 100%);
    color: var(--d-text);
    overflow: hidden;
}
.hero__map {
    position: absolute;
    top: 50%;
    right: -8vw;
    width: min(1500px, 96vw);
    aspect-ratio: 225 / 85;
    transform: translateY(-42%);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.25) 36%, #000 62%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.25) 36%, #000 62%);
}
.hero__map img, .hero__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__map img { opacity: 0.42; }
.route { fill: none; stroke: var(--gold); stroke-width: 0.32; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; animation: route 7s var(--ease-io) infinite; }
.route--2 { animation-delay: 0.7s; } .route--3 { animation-delay: 1.4s; } .route--4 { animation-delay: 2.1s; }
.route--5 { animation-delay: 2.8s; } .route--6 { animation-delay: 3.5s; } .route--7 { animation-delay: 4.2s; }
.route--8 { animation-delay: 4.9s; } .route--9 { animation-delay: 5.6s; }
.node { fill: var(--teal-2); }
.node--origin { fill: var(--gold); }
.pulse { fill: none; stroke: var(--gold); stroke-width: 0.25; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease) infinite; }
@keyframes route {
    0% { stroke-dashoffset: 1; opacity: 0; }
    8% { opacity: 1; }
    45% { stroke-dashoffset: 0; opacity: 1; }
    80% { stroke-dashoffset: 0; opacity: 0.9; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(5); opacity: 0; } }

.hero__inner { position: relative; z-index: 1; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 120px; }
.hero__content { max-width: 980px; }
.hero__content .lede { max-width: 44ch; }
.hero__content .label { margin-bottom: 32px; }
.hero__content h1 { margin-bottom: 32px; }
.hero__content .lede { margin-bottom: 44px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 32px;
    width: 1px;
    height: 56px;
    background: var(--d-line);
    overflow: hidden;
}
.hero__scroll::after {
    content: '';
    position: absolute;
    left: 0;
    top: -40%;
    width: 1px;
    height: 40%;
    background: var(--gold);
    animation: scrollCue 2.2s var(--ease-io) infinite;
}
@keyframes scrollCue { to { top: 100%; } }

/* ----- Media ----- */
.ph { position: relative; overflow: hidden; background: var(--mist); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.on-dark .ph { background: var(--navy-2); }

.band { position: relative; height: clamp(360px, 72vh, 760px); overflow: hidden; background: var(--navy); }
.band img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 31, 35, 0.35), rgba(10, 31, 35, 0) 40%, rgba(10, 31, 35, 0.5)); }

/* ----- About ----- */
.about {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 64px clamp(48px, 7vw, 120px);
    align-items: center;
}
.about__media { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.about__media .ph:first-child { grid-column: 1 / 11; grid-row: 1; aspect-ratio: 4 / 5; }
.about__media .ph:nth-child(2) {
    grid-column: 7 / 13;
    grid-row: 1;
    align-self: end;
    aspect-ratio: 1;
    margin-bottom: -56px;
    outline: 10px solid var(--white);
}
.about__stat {
    position: absolute;
    left: 0;
    top: 40px;
    z-index: 2;
    display: grid;
    gap: 6px;
    padding: 26px 30px;
    background: var(--navy);
    color: var(--d-text);
    transform: translateX(-24px);
}
.about__stat-num { font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.05em; color: var(--gold); font-variant-numeric: tabular-nums; }
.about__stat-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-soft); }
.about__content h2 { margin-bottom: 28px; }
.about__body { display: grid; gap: 18px; color: var(--text-soft); margin-bottom: 44px; max-width: 58ch; }
.on-dark .about__body { color: var(--d-soft); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.features li { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: var(--white); font-size: 0.95rem; font-weight: 500; }
.features .ico {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(22, 81, 81, 0.08);
    color: var(--teal);
}
.features svg { width: 20px; height: 20px; }
.on-dark .features { background: var(--d-line); border-color: var(--d-line); }
.on-dark .features li { background: var(--navy); }
.on-dark .features .ico { background: rgba(201, 153, 107, 0.12); color: var(--gold); }

/* ----- Services grid ----- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.svc {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: clamp(28px, 3vw, 44px);
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    background: transparent;
    isolation: isolate;
    transition: color 0.5s var(--ease);
}
.svc::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--navy);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s var(--ease);
}
.svc:hover { color: var(--d-text); }
.svc:hover::before { transform: scaleY(1); }
.svc__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 56px;
    background: rgba(22, 81, 81, 0.08);
    color: var(--teal);
    transition: background-color 0.5s var(--ease), color 0.5s;
}
.svc__icon svg { width: 24px; height: 24px; }
.svc:hover .svc__icon { background: rgba(201, 153, 107, 0.14); color: var(--gold); }
.svc h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); letter-spacing: -0.025em; margin: 0 0 14px; }
.svc p { color: var(--text-soft); font-size: 0.95rem; transition: color 0.5s var(--ease); }
.svc:hover p { color: var(--d-soft); }
.svc-grid--long .svc { min-height: 380px; }

/* ----- Products ----- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.pcard { cursor: pointer; display: flex; flex-direction: column; }
.pcard .ph { aspect-ratio: 4 / 5; }
.pcard .ph img { transition: transform 1.2s var(--ease); }
.pcard:hover .ph img, .pcard:focus-visible .ph img { transform: scale(1.06); }
.pcard__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding-top: 22px; border-top: 2px solid transparent; }
.pcard h3 { font-size: 1.45rem; letter-spacing: -0.025em; }
.pcard p { grid-column: 1; color: var(--text-soft); font-size: 0.92rem; }
.pcard__plus {
    grid-column: 2;
    grid-row: 1;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px var(--line-strong);
    transition: background-color 0.4s var(--ease), color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease);
}
.pcard__plus svg { width: 16px; height: 16px; }
.pcard:hover .pcard__plus { background: var(--gold); color: var(--navy); box-shadow: none; transform: rotate(90deg); }
.pcard .ph::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.pcard:hover .ph::after { transform: scaleX(1); }

/* ----- Why (dark) ----- */
.why-bg { position: relative; overflow: hidden; }
.why-bg__map { position: absolute; right: -10%; bottom: -20%; width: 90%; opacity: 0.12; pointer-events: none; }
.why-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--d-line); border: 1px solid var(--d-line); }
.why-item { padding: clamp(28px, 3vw, 40px); background: var(--navy); transition: background-color 0.5s var(--ease); }
.why-item:hover { background: var(--navy-2); }
.why-item svg { display: block; width: 28px; height: 28px; color: var(--gold); margin-bottom: clamp(48px, 6vw, 88px); }
.why-item h3 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); letter-spacing: -0.025em; margin-bottom: 14px; }
.why-item p { color: var(--d-soft); font-size: 0.94rem; }
.why-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.why-grid--2 .why-item h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.why-grid--2 .why-item p { max-width: 50ch; font-size: 1rem; }
.why-grid--2 .why-item svg { margin-bottom: 48px; }
.why-grid--light { background: var(--line-strong); border-color: var(--line-strong); }
.why-grid--light .why-item { background: var(--bg); color: var(--text); }
.why-grid--light .why-item:hover { background: var(--white); }
.why-grid--light .why-item svg { color: var(--teal); }
.why-grid--light .why-item p { color: var(--text-soft); }

/* ----- Process ----- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.process::before { content: ''; position: absolute; left: 0; right: 0; top: 36px; height: 1px; background: var(--d-line); }
.step { position: relative; }
.step__num {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 40px;
    background: var(--navy);
    box-shadow: inset 0 0 0 1px rgba(201, 153, 107, 0.5);
    font-family: var(--mono);
    font-size: 1.3rem;
    color: var(--gold);
}
.step h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); letter-spacing: -0.025em; margin-bottom: 12px; }
.step p { color: var(--d-soft); font-size: 0.95rem; max-width: 30ch; }

/* ----- CTA band ----- */
.cta { position: relative; overflow: hidden; }
.cta__map { position: absolute; left: 50%; top: 50%; width: min(1400px, 130%); transform: translate(-50%, -50%); opacity: 0.14; pointer-events: none; }
.cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px clamp(40px, 8vw, 120px); align-items: end; }
.cta__side { display: grid; gap: 28px; justify-items: start; }
.cta__side p { color: var(--d-soft); font-size: 1.05rem; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; box-shadow: 0 40px 80px -48px rgba(10, 31, 35, 0.35); }
.contact-info { position: relative; overflow: hidden; padding: clamp(32px, 4vw, 56px); background: var(--navy); color: var(--d-text); }
.contact-info h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 18px; }
.contact-info > p { color: var(--d-soft); margin-bottom: 40px; max-width: 40ch; }
.contact-list { border-top: 1px solid var(--d-line); }
.contact-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--d-line); }
.contact-list .c-ico { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(201, 153, 107, 0.12); color: var(--gold); }
.contact-list .c-ico svg { width: 18px; height: 18px; }
.contact-list .c-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-mute); }
.contact-list .c-value { font-size: 1.15rem; font-weight: 500; color: var(--d-text); transition: color 0.3s; }
.contact-list a.c-value:hover { color: var(--gold); }
.contact-list .c-small { font-size: 0.95rem; color: var(--d-soft); line-height: 1.7; }

.contact-form { padding: clamp(32px, 4vw, 56px); background: var(--white); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.82rem; font-weight: 500; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 0.97rem;
    color: var(--text);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.form-group textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form-group select {
    cursor: pointer;
    padding-right: 40px;
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23165151' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-mute); }
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color: var(--line-strong); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { background-color: var(--white); border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 81, 81, 0.12); }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.btn-submit.is-sent { --bg: var(--teal); }

/* ----- Page hero ----- */
.phero {
    position: relative;
    min-height: min(68vh, 640px);
    display: flex;
    align-items: flex-end;
    padding: calc(var(--nav-h) + 80px) 0 clamp(56px, 7vw, 96px);
    background: var(--navy);
    color: var(--d-text);
    overflow: hidden;
    isolation: isolate;
}
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.phero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 31, 35, 0.95) 0%, rgba(10, 31, 35, 0.78) 50%, rgba(10, 31, 35, 0.45) 100%), linear-gradient(0deg, rgba(10, 31, 35, 0.85), rgba(10, 31, 35, 0) 60%); }
.phero--plain { min-height: min(56vh, 520px); background: radial-gradient(ellipse at 80% 20%, #123a40 0%, var(--navy) 60%); }
.phero--plain::before { display: none; }
.phero__map { position: absolute; right: -10%; top: 50%; width: 80%; transform: translateY(-40%); opacity: 0.35; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
.breadcrumb { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--d-mute); }
.breadcrumb a { color: var(--d-soft); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold); }
.phero h1 { font-size: clamp(2.8rem, 6.4vw, 6.4rem); letter-spacing: -0.045em; line-height: 0.98; max-width: 14ch; }

/* ----- Map ----- */
.map-frame { position: relative; width: 100%; aspect-ratio: 21 / 8; min-height: 380px; overflow: hidden; background: var(--mist); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter 0.6s var(--ease); }
.map-frame:hover iframe { filter: none; }

/* ----- Footer ----- */
.footer { background: var(--navy-3); color: var(--d-soft); padding: clamp(72px, 8vw, 112px) 0 32px; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)) minmax(0, 3fr); gap: 48px; padding-bottom: clamp(56px, 6vw, 88px); }
.footer-brand .brand-logo { height: 40px; margin-bottom: 26px; }
.footer-brand p { max-width: 38ch; font-size: 0.93rem; margin-bottom: 28px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; color: var(--d-text); box-shadow: inset 0 0 0 1px var(--d-line); transition: background-color 0.4s var(--ease), color 0.4s, box-shadow 0.4s; }
.footer-social a:hover { background: var(--gold); color: var(--navy); box-shadow: none; }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 22px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 0.93rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer-newsletter p { font-size: 0.93rem; }
.newsletter-form { display: flex; margin-top: 20px; background: rgba(242, 245, 244, 0.06); box-shadow: inset 0 0 0 1px var(--d-line); transition: box-shadow 0.3s; }
.newsletter-form:focus-within { box-shadow: inset 0 0 0 1px var(--gold); }
.newsletter-form input { flex: 1; min-width: 0; padding: 13px 14px; background: transparent; border: 0; outline: none; color: var(--d-text); font-size: 0.92rem; }
.newsletter-form input::placeholder { color: var(--d-mute); }
.newsletter-form button { padding: 0 16px; background: var(--gold); color: var(--navy); font-size: 0.85rem; font-weight: 500; white-space: nowrap; transition: background-color 0.3s; }
.newsletter-form button:hover { background: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 26px; border-top: 1px solid var(--d-line); font-size: 0.82rem; color: var(--d-mute); }
.footer-bottom-links { display: flex; gap: 28px; }
.footer-bottom a:hover { color: var(--gold); }

/* ----- WhatsApp ----- */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: var(--z-float);
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 18px 36px -16px rgba(10, 31, 35, 0.6);
    transition: transform 0.5s var(--ease), background-color 0.4s;
}
.whatsapp-float svg { width: 22px; height: 22px; }
.whatsapp-float:hover { transform: translateY(-3px); background: var(--white); }

/* ----- Modal ----- */
.modal-backdrop { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 24px; background: rgba(7, 22, 25, 0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s; }
.modal-backdrop.active { opacity: 1; visibility: visible; }
.modal-container { position: relative; width: min(1040px, 100%); max-height: calc(100dvh - 48px); overflow: auto; background: var(--white); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.7); transform: translateY(30px); transition: transform 0.7s var(--ease); }
.modal-backdrop.active .modal-container { transform: none; }
.modal-close-btn { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; background: var(--navy); color: var(--white); font-size: 1.5rem; line-height: 1; transition: background-color 0.3s, transform 0.5s var(--ease); }
.modal-close-btn:hover { background: var(--teal); transform: rotate(90deg); }
.modal-content { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.modal-image { background: var(--mist); }
.modal-image img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.modal-details { padding: clamp(32px, 4.5vw, 56px); display: flex; flex-direction: column; }
.modal-title { font-size: clamp(2.2rem, 3.6vw, 3.2rem); margin-bottom: 18px; }
.modal-description { color: var(--text-soft); margin-bottom: 28px; }
.modal-info-grid { border-top: 1px solid var(--line-strong); margin-bottom: 32px; }
.modal-info-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.modal-info-item h5 { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); padding-top: 3px; }
.modal-info-item p { font-size: 0.95rem; }
.modal-cta-btn { align-self: flex-start; margin-top: auto; }

/* ----- Reveal ----- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-mask { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io); transition-delay: var(--d, 0ms); }
.js .reveal-mask img { transform: scale(1.18); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal-mask.is-visible { clip-path: inset(0 0 0 0); }
.js .reveal-mask.is-visible img { transform: scale(1); }
.js .pcard .reveal-mask.is-visible img { transition: transform 1.2s var(--ease); transition-delay: 0ms; }
.js .pcard:hover .reveal-mask.is-visible img { transform: scale(1.06); }
.js .hero__map { opacity: 0; animation: fadeIn 2s var(--ease) 0.2s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* ----- Responsive ----- */
@media (max-width: 1100px) {
    .head, .about, .cta__inner { grid-template-columns: minmax(0, 1fr); }
    .about__media { max-width: 620px; margin-bottom: 56px; }
    .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
    .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
    .process::before { display: none; }
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    :root { --nav-h: 68px; }
    .hamburger { display: block; }
    .nav-links {
        position: fixed;
        inset: 0;
        z-index: -1;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 0;
        padding: 96px var(--gutter) 48px;
        background: var(--navy);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s var(--ease), visibility 0.5s;
    }
    .nav-links.open { opacity: 1; visibility: visible; }
    .nav-links a, .nav-links .nav-cta {
        padding: 18px 0;
        border-bottom: 1px solid var(--d-line);
        font-size: 1.8rem;
        font-weight: 500;
        letter-spacing: -0.03em;
        color: var(--d-text);
        background: none;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
    }
    .nav-links a::after { display: none; }
    .nav-links a.active, .nav-links .nav-cta.active, .nav-links .nav-cta:hover { color: var(--gold); background: none; }
    .nav-links.open a { opacity: 1; transform: none; }
    .nav-links.open a:nth-child(2) { transition-delay: 0.05s; }
    .nav-links.open a:nth-child(3) { transition-delay: 0.1s; }
    .nav-links.open a:nth-child(4) { transition-delay: 0.15s; }
    .nav-links.open a:nth-child(5) { transition-delay: 0.2s; }
    body.menu-open .navbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

    .hero__map { right: -40vw; width: 180vw; top: auto; bottom: 4%; transform: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); }
    .hero { justify-content: flex-start; min-height: 0; }
    .hero__inner { padding-bottom: min(64vw, 320px); }
    .band { height: clamp(260px, 52vw, 420px); }
    .modal-content { grid-template-columns: minmax(0, 1fr); }
    .modal-image img { aspect-ratio: 16 / 10; }
}

@media (max-width: 640px) {
    .svc-grid, .why-grid, .why-grid--2 { grid-template-columns: minmax(0, 1fr); }
    .svc, .svc-grid--long .svc { min-height: 0; }
    .svc__icon { margin-bottom: 32px; }
    .pgrid { grid-template-columns: minmax(0, 1fr); }
    .pcard .ph { aspect-ratio: 4 / 3; }
    .features { grid-template-columns: minmax(0, 1fr); }
    .process { grid-template-columns: minmax(0, 1fr); }
    .form-row { grid-template-columns: minmax(0, 1fr); }
    .about__stat { transform: none; top: 16px; left: 16px; padding: 18px 20px; }
    .about__media .ph:nth-child(2) { outline-width: 6px; margin-bottom: -32px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-newsletter { grid-column: 1 / -1; }
    .map-frame { aspect-ratio: 4 / 5; }
    .whatsapp-float { right: 16px; bottom: 16px; }
    .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .route { stroke-dashoffset: 0; opacity: 0.8; }
    .js .reveal, .js .reveal-mask, .js .hero__map { opacity: 1; transform: none; clip-path: none; }
    .js [data-split] .w > span { transform: none; }
}

/* ----- Late additions ----- */
.about__media--single .ph:first-child { grid-column: 1 / 13; aspect-ratio: 4 / 5; }
.cta__side p { color: var(--text-soft); }
.on-dark .cta__side p { color: var(--d-soft); }
.bg-light .cta__map { opacity: 0.22; filter: brightness(0.75); }

/* ----- Products on phones: swipeable catalogue with overlaid captions ----- */
@media (max-width: 640px) {
    .pgrid {
        display: flex;
        gap: 12px;
        margin-right: calc(var(--gutter) * -1);
        padding-right: var(--gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 0;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .pgrid::-webkit-scrollbar { display: none; }
    .pcard { position: relative; flex: 0 0 80%; scroll-snap-align: start; }
    .pcard .ph { aspect-ratio: 4 / 5; }
    .pcard__body {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        padding: 96px 20px 22px;
        border-top: 0;
        background: linear-gradient(0deg, rgba(10, 31, 35, 0.94) 0%, rgba(10, 31, 35, 0.72) 45%, rgba(10, 31, 35, 0) 100%);
        color: var(--d-text);
        pointer-events: none;
    }
    .pcard h3 { font-size: 1.5rem; }
    .pcard p { color: var(--d-soft); font-size: 0.9rem; }
    .pcard__plus { background: var(--gold); color: var(--navy); box-shadow: none; }
    .pcard .ph::after { z-index: 2; }
}
