/* ==========================================================================
   Silque Construction Ltd - main stylesheet
    1. Tokens            8. Stats & marquee     15. Contact & map
    2. Reset & base      9. Services            16. Footer & back-to-top
    3. Layout           10. About & values      17. Lightbox
    4. Components       11. Process             18. Cursor
    5. Preloader        12. Projects            19. Motion
    6. Header & nav     13. Testimonials & CTA  20. Responsive
    7. Hero             14. FAQ
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
    /* Silque brand: navy + royal blue (booklet & letterhead), gold highlight (portfolio) */
    --accent: #2d62b6;
    --accent-strong: #1f4f9c;
    --accent-light: #84acee;
    --accent-soft: rgba(45, 98, 182, 0.1);
    --on-accent: #ffffff;
    --gold: #e2ae4a;
    --danger: #e5484d;

    --ink-900: #0e1b31;
    --ink-800: #15253f;
    --ink-700: #1d3152;
    --text: #1a2438;
    --muted: #5a6478;
    --surface: #ffffff;
    --surface-alt: #f2f5fa;
    --line: rgba(14, 27, 49, 0.08);
    --line-strong: rgba(14, 27, 49, 0.12);
    --tint: rgba(14, 27, 49, 0.06);
    --heading: #0e1b31;
    --band: #0e1b31;
    --accent-ink: #1f4f9c;
    --glass: rgba(255, 255, 255, 0.92);
    --inverse-bg: #0e1b31;
    --inverse-fg: #ffffff;
    --gold-ink: #8a5a00;
    --white: #ffffff;

    --font-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

    --max-w: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section-y: clamp(4.5rem, 10vw, 8rem);
    --header-h: 76px;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;

    --shadow-sm: 0 2px 10px rgba(14, 27, 49, 0.05);
    --shadow: 0 12px 40px rgba(14, 27, 49, 0.08);
    --shadow-lg: 0 30px 70px rgba(14, 27, 49, 0.18);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur: 0.35s;
}

/* Dark theme: chosen via the header toggle (data-theme), else follows the OS */
:root[data-theme='dark'] {
    --surface: #0b1528;
    --surface-alt: #101e36;
    --text: #cfd8e8;
    --muted: #98a4ba;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --tint: rgba(255, 255, 255, 0.07);
    --heading: #f2f6fc;
    --band: #060d1a;
    --accent-ink: #84acee;
    --accent-soft: rgba(84, 140, 228, 0.16);
    --glass: rgba(16, 30, 54, 0.88);
    --inverse-bg: #f2f6fc;
    --inverse-fg: #0e1b31;
    --gold-ink: #f0c36d;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --surface: #0b1528;
        --surface-alt: #101e36;
        --text: #cfd8e8;
        --muted: #98a4ba;
        --line: rgba(255, 255, 255, 0.08);
        --line-strong: rgba(255, 255, 255, 0.16);
        --tint: rgba(255, 255, 255, 0.07);
        --heading: #f2f6fc;
        --band: #060d1a;
        --accent-ink: #84acee;
        --accent-soft: rgba(84, 140, 228, 0.16);
        --glass: rgba(16, 30, 54, 0.88);
        --inverse-bg: #f2f6fc;
        --inverse-fg: #0e1b31;
    --gold-ink: #f0c36d;
        --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
        --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
        color-scheme: dark;
    }
}

/* Smooth cross-fade while switching themes (class added briefly from JS) */
.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
    transition:
        background-color 0.5s ease,
        border-color 0.5s ease,
        color 0.5s ease,
        fill 0.5s ease,
        box-shadow 0.5s ease !important;
}

/* 2. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Slide-in reveals start off-canvas; clip them so phones never get a wider layout viewport.
   `clip` (unlike `hidden`) doesn't create a scroll container, so sticky elements keep working. */
main,
.site-footer {
    overflow-x: clip;
}

body.nav-open,
body.lightbox-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

ul,
ol {
    list-style: none;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

input,
select,
textarea {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--heading);
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--accent);
    color: var(--on-accent);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 999;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transform: translateY(-200%);
    transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus {
    transform: translateY(0);
}

.text-accent {
    color: var(--accent-light);
}

.link {
    color: var(--accent-ink);
    font-weight: 600;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
    transition: background-size 0.4s var(--ease-out);
}

.link:hover {
    background-size: 100% 2px;
}

/* 3. Layout
   ========================================================================== */
.container {
    width: min(100% - 2 * var(--gutter), var(--max-w));
    margin-inline: auto;
}

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

.section--alt {
    background: var(--surface-alt);
}

.section--dark {
    background: var(--band);
    color: rgba(255, 255, 255, 0.72);
}

.section--dark h2,
.section--dark h3 {
    color: var(--white);
}

.section-head {
    max-width: 640px;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-head p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.075rem;
}

.section--dark .section-head p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.65);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.section--dark .eyebrow {
    color: var(--accent-light);
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: left;
}

.js [data-reveal] .eyebrow::before {
    transform: scaleX(0);
    transition: transform 0.8s 0.3s var(--ease-out);
}

.js [data-reveal].is-visible .eyebrow::before {
    transform: scaleX(1);
}

/* 4. Components
   ========================================================================== */

/* Buttons */
.btn {
    --btn-bg: var(--accent);
    --btn-fg: var(--on-accent);
    --btn-border: var(--accent);

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.9rem 1.75rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 2px solid var(--btn-border);
    border-radius: 999px;
    overflow: hidden;
    isolation: isolate;
    transition:
        color var(--dur) var(--ease-out),
        border-color var(--dur) var(--ease-out),
        box-shadow var(--dur) var(--ease-out),
        transform 0.3s var(--ease-out);
}

/* Liquid fill sweep on hover */
.btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: var(--btn-hover-bg, var(--ink-900));
    border-radius: 50% 50% 0 0 / 30% 30% 0 0;
    transform: translateY(105%);
    transition:
        transform 0.55s var(--ease-out),
        border-radius 0.55s var(--ease-out);
}

.btn:hover::before,
.btn:focus-visible::before {
    transform: translateY(0);
    border-radius: 0;
}

.btn:hover,
.btn:focus-visible {
    color: var(--btn-hover-fg, var(--white));
    border-color: var(--btn-hover-bg, var(--ink-900));
    box-shadow: 0 14px 30px -10px rgba(14, 27, 49, 0.45);
}

.btn:active {
    transform: scale(0.96);
}

.btn__icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--dur) var(--ease-spring);
}

.btn:hover .btn__icon {
    transform: translateX(4px);
}

.btn--primary {
    --btn-hover-bg: var(--white);
    --btn-hover-fg: var(--ink-900);
}

.btn--ghost {
    --btn-bg: rgba(255, 255, 255, 0.06);
    --btn-fg: var(--white);
    --btn-border: rgba(255, 255, 255, 0.35);
    --btn-hover-bg: var(--white);
    --btn-hover-fg: var(--ink-900);
    backdrop-filter: blur(6px);
}

.btn--dark {
    --btn-bg: var(--inverse-bg);
    --btn-fg: var(--inverse-fg);
    --btn-border: var(--inverse-bg);
    --btn-hover-bg: var(--accent);
    --btn-hover-fg: var(--on-accent);
}

.btn--outline-dark {
    --btn-bg: transparent;
    --btn-fg: var(--heading);
    --btn-border: var(--heading);
    --btn-hover-bg: var(--inverse-bg);
    --btn-hover-fg: var(--inverse-fg);
}

.btn--light {
    --btn-bg: var(--white);
    --btn-fg: var(--ink-900);
    --btn-border: var(--white);
    --btn-hover-bg: var(--ink-900);
    --btn-hover-fg: var(--white);
}

.btn--outline-light {
    --btn-bg: transparent;
    --btn-fg: var(--white);
    --btn-border: rgba(255, 255, 255, 0.7);
    --btn-hover-bg: var(--white);
    --btn-hover-fg: var(--ink-900);
}

.btn--sm {
    min-height: 42px;
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
}

/* Click ripple (injected from JS) */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.3;
    transform: scale(0);
    pointer-events: none;
    animation: ripple 0.7s var(--ease-out) forwards;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    color: var(--white);
}

.logo__mark {
    width: 48px;
    height: auto;
    transform-origin: 50% 100%;
    transition: transform 0.6s var(--ease-spring);
}

