/* ============================================================
   REAU — Design System v2 "Light Glass"
   Brand palette: REAU logo (orange / blue / red / green)
   ============================================================ */

:root {
    /* Brand */
    --blue: #1470b8;
    --blue-deep: #0e5a94;
    --blue-soft: #e4f0fa;
    --orange: #f7941d;
    --orange-soft: #fdf0dd;
    --red: #e8442f;
    --red-soft: #fce8e4;
    --green: #8dc63f;
    --green-soft: #eef6df;

    /* Neutrals */
    --bg: #ffffff;
    --bg-soft: #f4f8fc;
    --line: #e2ecf4;
    --ink: #0d2f4b;            /* headings / primary text */
    --ink-2: #33566f;          /* body */
    --ink-3: #587188;          /* muted (AA on white + soft bg) */
    --navy: #0c2941;           /* dark sections / footer */
    --navy-2: #0a2236;

    /* Effects */
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-soft: 0 30px 60px -30px rgba(13, 47, 75, 0.18);
    --shadow-card: 0 24px 48px -22px rgba(13, 47, 75, 0.16);
    --shadow-lift: 0 40px 70px -28px rgba(20, 112, 184, 0.28);
    --header-h: 78px;

    /* Type */
    --font-display: "Montserrat", "Inter", sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink-2);
    background:
        radial-gradient(900px 480px at 88% -8%, rgba(20, 112, 184, 0.07), transparent 60%),
        radial-gradient(760px 420px at -6% 24%, rgba(141, 198, 63, 0.07), transparent 55%),
        radial-gradient(680px 400px at 20% 105%, rgba(247, 148, 29, 0.05), transparent 55%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

::selection { background: var(--blue); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #c4d8e8; border-radius: 8px; border: 2px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

:focus-visible {
    outline: 3px solid rgba(20, 112, 184, 0.45);
    outline-offset: 3px;
    border-radius: 4px;
}

.container { width: min(1180px, 100% - 48px); margin: 0 auto; }

/* Scroll-reveal */
.reveal-pending { opacity: 0; transform: translateY(26px); }
.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 640ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 640ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------------- Typography ---------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--blue);
}

/* Four-pane signature: tiny colored rectangles before labels */
.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--orange);
    box-shadow:
        11px 0 0 var(--red),
        22px 0 0 var(--green),
        33px 0 0 var(--blue);
    margin-right: 43px;
    flex: none;
}

.section { padding: clamp(84px, 12vw, 132px) 0; position: relative; }

.section-tint {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 18%, var(--bg-soft) 82%, var(--bg) 100%);
}

/* Tighter vertical rhythm between homepage sections */
.page-home .section { padding: clamp(52px, 6.5vw, 88px) 0; }
.page-home .section-header { margin-bottom: clamp(30px, 4.5vw, 46px); }

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(30px, 4.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.section-lead {
    margin-top: 16px;
    max-width: 660px;
    color: var(--ink-3);
    font-size: 17px;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(40px, 7vw, 64px);
}

.section-header > div { max-width: 760px; }

/* ---------------- Buttons ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
    will-change: transform;
}

.btn i { font-size: 16px; }

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 18px 34px -14px rgba(20, 112, 184, 0.55);
}
.btn-primary:hover {
    background: var(--blue-deep);
    transform: translateY(-3px);
    box-shadow: 0 26px 44px -16px rgba(20, 112, 184, 0.6);
}

.btn-outline {
    border: 1.5px solid #cddcea;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
}
.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.btn-white {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.35);
}
.btn-white:hover { transform: translateY(-3px); background: #f2f7fb; }

.btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-3px); }

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: gap 200ms ease, border-color 200ms ease;
    align-self: flex-start;
    width: fit-content;
}
.btn-link:hover { gap: 16px; border-bottom-color: var(--blue); }

/* ---------------- Logo ---------------- */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex: none;
}

.logo-img {
    width: 47px;
    height: auto;
    flex: none;
    filter: drop-shadow(0 8px 14px rgba(13, 47, 75, 0.18));
}

.logo-word { display: flex; flex-direction: column; gap: 3px; line-height: 1; }

.logo-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: 0.2em;
    color: var(--blue);
}

.logo-tag {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 8.5px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--ink-3);
    white-space: nowrap;
}

/* ---------------- Header ---------------- */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px -18px rgba(13, 47, 75, 0.25);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3.4vw, 34px);
}

.nav-link {
    position: relative;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--ink-2);
    padding: 8px 2px;
    transition: color 180ms ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 2px;
    height: 2.5px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--orange), var(--red), var(--green), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 240ms ease;
}

