/*
 * CormackCoreWeb 2.0 - Main Stylesheet
 * Forge M6 - Industrial / Logistics
 * Author: Charlie - Cormack Advertising
 */

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
    /* Primary Colors */
    --color-dark: #001224;
    --color-accent: #ABFF39;
    --color-accent-alt: #BBFF61;
    --color-light-blue: #AFE9FF;
    --color-light-blue-soft: #C5EFFF;
    --color-white: #FFFFFF;
    --color-blue: #0061A8;

    /* Gradients */
    --gradient-dark-top: linear-gradient(0deg, rgba(0, 18, 36, 0) 0%, #001224 100%);
    --gradient-dark-bottom: linear-gradient(360deg, #001224 0%, rgba(0, 18, 36, 0) 100%);
    --gradient-accent-fade: linear-gradient(180deg, rgba(171, 255, 57, 0.2) 0%, rgba(171, 255, 57, 0) 100%);
    --gradient-blue-fade: linear-gradient(180deg, rgba(175, 233, 255, 0.5) 0%, rgba(175, 233, 255, 0) 100%);
    --gradient-blue-line: linear-gradient(90deg, #AFE9FF 0%, rgba(175, 233, 255, 0) 98.99%);
    --gradient-hero-card: linear-gradient(0deg, rgba(175, 233, 255, 0.25) -38.57%, #AFE9FF 131.68%);
    --gradient-dark-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%);
    --gradient-card-subtle: linear-gradient(180deg, rgba(175, 233, 255, 0.03) 0%, rgba(105, 140, 153, 0.03) 100%);
    --gradient-contact-bg: linear-gradient(328.1deg, rgba(175, 233, 255, 0.2) 0.06%, rgba(175, 233, 255, 0) 60.72%);
    --gradient-image-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);

    /* Typography */
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: "Orbitron", sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1600px;
    --container-padding: 38px;
    --border-radius: 40px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-optical-sizing: auto;
    font-weight: 300;
    font-size: 16px;
    line-height: 22px;
    color: var(--color-white);
    background: var(--color-dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* ========================================
   Typography Utility Classes
   ======================================== */

/* Section Labels - small uppercase */
.section-label {
    font-family: var(--font-body);
    font-weight: 200;
    font-size: 12px;
    line-height: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* Section Headings - large */
.section-heading {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 50px;
    line-height: 61px;
}

.section-heading--bold {
    font-weight: 700;
}

/* Orbitron Display */
.orbitron-heading {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.orbitron-bold {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
}

.orbitron-regular {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* Inter Weights */
.inter-regular {
    font-family: var(--font-body);
    font-weight: 400;
}

.inter-medium {
    font-family: var(--font-body);
    font-weight: 500;
}

.inter-semibold {
    font-family: var(--font-body);
    font-weight: 600;
}

.inter-bold {
    font-family: var(--font-body);
    font-weight: 700;
}

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-intro {
    text-align: center;
    max-width: 814px;
    margin: 0 auto 60px;
}

.section-intro .section-label {
    margin-bottom: 9px;
}

.section-intro .section-heading {
    margin-bottom: 24px;
}

.section-intro .section-desc {
    max-width: 384px;
    margin: 0 auto;
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(360deg, rgba(175, 233, 255, 0) 0%, rgba(0, 18, 36, 0.8) 100%);
    border-bottom: 1px solid var(--color-accent);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    padding: 18px 60px;
    transition: padding 0.3s ease;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img,
.site-logo svg {
    height: 56px;
    width: auto;
    transition: height 0.3s ease;
}

.nav-group {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-group--left {
    justify-content: space-evenly;
}

.nav-group--right {
    justify-content: space-evenly;
}

.nav-group a {
    font-weight: 300;
    font-size: 16px;
    line-height: 19px;
    color: var(--color-white);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-group a:hover {
    color: var(--color-accent);
    opacity: 1;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: 0.3s;
}

/* Mobile Nav - hidden on desktop */
.mobile-nav {
    display: none;
}

/* Header scrolled state */
.site-header.is-scrolled {
    background: rgba(0, 18, 36, 0.95);
    backdrop-filter: blur(10px);
}

.site-header.is-scrolled .header-inner {
    padding-top: 8px;
    padding-bottom: 8px;
}

.site-header.is-scrolled .site-logo img,
.site-header.is-scrolled .site-logo svg {
    height: 36px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: var(--color-dark);
    border-bottom: 5px solid var(--color-accent);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    padding: 60px;
}

.hero-row {
    width: 100%;
}

.hero-row--top {
    display: flex;
    justify-content: flex-end;
    padding-top: 80px;
}

.hero-row--bottom {
    display: flex;
    justify-content: flex-start;
}

.hero-text {
    max-width: 796px;
    text-align: right;
}

.hero-text h1 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 50px;
    line-height: 61px;
    color: var(--color-white);
}

.hero-info {
    max-width: 440px;
}

.hero-p {
    font-weight: 300;
    font-size: 20px;
    line-height: 24px;
    color: var(--color-white);
    margin: 0 0 24px;
}

.hero-p:last-child {
    margin-bottom: 0;
}

.hero-stat {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 40px;
    line-height: 50px;
    color: var(--color-accent);
}

.hero-accent {
    color: var(--color-accent);
    font-style: italic;
}

/* Hero Info Card (rounded blue card) */
.hero-card {
    position: relative;
    background: var(--gradient-hero-card);
    border-radius: var(--border-radius);
    padding: 60px 80px;
    text-align: center;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(0deg, #ABFF39 0%, rgba(171, 255, 57, 0) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.hero-card .section-heading {
    font-weight: 700;
    color: var(--color-dark);
}

.hero-card .section-label {
    color: var(--color-dark);
}

.hero-card .section-desc {
    color: var(--color-dark);
    max-width: 384px;
    margin: 24px auto 0;
}

/* ========================================
   Accent Line Dividers
   ======================================== */
.accent-line {
    height: 5px;
    background: var(--color-accent);
    width: 100%;
}

.accent-line--thin {
    height: 1px;
}

.accent-line--white {
    background: var(--color-white);
}

/* ========================================
   Animated Hero Banner (CGI section)
   ======================================== */
.cgi-banner {
    position: relative;
    height: 766px;
    overflow: hidden;
}

.cgi-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

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

/* ========================================
   Specification Section
   ======================================== */
.section-specification {
    background: var(--color-white);
    padding: var(--section-padding) 0;
    position: relative;
}

.spec-card {
    position: relative;
    background: linear-gradient(135deg, #283b4d 0%, #041223 100%);
    border-radius: var(--border-radius);
    padding: 80px 60px;
}

.spec-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(0deg, #ABFF39 0%, rgba(171, 255, 57, 0) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.spec-card .section-intro {
    text-align: center;
    margin-bottom: 40px;
}

.spec-card .section-heading {
    color: var(--color-white);
}

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

.spec-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 240px;
    padding: 30px 10px;
    background: linear-gradient(180deg, rgba(175, 233, 255, 0.03) 0%, rgba(105, 140, 153, 0.03) 100%);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-4px);
}

.spec-item-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}

.spec-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spec-item-text {
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-white);
}

.spec-siteplan {
    margin: 40px 0;
}

.spec-siteplan img {
    width: 100%;
}

.spec-brochure {
    text-align: center;
    margin: 40px 0;
}

/* Area Table */
.area-table {
    min-width: 600px;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
}

.area-table th,
.area-table td {
    padding: 4px 0;
    font-size: 14px;
    line-height: 24px;
    border-bottom: 0.75px solid rgba(175, 233, 255, 0.2);
    color: var(--color-white);
}

.area-table th:first-child,
.area-table td:first-child {
    text-align: left;
}

.area-table th:nth-child(2),
.area-table td:nth-child(2) {
    text-align: center;
}

.area-table th:last-child,
.area-table td:last-child {
    text-align: right;
}

.area-table th {
    font-weight: 700;
}

.area-table td {
    font-weight: 400;
}

.area-table td:first-child {
    font-weight: 300;
}

.area-table-total td {
    border-bottom: none;
}

/* Download CTA */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-dark);
    font-weight: 300;
    font-size: 14px;
    line-height: 32px;
    padding: 0 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(171, 255, 57, 0.3);
    opacity: 1;
}

/* ========================================
   Location / The Area Section
   ======================================== */
.section-location {
    padding-bottom: var(--section-padding);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #d7f4ff 0%, #ffffff 100%);
}

.section-location .section-heading {
    color: #001224;
}

.section-location .section-desc {
    color: #001224;
}

.section-location-aerial {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    background-size: cover;
    background-position: top center;
    border-bottom: 5px solid var(--color-accent);
    padding: 60px 0;
}

.section-location-aerial .container {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.section-location-aerial .section-intro {
    text-align: center;
    margin-bottom: 40px;
}

.location-aerial-info {
    color: var(--color-white);
    font-size: 14px;
    line-height: 20px;
    font-weight: 300;
}

.location-aerial-info svg {
    margin-bottom: 12px;
}

.location-aerial-info p {
    margin: 0;
}

/* Drive Time Tables */
.drive-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.drive-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.drive-table th,
.drive-table td {
    padding: 5px 5px;
    font-size: 16px;
    line-height: 30px;
    text-align: left;
    border-bottom: 0.75px solid var(--color-light-blue);
}

.drive-table th:first-child,
.drive-table td:first-child {
    width: auto;
}

.drive-table th:nth-child(2),
.drive-table td:nth-child(2) {
    text-align: right;
    white-space: nowrap;
    width: 65px;
    padding-right: 20px;
}

.drive-table th:nth-child(3),
.drive-table td:nth-child(3) {
    text-align: right;
    white-space: nowrap;
    width: 65px;
}

.drive-table th {
    font-weight: 700;
    color: var(--color-dark);
}

.drive-table td {
    font-weight: 700;
    color: var(--color-dark);
}

.plane-icon {
    vertical-align: middle;
    margin-right: 4px;
    opacity: 0.6;
}

.drive-table--dark th,
.drive-table--dark td {
    color: #001224;
    border-color: #AFE9FF;
}

.location-map {
    margin-top: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.location-map img {
    width: 100%;
}

.location-cta {
    text-align: center;
    margin-top: 40px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

/* ========================================
   Gallery / CGI Banner Section
   ======================================== */
.section-gallery {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.gallery-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.gallery-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.gallery-sygnet {
    width: 100px;
    margin: 0 auto 24px;
    display: block;
}

.section-gallery .section-heading {
    text-align: center;
    color: #fff;
}

.gallery-accent {
    color: var(--accent-green);
    font-weight: 700;
}

/* ========================================
   Demographics Section
   ======================================== */
.section-demographics {
    padding: var(--section-padding) 0;
    padding-bottom: 60px;
    position: relative;
    background: #fff;
}

.demographics-hero {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 0;
    min-height: 650px;
    background-size: cover;
    background-position: top left;
}

.demographics-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.demographics-hero-content {
    text-align: center;
    max-width: 900px;
    padding: 60px 40px 40px;
}

.demographics-cards {
    display: flex;
    gap: 20px;
    margin-top: -220px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    align-items: flex-start;
}

.demo-card {
    background: var(--color-light-blue-soft);
    border: 5px solid var(--color-white);
    border-radius: var(--border-radius);
    padding: 28px 24px;
    color: var(--color-dark);
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 380px;
}

.demo-card--offset {
    margin-top: 80px;
}

.demo-card-icon {
    width: 61px;
    height: 57px;
    margin-bottom: 16px;
}

.demo-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.demo-card-title {
    font-weight: 300;
    font-size: 24px;
    line-height: 29px;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.demo-card-divider {
    width: 37px;
    height: 1px;
    background: var(--color-dark);
    margin: 12px 0;
}

.demo-card-text {
    font-weight: 300;
    font-size: 16px;
    line-height: 22px;
    color: var(--color-dark);
}

.demographics-source {
    font-weight: 300;
    font-size: 16px;
    line-height: 22px;
    margin-top: 40px;
    opacity: 0.6;
    text-align: center;
}

/* ========================================
   ESG / Sustainability Section
   ======================================== */
.section-esg {
    background: linear-gradient(180deg, #eeffdb 0%, #ffffff 100%);
    padding: var(--section-padding) 0;
    position: relative;
}

.section-esg .section-heading {
    color: var(--color-dark);
}

.section-esg .section-label {
    color: var(--color-dark);
    opacity: 1;
}

.esg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.esg-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1.3 / 1;
}

/* Photo cards */
.esg-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esg-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.6) 100%);
}

.esg-card-text {
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-white);
    text-align: center;
}

/* Icon cards */
.esg-card--icon {
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.esg-card--icon .esg-card-text {
    color: var(--color-dark);
    font-size: 14px;
}

.esg-card-icon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
}

.esg-icon-img {
    max-width: 84px;
    max-height: 84px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ========================================
   Contact Section
   ======================================== */
.section-contact {
    background-color: var(--color-dark);
    background-size: cover;
    background-position: center;
    padding: var(--section-padding) 0 40px;
    position: relative;
    overflow: hidden;
}

.section-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 36, 0.7);
    pointer-events: none;
}

.section-contact .section-intro {
    position: relative;
}

.contact-accent {
    color: var(--color-light-blue);
    font-weight: 700;
}

/* Agent blocks */
.agent-block {
    position: relative;
    text-align: center;
    margin-top: 50px;
}

.agent-logo {
    margin-bottom: 24px;
}

.agent-logo img {
    height: 48px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.agent-row {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.agent-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agent-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    color: var(--color-light-blue);
}

.agent-item a {
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-white);
    text-decoration: none;
}

.agent-item a:hover {
    color: var(--color-accent);
}

/* Developer */
.contact-developer {
    position: relative;
    text-align: center;
    margin-top: 50px;
}

.contact-developer p {
    font-weight: 300;
    font-size: 14px;
    color: var(--color-white);
    opacity: 0.6;
    margin-bottom: 16px;
}

.contact-developer img {
    height: 40px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Bottom bar */
.contact-bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.contact-credit {
    font-weight: 300;
    font-size: 14px;
    color: var(--color-white);
    opacity: 0.6;
}

.contact-credit a {
    color: var(--color-white);
    text-decoration: none;
}

.contact-credit a:hover {
    color: var(--color-accent);
}

/* ========================================
   W3W Address Style
   ======================================== */
.w3w {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 200;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========================================
   Scroll Down Indicator
   ======================================== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    fill: var(--color-accent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   Scroll-Triggered Animations
   ======================================== */

/* Base hidden state */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Revealed state */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-up variants for specific elements */
.hero-text.animate-on-scroll {
    transform: translateY(30px);
}

.hero-info.animate-on-scroll {
    transform: translateY(30px);
    transition-delay: 0.15s;
}

.hero-card.animate-on-scroll {
    transform: translateY(50px);
    transition-duration: 0.9s;
}

/* Scale-up for imagery */
.cgi-banner.animate-on-scroll,
.demographics-hero.animate-on-scroll,
.location-map.animate-on-scroll {
    transform: translateY(30px) scale(0.98);
    transition-duration: 0.8s;
}

.cgi-banner.animate-on-scroll.is-visible,
.demographics-hero.animate-on-scroll.is-visible,
.location-map.animate-on-scroll.is-visible {
    transform: translateY(0) scale(1);
}

/* Gallery content fades in gently */
.gallery-content.animate-on-scroll {
    transform: translateY(20px);
    transition-duration: 1s;
}

/* Section intros */
.section-intro.animate-on-scroll {
    transform: translateY(30px);
    transition-duration: 0.6s;
}

/* Grid children stagger (delay set via JS) */
.spec-item.animate-on-scroll,
.demo-card.animate-on-scroll,
.esg-card.animate-on-scroll {
    transform: translateY(30px);
    transition-duration: 0.5s;
}

/* Tables slide up */
.drive-table.animate-on-scroll,
.area-table.animate-on-scroll {
    transform: translateY(25px);
    transition-duration: 0.6s;
}

/* Contact blocks */
.agent-block.animate-on-scroll {
    transform: translateY(30px);
    transition-duration: 0.6s;
    transition-delay: 0.1s;
}

.contact-developer.animate-on-scroll {
    transform: translateY(20px);
    transition-duration: 0.6s;
    transition-delay: 0.15s;
}

/* Misc elements */
.spec-siteplan.animate-on-scroll,
.spec-brochure.animate-on-scroll,
.location-cta.animate-on-scroll,
.demographics-source.animate-on-scroll {
    transform: translateY(20px);
    transition-duration: 0.5s;
}

/* Aerial section */
.section-location-aerial.animate-on-scroll {
    transform: translateY(30px) scale(0.99);
    transition-duration: 0.9s;
}

.section-location-aerial.animate-on-scroll.is-visible {
    transform: translateY(0) scale(1);
}

/* ========================================
   Responsive Design
   Best-practice breakpoints:
   - 1440px : large desktop / widescreen
   - 1200px : standard desktop
   - 1024px : tablet landscape / small laptop
   - 768px  : tablet portrait
   - 480px  : mobile
   - 360px  : small mobile
   ======================================== */

/* --- Large Desktop (≤1440px) --- */
@media (max-width: 1440px) {
    .header-inner {
        padding: 18px 40px;
    }

    .hero-content {
        padding: 60px 40px;
    }

    .nav-group a {
        font-size: 15px;
    }
}

/* --- Standard Desktop (≤1200px) --- */
@media (max-width: 1200px) {
    :root {
        --container-padding: 32px;
    }

    .header-inner {
        padding: 16px 32px;
    }

    .nav-group a {
        font-size: 14px;
    }

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

    .spec-card {
        padding: 60px 40px;
    }

    .demographics-cards {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: -160px;
    }

    .demo-card {
        flex: 0 1 calc(33.333% - 14px);
        height: 340px;
    }

    .demo-card--offset {
        margin-top: 40px;
    }

    .drive-tables {
        gap: 40px;
    }

    .drive-table th,
    .drive-table td {
        font-size: 14px;
        line-height: 26px;
    }
}

/* --- Tablet Landscape / Small Laptop (≤1024px) --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
        --container-padding: 24px;
        --border-radius: 30px;
    }

    /* --- Header: switch to hamburger --- */
    .header-inner {
        padding: 14px 24px;
    }

    .nav-group--left,
    .nav-group--right {
        display: none !important;
    }

    .site-logo {
        z-index: 1001;
    }

    .site-logo img,
    .site-logo svg {
        height: 44px;
    }

    .site-header.is-scrolled .site-logo img,
    .site-header.is-scrolled .site-logo svg {
        height: 32px;
    }

    .site-header.is-scrolled .header-inner {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Fullscreen overlay */
    .site-header.nav-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-dark) !important;
        z-index: 1000;
        border-bottom: none;
    }

    .site-header.nav-open .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .mobile-nav a {
        font-weight: 300;
        font-size: 22px;
        line-height: 28px;
        color: var(--color-white);
        transition: color 0.3s ease;
        white-space: nowrap;
    }

    .mobile-nav a:hover {
        color: var(--color-accent);
        opacity: 1;
    }

    .site-header.nav-open .nav-toggle {
        position: absolute;
        top: 14px;
        right: 24px;
    }

    .site-header.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* --- Typography --- */
    .section-heading {
        font-size: 38px;
        line-height: 46px;
    }

    .hero-text h1 {
        font-size: 38px;
        line-height: 46px;
    }

    .hero-stat {
        font-size: 30px;
        line-height: 38px;
    }

    .hero-p {
        font-size: 18px;
        line-height: 22px;
    }

    /* --- Hero --- */
    .hero-content {
        padding: 40px 24px;
    }

    .hero-row--top {
        padding-top: 80px;
    }

    .hero-text {
        max-width: 600px;
    }

    /* --- Location Card --- */
    .hero-card {
        padding: 50px 40px;
    }

    .hero-card .section-heading {
        font-size: 38px;
        line-height: 46px;
    }

    /* --- CGI Banner --- */
    .cgi-banner {
        height: 500px;
    }

    /* --- Specification --- */
    .spec-card {
        padding: 50px 30px;
    }

    .spec-card .section-intro {
        margin-bottom: 40px;
    }

    .spec-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .spec-item {
        min-height: 200px;
        padding: 24px 10px;
    }

    .area-table {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    /* --- Gallery --- */
    .gallery-sygnet {
        width: 80px;
    }

    .section-gallery .section-heading {
        font-size: 38px;
        line-height: 46px;
    }

    /* --- Demographics --- */
    .demographics-hero {
        min-height: 500px;
    }

    .demographics-hero-content {
        max-width: 700px;
        padding: 50px 30px 30px;
    }

    .demographics-hero-content .section-heading {
        font-size: 38px;
        line-height: 46px;
    }

    .demographics-cards {
        margin-top: -180px;
        padding: 0 16px;
    }

    .demo-card {
        flex: 0 1 calc(33.333% - 14px);
        height: 320px;
        padding: 24px 20px;
    }

    .demo-card-title {
        font-size: 20px;
        line-height: 26px;
    }

    .demo-card-text {
        font-size: 14px;
        line-height: 20px;
    }

    /* --- ESG --- */
    .esg-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-esg .section-heading {
        font-size: 38px;
        line-height: 46px;
    }

    .esg-card--icon .esg-card-text {
        font-size: 14px;
    }

    /* --- Drive Tables --- */
    .drive-tables {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-location .section-heading {
        font-size: 38px;
        line-height: 46px;
    }

    .section-location .section-desc {
        font-size: 16px;
        line-height: 22px;
    }

    .drive-table--dark th,
    .drive-table--dark td {
        color: #001224;
        border-color: #AFE9FF;
    }

    /* --- Contact --- */
    .section-contact .section-heading {
        font-size: 38px;
        line-height: 46px;
    }

    .agent-row {
        flex-wrap: wrap;
        gap: 30px;
    }

    .agent-row--3 {
        justify-content: center;
    }
}

/* --- Tablet Portrait (≤768px) --- */
@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
        --border-radius: 24px;
        --container-padding: 20px;
    }

    /* --- Header --- */
    .header-inner {
        padding: 12px 20px;
    }

    .site-logo img,
    .site-logo svg {
        height: 40px;
    }

    .site-header.is-scrolled .header-inner {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .site-header.is-scrolled .site-logo img,
    .site-header.is-scrolled .site-logo svg {
        height: 30px;
    }

    .mobile-nav a {
        font-size: 20px;
        line-height: 26px;
    }

    .site-header.nav-open .nav-toggle {
        top: 12px;
        right: 20px;
    }

    .site-header.nav-open .mobile-nav {
        gap: 16px;
    }

    /* --- Typography --- */
    .section-heading {
        font-size: 30px;
        line-height: 38px;
    }

    .section-label {
        font-size: 11px;
    }

    .section-intro {
        margin-bottom: 40px;
    }

    .section-intro .section-desc {
        font-size: 15px;
        line-height: 21px;
    }

    /* --- Hero --- */
    .hero {
        min-height: 600px;
    }

    .hero-content {
        padding: 24px 20px;
    }

    .hero-row--top {
        justify-content: flex-start;
        padding-top: 80px;
    }

    .hero-text {
        text-align: left;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 30px;
        line-height: 38px;
    }

    .hero-stat {
        font-size: 24px;
        line-height: 32px;
    }

    .hero-p {
        font-size: 16px;
        line-height: 22px;
    }

    .hero-info {
        max-width: 100%;
    }

    /* --- Location Card --- */
    .section-location-card {
        padding: 0;
    }

    .hero-card {
        padding: 40px 24px;
        border-radius: var(--border-radius);
    }

    .hero-card .section-heading {
        font-size: 26px;
        line-height: 34px;
    }

    .hero-card .section-label {
        font-size: 11px;
    }

    .hero-card .section-desc {
        font-size: 14px;
        line-height: 20px;
    }

    /* --- CGI Banner --- */
    .cgi-banner {
        height: 350px;
    }

    /* --- Specification --- */
    .section-specification {
        padding: var(--section-padding) 0;
    }

    .spec-card {
        padding: 40px 20px;
        border-radius: var(--border-radius);
    }

    .spec-card .section-intro {
        margin-bottom: 30px;
    }

    .spec-card .section-heading {
        font-size: 30px;
        line-height: 38px;
    }

    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .spec-item {
        min-height: 180px;
        padding: 20px 10px;
        border-radius: var(--border-radius);
    }

    .spec-item-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
    }

    .spec-item-text {
        font-size: 13px;
        line-height: 18px;
    }

    .area-table {
        min-width: 0;
        width: 100%;
    }

    .area-table th,
    .area-table td {
        font-size: 13px;
        padding: 4px 8px;
    }

    .spec-brochure {
        margin: 30px 0;
    }

    .spec-siteplan {
        margin: 30px 0;
    }

    /* --- Gallery --- */
    .section-gallery {
        min-height: 70vh;
        padding: var(--section-padding) 0;
    }

    .section-gallery .section-heading {
        font-size: 30px;
        line-height: 38px;
    }

    .gallery-sygnet {
        width: 70px;
    }

    /* --- Location Aerial --- */
    .section-location-aerial {
        min-height: 450px;
        height: 70vh;
        padding: 40px 0;
    }

    .section-location-aerial .section-heading {
        font-size: 30px;
        line-height: 38px;
    }

    /* --- Demographics --- */
    .section-demographics {
        padding: var(--section-padding) 0;
        padding-bottom: 40px;
    }

    .demographics-hero {
        min-height: 400px;
        border-radius: var(--border-radius);
    }

    .demographics-hero-content {
        max-width: 100%;
        padding: 40px 20px 20px;
    }

    .demographics-hero-content .section-heading {
        font-size: 26px;
        line-height: 34px;
    }

    .demographics-hero-content p {
        font-size: 14px;
        line-height: 20px;
    }

    .demographics-cards {
        flex-wrap: wrap;
        margin-top: -120px;
        gap: 16px;
        padding: 0 12px;
    }

    .demo-card {
        flex: 0 1 calc(50% - 8px);
        height: auto;
        min-height: 280px;
        padding: 24px 20px;
        border-radius: var(--border-radius);
    }

    .demo-card--offset {
        margin-top: 0;
    }

    .demo-card-title {
        font-size: 18px;
        line-height: 24px;
    }

    .demo-card-text {
        font-size: 13px;
        line-height: 19px;
    }

    .demo-card-icon {
        width: 48px;
        height: 44px;
        margin-bottom: 12px;
    }

    .demographics-source {
        font-size: 13px;
        margin-top: 30px;
    }

    /* --- ESG --- */
    .section-esg {
        padding: var(--section-padding) 0;
    }

    .section-esg .section-heading {
        font-size: 30px;
        line-height: 38px;
    }

    .esg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .esg-card {
        border-radius: var(--border-radius);
    }

    .esg-card-overlay {
        padding: 20px;
    }

    .esg-card-text {
        font-size: 13px;
        line-height: 18px;
    }

    .esg-card--icon .esg-card-text {
        font-size: 13px;
        line-height: 18px;
    }

    .esg-icon-img {
        max-width: 64px;
        max-height: 64px;
    }

    .esg-card-icon-content {
        gap: 20px;
    }

    /* --- Location / Drive Tables --- */
    .section-location {
        padding-bottom: var(--section-padding);
    }

    .section-location .section-intro {
        margin-top: 40px !important;
        margin-bottom: 40px;
    }

    .section-location .section-heading {
        font-size: 26px;
        line-height: 34px;
    }

    .section-location .section-desc {
        font-size: 14px;
        line-height: 20px;
    }

    .drive-tables {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }

    .drive-table {
        width: 100%;
        table-layout: fixed;
    }

    .drive-table th,
    .drive-table td {
        font-size: 14px;
        line-height: 26px;
        padding: 4px 4px;
    }

    .drive-table th:first-child,
    .drive-table td:first-child {
        width: auto;
        text-align: left;
    }

    .drive-table th:nth-child(2),
    .drive-table td:nth-child(2) {
        width: 60px;
        text-align: right;
        white-space: nowrap;
        padding: 4px 14px 4px 4px;
    }

    .drive-table th:nth-child(3),
    .drive-table td:nth-child(3) {
        width: 60px;
        text-align: right;
        white-space: nowrap;
        padding: 4px 4px;
    }

    .drive-table th {
        font-weight: 700;
        color: var(--color-dark);
    }

    .drive-table td {
        font-weight: 700;
        color: var(--color-dark);
    }

    .drive-table--dark th,
    .drive-table--dark td {
        color: #001224;
        border-color: #AFE9FF;
    }

    .location-map {
        margin-top: 40px;
        border-radius: var(--border-radius);
    }

    .location-cta {
        margin-top: 30px;
    }

    /* --- Contact --- */
    .section-contact {
        padding: var(--section-padding) 0 30px;
    }

    .section-contact .section-intro {
        position: relative;
    }

    .section-contact .section-heading {
        font-size: 30px;
        line-height: 38px;
    }

    .agent-block {
        margin-top: 36px;
    }

    .agent-logo img {
        height: 40px;
    }

    .agent-row {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .agent-item {
        text-align: center;
    }

    .agent-name {
        font-size: 16px;
        line-height: 22px;
    }

    .agent-item a {
        font-size: 14px;
        line-height: 20px;
    }

    .contact-developer {
        margin-top: 36px;
    }

    .contact-developer p {
        font-size: 14px;
    }

    .contact-developer img {
        height: 32px;
    }

    .contact-bottom {
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
    }

    .contact-credit {
        font-size: 12px;
    }

    .contact-credit a {
        color: var(--color-white);
    }

    /* --- Lightbox --- */
    .lightbox-content {
        max-width: 95vw;
        padding: 0 10px;
    }

    .lightbox-close {
        top: -36px;
        font-size: 28px;
    }
}

/* --- Mobile (≤480px) --- */
@media (max-width: 480px) {
    :root {
        --section-padding: 20px;
        --border-radius: 20px;
        --container-padding: 16px;
    }

    /* Force 20px vertical padding on all sections */
    .section-specification,
    .section-esg,
    .section-demographics,
    .section-gallery,
    .section-contact {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .section-location-card {
        background: var(--color-white);
        padding: 20px 0;
    }

    /* --- Header --- */
    .header-inner {
        padding: 10px 16px;
    }

    .site-logo img,
    .site-logo svg {
        height: 36px;
    }

    .site-header.is-scrolled .header-inner {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .site-header.is-scrolled .site-logo img,
    .site-header.is-scrolled .site-logo svg {
        height: 28px;
    }

    .mobile-nav a {
        font-size: 18px;
        line-height: 24px;
    }

    .site-header.nav-open .nav-toggle {
        top: 10px;
        right: 16px;
    }

    .site-header.nav-open .mobile-nav {
        gap: 14px;
    }

    .nav-toggle span {
        width: 22px;
    }

    /* --- Typography --- */
    .section-heading {
        font-size: 24px;
        line-height: 32px;
    }

    .section-label {
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .section-intro {
        margin-bottom: 20px;
    }

    .section-intro .section-desc {
        font-size: 14px;
        line-height: 20px;
    }

    .section-intro .section-heading {
        margin-bottom: 16px;
    }

    /* --- Hero --- */
    .hero {
        min-height: 100svh;
    }

    .hero-content {
        padding: 20px 16px;
    }

    .hero-row--top {
        padding-top: 70px;
    }

    .hero-text {
        text-align: left;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 24px;
        line-height: 32px;
    }

    .hero-stat {
        font-size: 20px;
        line-height: 28px;
    }

    .hero-p {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 16px;
    }

    .hero-info {
        max-width: 100%;
    }

    /* --- Location Card --- */
    .hero-card {
        padding: 32px 20px;
        border-radius: var(--border-radius);
    }

    .hero-card .section-heading {
        font-size: 22px;
        line-height: 30px;
    }

    .hero-card .section-label {
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .hero-card .section-desc {
        font-size: 13px;
        line-height: 19px;
        max-width: 100%;
    }

    /* --- CGI Banner --- */
    .cgi-banner {
        height: 250px;
    }

    /* --- Specification --- */
    .section-specification {
        padding: 20px 0 !important;
    }

    .spec-card {
        padding: 32px 16px;
        border-radius: var(--border-radius);
    }

    .spec-card .section-intro {
        text-align: center;
        margin-bottom: 20px;
    }

    .spec-card .section-heading {
        font-size: 24px;
        line-height: 32px;
    }

    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .spec-item {
        min-height: 150px;
        padding: 16px 8px;
        border-radius: var(--border-radius);
    }

    .spec-item-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }

    .spec-item-text {
        font-size: 12px;
        line-height: 16px;
    }

    .area-table {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .area-table th,
    .area-table td {
        font-size: 12px;
        line-height: 20px;
        padding: 3px 4px;
    }

    .area-table th:first-child,
    .area-table td:first-child {
        text-align: left;
    }

    .area-table th:nth-child(2),
    .area-table td:nth-child(2) {
        text-align: center;
    }

    .area-table th:last-child,
    .area-table td:last-child {
        text-align: right;
    }

    .spec-brochure {
        margin: 20px 0;
    }

    .spec-siteplan {
        margin: 20px 0;
    }

    .cta-button {
        font-size: 13px;
        padding: 0 20px;
        line-height: 30px;
    }

    /* --- Gallery --- */
    .section-gallery {
        min-height: 50vh;
        padding: 20px 0 !important;
    }

    .section-gallery .section-heading {
        font-size: 24px;
        line-height: 32px;
    }

    .gallery-sygnet {
        width: 60px;
        margin-bottom: 16px;
    }

    /* --- Location Aerial --- */
    .section-location-aerial {
        min-height: 300px;
        height: 50vh;
        padding: 20px 0;
    }

    .section-location-aerial .section-heading {
        font-size: 24px;
        line-height: 32px;
    }

    .section-location-aerial .section-intro {
        margin-bottom: 20px;
    }

    /* --- Demographics --- */
    .section-demographics {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .demographics-hero {
        min-height: 320px;
        border-radius: var(--border-radius);
    }

    .demographics-hero-overlay {
        background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 100%);
    }

    .demographics-hero-content {
        text-align: center;
        max-width: 100%;
        padding: 32px 16px 16px;
    }

    .demographics-hero-content .section-heading {
        font-size: 22px;
        line-height: 30px;
    }

    .demographics-hero-content .section-heading--bold {
        font-weight: 700;
    }

    .demographics-hero-content p {
        font-size: 13px;
        line-height: 19px;
    }

    .demographics-cards {
        display: flex;
        flex-direction: column;
        margin-top: -80px;
        gap: 12px;
        padding: 0 8px;
    }

    .demo-card {
        flex: 1 1 100%;
        height: auto;
        min-height: auto;
        padding: 24px 20px;
        border-radius: var(--border-radius);
        border: 5px solid var(--color-white);
    }

    .demo-card--offset {
        margin-top: 0;
    }

    .demo-card-title {
        font-size: 18px;
        line-height: 24px;
    }

    .demo-card-text {
        font-size: 13px;
        line-height: 19px;
    }

    .demo-card-icon {
        width: 44px;
        height: 40px;
        margin-bottom: 12px;
    }

    .demo-card-divider {
        width: 37px;
        height: 1px;
        margin: 10px 0;
    }

    .demographics-source {
        font-size: 12px;
        margin-top: 20px;
    }

    /* --- ESG --- */
    .section-esg {
        padding: 20px 0 !important;
    }

    .section-esg .section-heading {
        font-size: 24px;
        line-height: 32px;
    }

    .section-esg .section-label {
        font-size: 10px;
    }

    .esg-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .esg-card {
        aspect-ratio: 1.2 / 1;
        border-radius: var(--border-radius);
    }

    .esg-card-overlay {
        padding: 16px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.6) 100%);
    }

    .esg-card-text {
        font-size: 12px;
        line-height: 16px;
    }

    .esg-card--icon .esg-card-text {
        font-size: 12px;
        line-height: 16px;
    }

    .esg-icon-img {
        max-width: 52px;
        max-height: 52px;
    }

    .esg-card-icon-content {
        gap: 16px;
    }

    /* --- Location / Drive Tables --- */
    .section-location {
        padding-bottom: 20px;
    }

    .section-location .section-intro {
        margin-top: 20px !important;
        margin-bottom: 20px;
    }

    .section-location .section-heading {
        font-size: 22px;
        line-height: 30px;
    }

    .section-location .section-desc {
        font-size: 13px;
        line-height: 19px;
    }

    .drive-tables {
        grid-template-columns: 1fr;
        margin-top: 20px;
        gap: 20px;
    }

    .drive-table {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }

    .drive-table th,
    .drive-table td {
        font-size: 13px;
        line-height: 22px;
        padding: 3px 2px;
        border-bottom: 0.75px solid var(--color-light-blue);
    }

    .drive-table th:first-child,
    .drive-table td:first-child {
        width: auto;
        text-align: left;
        word-break: keep-all;
    }

    .drive-table th:nth-child(2),
    .drive-table td:nth-child(2) {
        width: 55px;
        text-align: right;
        white-space: nowrap;
        padding: 3px 10px 3px 2px;
    }

    .drive-table th:nth-child(3),
    .drive-table td:nth-child(3) {
        width: 55px;
        text-align: right;
        white-space: nowrap;
        padding: 3px 2px;
    }

    .drive-table th {
        font-weight: 700;
        color: var(--color-dark);
    }

    .drive-table td {
        font-weight: 700;
        color: var(--color-dark);
    }

    .drive-table--dark th,
    .drive-table--dark td {
        color: #001224;
        border-color: #AFE9FF;
    }

    .plane-icon {
        width: 12px;
        height: 12px;
        vertical-align: middle;
        margin-right: 3px;
    }

    .location-map {
        margin-top: 20px;
        border-radius: var(--border-radius);
    }

    .location-cta {
        margin-top: 20px;
        text-align: center;
    }

    /* --- Contact --- */
    .section-contact {
        padding: 20px 0 16px !important;
    }

    .section-contact .section-intro {
        position: relative;
    }

    .section-contact .section-heading {
        font-size: 24px;
        line-height: 32px;
    }

    .contact-accent {
        color: var(--color-light-blue);
        font-weight: 700;
    }

    .agent-block {
        position: relative;
        margin-top: 30px;
    }

    .agent-logo {
        margin-bottom: 20px;
    }

    .agent-logo img {
        height: 36px;
    }

    .agent-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .agent-item {
        text-align: center;
    }

    .agent-name {
        font-weight: 700;
        font-size: 15px;
        line-height: 20px;
        color: var(--color-light-blue);
    }

    .agent-item a {
        font-weight: 300;
        font-size: 13px;
        line-height: 18px;
        color: var(--color-white);
    }

    .contact-developer {
        position: relative;
        margin-top: 30px;
    }

    .contact-developer p {
        font-size: 12px;
        color: var(--color-white);
        opacity: 0.6;
    }

    .contact-developer img {
        height: 28px;
    }

    .contact-bottom {
        flex-direction: column;
        gap: 10px;
        margin-top: 24px;
    }

    .contact-credit {
        font-size: 11px;
        color: var(--color-white);
        opacity: 0.6;
    }

    .contact-credit a {
        color: var(--color-white);
    }

    /* --- Scroll indicator --- */
    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator svg {
        width: 20px;
        height: 20px;
    }

    /* --- Lightbox --- */
    .lightbox-content {
        max-width: 95vw;
        padding: 0 8px;
    }

    .lightbox-close {
        top: -32px;
        font-size: 26px;
    }
}

/* --- Small Mobile (≤360px) --- */
@media (max-width: 360px) {
    :root {
        --container-padding: 12px;
        --border-radius: 16px;
    }

    .section-heading {
        font-size: 22px;
        line-height: 28px;
    }

    .hero-text h1 {
        font-size: 20px;
        line-height: 28px;
    }

    .hero-stat {
        font-size: 18px;
        line-height: 24px;
    }

    .hero-p {
        font-size: 13px;
        line-height: 19px;
    }

    .hero-card {
        padding: 24px 16px;
        border-radius: var(--border-radius);
    }

    .hero-card .section-heading {
        font-size: 20px;
        line-height: 26px;
    }

    .hero-card .section-desc {
        font-size: 12px;
        line-height: 18px;
    }

    .spec-card {
        padding: 24px 12px;
        border-radius: var(--border-radius);
    }

    .spec-card .section-heading {
        font-size: 22px;
        line-height: 28px;
    }

    .spec-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .spec-item {
        min-height: 130px;
        padding: 14px 6px;
        border-radius: var(--border-radius);
    }

    .spec-item-text {
        font-size: 11px;
        line-height: 15px;
    }

    .section-gallery .section-heading {
        font-size: 22px;
        line-height: 28px;
    }

    .demographics-hero-content .section-heading {
        font-size: 20px;
        line-height: 26px;
    }

    .demo-card {
        padding: 20px 16px;
        border-radius: var(--border-radius);
    }

    .demo-card-title {
        font-size: 16px;
        line-height: 22px;
    }

    .section-esg .section-heading {
        font-size: 22px;
        line-height: 28px;
    }

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

    .esg-card {
        aspect-ratio: 1.5 / 1;
        border-radius: var(--border-radius);
    }

    .esg-card--icon .esg-card-text {
        font-size: 11px;
    }

    .section-location .section-heading {
        font-size: 20px;
        line-height: 26px;
    }

    .section-location-aerial .section-heading {
        font-size: 20px;
        line-height: 26px;
    }

    .drive-table th,
    .drive-table td {
        font-size: 12px;
        line-height: 20px;
        padding: 3px 2px;
    }

    .drive-table th:nth-child(2),
    .drive-table td:nth-child(2) {
        width: 50px;
        padding: 3px 8px 3px 2px;
    }

    .drive-table th:nth-child(3),
    .drive-table td:nth-child(3) {
        width: 50px;
        padding: 3px 2px;
    }

    .section-contact .section-heading {
        font-size: 22px;
        line-height: 28px;
    }

    .agent-name {
        font-size: 14px;
    }

    .agent-item a {
        font-size: 12px;
        line-height: 17px;
    }

    .mobile-nav a {
        font-size: 16px;
        line-height: 22px;
    }

    .site-header.nav-open .mobile-nav {
        gap: 10px;
    }

    .site-header.nav-open .nav-toggle {
        top: 10px;
        right: 12px;
    }

    .cgi-banner {
        height: 200px;
    }
}

/* --- Landscape phones --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100svh;
    }

    .hero-content {
        padding: 16px 24px;
    }

    .hero-row--top {
        padding-top: 60px;
    }

    .section-gallery {
        min-height: 100svh;
    }

    .section-location-aerial {
        min-height: 100svh;
    }
}

/* --- Touch device hover fix --- */
@media (hover: none) {
    .spec-item:hover {
        transform: none;
    }

    .cta-button:hover {
        transform: none;
        box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.25);
    }

    a:hover {
        opacity: 1;
    }
}

/* --- High-DPI / Retina awareness --- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .accent-line {
        height: 5px;
    }
}

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