.logo:hover .logo__mark {
    transform: translateY(-3px) scale(1.08);
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo__name {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo__tag {
    margin-top: 0.3rem;
    font-family: var(--font-body);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* Pulsing status dot */
.pulse-dot {
    position: relative;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: pulse 2s var(--ease-out) infinite;
}

/* 5. Preloader
   ========================================================================== */
.preloader {
    display: none;
}

.js .preloader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: var(--ink-900);
    clip-path: inset(0 0 0 0);
    transition:
        clip-path 0.9s var(--ease-in-out),
        visibility 0s 0.9s;
}

.js.is-loaded .preloader {
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
}

.preloader__inner {
    display: grid;
    justify-items: center;
    gap: 1.5rem;
    transition: transform 0.9s var(--ease-in-out), opacity 0.5s ease;
}

.js.is-loaded .preloader__inner {
    transform: translateY(-60px);
    opacity: 0;
}

/* The real logo, assembled block by block: wordmark → roof → towers → windows → tagline */
.splash-logo {
    position: relative;
    width: min(300px, 72vw);
    filter: drop-shadow(0 10px 30px rgba(45, 98, 182, 0.35));
}

.splash-logo__piece {
    position: absolute;
    background-image: url('../img/brand/logo-sprite.png');
    background-repeat: no-repeat;
    opacity: 0;
    will-change: transform, opacity;
}

.splash-logo__piece--letter {
    animation: block-drop 0.7s calc(0.15s + var(--i) * 0.09s) cubic-bezier(0.3, 1.4, 0.5, 1) forwards;
}

.splash-logo__piece--roof {
    transform-origin: 50% 100%;
    animation: roof-drop 0.75s 0.85s cubic-bezier(0.3, 1.3, 0.5, 1) forwards;
}

.splash-logo__piece--tower {
    animation: tower-rise 0.8s calc(1.15s + var(--i) * 0.16s) var(--ease-out) forwards;
}

.splash-logo__piece--window {
    animation: window-pop 0.5s calc(1.75s + var(--i) * 0.12s) var(--ease-spring) forwards;
}

.splash-logo__piece--tag {
    animation: tag-draw 0.8s 2s var(--ease-out) forwards;
}

.preloader__tagline {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    animation: fade-up 0.7s 2.3s var(--ease-out) both;
}

.preloader__bar {
    width: 140px;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
}

.preloader__bar span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform-origin: left;
    animation: preload-bar 2.6s var(--ease-out) forwards;
}

/* Hold hero entrance animations until the preloader lifts */
.js:not(.is-loaded) .hero *,
.js:not(.is-loaded) .hero *::after {
    animation-play-state: paused !important;
}

/* 6. Header & nav
   ========================================================================== */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #84acee);
    transform-origin: 0 50%;
    transform: scaleX(var(--scroll-progress, 0));
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    transition: transform 0.45s var(--ease-out);
}

/* Background lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block for the fixed mobile menu. */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(14, 27, 49, 0);
    border-bottom: 1px solid transparent;
    transition: background var(--dur) ease, border-color var(--dur) ease;
}

.site-header.is-scrolled::before {
    background: rgba(14, 27, 49, 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

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

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav__links {
    display: flex;
    gap: 2rem;
}

.nav__links a {
    position: relative;
    display: inline-block;
    padding-block: 0.4rem;
    font-size: 0.925rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    transition: color var(--dur) ease;
}

.nav__links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}

.nav__links a:hover,
.nav__links a.is-active {
    color: var(--white);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Theme toggle: sun morphs into a crescent moon */
.nav__actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition:
        background var(--dur) ease,
        border-color var(--dur) ease,
        transform 0.5s var(--ease-spring);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(-12deg) scale(1.06);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    overflow: visible;
}

.theme-toggle__core {
    fill: currentColor;
    transition: r 0.5s var(--ease-spring);
}

.theme-toggle__mask {
    transition: cx 0.5s var(--ease-out), cy 0.5s var(--ease-out);
}

.theme-toggle__rays {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    transform-origin: 12px 12px;
    transition: transform 0.5s var(--ease-spring), opacity 0.3s ease;
}

:root[data-theme='dark'] .theme-toggle__core { r: 8px; }
:root[data-theme='dark'] .theme-toggle__mask { cx: 17px; cy: 7px; }
:root[data-theme='dark'] .theme-toggle__rays {
    opacity: 0;
    transform: rotate(-90deg) scale(0.4);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .theme-toggle__core { r: 8px; }
    :root:not([data-theme]) .theme-toggle__mask { cx: 17px; cy: 7px; }
    :root:not([data-theme]) .theme-toggle__rays {
        opacity: 0;
        transform: rotate(-90deg) scale(0.4);
    }
}

/* Circular reveal for theme switches (View Transitions) */
html.theme-vt::view-transition-old(root),
html.theme-vt::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

html.theme-vt .project-card {
    view-transition-name: none !important;
}

.nav__toggle {
    display: none;
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav__toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transition: transform 0.4s var(--ease-out), opacity 0.2s ease, width 0.3s ease;
}

.nav__toggle:hover span:nth-child(2) {
    width: 14px;
}

.nav__toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 7. Hero
   ========================================================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding-block: calc(var(--header-h) + 3rem) 6rem;
    overflow: hidden;
    color: var(--white);
    background: var(--ink-900);
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: -8% 0;
    z-index: -3;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenburns 24s ease-in-out infinite alternate;
}

.hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 27, 49, 0.94) 0%, rgba(14, 27, 49, 0.72) 45%, rgba(14, 27, 49, 0.45) 100%),
        linear-gradient(0deg, rgba(14, 27, 49, 0.8) 0%, transparent 40%);
}

/* Subtle blueprint grid */
.hero__grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 20%, transparent 75%);
    animation: grid-drift 30s linear infinite;
}

/* Animated tower crane: frame draws itself, trolley glides, load swings */
.crane {
    position: absolute;
    right: clamp(-2rem, 2vw, 3rem);
    bottom: 0;
    z-index: -1;
    width: auto;
    height: min(74%, 600px);
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.crane__frame path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.8s var(--ease-out) forwards;
}

.crane__frame path:nth-child(1) { animation-delay: 0.3s; }
.crane__frame path:nth-child(2) { animation-delay: 0.6s; }
.crane__frame path:nth-child(3) { animation-delay: 0.9s; }
.crane__frame path:nth-child(4) { animation-delay: 1.1s; }
.crane__frame path:nth-child(5) { animation-delay: 1.3s; }

.crane__weight,
.crane__cab {
    fill: rgba(255, 255, 255, 0.12);
    animation: fade-in 0.6s 1.8s both;
}

.crane__trolley {
    animation:
        fade-in 0.6s 2s both,
        trolley 10s 2.6s ease-in-out infinite alternate;
}

.crane__hook {
    transform-box: view-box;
    transform-origin: 316px 118px;
    animation: swing 3.2s ease-in-out infinite alternate;
}

.crane__load {
    fill: var(--accent);
    stroke: none;
}

.hero__content {
    max-width: var(--max-w);
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.75rem;
    padding: 0.45rem 1rem 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    animation: fade-up 0.8s var(--ease-out) both;
}

.hero__title {
    max-width: 16ch;
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--white);
}

/* Word-by-word mask reveal */
.hero__title .word {
    display: inline-block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
    vertical-align: top;
}

.hero__title .word > span {
    display: inline-block;
    animation: word-rise 1.1s var(--ease-out) both;
}

.hero__title .word:nth-child(1) > span { animation-delay: 0.1s; }
.hero__title .word:nth-child(2) > span { animation-delay: 0.2s; }
.hero__title .word:nth-child(3) > span { animation-delay: 0.3s; }
.hero__title .word:nth-child(4) > span { animation-delay: 0.4s; }
.hero__title .word:nth-child(5) > span { animation-delay: 0.5s; }
.hero__title .word:nth-child(6) > span { animation-delay: 0.6s; }

.hero__lead {
    max-width: 560px;
    margin-bottom: 2.5rem;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.78);
    animation: fade-up 0.9s 0.7s var(--ease-out) both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fade-up 0.9s 0.85s var(--ease-out) both;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    margin-top: 3rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: fade-up 0.8s var(--ease-out) both;
}

.hero__trust li:nth-child(1) { animation-delay: 1s; }
.hero__trust li:nth-child(2) { animation-delay: 1.1s; }
.hero__trust li:nth-child(3) { animation-delay: 1.2s; }

.hero__trust li::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    display: grid;
    place-items: start center;
    width: 26px;
    height: 42px;
    padding-top: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    transform: translateX(-50%);
    animation: fade-in 1s 1.4s both;
    transition: border-color var(--dur) ease;
}

.hero__scroll:hover {
    border-color: var(--accent);
}

.hero__scroll-wheel {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
    animation: scroll-wheel 1.8s var(--ease-out) infinite;
}

/* 8. Stats & marquee
   ========================================================================== */
.stats {
    position: relative;
    padding-block: clamp(3rem, 6vw, 4.5rem);
    background: var(--accent);
    color: var(--on-accent);
}