.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-cta.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta {
    background: var(--blue);
    color: #fff !important;
    padding: 12px 26px;
    border-radius: 999px;
    box-shadow: 0 14px 26px -12px rgba(20, 112, 184, 0.55);
}
.nav-cta:hover { background: var(--blue-deep); }
.nav-cta::after { display: none; }

.nav-quick { display: none; }
.nav-quick > span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.nav-quick .quick-row { display: flex; flex-direction: column; gap: 11px; }

.nav-toggle { display: none; }

/* ---------------- Hero ---------------- */

.hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(44px, 8vw, 92px)) 0 clamp(70px, 9vw, 110px);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(40px, 7vw, 88px);
    align-items: center;
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 5.6vw, 66px);
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: var(--ink);
    animation: rise 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-title .accent {
    color: var(--blue);
    background: linear-gradient(transparent 62%, rgba(20, 112, 184, 0.14) 62%);
    border-radius: 6px;
    padding: 0 6px;
    margin: 0 -6px;
}

.hero-lead {
    max-width: 560px;
    font-size: clamp(16px, 1.8vw, 18.5px);
    color: var(--ink-3);
    animation: rise 800ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    animation: rise 800ms 200ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-visual {
    position: relative;
    animation: rise 900ms 180ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* The "window": thick white frame + glass */
.hero-img {
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 26px;
    overflow: hidden;
    border: 9px solid #fff;
    outline: 1px solid var(--line);
    box-shadow:
        0 60px 90px -40px rgba(13, 47, 75, 0.35),
        0 24px 44px -28px rgba(13, 47, 75, 0.22);
}

.hero-img img { width: 100%; height: clamp(360px, 44vw, 520px); object-fit: cover; }

/* Mullion cross — echoes a 4-pane window */
.hero-img::before,
.hero-img::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 0 0.5px rgba(13, 47, 75, 0.08);
    z-index: 2;
}
.hero-img::before { inset: 0 50% 0 auto; width: 12px; }
.hero-img::after  { inset: 46% 0 auto 0; height: 12px; }

/* Floating glass panes in brand colors */
.hero-panes { position: absolute; inset: 0; pointer-events: none; }

.hpane {
    position: absolute;
    border-radius: 30%;
    backdrop-filter: blur(7px);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    animation: float 7s ease-in-out infinite alternate;
    box-shadow: 0 18px 34px -16px rgba(13, 47, 75, 0.28);
}

.hpane.p-orange {
    width: 54px; height: 88px;
    left: -26px; top: 8%;
    background: rgba(247, 148, 29, 0.4);
}
.hpane.p-blue {
    width: 92px; height: 92px;
    right: -30px; top: 24%;
    background: rgba(20, 112, 184, 0.34);
    animation-delay: 1.4s;
}
.hpane.p-green {
    width: 88px; height: 58px;
    left: 6%; bottom: -34px;
    background: rgba(141, 198, 63, 0.42);
    animation-delay: 2.6s;
}

.hero-badge {
    position: absolute;
    right: 22px;
    bottom: -34px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    padding: 14px 18px;
    animation: float 8s 1s ease-in-out infinite alternate;
}

.hero-badge i {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 13px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 22px;
    flex: none;
}

.hero-badge strong { display: block; font-family: var(--font-display); font-size: 14px; color: var(--ink); }
.hero-badge span { font-size: 12.5px; color: var(--ink-3); }

/* ---------------- Trust strip ---------------- */

.trust { border-block: 1px solid var(--line); background: var(--bg-soft); }

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px;
}

.trust-item + .trust-item { border-left: 1px solid var(--line); }

.trust-item i {
    font-size: 22px;
    flex: none;
}

.trust-item strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.35;
}

.trust-item span { font-size: 12.5px; color: var(--ink-3); }

/* color mapping */
.t-blue i { color: var(--blue); }
.t-orange i { color: var(--orange); }
.t-red i { color: var(--red); }
.t-green i { color: var(--green); }

/* ---------------- Split / features ---------------- */

.split {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(36px, 7vw, 84px);
    align-items: center;
}

.split-media { grid-column: 1 / span 5; position: relative; }

.media-frame {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 7px solid #fff;
    outline: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.media-frame img { height: min(620px, 78vw); width: 100%; object-fit: cover; }

/* Intro HQ photo: show the full 4:3 shot instead of a center-crop */
.media-frame.frame-natural img { height: auto; }

/* Real-photo caption chip on media frames */
.media-cap {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 10px 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink);
    box-shadow: var(--shadow-card);
}

.media-cap i { color: var(--orange); font-size: 14px; }

