/* =========================================================
   KULASWAMINEE ENGINEERRS — Corporate design system
   (clean white / black corporate layout with a single brand accent)
   ========================================================= */

/* ---------- 1. TOKENS ---------- */

:root {
    /* Brand accent — sampled from the logo. Swap this one value to re-theme. */
    --brand: #0b62d6;
    --brand-dark: #084a9f;
    --brand-tint: #e8f0fc;

    --ink: #111111;
    --text: #3a3a3a;
    --muted: #6d6d6d;
    --line: #e2e2e2;
    --grey: #f4f4f4;
    --white: #ffffff;
    --dark: #0e0e0e;
    --dark-2: #1a1a1a;
    --dark-line: rgba(255, 255, 255, .14);
    --dark-text: #b9b9b9;

    --font: 'Barlow', 'Segoe UI', Roboto, Arial, sans-serif;

    --ease: cubic-bezier(.2, .7, .2, 1);
    --maxw: 1320px;
    --gutter: clamp(16px, 4vw, 48px);
    --section-y: clamp(64px, 9vw, 128px);
    --header-h: 80px;
    --slide-ms: 6500ms;
}

/* ---------- 2. RESET & BASE ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--grey { background: var(--grey); }
.section--dark { background: var(--dark); color: var(--dark-text); }

/* ---------- 3. TYPE ---------- */

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 18px;
}

.kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.kicker--light { color: #fff; }

.h2 {
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--ink);
    max-width: 22ch;
}

.section--dark .h2, .feature .h2 { color: #fff; }

.h3 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 500;
    color: var(--ink);
}

.head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px 64px;
    flex-wrap: wrap;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.head--tight { margin: clamp(56px, 7vw, 88px) 0 28px; align-items: center; }

.head__aside {
    max-width: 44ch;
    color: var(--muted);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color .25s, gap .25s var(--ease);
}

.link-arrow:hover { color: var(--brand); gap: 14px; }

/* ---------- 4. BUTTONS ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 28px;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .03em;
    border: 1px solid transparent;
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.btn svg { font-size: 1.15em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); }

.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- 5. HEADER & MEGA MENU ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}

.site-header.is-stuck { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand__mark { width: 44px; height: 44px; object-fit: contain; }

.brand__text { display: flex; flex-direction: column; line-height: 1.05; }

.brand__name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink);
}

.brand__sub {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--brand);
}

.brand--light .brand__name { color: #fff; }
.brand--light .brand__mark { background: #fff; border-radius: 50%; padding: 3px; }

.nav {
    display: flex;
    align-items: stretch;
    height: 100%;
    margin-left: auto;
}

.nav__item { display: flex; }

.nav__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-inline: 14px;
    font-size: .98rem;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after,
.has-mega:hover > .nav__link::after,
.has-mega:focus-within > .nav__link::after { transform: scaleX(1); }

.nav__caret { font-size: .9rem; transition: transform .3s; }
.has-mega:hover .nav__caret { transform: rotate(180deg); }

.mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 30px 50px rgba(0, 0, 0, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}

.has-mega:hover .mega,
.has-mega:focus-within .mega {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mega__inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 48px;
    padding-block: 44px 52px;
}

.mega__title {
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 24px;
}

.mega__links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    transition: color .25s, padding .3s var(--ease);
}

.mega__links a svg { color: var(--muted); transition: transform .3s var(--ease), color .25s; }
.mega__links a:hover { color: var(--brand); padding-left: 8px; }
.mega__links a:hover svg { color: var(--brand); transform: rotate(45deg); }

.mega__promo { position: relative; overflow: hidden; min-height: 220px; }
.mega__promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega__promo:hover img { transform: scale(1.05); }
.mega__promo span {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 40px 20px 18px;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.header__phone svg { color: var(--brand); font-size: 1.1rem; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform .3s var(--ease), opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. HERO CAROUSEL ---------- */