/* Hazard-tape edge, gently crawling */
.stats::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    background: repeating-linear-gradient(-45deg, var(--ink-900) 0 14px, var(--accent) 14px 28px);
    background-size: 39.6px 8px;
    animation: tape 2s linear infinite;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat__value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.stat__label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.8;
}

.marquee {
    --skew: 0deg;

    overflow: hidden;
    padding-block: 1.25rem;
    background: var(--band);
    color: var(--white);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__group {
    display: flex;
    flex-shrink: 0;
    transform: skewX(var(--skew));
}

.marquee__group li {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee__group li::after {
    content: '✦';
    display: inline-block;
    font-size: 0.8em;
    color: var(--accent-light);
    animation: spin 6s linear infinite;
}

/* 9. Services
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
}

.service-card {
    --mx: 50%;
    --my: 50%;

    position: relative;
    padding: 2.25rem 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out),
        border-color 0.5s var(--ease-out);
}

/* Cursor-following spotlight (position set from JS) */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(45, 98, 182, 0.16), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card__num {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--muted);
    opacity: 0.5;
    transition: opacity var(--dur), color var(--dur), transform 0.5s var(--ease-spring);
}

.service-card:hover .service-card__num {
    color: var(--accent-ink);
    opacity: 1;
    transform: scale(1.3);
}

.service-card__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1.75rem;
    color: var(--heading);
    background: var(--accent-soft);
    border-radius: 16px;
    transition:
        background var(--dur) ease,
        transform 0.6s var(--ease-spring);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card:hover .service-card__icon {
    color: var(--on-accent);
    background: var(--accent);
    transform: rotate(-10deg) scale(1.12);
}

/* Icon strokes redraw on hover */
.service-card:hover .service-card__icon path {
    animation: redraw 0.9s var(--ease-out);
}

.service-card__icon path {
    stroke-dasharray: 120;
    stroke-dashoffset: 0;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* 10. About & values
   ========================================================================== */
.about {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(3rem, 7vw, 6rem);
    align-items: center;
}

.about__media {
    position: relative;
    padding: 0 0 2rem 2rem;
}

.about__media::before {
    content: '';
    position: absolute;
    inset: 2rem 2rem 0 0;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
}

.about__frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__badge {
    position: absolute;
    right: -1rem;
    bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.4rem;
    background: var(--band);
    color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: float 5s ease-in-out infinite;
}

.about__badge-num {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    color: var(--gold);
}

.about__badge-text {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.75);
}

.about__content h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
}

.about__content > p:not(.eyebrow) {
    margin-bottom: 1.1rem;
    color: var(--muted);
    line-height: 1.8;
}

.checklist {
    display: grid;
    gap: 0.85rem;
    margin: 2rem 0 2.5rem;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 500;
    color: var(--heading);
}

.checklist li::before {
    content: '';
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.js .checklist li::before {
    transform: scale(0) rotate(-90deg);
    transition: transform 0.6s var(--ease-spring);
    transition-delay: calc(var(--reveal-delay, 0s) + 0.25s);
}

.js .checklist li.is-visible::before {
    transform: none;
}

/* Vision / mission / expertise */
.values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 7vw, 6rem);
    align-items: center;
}

.values__cards {
    display: grid;
    gap: 1.25rem;
}

.value-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition:
        transform 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out);
}

.value-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.value-card__num {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-ink);
    transition: color 0.4s ease, transform 0.6s var(--ease-spring);
}

.value-card:hover .value-card__num {
    color: var(--accent-ink);
    transform: rotate(-6deg) scale(1.08);
}

.value-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.value-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tags li {
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--heading);
    background: var(--accent-soft);
    border-radius: 999px;
    transition: background var(--dur) ease, transform 0.4s var(--ease-spring);
}

.tags li:hover {
    color: var(--on-accent);
    background: var(--accent);
    transform: translateY(-3px) rotate(-3deg);
}

.values__core h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
}

.values__lead {
    margin-bottom: 2.25rem;
    color: var(--muted);
}

/* 11. Process
   ========================================================================== */
.process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(45, 98, 182, 0.15));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.8s 0.2s var(--ease-out);
}

.process.is-visible::before,
html:not(.js) .process::before {
    transform: scaleX(1);
}

.process__step {
    position: relative;
}

.process__num {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--on-accent);
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 8px var(--ink-900);
    transition: transform 0.5s var(--ease-spring);
}

/* Ripple ring when the step appears */
.process__num::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
}

.process__step.is-visible .process__num::after {
    animation: ring 1.2s calc(var(--reveal-delay, 0s) + 0.3s) var(--ease-out);
}

.process__step:hover .process__num {
    transform: scale(1.15) rotate(-8deg);
}

.process__step h3 {
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.process__step p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.62);
}

/* 12. Projects
   ========================================================================== */
.projects__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.projects__head .section-head {
    margin-bottom: 0;
}

.filters {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.35rem;
    background: var(--surface-alt);
    border-radius: 999px;
}

/* Sliding active indicator (positioned from JS) */
.filters__pill {
    display: none;
}

.js .filters__pill {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: var(--pill-w, 0);
    height: var(--pill-h, 0);
    background: var(--surface);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transform: translate(var(--pill-x, 0), var(--pill-y, 0));
    transition:
        transform 0.55s var(--ease-spring),
        width 0.55s var(--ease-spring);
}

.filter {
    position: relative;
    z-index: 1;
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    border-radius: 999px;
    transition:
        color var(--dur) ease,
        background var(--dur) ease,
        box-shadow var(--dur) ease;
}

.filter:hover,
.filter.is-active {
    color: var(--heading);
}

html:not(.js) .filter.is-active {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.5rem;
}

.project-card {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ink-800);
    isolation: isolate;
}

.project-card[hidden] {
    display: none;
}

.project-card__open {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-card__overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 4rem 1.5rem 1.5rem;
    color: var(--white);
    background: linear-gradient(transparent, rgba(14, 27, 49, 0.92));
    pointer-events: none;
}

.project-card__overlay > * {
    transform: translateY(14px);
    opacity: 0;
    transition:
        transform 0.5s var(--ease-out),
        opacity 0.5s var(--ease-out);
}

.project-card__overlay h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    transition-delay: 0.06s;
}

.project-card__tag {
    margin-bottom: 0.35rem;
    text-shadow: 0 1px 6px rgba(14, 27, 49, 0.6);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a9c6f5;
}

.project-card:hover .project-card__overlay > *,
.project-card:focus-within .project-card__overlay > * {
    transform: translateY(0);
    opacity: 1;
}

@media (hover: none) {
    .project-card__overlay > * {
        transform: none;
        opacity: 1;
    }
}

::view-transition-group(*) {
    animation-duration: 0.55s;
    animation-timing-function: var(--ease-out);
}

.projects__more {
    display: flex;
    justify-content: center;
    margin-top: clamp(2rem, 5vw, 3rem);
}

.projects__more[hidden] {
    display: none;
}

/* Residences
   ========================================================================== */
html:not(.js) .res-switch,
html:not(.js) .res-chips,
html:not(.js) .residence__tabs {
    display: none;
}

.res-switch {
    position: relative;
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto clamp(1.25rem, 3vw, 1.75rem);
    padding: 0.4rem;
    background: var(--surface);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.res-switch__tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.6rem 1.4rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--muted);
    border-radius: 999px;
    transition: color var(--dur) ease;
}

.res-switch__tab:hover {
    color: var(--heading);
}

.res-switch__tab.is-active {
    color: var(--white);
}

.res-switch__count {
    padding: 0.15rem 0.55rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-radius: 999px;
    transition: background var(--dur) ease, color var(--dur) ease;
}

.res-switch__tab.is-active .res-switch__count {
    color: var(--on-accent);
    background: var(--accent);
}