/* Logo-colored glass corners on media */
.media-accent {
    position: absolute;
    top: -26px;
    right: -26px;
    width: 112px;
    height: 112px;
    border-radius: 28%;
    background: var(--orange);
    opacity: 0.92;
    box-shadow: 0 18px 30px -16px rgba(247, 148, 29, 0.5);
    z-index: 0;
}

.media-accent::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: -44px;
    width: 72px;
    height: 72px;
    border-radius: 40%;
    background: var(--green);
    opacity: 0.85;
    box-shadow: 0 14px 24px -14px rgba(141, 198, 63, 0.55);
}

.split-content { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 22px; }

/* Home intro: bigger photo + tighter column gap on desktop */
@media (min-width: 1081px) {
    :where(.intro) .split { gap: clamp(32px, 4vw, 60px); }
    :where(.intro) .split-media { grid-column: 1 / span 6; }
    :where(.intro) .split-content { grid-column: 7 / span 6; }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 6px;
}

/* Home intro: values sit as a full-width band under the photo + copy split */
.feature-grid.intro-values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(30px, 4.5vw, 46px);
}

@media (max-width: 1080px) {
    .feature-grid.intro-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 28px;
    }
}

@media (max-width: 640px) {
    .feature-grid.intro-values { grid-template-columns: 1fr; }
}

.feature-card {
    --c: var(--blue);
    --c-soft: var(--blue-soft);
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3.5px;
    background: linear-gradient(90deg, var(--c), transparent 78%);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: color-mix(in srgb, var(--c) 35%, #fff);
}

.feature-card i {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 14px;
    font-size: 23px;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, #fff);
}

.feature-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 17.5px; color: var(--ink); }
.feature-card p { font-size: 14.5px; color: var(--ink-3); line-height: 1.65; }

.f-blue { --c: var(--blue); }
.f-orange { --c: var(--orange); }
.f-red { --c: var(--red); }
.f-green { --c: var(--green); }

/* ---------------- Services ---------------- */

.services { background: transparent; }

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

.service-card {
    --c: var(--blue);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }

.card-media { position: relative; height: 250px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.service-card:hover .card-media img { transform: scale(1.06); }

.card-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, #fff));
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 28px 30px;
    flex: 1;
}

.card-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 23px; color: var(--ink); }
.card-body p { color: var(--ink-3); font-size: 15px; }

.card-list { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 8px; }
.card-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }

.card-list li::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 2.5px;
    background: var(--c);
    flex: none;
}

.s-blue { --c: var(--blue); }
.s-orange { --c: var(--orange); }
.s-red { --c: var(--red); }
.s-green { --c: var(--green); }

/* ---------------- Projects preview ---------------- */

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

.project-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #fff;
    border: 1px solid var(--line);
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }

.project-media { position: relative; height: clamp(360px, 52vw, 460px); overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.project-card:hover .project-media img { transform: scale(1.07); }

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(22px, 3vw, 30px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.95) 92%);
}

.project-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.project-tag::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 3px;
    background: var(--tc, var(--blue));
}

.pt-blue { --tc: var(--blue); }
.pt-orange { --tc: var(--orange); }
.pt-red { --tc: var(--red); }
.pt-green { --tc: var(--green); }

.project-info h3 { font-family: var(--font-display); font-weight: 800; font-size: 25px; color: var(--ink); }
.project-info p { font-size: 14px; color: var(--ink-3); margin-top: 3px; }

/* ---------------- Stats band ---------------- */

.stats {
    position: relative;
    background:
        radial-gradient(760px 400px at 90% 0%, rgba(20, 112, 184, 0.55), transparent 60%),
        radial-gradient(620px 360px at 8% 100%, rgba(141, 198, 63, 0.25), transparent 55%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    padding: clamp(64px, 9vw, 100px) 0;
    overflow: hidden;
}

/* Faint window mullion pattern */
.stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 100% 26%,
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 25% 100%;
    pointer-events: none;
    mask-image: radial-gradient(80% 90% at 50% 30%, #000 0%, transparent 85%);
}

.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(24px, 4vw, 40px);
}

.stat {
    padding: clamp(22px, 3vw, 30px) clamp(18px, 2.4vw, 26px);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    transition: transform 240ms ease, background 240ms ease;
}

.stat:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.075); }

.stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 4.6vw, 56px);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-blue .stat-num { color: #58aef2; }
.stat-orange .stat-num { color: var(--orange); }
.stat-red .stat-num { color: #f26d5b; }
.stat-green .stat-num { color: #a5d95c; }

.stat-label {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.66);
}

/* ---------------- CTA ---------------- */

.cta {
    position: relative;
    padding: clamp(90px, 13vw, 150px) 0;
    overflow: hidden;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}

.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; mix-blend-mode: luminosity; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 41, 65, 0.4), rgba(10, 34, 54, 0.9)); }

/* Brand-pane glows */
.cta::before, .cta::after {
    content: "";
    position: absolute;
    border-radius: 28%;
    filter: blur(64px);
    pointer-events: none;
}
.cta::before { width: 340px; height: 340px; left: -130px; top: -110px; background: rgba(247, 148, 29, 0.4); }
.cta::after { width: 420px; height: 300px; right: -140px; bottom: -120px; background: rgba(20, 112, 184, 0.5); }

.cta-content { position: relative; z-index: 2; display: flex; justify-content: center; }
.cta-text { max-width: 820px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }

.cta .eyebrow { color: rgba(255, 255, 255, 0.85); }

.cta-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(34px, 5.4vw, 60px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}

.cta-text p { max-width: 620px; color: rgba(255, 255, 255, 0.72); font-size: 17px; }

.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------------- Footer ---------------- */

.footer {
    position: relative;
    background: var(--navy-2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

/* Large watermark logo panes */
.footer::before {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 300px;
    height: 300px;
    background:
        linear-gradient(45deg, rgba(247, 148, 29, 0.14) 0 46%, transparent 46%) top left / 50% 58% no-repeat border-box,
        linear-gradient(315deg, rgba(20, 112, 184, 0.2) 0 46%, transparent 46%) top right / 50% 58% no-repeat border-box,
        linear-gradient(-45deg, rgba(232, 68, 47, 0.14) 0 46%, transparent 46%) bottom left / 50% 42% no-repeat border-box,
        linear-gradient(135deg, rgba(141, 198, 63, 0.14) 0 46%, transparent 46%) bottom right / 50% 42% no-repeat border-box;
    filter: blur(2px);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 4.5fr 2fr 2.4fr 3fr;
    gap: clamp(32px, 6vw, 60px);
    padding: clamp(60px, 9vw, 84px) 0 clamp(40px, 6vw, 60px);
}

.footer-brand { display: flex; flex-direction: column; gap: 20px; max-width: 380px; }

.footer .logo-name { color: #7cb6e8; }

.footer-brand p { font-size: 14.5px; color: rgba(255, 255, 255, 0.6); }

.footer-social { display: flex; gap: 12px; }

.footer-social a {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    transition: all 200ms ease;
}

.footer-social a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    transform: translateY(-3px);
}

.footer h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer h3::before {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 26px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--orange), var(--red), var(--green), var(--blue));
}