.hero {
    position: relative;
    height: calc(100svh - var(--header-h));
    min-height: 560px;
    max-height: 920px;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--ease), visibility 1s;
}

.slide.is-active { opacity: 1; visibility: visible; }

.slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}

.slide.is-active .slide__img { transform: scale(1); transition: transform 7.5s ease-out; }

.slide__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 75%),
        linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 40%);
}

.slide__content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: clamp(130px, 17vh, 170px);
}

.slide__content > * {
    opacity: 0;
    transform: translateY(24px);
}

.slide.is-active .slide__content > * {
    opacity: 1;
    transform: none;
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.slide.is-active .slide__content > :nth-child(2) { transition-delay: .12s; }
.slide.is-active .slide__content > :nth-child(3) { transition-delay: .24s; }
.slide.is-active .slide__content > :nth-child(4) { transition-delay: .36s; }

.slide__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.02;
    font-weight: 300;
    letter-spacing: -.02em;
    color: #fff;
    margin-bottom: 20px;
}

.slide__title strong { font-weight: 700; }

.slide__text {
    max-width: 46ch;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255, 255, 255, .85);
    margin-bottom: 30px;
}

.hero__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.hero__bar-inner {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding-bottom: 28px;
}

.hero__tabs {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hero__tab {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-top: 16px;
    text-align: left;
    color: rgba(255, 255, 255, .6);
    transition: color .3s;
}

.hero__tab:hover, .hero__tab.is-active { color: #fff; }

.hero__tab-num { font-size: .8rem; font-weight: 600; letter-spacing: .08em; }
.hero__tab-label { font-size: .95rem; font-weight: 500; }

.hero__tab-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, .28);
    overflow: hidden;
}

.hero__tab-bar i {
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}

.hero__tab.is-active .hero__tab-bar i { animation: tabProgress var(--slide-ms) linear forwards; }
.hero.is-paused .hero__tab.is-active .hero__tab-bar i { animation-play-state: paused; }
.hero.is-static .hero__tab.is-active .hero__tab-bar i { animation: none; transform: scaleX(1); }

@keyframes tabProgress { to { transform: scaleX(1); } }

.hero__pause {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    transition: background-color .25s, color .25s;
}

.hero__pause:hover { background: #fff; color: var(--ink); }
.hero__pause svg { font-size: .9rem; }

/* ---------- 7. WHO WE ARE ---------- */

.statement { max-width: 1100px; }

.statement__text {
    font-size: clamp(1.6rem, 3.3vw, 2.75rem);
    line-height: 1.28;
    font-weight: 300;
    color: var(--ink);
    letter-spacing: -.01em;
}

.statement__text strong { font-weight: 600; color: var(--brand); }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: clamp(48px, 7vw, 88px);
    border-top: 1px solid var(--line);
}

.stat {
    padding: 32px 28px 0 0;
    border-right: 1px solid var(--line);
    margin-right: 28px;
}

.stat:last-child { border-right: 0; margin-right: 0; }

.stat__num {
    display: block;
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
    line-height: 1;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.stat__label { display: block; color: var(--muted); max-width: 22ch; }

/* ---------- 8. WHAT WE DO — TILES ---------- */

.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3.4;
    overflow: hidden;
    text-align: left;
    background: var(--dark);
    color: #fff;
}

.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .78) 100%);
    transition: background-color .4s;
}

.tile:hover img { transform: scale(1.07); }
.tile:hover::after { background-color: rgba(11, 98, 214, .18); }

.tile__body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 6px 16px;
    padding: 26px;
}

.tile__tag {
    grid-column: 1 / -1;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .7);
}

.tile__name {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.2;
    font-weight: 500;
}

.tile__arrow {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}

.tile:hover .tile__arrow {
    background: var(--brand);
    border-color: var(--brand);
    transform: rotate(45deg);
}

/* ---------- 9. PANEL FEATURE ---------- */

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--dark);
    color: var(--dark-text);
}