.res-chips {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.res-chip {
    position: relative;
    z-index: 1;
    min-height: 42px;
    padding: 0.5rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    transition:
        color var(--dur) ease,
        border-color var(--dur) ease,
        transform 0.4s var(--ease-spring);
}

.res-chip:hover {
    color: var(--heading);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.res-chip.is-active {
    color: var(--on-accent);
    border-color: transparent;
}

html:not(.js) .res-chip.is-active {
    background: var(--accent);
}

/* Shared sliding indicator for tab pills (positioned from JS) */
.res-switch__pill,
.res-chips__pill {
    display: none;
}

.js .res-switch__pill,
.js .res-chips__pill {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: var(--pill-w, 0);
    height: var(--pill-h, 0);
    border-radius: 999px;
    transform: translate(var(--pill-x, 0), var(--pill-y, 0));
    transition:
        transform 0.55s var(--ease-spring),
        width 0.55s var(--ease-spring);
}

.js .res-switch__pill {
    background: var(--ink-900);
    box-shadow: 0 8px 20px -8px rgba(14, 27, 49, 0.5);
}

.js .res-chips__pill {
    background: var(--accent);
    box-shadow: 0 8px 18px -8px rgba(31, 79, 156, 0.6);
}

.js .res-group:not(.is-active),
.js .residence:not(.is-active) {
    display: none;
}

html:not(.js) .residence + .residence,
html:not(.js) .res-group + .res-group {
    margin-top: 4rem;
}

.residence {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.residence__stage {
    position: relative;
}

.residence__views {
    display: grid;
    gap: 1rem;
}

.residence__view {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ink-800);
    border-radius: var(--radius-lg);
}

.residence__view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* With JS, views stack as layers and wipe over each other */
.js .residence__views {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ink-800);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.js .residence__view {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    border-radius: 0;
    visibility: hidden;
    z-index: 0;
    transition: visibility 0s 0.9s;
}

.js .residence__view.was-active {
    visibility: visible;
    z-index: 1;
}

.js .residence__view.is-active {
    visibility: visible;
    z-index: 2;
    transition: none;
}

.js .residences.is-visible .residence__view.is-active {
    animation: view-wipe 0.9s var(--ease-in-out) both;
}

.js .residences.is-visible .residence__view.is-active img {
    animation:
        view-zoom 1.4s var(--ease-out) both,
        drift 16s 1.4s ease-in-out infinite alternate;
}

.residence__count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    padding: 0.35rem 0.85rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--white);
    background: rgba(14, 27, 49, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 999px;
}

html:not(.js) .residence__count {
    display: none;
}

.residence__count span {
    color: var(--accent-light);
}

.residence__tabs {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    z-index: 3;
    display: flex;
    gap: 0.25rem;
    padding: 0.3rem;
    background: rgba(14, 27, 49, 0.62);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    transform: translateX(-50%);
}

.residence__tab {
    min-height: 38px;
    padding: 0.4rem 1rem;
    font-size: 0.825rem;
    font-weight: 600;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    transition:
        background var(--dur) ease,
        color var(--dur) ease,
        transform 0.4s var(--ease-spring);
}

.residence__tab:hover {
    color: var(--white);
}

.residence__tab:active {
    transform: scale(0.94);
}

.residence__tab.is-active {
    color: var(--on-accent);
    background: var(--accent);
}

.residence__kicker {
    margin-bottom: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.residence__info h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
}

.residence__desc {
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
    color: var(--muted);
}

.residence__specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.residence__specs div {
    padding: 0.9rem 1.1rem;
    background: var(--surface);
    transition: background var(--dur) ease;
}

.residence__specs div:hover {
    background: var(--surface-alt);
}

.residence__specs dt {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.residence__specs dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--heading);
}

.residence__tags {
    margin: 0 0 2rem;
}

/* Content cascades in whenever a residence becomes active */
.js .residences.is-visible .residence.is-active .residence__info > * {
    animation: fade-up 0.7s var(--ease-out) both;
}

.js .residences.is-visible .residence.is-active .residence__info > :nth-child(1) { animation-delay: 0.1s; }
.js .residences.is-visible .residence.is-active .residence__info > :nth-child(2) { animation-delay: 0.17s; }
.js .residences.is-visible .residence.is-active .residence__info > :nth-child(3) { animation-delay: 0.24s; }
.js .residences.is-visible .residence.is-active .residence__info > :nth-child(4) { animation-delay: 0.31s; }
.js .residences.is-visible .residence.is-active .residence__info > :nth-child(5) { animation-delay: 0.38s; }
.js .residences.is-visible .residence.is-active .residence__info > :nth-child(6) { animation-delay: 0.45s; }

.js .residences.is-visible .residence.is-active .residence__count span {
    display: inline-block;
    animation: count-flip 0.6s var(--ease-spring) both;
}

/* Credentials
   ========================================================================== */
.credentials {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: clamp(3rem, 7vw, 5rem);
}

.credential {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition:
        transform 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out),
        background 0.5s ease;
}

.credential:hover {
    background: var(--surface);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.credential__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--on-accent);
    background: var(--accent);
    border-radius: 12px;
    transition: transform 0.6s var(--ease-spring);
}

.credential:hover .credential__icon {
    transform: rotate(-10deg) scale(1.1);
}

.credential__icon svg,
.core-value__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.credential h3 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.credential p {
    font-size: 0.82rem;
    color: var(--muted);
}

/* Core values & sustainability
   ========================================================================== */
.value-card--image {
    flex-direction: column;
    gap: 1.25rem;
    padding: 0;
    overflow: hidden;
}

.value-card--image img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    transition: transform 1s var(--ease-out);
}

.value-card--image:hover img {
    transform: scale(1.05);
}

.value-card--image > div {
    padding: 0 1.75rem 1.75rem;
}

.core-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.core-value {
    padding: 1.4rem;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition:
        transform 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out),
        background 0.4s ease;
}

.core-value:hover {
    background: var(--surface);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.core-value__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-radius: 14px;
    transition:
        color var(--dur) ease,
        background var(--dur) ease,
        transform 0.6s var(--ease-spring);
}

.core-value:hover .core-value__icon {
    color: var(--on-accent);
    background: var(--accent);
    transform: rotate(-10deg) scale(1.1);
}

.core-value h3 {
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
}

.core-value p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Featured project media
   ========================================================================== */
.feature__media {
    display: grid;
    gap: 0.75rem;
}

.feature__hero,
.feature__thumbs button,
.interiors__grid button {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: var(--ink-800);
    cursor: zoom-in;
}

.feature__hero {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.feature__hero img,
.feature__thumbs img,
.interiors__grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out);
}

.feature__hero:hover img,
.feature__thumbs button:hover img,
.interiors__grid button:hover img {
    transform: scale(1.06);
}

.js .residences.is-visible .residence.is-active .feature__hero {
    animation: view-wipe 0.9s var(--ease-in-out) both;
}

.js .residences.is-visible .residence.is-active .feature__hero img {
    animation: view-zoom 1.4s var(--ease-out) both;
}

.feature__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.6rem;
}

.feature__thumbs button {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    transition:
        transform 0.4s var(--ease-spring),
        box-shadow 0.4s ease;
}

.feature__thumbs button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature__thumbs span,
.interiors__grid span {
    position: absolute;
    inset: auto 0 0;
    padding: 1.5rem 0.6rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: left;
    color: var(--white);
    background: linear-gradient(transparent, rgba(14, 27, 49, 0.85));
}

.js .residences.is-visible .residence.is-active .feature__thumbs li {
    animation: fade-up 0.6s var(--ease-out) both;
}

.js .residences.is-visible .residence.is-active .feature__thumbs li:nth-child(1) { animation-delay: 0.35s; }
.js .residences.is-visible .residence.is-active .feature__thumbs li:nth-child(2) { animation-delay: 0.42s; }
.js .residences.is-visible .residence.is-active .feature__thumbs li:nth-child(3) { animation-delay: 0.49s; }
.js .residences.is-visible .residence.is-active .feature__thumbs li:nth-child(4) { animation-delay: 0.56s; }
.js .residences.is-visible .residence.is-active .feature__thumbs li:nth-child(5) { animation-delay: 0.63s; }

/* Design catalogue cards
   ========================================================================== */
.filter__count {
    margin-left: 0.25rem;
    padding: 0.05rem 0.45rem;
    font-size: 0.72rem;
    color: var(--muted);
    background: var(--tint);
    border-radius: 999px;
}

.filter.is-active .filter__count {
    color: var(--on-accent);
    background: var(--accent);
}

.design-card .project-card__overlay {
    padding-top: 5rem;
}

.design-card .project-card__overlay > * {
    opacity: 1;
    transform: none;
}

.design-card__num {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--white);
    background: var(--accent);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(14, 27, 49, 0.35);
    pointer-events: none;
    transition: transform 0.5s var(--ease-spring);
}

.design-card:hover .design-card__num {
    transform: rotate(-12deg) scale(1.12);
}

.design-card__meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.design-card__meta span {
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.design-card__meta span:last-child {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.designs__note {
    max-width: 640px;
    margin: 1.5rem auto 0;
    font-size: 0.875rem;
    text-align: center;
    color: var(--muted);
}

/* Interior finishes */
.interiors {
    margin-top: clamp(3.5rem, 8vw, 5.5rem);
}

.interiors__title {
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    text-align: center;
}

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

.interiors__grid button {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
}

.interiors__grid span {
    padding: 2.5rem 1rem 0.9rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
}

/* Team
   ========================================================================== */
.section--blueprint {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.section--blueprint::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    animation: grid-drift 40s linear infinite;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
    max-width: 980px;
    margin-inline: auto;
}

.team-card {
    position: relative;
    overflow: hidden;
    background: var(--ink-800);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    transition:
        transform 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out),
        border-color 0.5s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(45, 98, 182, 0.4);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.team-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.team-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.4) contrast(1.05);
    transition:
        transform 1s var(--ease-out),
        filter 0.6s ease;
}