.footer-links ul, .footer-contact ul { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer-links a { color: rgba(255, 255, 255, 0.62); transition: color 180ms ease, padding-left 180ms ease; }
.footer-links a:hover { color: #fff; padding-left: 6px; }

.footer-contact li { display: flex; align-items: center; gap: 14px; }
.footer-contact i { color: var(--blue); font-size: 17px; width: 20px; text-align: center; flex: none; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
    display: flex;
}

.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------------- Scroll-to-top ---------------- */

.to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 18px 34px -14px rgba(20, 112, 184, 0.6);
    opacity: 0;
    transform: translateY(18px) scale(0.9);
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease, background 200ms ease, box-shadow 200ms ease;
}

.to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top.show.is-muted { opacity: 0; transform: translateY(18px) scale(0.9); pointer-events: none; }
.to-top:hover { background: var(--blue-deep); transform: translateY(-4px); box-shadow: 0 24px 40px -14px rgba(20, 112, 184, 0.65); }

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; padding-bottom: 40px; }
    .hero-copy { align-items: center; text-align: center; }
    .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
    .hero-badge { right: 6px; }

    .split-media { grid-column: 1 / -1; max-width: 640px; margin: 0 auto; }
    .split-content { grid-column: 1 / -1; }

    .card-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }

    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2) { border-left: none; }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5.5px;
        width: 44px; height: 44px;
        border-radius: 12px;
        border: 1px solid var(--line);
        background: #fff;
        align-items: center;
        z-index: 60;
    }
    .nav-toggle span {
        width: 20px; height: 2px;
        border-radius: 2px;
        background: var(--ink);
        transition: transform 260ms ease, opacity 200ms ease;
    }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        top: calc(var(--header-h) + 10px);
        left: 14px;
        right: 14px;
        z-index: 55;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: 0 34px 70px -22px rgba(13, 47, 75, 0.35);
        padding: 8px 20px 20px;
        opacity: 0;
        transform: translateY(-14px) scale(0.985);
        visibility: hidden;
        transition: opacity 240ms ease, transform 240ms ease, visibility 0s linear 240ms;
    }
    .nav-menu.active {
        opacity: 1;
        transform: translateY(0) scale(1);
        visibility: visible;
        transition: opacity 240ms ease, transform 240ms ease;
    }

    .nav-item { border-bottom: 1px solid var(--line); }
    .nav-item:last-of-type { border-bottom: 0; }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 14px;
        font-size: 16px;
        border: none;
        border-radius: 14px;
        transition: background 180ms ease, color 180ms ease;
    }
    .nav-link::after { display: none; }
    .nav-link:hover { background: #f3f8fd; color: var(--blue); }
    .nav-link.active { color: var(--blue); background: #eaf4fd; font-weight: 700; }
    .nav-cta.active { color: #fff; background: var(--blue); font-weight: 700; }

    .nav-cta {
        margin: 16px 4px 0;
        width: calc(100% - 8px);
        padding: 16px;
        font-size: 14px;
        text-align: center;
        justify-content: center;
    }

    .nav-quick {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
        padding: 16px 6px 0;
        border-top: 1px solid var(--line);
        font-size: 13.5px;
        font-weight: 600;
        color: var(--ink-3);
    }
    .nav-quick a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
    .nav-quick a i { color: var(--blue); font-size: 16px; }
    .nav-quick a:hover { color: var(--blue); }

    .card-grid, .project-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }

    .hero-panes { display: none; }
    .hero-badge { position: static; margin: 22px auto 0; width: fit-content; justify-content: center; animation: none; }
}

@media (max-width: 640px) {
    .container { width: min(1180px, 100% - 32px); }

    .hero { padding-bottom: 60px; }
    .hero-img img { height: min(64vw, 400px); }
    .hero-img::before { inset: 0 50% 0 auto; width: 9px; }
    .hero-img::after { inset: 46% 0 auto 0; height: 9px; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { border-left: none !important; }
    .trust-item + .trust-item { border-top: 1px solid var(--line); }

    .stats-grid { grid-template-columns: 1fr; }
    .stat { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }

    .to-top { right: 14px; bottom: 16px; width: 46px; height: 46px; font-size: 18px; }

    .hero-actions, .cta-actions { width: 100%; }
    .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { justify-content: center; text-align: center; }
}

/* ---------------- Fabrika & Showroom (reel) ---------------- */

.reel-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 22px;
    margin-top: 42px;
}

.reel-wrap {
    position: relative;
    aspect-ratio: 9 / 13; /* the real clip is vertical (480×854) — frame it like a story card, mild crop */
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
    cursor: pointer;
    background: #0b2237;
}

.reel-wrap video { display: block; width: 100%; height: 100%; object-fit: cover; }

.reel-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(13, 47, 75, 0.12), rgba(13, 47, 75, 0.42));
    transition: opacity 240ms ease;
}

.reel-play i {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: #fff;
    color: var(--blue);
    font-size: 42px;
    padding-left: 5px;
    box-shadow: var(--shadow-lift);
    transition: transform 240ms ease;
}

.reel-wrap:hover .reel-play i { transform: scale(1.08); }

.reel-chip {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    transition: opacity 240ms ease;
}

.reel-chip i { color: var(--orange); font-size: 15px; }

.reel-wrap.playing .reel-play,
.reel-wrap.playing .reel-chip { opacity: 0; }

.reel-wrap.playing:hover .reel-play { opacity: 0.92; }

.reel-photo {
    margin: 0;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
    aspect-ratio: 4 / 3; /* fallback for the stacked (single-column) layout */
}

.reel-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.reel-photo:hover img { transform: scale(1.04); }

/* Desktop: the showroom photo matches the video's height */
@media (min-width: 1081px) {
    .reel-photo { height: 100%; aspect-ratio: auto; }
}

@media (max-width: 1080px) {
    .reel-grid { grid-template-columns: 1fr; margin-top: 34px; }
    .reel-wrap { width: min(100%, 440px); margin-inline: auto; }
    .reel-photo { width: min(100%, 640px); margin-inline: auto; }
    .reel-play i { width: 64px; height: 64px; font-size: 34px; }
}

@media (max-width: 640px) {
    .reel-grid { gap: 16px; margin-top: 28px; }
    .reel-chip { left: 12px; top: 12px; padding: 8px 12px; font-size: 9.5px; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    from { transform: translateY(-7px) rotate(-1.5deg); }
    to { transform: translateY(9px) rotate(2deg); }
}

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