.feature__media { position: relative; min-height: 520px; overflow: hidden; background: #e9e6e1; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.feature__body {
    padding: clamp(48px, 7vw, 110px) clamp(24px, 6vw, 96px);
    align-self: center;
}

.feature__body > p { margin: 22px 0 32px; max-width: 52ch; }

.panel-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--dark-line);
    border-left: 1px solid var(--dark-line);
    margin-bottom: 36px;
}

.panel-list li {
    padding: 14px 14px;
    border-right: 1px solid var(--dark-line);
    border-bottom: 1px solid var(--dark-line);
    color: #fff;
    font-weight: 500;
    font-size: .95rem;
    transition: background-color .25s;
}

.panel-list li:hover { background: var(--brand); }

/* ---------- 10. LEADERSHIP ---------- */

.leader {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.leader__card img {
    width: 100%;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
    object-position: top;
    background: var(--grey);
}

.leader__card figcaption {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 3px solid var(--brand);
}

.leader__card strong { font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.leader__card span { color: var(--muted); }

.tabs {
    display: flex;
    gap: 36px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}

.tabs__btn {
    position: relative;
    padding: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: color .25s;
}

.tabs__btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform .35s var(--ease);
}

.tabs__btn:hover { color: var(--ink); }
.tabs__btn.is-active { color: var(--ink); }
.tabs__btn.is-active::after { transform: scaleX(1); }

.tabs__panel {
    padding: 32px 0 8px;
    min-height: 210px;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.6;
    font-weight: 300;
    color: var(--ink);
    animation: fadeUp .5s var(--ease);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.values__title {
    margin: 40px 0 18px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.values { display: flex; flex-wrap: wrap; gap: 10px; }

.values li {
    padding: 9px 18px;
    border: 1px solid var(--line);
    font-weight: 500;
    color: var(--ink);
    transition: border-color .25s, color .25s;
}

.values li:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 11. WHY CHOOSE US ---------- */

.why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 40px;
}

.why li {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px 0 44px;
    border-top: 1px solid var(--dark-line);
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    line-height: 1.35;
    color: #fff;
    transition: border-color .3s;
}

.why li:hover { border-top-color: var(--brand); }

.why span {
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--brand);
}

.section--dark .kicker:not(.kicker--light) { color: #fff; }

/* ---------- 12. RAILS (projects & foundation) ---------- */

.rail-nav { display: flex; gap: 10px; }

.rail-btn {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    color: var(--ink);
    font-size: 1.2rem;
    transition: background-color .25s, color .25s, opacity .25s;
}

.rail-btn:hover { background: var(--ink); color: #fff; }
.rail-btn:disabled { opacity: .3; pointer-events: none; }

.rail {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    padding-bottom: 12px;
    scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.card {
    flex: 0 0 clamp(260px, 30vw, 400px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    text-align: left;
    color: var(--ink);
}

.rail--small .card { flex-basis: clamp(220px, 22vw, 300px); }

.card__img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--grey);
    margin-bottom: 18px;
}

.card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s var(--ease);
}

.card:hover .card__img img { transform: scale(1.06); }

.card__meta {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 6px;
}

.card__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 500;
}

.card__title::after {
    content: "→";
    transition: transform .3s var(--ease);
}

.card:hover .card__title::after { transform: translateX(5px); }

/* ---------- 13. ASSOCIATES ---------- */

.assoc {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.assoc__col {
    background: #fff;
    padding: clamp(24px, 3vw, 40px);
    border-top: 3px solid var(--brand);
}

.assoc__col h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 18px;
}

.assoc__col li {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.assoc__col li:last-child { border-bottom: 0; }

/* ---------- 14. FOUNDATION ---------- */

.purpose { padding-bottom: var(--section-y); }

.purpose__hero {
    position: relative;
    min-height: clamp(460px, 72vh, 700px);
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
    background: var(--dark);
}

.purpose__hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.purpose__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .15) 70%);
}