.team-card:hover .team-card__media img {
    transform: scale(1.07);
    filter: none;
}

.team-card__media::after {
    content: '';
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(transparent, var(--ink-800));
    pointer-events: none;
}

.team-card__social {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.team-card__social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--ink-900);
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(24px) scale(0.6);
    transition:
        opacity 0.3s ease,
        transform 0.5s var(--ease-spring),
        background var(--dur) ease;
}

.team-card__social li:nth-child(2) a {
    transition-delay: 0.07s;
}

.team-card:hover .team-card__social a,
.team-card:focus-within .team-card__social a {
    opacity: 1;
    transform: none;
}

.team-card__social a:hover {
    background: var(--accent);
}

.team-card__social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: none) {
    .team-card__social a {
        opacity: 1;
        transform: none;
    }
}

.team-card__body {
    position: relative;
    padding: 1.4rem 1.5rem 1.6rem;
}

/* Accent rule that stretches across on hover */
.team-card__body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
    transition: width 0.6s var(--ease-out);
}

.team-card:hover .team-card__body::before {
    width: calc(100% - 3rem);
}

.team-card h3 {
    font-size: 1.2rem;
    color: var(--white);
}

.team-card__role {
    margin: 0.3rem 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.team-card__bio {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Story video
   ========================================================================== */
.story-video {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-top: clamp(4rem, 9vw, 6.5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: linear-gradient(135deg, rgba(45, 98, 182, 0.18), rgba(45, 98, 182, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

.story-video__text h3 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
}

.story-video__text p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.68);
}

.story-video__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.story-video__player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-video__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.9rem;
    color: var(--white);
    background: linear-gradient(transparent 40%, rgba(14, 27, 49, 0.7));
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.story-video__play svg {
    box-sizing: content-box;
    width: 30px;
    height: 30px;
    padding: 22px 20px 22px 24px;
    fill: currentColor;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(45, 98, 182, 0.6);
    animation: play-pulse 2.2s ease-out infinite;
    transition: transform 0.4s var(--ease-spring);
}

.story-video__play:hover svg {
    transform: scale(1.12);
}

.story-video__play span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.story-video.is-playing .story-video__play {
    opacity: 0;
    visibility: hidden;
}

/* On-site stories
   ========================================================================== */
.stories {
    display: grid;
    gap: clamp(4rem, 9vw, 6.5rem);
}

.story {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.story--reverse .story__media {
    order: 2;
}

.story__media {
    min-width: 0;
}

.story__body h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
}

.story__body > p:not(.residence__kicker):not(.story__sign) {
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.story__sign {
    margin-top: 1.5rem;
    padding-left: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-ink);
    border-left: 3px solid var(--gold);
}

.story__thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.story__thumbs button,
.filmstrip button,
.mosaic button,
.tank__photos button,
.bento button,
.team-banner__photo,
.trust__photo button {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--ink-800);
    cursor: zoom-in;
}

.story__thumbs button {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.story__thumbs button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.story__thumbs img,
.filmstrip img,
.mosaic img,
.tank__photos img,
.bento img,
.team-banner__photo img,
.trust__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out);
}

.story__thumbs button:hover img,
.filmstrip button:hover img,
.mosaic button:hover img,
.tank__photos button:hover img,
.bento button:hover img,
.team-banner__photo:hover img,
.trust__photo button:hover img {
    transform: scale(1.07);
}

.story__thumbs span {
    position: absolute;
    inset: auto 0 0;
    padding: 1.4rem 0.6rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: left;
    color: var(--white);
    background: linear-gradient(transparent, rgba(14, 27, 49, 0.85));
}

/* Before / after comparison */
.compare {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    user-select: none;
    touch-action: pan-y;
}

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

.compare__before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 3px;
    background: var(--white);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
    pointer-events: none;
}

.compare__handle svg {
    position: absolute;
    top: 50%;
    left: 50%;
    box-sizing: content-box;
    width: 22px;
    height: 22px;
    padding: 12px;
    fill: none;
    stroke: var(--white);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    background: var(--accent);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease-spring);
}

.compare:hover .compare__handle svg,
.compare__range:focus-visible ~ .compare__handle svg {
    transform: translate(-50%, -50%) scale(1.12);
}

.compare__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.compare__range:focus-visible ~ .compare__handle {
    outline: 3px solid var(--gold);
}

.compare__label {
    position: absolute;
    top: 1rem;
    z-index: 1;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(14, 27, 49, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    pointer-events: none;
}

.compare__label--before { left: 1rem; }
.compare__label--after { right: 1rem; }

/* Milestone tracker */
.milestones {
    position: relative;
    display: grid;
    gap: 0.75rem;
}

.milestones::before {
    content: '';
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 1.05rem;
    width: 2px;
    background: var(--line);
}

.milestone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-weight: 500;
    color: var(--heading);
}

.milestone::before {
    content: '';
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6478' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 18px no-repeat;
    border: 2px solid var(--line);
}

.milestone--done::before {
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
    border-color: var(--accent);
}

.milestone--active::before {
    background-color: var(--gold);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1b31' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
    border-color: var(--gold);
    animation: milestone-pulse 2s ease-out infinite;
}

.milestone__status {
    min-width: 6.2rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--tint);
    border-radius: 999px;
}

.milestone--done .milestone__status {
    color: var(--accent-ink);
    background: var(--accent-soft);
}

.milestone--active .milestone__status {
    color: var(--gold-ink);
    background: rgba(226, 174, 74, 0.2);
}

.js .milestone {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.js .milestone:nth-child(2) { transition-delay: 0.15s; }
.js .milestone:nth-child(3) { transition-delay: 0.3s; }

.js .is-visible .milestone {
    opacity: 1;
    transform: none;
}

/* Filmstrip (scroll-snap) */
.filmstrip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

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

.filmstrip li {
    scroll-snap-align: start;
}

.filmstrip button {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
}

.filmstrip__stage {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(14, 27, 49, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 999px;
}

.filmstrip__controls,
.carousel__controls {
    display: flex;
    gap: 0.5rem;
}

.filmstrip__controls {
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.filmstrip__btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--heading);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: color var(--dur) ease, background var(--dur) ease, transform 0.4s var(--ease-spring);
}

.filmstrip__btn:hover {
    color: var(--on-accent);
    background: var(--accent);
    transform: scale(1.08);
}

.filmstrip__btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Fit-out mosaic */
.mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
    gap: 0.6rem;
}

.mosaic__item button {
    border-radius: var(--radius-sm);
}

.mosaic__item--wide { grid-column: span 2; grid-row: span 2; }
.mosaic__item--tall { grid-row: span 2; }
.mosaic__item:nth-child(1) { border-radius: var(--radius); }

.js .is-visible .mosaic__item {
    animation: fade-up 0.6s var(--ease-out) both;
}

.mosaic__item:nth-child(2) { animation-delay: 0.06s; }
.mosaic__item:nth-child(3) { animation-delay: 0.12s; }
.mosaic__item:nth-child(4) { animation-delay: 0.18s; }
.mosaic__item:nth-child(5) { animation-delay: 0.24s; }
.mosaic__item:nth-child(6) { animation-delay: 0.3s; }
.mosaic__item:nth-child(7) { animation-delay: 0.36s; }
.mosaic__item:nth-child(8) { animation-delay: 0.42s; }

/* Underground tank */
.tank {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 0.75rem;
    align-items: start;
}

.tank__clip {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    background: var(--ink-800);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.tank__clip figcaption {
    position: absolute;
    left: 0.6rem;
    top: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(14, 27, 49, 0.65);
    border-radius: 999px;
}

.tank__clip figcaption::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff5a5f;
    animation: blink 1.4s ease-in-out infinite;
}

.tank__photos {
    align-self: stretch;
    contain: size;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.tank__photos button {
    border-radius: var(--radius-sm);
}

/* Concept bento */
.concepts {
    margin-top: clamp(4rem, 9vw, 6rem);
}

.concepts__head,
.interiors__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}

.concepts__head p {
    max-width: 520px;
    color: var(--muted);
}

.concepts__title,
.interiors__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}

.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}

.bento__item button {
    border-radius: var(--radius);
}

.bento__item--1 { grid-column: span 2; grid-row: span 2; }

/* Interiors carousel */
.interiors__grid.carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3rem) / 4);
    grid-template-columns: none;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.interiors__grid.carousel::-webkit-scrollbar {
    display: none;
}

.interiors__grid.carousel li {
    scroll-snap-align: start;
}

/* Team banner */
.team-banner {
    display: grid;
    grid-template-columns: minmax(0, 420px) 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    max-width: 980px;
    margin: clamp(2.5rem, 6vw, 4rem) auto 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

.team-banner__photo {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
}

.team-banner h3 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.team-banner p {
    color: rgba(255, 255, 255, 0.65);
}

/* Clients: photos + testimonials */
.trust {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr 0.8fr;
    gap: 1.5rem;
    align-items: center;
}

.trust__photo button {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.trust__photo--a { transform: rotate(-2.5deg); }
.trust__photo--b { transform: rotate(2.5deg); }

.trust__quotes {
    display: grid;
    gap: 1.25rem;
}

.testimonial {
    position: relative;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.testimonial::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    font-family: Georgia, serif;
    font-size: 5.5rem;
    line-height: 1;
    color: var(--accent-ink);
    opacity: 0.15;
    transition: transform 0.6s var(--ease-spring), opacity 0.4s ease;
}

.testimonial:hover {
    box-shadow: var(--shadow);
}

.testimonial:hover::before {
    opacity: 0.3;
    transform: rotate(-8deg) scale(1.15);
}

.stars {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0.9rem;
    color: var(--gold);
}

.stars span {
    display: inline-block;
}

.js .stars span {
    transform: scale(0) rotate(-120deg);
    transition: transform 0.6s var(--ease-spring);
}

.js .stars span:nth-child(1) { transition-delay: calc(var(--reveal-delay, 0s) + 0.35s); }
.js .stars span:nth-child(2) { transition-delay: calc(var(--reveal-delay, 0s) + 0.43s); }
.js .stars span:nth-child(3) { transition-delay: calc(var(--reveal-delay, 0s) + 0.51s); }
.js .stars span:nth-child(4) { transition-delay: calc(var(--reveal-delay, 0s) + 0.59s); }
.js .stars span:nth-child(5) { transition-delay: calc(var(--reveal-delay, 0s) + 0.67s); }

.js .is-visible .stars span {
    transform: none;
}

.testimonial blockquote {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.testimonial__avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--on-accent);
    background: linear-gradient(135deg, var(--accent), var(--ink-700));
    border-radius: 50%;
}

.testimonial__author cite {
    display: block;
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 700;
    color: var(--heading);
}

.testimonial__author div span {
    font-size: 0.85rem;
    color: var(--muted);
}

.js .testimonial.is-visible:hover { --lift: -6px; }

/* Footer logo */
.footer__logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer__logo img {
    width: 170px;
    height: auto;
    transition: transform 0.5s var(--ease-spring);
}

.footer__logo:hover img {
    transform: scale(1.04);
}

/* 13. Testimonials & CTA
   ========================================================================== */
.cta {
    background: var(--surface);
}

.cta__panel {
    position: relative;
    padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 6vw, 4rem);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 2rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent) 0%, #2a5aa8 50%, var(--accent-strong) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.cta__stripes {
    position: absolute;
    inset: -50%;
    z-index: -1;
    background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 22px, transparent 22px 44px);
    animation: stripes 6s linear infinite;
}

.cta h2 {
    max-width: 16ch;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    color: var(--white);
}

.cta p {
    max-width: 520px;
    margin-bottom: 2.25rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta__image {
    align-self: stretch;
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(14, 27, 49, 0.35);
    transform: rotate(2deg);
    transition: transform 0.6s var(--ease-spring);
}

.cta__panel:hover .cta__image {
    transform: rotate(0deg) scale(1.02);
}

/* 14. FAQ
   ========================================================================== */
.faq {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.faq .section-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.faq__list {
    display: grid;
    gap: 1rem;
}

.faq__item {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition:
        border-color var(--dur) ease,
        box-shadow var(--dur) ease;
}

.faq__item[open] {
    border-color: rgba(45, 98, 182, 0.5);
    box-shadow: var(--shadow);
}

.faq__item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1.075rem;
    font-weight: 700;
    color: var(--heading);
    list-style: none;
    cursor: pointer;
    transition: color var(--dur) ease;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary:hover {
    color: var(--accent-ink);
}

/* Plus that morphs into a minus */
.faq__item summary::after {
    content: '';
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background:
        linear-gradient(var(--heading), var(--heading)) center / 12px 2px no-repeat,
        linear-gradient(var(--heading), var(--heading)) center / 2px 12px no-repeat,
        var(--accent-soft);
    transition:
        transform 0.5s var(--ease-spring),
        background-color var(--dur) ease;
}

.faq__item[open] summary::after {
    transform: rotate(135deg);
    background:
        linear-gradient(var(--white), var(--white)) center / 12px 2px no-repeat,
        linear-gradient(var(--white), var(--white)) center / 2px 12px no-repeat,
        var(--accent);
}

.faq__item.is-collapsing summary::after {
    transform: none;
    background-color: var(--accent-soft);
}

.faq__body {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted);
}

/* 15. Contact & map
   ========================================================================== */
.contact {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact__list {
    display: grid;
    gap: 1rem;
}

.contact__list li {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition:
        transform 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out);
}

.contact__list li:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
}

.contact__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--on-accent);
    background: var(--accent);
    border-radius: 14px;
    transition: transform 0.6s var(--ease-spring);
}

.contact__list li:hover .contact__icon {
    transform: rotate(-12deg) scale(1.1);
}

.contact__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact__list h3 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.contact__list p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* WhatsApp: the whole card is one tap target */
.contact__list .contact__item--whatsapp {
    padding: 0;
}

.contact__link {
    display: flex;
    flex: 1;
    gap: 1.1rem;
    align-items: center;
    padding: 1.25rem;
    border-radius: inherit;
}

.contact__title {
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading);
}

.contact__text {
    display: block;
    font-size: 0.95rem;
    color: var(--muted);
}

.contact__icon--whatsapp {
    background: #25d366;
}

.contact__icon--whatsapp svg {
    stroke-width: 1.8;
}

.contact__arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-left: auto;
    fill: none;
    stroke: var(--muted);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.4s var(--ease-spring), stroke var(--dur) ease;
}

.contact__item--whatsapp:hover .contact__arrow {
    stroke: #1faa52;
    transform: translate(3px, -3px);
}

.contact__list a:hover {
    color: var(--accent-ink);
}

.contact__form {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.field {
    position: relative;
}

.field--full,
.contact__submit {
    grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 1.45rem 1rem 0.55rem;
    background: var(--surface-alt);
    border: 1.5px solid transparent;
    border-radius: 12px;
    outline: none;
    appearance: none;
    transition:
        border-color var(--dur) ease,
        background var(--dur) ease,
        box-shadow var(--dur) ease;
}

.field select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6475' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    cursor: pointer;
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    background-color: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Floating labels */
.field label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.95rem;
    color: var(--muted);
    pointer-events: none;
    transform-origin: left top;
    transition:
        transform 0.3s var(--ease-out),
        color 0.3s ease;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
    transform: translateY(-0.6rem) scale(0.78);
    color: var(--accent-ink);
}

.field__error {
    max-height: 0;
    overflow: hidden;
    font-size: 0.8rem;
    color: var(--danger);
    transition: max-height 0.3s ease, margin 0.3s ease;
}

.field.is-invalid .field__error {
    max-height: 2rem;
    margin-top: 0.35rem;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
    border-color: var(--danger);
}

.field.is-invalid {
    animation: shake 0.45s var(--ease-out);
}

.contact__submit {
    justify-self: start;
}

.form-success {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    background: var(--surface);
    border-radius: inherit;
    animation: fade-in 0.4s ease;
}

.form-success[hidden] {
    display: none;
}

.form-success svg {
    width: 76px;
    height: 76px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-success circle {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: dash 0.7s var(--ease-out) forwards;
}

.form-success path {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: dash 0.45s 0.55s var(--ease-out) forwards;
}

.form-success p {
    max-width: 320px;
    color: var(--muted);
    animation: fade-up 0.6s 0.7s var(--ease-out) both;
}

.form-success strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--heading);
}