.purpose__content { position: relative; padding-block: 64px; }

.purpose__title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
}

.purpose__title strong { font-weight: 700; }

.purpose__content p { max-width: 52ch; color: rgba(255, 255, 255, .88); }

.purpose__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 6vw, 96px);
    padding-top: var(--section-y);
    align-items: center;
}

.purpose__logo { border: 1px solid var(--line); }
.purpose__logo img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; object-position: center 40%; }

.purpose__text p + p { margin-top: 18px; }

.focus { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.focus li {
    padding: 8px 16px;
    background: #fdf0e4;
    color: #b85c12;
    font-weight: 600;
    font-size: .9rem;
}

/* ---------- 15. CONTACT ---------- */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.contact__lead { margin: 18px 0 36px; color: var(--muted); max-width: 44ch; }

.contact__list > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid #d9d9d9;
}

.contact__list dt {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: start;
    font-weight: 600;
    color: var(--ink);
}

.contact__list dt svg { color: var(--brand); font-size: 1.1rem; }

.contact__list dd { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.contact__list dd a { transition: color .2s; }
.contact__list dd a:hover { color: var(--brand); }

.form {
    background: #fff;
    padding: clamp(28px, 4vw, 52px);
}

.form h3 { font-size: 1.6rem; font-weight: 500; color: var(--ink); margin-bottom: 28px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }

.field { display: block; margin-bottom: 26px; }

.field span {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 10px 0;
    font: inherit;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid #cfcfcf;
    border-radius: 0;
    resize: vertical;
    transition: border-color .25s;
}

.field input:focus,
.field textarea:focus { outline: none; border-bottom: 2px solid var(--brand); }

.form__note { margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* ---------- 16. FOOTER ---------- */

.footer { background: var(--dark); color: var(--dark-text); font-size: .95rem; }

.footer__top {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 40px;
    padding-block: clamp(56px, 7vw, 96px);
}

.footer__brand p { margin: 22px 0 24px; max-width: 36ch; }

.social { display: flex; gap: 10px; }

.social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--dark-line);
    border-radius: 50%;
    color: #fff;
    font-size: 1.05rem;
    transition: background-color .25s, border-color .25s;
}

.social a:hover { background: var(--brand); border-color: var(--brand); }

.footer__col { display: flex; flex-direction: column; gap: 10px; }

.footer__col h4 {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
}

.footer__col a { width: fit-content; transition: color .2s; overflow-wrap: anywhere; }
.footer__col a:hover { color: #fff; }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-block: 24px;
    border-top: 1px solid var(--dark-line);
    font-size: .88rem;
}

.footer__bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__bottom a:hover { color: #fff; }

/* ---------- 17. FLOATING BUTTONS ---------- */

.float-stack {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fab {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
    transition: transform .25s var(--ease), opacity .25s, visibility .25s;
}

.fab:hover { transform: translateY(-3px); }
.fab--wa { background: #25d366; font-size: 1.6rem; }
.fab--top { background: var(--ink); opacity: 0; visibility: hidden; }
.fab--top.is-visible { opacity: 1; visibility: visible; }

/* ---------- 18. SERVICE DRAWER ---------- */

.drawer {
    margin: 0 0 0 auto;
    width: min(600px, 100%);
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
    padding: 0;
    background: #fff;
    color: var(--text);
    overflow-y: auto;
}

.drawer::backdrop { background: rgba(0, 0, 0, .55); }

.drawer[open] { animation: drawerIn .45s var(--ease); }

@keyframes drawerIn {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.drawer__panel { padding: clamp(28px, 5vw, 56px); padding-top: 72px; }

.drawer__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--ink);
    transition: background-color .25s, color .25s;
}

.drawer__close:hover { background: var(--ink); color: #fff; }

.drawer__content h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 16px;
}

.drawer__content p { color: var(--muted); margin-bottom: 24px; }

.drawer__content ul { margin-bottom: 36px; border-top: 1px solid var(--line); }

.drawer__content li {
    position: relative;
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.drawer__content li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 21px;
    width: 12px;
    height: 2px;
    background: var(--brand);
}

/* ---------- 19. LIGHTBOX ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 70px 72px;
    background: rgba(0, 0, 0, .92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox figure { max-width: 100%; }

.lightbox img {
    max-width: min(1200px, 100%);
    max-height: calc(100svh - 160px);
    margin-inline: auto;
    object-fit: contain;
}

.lightbox__caption { margin-top: 14px; text-align: center; color: #ddd; }

.lightbox__btn {
    position: absolute;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    transition: background-color .25s, color .25s;
}

.lightbox__btn:hover { background: #fff; color: var(--ink); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- 20. SCROLL REVEAL ---------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--delay, 0ms);
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 21. RESPONSIVE ---------- */

@media (max-width: 1180px) {
    .header__phone span { display: none; }
    .nav__link { padding-inline: 10px; }
    .nav__link::after { left: 10px; right: 10px; }
    .footer__top { grid-template-columns: repeat(3, 1fr); }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
    :root { --header-h: 68px; }

    .nav-toggle { display: flex; }
    .header__cta { display: none; }
    .header__actions { margin-left: auto; gap: 8px; }
    .header__phone { width: 44px; height: 44px; justify-content: center; }
    .header__phone svg { font-size: 1.3rem; }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 12px var(--gutter) 40px;
        background: #fff;
        overflow-y: auto;
        opacity: 0;
        transform: translateY(-12px);
        visibility: hidden;
        transition: opacity .3s, transform .4s var(--ease), visibility .3s;
    }

    .nav.is-open { opacity: 1; transform: none; visibility: visible; }

    .nav__item { display: block; }

    .nav__link {
        padding: 18px 0;
        font-size: 1.3rem;
        border-bottom: 1px solid var(--line);
    }

    .nav__link::after { display: none; }
    .nav__caret, .mega { display: none; }

    .tiles { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; margin-right: 0; }
    .stat:nth-child(n + 3) { margin-top: 32px; border-top: 1px solid var(--line); }

    .feature { grid-template-columns: 1fr; }
    .feature__media { min-height: 0; aspect-ratio: 4 / 3; }

    .why { grid-template-columns: repeat(2, 1fr); }
    .assoc { grid-template-columns: 1fr; }
    .leader, .purpose__grid, .contact { grid-template-columns: 1fr; }
    .leader__card { max-width: 440px; }

    .hero__tab-label { display: none; }
    .hero__tabs { gap: 10px; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }

    .brand__name { font-size: 1rem; }
    .brand__sub { font-size: .64rem; letter-spacing: .34em; }
    .brand__mark { width: 38px; height: 38px; }

    .hero { min-height: 540px; }
    .slide__content { padding-bottom: 104px; }
    .slide__shade { background: linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .35) 70%, rgba(0, 0, 0, .2) 100%); }
    .hero__bar-inner { padding-bottom: 22px; }

    .tiles { grid-template-columns: 1fr; }
    .tile { aspect-ratio: 4 / 3; }

    .stats { grid-template-columns: 1fr; }
    .stat { border-right: 0; margin-right: 0; padding-right: 0; }
    .stat + .stat { margin-top: 0; border-top: 1px solid var(--line); padding-bottom: 28px; }
    .stat:first-child { padding-bottom: 28px; }

    .panel-list { grid-template-columns: repeat(2, 1fr); }
    .why { grid-template-columns: 1fr; }
    .why li { padding-bottom: 32px; }

    .form__row { grid-template-columns: 1fr; }
    .contact__list > div { grid-template-columns: 1fr; gap: 6px; }

    .footer__top { grid-template-columns: 1fr 1fr; }

    .lightbox { padding: 70px 12px; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
    .lightbox__prev { left: calc(50% - 60px); }
    .lightbox__next { right: calc(50% - 60px); }

    .rail-btn { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