.map {
    position: relative;
    height: clamp(340px, 45vw, 480px);
    margin-top: clamp(2.5rem, 6vw, 4rem);
    overflow: hidden;
    background: var(--ink-800);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Placeholder shown until the embedded map paints */
.map::before {
    content: 'Loading map…';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.map__frame {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.55) contrast(1.05);
    transition: filter 0.8s ease;
}

.map:hover .map__frame,
.map:focus-within .map__frame {
    filter: none;
}

.map__card {
    position: absolute;
    left: clamp(1rem, 3vw, 1.75rem);
    bottom: clamp(1rem, 3vw, 1.75rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1rem 1rem 1.25rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.js .map .map__card {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
    transition:
        opacity 0.6s 0.7s var(--ease-out),
        transform 0.8s 0.7s var(--ease-spring);
}

.js .map.is-visible .map__card {
    opacity: 1;
    transform: none;
}

.map__card img {
    width: 44px;
    height: auto;
}

:root[data-theme='dark'] .map__card img {
    filter: brightness(0) invert(1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .map__card img {
        filter: brightness(0) invert(1);
    }
}

.map__title {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--heading);
}

.map__address {
    font-size: 0.85rem;
    color: var(--muted);
}

/* 16. Footer & back-to-top
   ========================================================================== */
.site-footer {
    padding-top: clamp(3rem, 6vw, 4.5rem);
    background: var(--band);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.925rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

.footer__brand .logo {
    margin-bottom: 1.25rem;
}

.footer__brand p {
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.social {
    display: flex;
    gap: 0.75rem;
}

.social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    transition:
        background var(--dur) ease,
        color var(--dur) ease,
        transform 0.4s var(--ease-spring);
}

.social a:hover {
    color: var(--on-accent);
    background: var(--accent);
    transform: translateY(-4px) rotate(-8deg);
}

.social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer__col h4 {
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.footer__col li + li {
    margin-top: 0.7rem;
}

.footer__col a {
    display: inline-block;
    transition: color var(--dur) ease, transform var(--dur) var(--ease-out);
}

.footer__col a:hover {
    color: var(--white);
}

.footer__col li a:hover {
    transform: translateX(6px);
}

.footer__col address {
    font-style: normal;
}

.footer__col address p + p {
    margin-top: 0.7rem;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    margin-top: 3.5rem;
    padding-block: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer__reg {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: var(--on-accent);
    background: var(--accent);
    border-radius: 50%;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.8);
    transition:
        opacity var(--dur) ease,
        visibility var(--dur) ease,
        transform 0.45s var(--ease-spring);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

.back-to-top:hover .back-to-top__arrow {
    animation: nudge-up 0.8s var(--ease-out) infinite;
}

/* Ring fills with page scroll progress */
.back-to-top__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--white);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 157;
    stroke-dashoffset: calc(157 * (1 - var(--scroll-progress, 0)));
    transform: rotate(-90deg);
}

.back-to-top__arrow {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 17. Lightbox
   ========================================================================== */
.lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    color: var(--white);
    background: transparent;
    border: 0;
}

.lightbox[open] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 4.5rem var(--gutter) 2rem;
}

.lightbox::backdrop {
    background: rgba(14, 27, 49, 0.9);
    backdrop-filter: blur(8px);
    animation: fade-in 0.35s ease;
}

.lightbox[open] .lightbox__figure {
    animation: lightbox-in 0.6s var(--ease-spring);
}

.lightbox.is-closing .lightbox__figure {
    animation: lightbox-out 0.25s ease forwards;
}

.lightbox.is-closing::backdrop {
    animation: fade-out 0.25s ease forwards;
}

.lightbox__figure {
    display: grid;
    justify-items: center;
    gap: 1rem;
}

.lightbox__img {
    width: auto;
    min-height: min(45vh, 380px);
    max-height: 72vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
    text-align: center;
}

.lightbox__tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.lightbox__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
}

.lightbox.is-single .lightbox__nav {
    visibility: hidden;
}

.lightbox__close,
.lightbox__nav {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition:
        background var(--dur) ease,
        color var(--dur) ease,
        transform 0.4s var(--ease-spring);
}

.lightbox__close:hover,
.lightbox__nav:hover {
    color: var(--on-accent);
    background: var(--accent);
}

.lightbox__nav--prev:hover { transform: translateX(-4px); }
.lightbox__nav--next:hover { transform: translateX(4px); }

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: var(--gutter);
}

.lightbox__close:hover {
    transform: rotate(90deg);
}

.lightbox__close svg,
.lightbox__nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 18. Cursor follower (fine pointers only, created from JS)
   ========================================================================== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition:
        width 0.35s var(--ease-out),
        height 0.35s var(--ease-out),
        margin 0.35s var(--ease-out),
        background 0.35s ease,
        border-color 0.35s ease,
        opacity 0.3s ease;
}

.cursor.is-active {
    opacity: 1;
}

.cursor.is-hover {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    background: rgba(45, 98, 182, 0.15);
}

.cursor.is-view {
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    background: var(--accent);
}

.cursor.is-down {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
}

.cursor__label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-accent);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.25s ease, transform 0.4s var(--ease-spring);
}

.cursor.is-view .cursor__label {
    opacity: 1;
    transform: none;
}

/* 19. Motion - scroll reveal, split text & keyframes
   ========================================================================== */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.9s var(--ease-out),
        transform 1s var(--ease-out),
        clip-path 1.2s var(--ease-in-out);
    transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal='left'] { transform: translateX(-56px); }
.js [data-reveal='right'] { transform: translateX(56px); }
.js [data-reveal='zoom'] { transform: translateY(30px) scale(0.9); }

.js [data-reveal='pop'] {
    transform: scale(0.6);
    transition:
        opacity 0.6s var(--ease-out),
        transform 0.9s var(--ease-spring);
    transition-delay: var(--reveal-delay, 0s);
}

/* Curtain wipe for images: frame unveils while the photo settles */
.js [data-reveal='wipe'] {
    opacity: 1;
    transform: none;
    clip-path: inset(100% 0 0 0 round var(--radius));
}

.js [data-reveal='wipe'] img {
    transform: scale(1.25);
    transition: transform 1.6s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}

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

.js [data-reveal='wipe'].is-visible {
    clip-path: inset(0 0 0 0 round var(--radius));
}

.js [data-reveal='wipe'].is-visible img {
    transform: none;
}

.js [data-reveal='wipe'].is-settled img {
    transition: transform 0.9s var(--ease-out);
    transition-delay: 0s;
}

.js .project-card.is-visible:hover img {
    transform: scale(1.08);
}

/* Cards with hover/tilt: keep the reveal fade but switch transform to a snappy tilt */
.js [data-tilt].is-visible {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
    transition:
        opacity 0.9s var(--ease-out) var(--reveal-delay, 0s),
        transform 0.4s var(--ease-out),
        box-shadow 0.5s var(--ease-out),
        border-color 0.5s var(--ease-out);
}

.js .service-card.is-visible:hover { --lift: -8px; }
.js .testimonial.is-visible:hover { --lift: -6px; }
.js .team-card.is-visible:hover { --lift: -8px; }

/* Section headings: words rise from behind a mask */
.js [data-split] .word {
    display: inline-block;
    overflow: hidden;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
    vertical-align: top;
}

.js [data-split] .word > span {
    display: inline-block;
    transform: translateY(110%) rotate(6deg);
    transform-origin: left bottom;
    transition: transform 1s var(--ease-out);
    transition-delay: calc(0.15s + var(--i, 0) * 0.07s);
}

.js [data-split].is-visible .word > span {
    transform: none;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade-in {
    from { opacity: 0; }
}

@keyframes fade-out {
    to { opacity: 0; }
}

@keyframes word-rise {
    from { transform: translateY(110%) rotate(6deg); }
    to { transform: none; }
}

}

@keyframes kenburns {
    from { transform: scale(1.05); }
    to { transform: scale(1.18) translate(-1.5%, -1%); }
}

@keyframes grid-drift {
    to { background-position: 64px 64px; }
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

@keyframes redraw {
    from { stroke-dashoffset: 120; }
    to { stroke-dashoffset: 0; }
}

@keyframes dash {
    to { stroke-dashoffset: 0; }
}

@keyframes trolley {
    to { transform: translateX(-110px); }
}

@keyframes swing {
    from { transform: rotate(3.5deg); }
    to { transform: rotate(-3.5deg); }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes scroll-wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    70%,
    100% {
        transform: translateY(14px);
        opacity: 0;
    }
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes tape {
    to { background-position: 39.6px 0; }
}

@keyframes float {
    0%,
    100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes stripes {
    to { transform: translateX(62px); }
}

@keyframes sheen {
    0% { transform: translateX(-100%); }
    60%,
    100% { transform: translateX(100%); }
}

@keyframes shake {
    20%,
    60% { transform: translateX(-6px); }
    40%,
    80% { transform: translateX(6px); }
}

@keyframes nudge-up {
    50% { transform: translateY(-4px); }
}

@keyframes play-pulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 98, 182, 0.6); }
    70%,
    100% { box-shadow: 0 0 0 22px rgba(45, 98, 182, 0); }
}

@keyframes milestone-pulse {
    0% { box-shadow: 0 0 0 0 rgba(226, 174, 74, 0.6); }
    70%,
    100% { box-shadow: 0 0 0 10px rgba(226, 174, 74, 0); }
}

@keyframes blink {
    50% { opacity: 0.25; }
}

@keyframes block-drop {
    0% {
        opacity: 0;
        transform: translateY(-180%) rotate(-6deg);
    }
    35% { opacity: 1; }
    70% { transform: translateY(0) scale(1.04, 0.92); }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes roof-drop {
    0% {
        opacity: 0;
        transform: translateY(-90%) scale(0.92) rotate(4deg);
    }
    40% { opacity: 1; }
    75% { transform: translateY(0) scale(1.02, 0.94); }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes tower-rise {
    0% {
        opacity: 1;
        clip-path: inset(100% 0 0 0);
        transform: translateY(12%);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: none;
    }
}

@keyframes window-pop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes tag-draw {
    0% {
        opacity: 1;
        clip-path: inset(0 50% 0 50%);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes preload-bar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes view-wipe {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes view-zoom {
    from { transform: scale(1.18); }
    to { transform: scale(1.02); }
}

@keyframes drift {
    from { transform: scale(1.02); }
    to { transform: scale(1.1) translate(-1.5%, -1%); }
}

@keyframes appear {
    to { opacity: 1; }
}

@keyframes count-flip {
    from {
        opacity: 0;
        transform: translateY(60%) rotateX(80deg);
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }
}

@keyframes lightbox-out {
    to {
        opacity: 0;
        transform: scale(0.92);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after,
    ::backdrop {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .js .preloader {
        display: none;
    }

    .js [data-reveal],
    .js [data-reveal] img,
    .js [data-split] .word > span,
    .js .checklist li::before,
    .js .milestone,
    .js .map .map__card {
        opacity: 1;
        transform: none;
        clip-path: none;
    }

    .process::before,
    .js [data-reveal] .eyebrow::before {
        transform: scaleX(1);
    }
}

/* 20. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .crane {
        opacity: 0.45;
        right: -4rem;
    }
}

@media (max-width: 1024px) {
    .process {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 3rem;
    }

    .process::before {
        display: none;
    }

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

    .values,
    .faq,
    .contact {
        grid-template-columns: 1fr;
    }

    .faq .section-head {
        position: static;
    }
}

@media (max-width: 1080px) {
    .nav__toggle {
        display: flex;
    }

    /* Full-screen mobile menu, revealed with a circular wipe from the toggle */
    .nav__menu {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 2.5rem;
        padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
        background: var(--ink-900);
        clip-path: circle(0% at calc(100% - 2.5rem) 2.4rem);
        visibility: hidden;
        transition:
            clip-path 0.7s var(--ease-in-out),
            visibility 0s 0.7s;
    }

    .nav__menu.is-open {
        clip-path: circle(150% at calc(100% - 2.5rem) 2.4rem);
        visibility: visible;
        transition: clip-path 0.7s var(--ease-in-out), visibility 0s;
    }

    .logo {
        position: relative;
        z-index: 1;
    }

    .nav__links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav__links a {
        font-family: var(--font-display);
        font-size: clamp(2rem, 9vw, 2.75rem);
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .nav__links li,
    .nav__cta {
        opacity: 0;
        transform: translateY(32px);
        transition:
            opacity 0.4s ease,
            transform 0.6s var(--ease-out);
    }

    .nav__menu.is-open .nav__links li,
    .nav__menu.is-open .nav__cta {
        opacity: 1;
        transform: none;
    }

    .nav__menu.is-open li:nth-child(1) { transition-delay: 0.2s; }
    .nav__menu.is-open li:nth-child(2) { transition-delay: 0.25s; }
    .nav__menu.is-open li:nth-child(3) { transition-delay: 0.3s; }
    .nav__menu.is-open li:nth-child(4) { transition-delay: 0.35s; }
    .nav__menu.is-open li:nth-child(5) { transition-delay: 0.4s; }
    .nav__menu.is-open li:nth-child(6) { transition-delay: 0.45s; }
    .nav__menu.is-open li:nth-child(7) { transition-delay: 0.5s; }
    .nav__menu.is-open .nav__cta { transition-delay: 0.55s; }
}

@media (max-width: 900px) {
    .residence,
    .story,
    .story-video,
    .team-banner {
        grid-template-columns: 1fr;
    }

    .story--reverse .story__media {
        order: 0;
    }

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

    .trust__quotes {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .interiors__grid.carousel {
        grid-auto-columns: calc((100% - 1rem) / 2);
    }

    .bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }



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

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

    .cta__image {
        max-height: 260px;
        transform: none;
    }

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

    .about__media {
        max-width: 520px;
    }

    .about__badge {
        right: 0;
    }

    .crane {
        display: none;
    }
}

@media (max-width: 768px) {
    .interiors__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .js .res-chips {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin-inline: calc(-1 * var(--gutter));
        padding: 0.25rem var(--gutter);
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    }

    .js .res-chips::-webkit-scrollbar {
        display: none;
    }

    .js .res-chip {
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.5rem;
    }

    .hero__actions .btn {
        flex: 1 1 220px;
    }

    .hero__scroll {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .lightbox[open] {
        grid-template-columns: 1fr 1fr;
        align-content: center;
    }

    .lightbox__figure {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .lightbox__nav--prev {
        justify-self: end;
    }
}

@media (max-width: 560px) {
    .process {
        grid-template-columns: 1fr;
    }

    .filters {
        width: 100%;
        border-radius: var(--radius);
    }

    .filter {
        flex: 1 1 auto;
    }

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

    .credentials,
    .core-values {
        grid-template-columns: 1fr;
    }

    .mosaic {
        grid-auto-rows: 80px;
    }

    .bento {
        grid-auto-rows: 140px;
    }

    .interiors__grid.carousel {
        grid-auto-columns: 78%;
    }

    .filmstrip {
        grid-auto-columns: 88%;
    }

    .tank {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .tank__photos {
        contain: none;
        grid-column: 1 / -1;
        grid-template-rows: none;
        grid-template-columns: repeat(3, 1fr);
    }

    .tank__photos button {
        aspect-ratio: 1;
    }

    .res-switch__tab {
        padding: 0.55rem 0.9rem;
        font-size: 0.95rem;
    }

    .about__media {
        padding: 0 0 1.25rem 1.25rem;
    }

    .about__media::before {
        inset: 1.25rem 1.25rem 0 0;
    }

    .about__badge {
        bottom: 2.5rem;
        padding: 0.9rem 1.1rem;
    }

    .about__badge-num {
        font-size: 1.75rem;
    }

    .value-card {
        flex-direction: column;
        gap: 0.75rem;
    }

    .map__card {
        right: 1rem;
    }

    .map__card .btn {
        margin-left: auto;
    }
}

/* Phones: centre headings, icons, key copy and primary actions */
@media (max-width: 700px) {
    .hero__content,
    .section-head,
    .about__content,
    .values__core,
    .residence__info,
    .story__body,
    .story-video__text,
    .concepts__head,
    .cta__content,
    .team-banner figcaption,
    .service-card,
    .core-value,
    .process__step,
    .testimonial,
    .site-footer {
        text-align: center;
    }

    .hero__title,
    .hero__lead,
    .section-head,
    .section-head p:not(.eyebrow),
    .concepts__head p,
    .cta h2,
    .cta p,
    .footer__brand p {
        margin-inline: auto;
    }

    .hero__actions,
    .hero__trust,
    .cta__actions,
    .tags,
    .stars,
    .testimonial__author,
    .projects__head,
    .concepts__head,
    .interiors__head,
    .filmstrip__controls,
    .footer__bottom,
    .social {
        justify-content: center;
    }

    .hero__trust {
        flex-direction: column;
        align-items: center;
    }

    .testimonial__author div {
        text-align: left;
    }

    .service-card__icon,
    .core-value__icon,
    .process__num {
        margin-inline: auto;
    }

    .value-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .checklist,
    .milestones {
        width: fit-content;
        margin-inline: auto;
        text-align: left;
    }

    .story__sign {
        padding-left: 0;
        border-left: 0;
    }

    .story__sign::before {
        content: '';
        display: block;
        width: 32px;
        height: 3px;
        margin: 0 auto 0.6rem;
        border-radius: 3px;
        background: var(--gold);
    }

    .contact__submit {
        justify-self: stretch;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
    }

    .footer__col li a:hover {
        transform: none;
    }
}

@media (max-width: 700px) {
    .about__badge {
        left: 2rem;
        right: 0;
        width: fit-content;
        margin-inline: auto;
    }
}

@media (max-width: 560px) {
    .about__badge {
        left: 1.25rem;
    }
}
