/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-h) + 8px) 0 0;
    overflow: hidden;
    isolation: isolate;
}

.hero__media {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
    z-index: 0;
}

.hero__media img,
.hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
}

.hero__video {
    display: block;
    background: #050607;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 6, 7, 1) 0%,
            rgba(5, 6, 7, 0.88) 18%,
            rgba(5, 6, 7, 0.42) 46%,
            rgba(5, 6, 7, 0.08) 72%,
            rgba(5, 6, 7, 0.15) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 6, 7, 0.18) 0%,
            rgba(5, 6, 7, 0) 28%,
            rgba(5, 6, 7, 0.55) 100%
        );
}

.hero__glow-red,
.hero__glow-lime {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
}

.hero__glow-red {
    width: 380px;
    height: 380px;
    left: -140px;
    top: 18%;
    background: rgba(170, 18, 48, 0.42);
}

.hero__glow-lime {
    width: 420px;
    height: 420px;
    right: 8%;
    bottom: -80px;
    background: rgba(225, 6, 0, 0.14);
}

.hero__stack {
    position: static;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: calc(100vh - var(--header-h) - 8px);
    padding: 48px 0 40px;
    max-width: 720px;
}

.hero__top,
.hero__bottom {
    position: relative;
    z-index: 2;
}

.hero__title {
    margin: 22px 0 22px;
    font-size: var(--fs-hero);
    max-width: 11ch;
}

.hero__lead {
    max-width: 46ch;
    color: var(--text-secondary);
    font-size: 1rem;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.hero__trust svg {
    color: var(--accent);
    flex-shrink: 0;
}

.hero__cta-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.hero-stat {
    padding: 0 22px;
    border-left: 1px solid var(--border-strong);
}

.hero-stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.hero-stat__value {
    font-family: var(--font-display);
    font-size: var(--fs-stat);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-stat__label {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__note {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Hero carousel */
.hero-carousel {
    min-height: 100vh;
}

.hero-carousel__track {
    position: relative;
    min-height: calc(100vh - var(--header-h) - 120px);
}

.hero-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-carousel__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-carousel__slide .hero__media {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
}

.hero-carousel__slide .hero__stack {
    min-height: calc(100vh - var(--header-h) - 140px);
}

.hero-carousel__ui {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
    margin-top: -8px;
}

.hero-carousel__arrows {
    display: flex;
    gap: 8px;
}

.hero-carousel__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-strong);
    background: rgba(13, 15, 18, 0.72);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.hero-carousel__arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.hero-carousel__dots {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero-carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: transform 0.25s, background 0.25s;
}

.hero-carousel__dot.is-active {
    background: var(--accent);
    transform: scale(1.15);
}

.hero__shared {
    position: relative;
    z-index: 4;
    padding-bottom: 36px;
}

.hero__stats-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.hero__shared .hero__stats {
    flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel__slide {
        transition: none;
    }
}

/* ========== SHOWCASE VIDEO (after hero) ========== */
.showcase-video {
    position: relative;
    padding: 0 0 var(--space-2xl);
    background: var(--bg-primary);
    z-index: 1;
}

.showcase-video__inner {
    max-width: 1180px;
}

.showcase-video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #000;
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    isolation: isolate;
}

.showcase-video__frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 6, 7, 0.1) 0%,
        transparent 22%
    );
    pointer-events: none;
    z-index: 1;
}

.showcase-video__frame::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(225, 6, 0, 0.15) 100%);
    z-index: 2;
    pointer-events: none;
}

.showcase-video__player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #000;
}

.showcase-video__player::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.showcase-video__hint {
    margin: 14px 0 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

/* ========== SECTION CHROME ========== */
.section {
    position: relative;
    padding: var(--space-3xl) 0;
    z-index: 1;
}

.section--tight {
    padding-top: var(--space-2xl);
}

.section-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 64px;
}

.section-heading {
    margin-top: 18px;
    font-size: var(--fs-display);
}

.section-head .section-heading {
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
}

.section-head p {
    margin: 18px auto 0;
    max-width: 58ch;
    color: var(--text-secondary);
}

.section-head--left {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

/* Solutions grid */
.solutions {
    position: relative;
    overflow: hidden;
}

.solutions__glow-l,
.solutions__glow-r {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}

.solutions__glow-l {
    left: -180px;
    bottom: 8%;
    background: rgba(160, 16, 46, 0.22);
}

.solutions__glow-r {
    right: -160px;
    top: 18%;
    background: rgba(225, 6, 0, 0.1);
}

.solutions__stack {
    display: grid;
    gap: 16px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ========== BUILDING ECOSYSTEM ========== */
.ecosystem {
    background:
        radial-gradient(ellipse at 20% 80%, rgba(160, 16, 46, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 90% 20%, rgba(225, 6, 0, 0.08) 0%, transparent 40%),
        var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.eco-pin {
    position: relative;
}

.eco-stage {
    display: grid;
    grid-template-columns: 1fr 1.15fr 0.95fr;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.eco-copy__kicker {
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: var(--fs-label);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}

.eco-copy h2 {
    margin: 16px 0 20px;
    font-size: var(--fs-section);
}

.eco-phase {
    display: none;
}

.eco-phase.is-active {
    display: block;
}

.eco-phase h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.eco-phase p {
    margin-top: 10px;
    color: var(--text-secondary);
    max-width: 36ch;
}

.eco-progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 32px;
}

.eco-progress__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eco-progress__item.is-on {
    color: var(--text-primary);
}

.eco-progress__item i {
    width: 7px;
    height: 7px;
    background: var(--text-muted);
}

.eco-progress__item.is-on i {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.eco-progress__item.is-alert i {
    background: var(--danger);
}

.building-frame {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.building-frame svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.building-win {
    fill: #14171c;
    transition: fill 0.6s var(--ease-out);
}

.eco-pin[data-phase="1"] .building-win.bms,
.eco-pin[data-phase="5"] .building-win.bms {
    fill: #e10600;
    filter: drop-shadow(0 0 4px rgba(225, 6, 0, 0.65));
}

.eco-pin[data-phase="2"] .building-win.sec,
.eco-pin[data-phase="5"] .building-win.sec {
    fill: #ff3b3b;
}

.eco-pin[data-phase="3"] .building-win.light,
.eco-pin[data-phase="5"] .building-win.light {
    fill: #f3e27a;
}

.eco-pin[data-phase="4"] .data-path,
.eco-pin[data-phase="5"] .data-path {
    opacity: 1;
    stroke-dashoffset: 0;
}

.eco-pin[data-phase="5"] .building-win {
    fill: #e10600;
}

.eco-pin[data-phase="5"] .building-win.sec {
    fill: #ff4d4d;
}

.data-path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.2;
    opacity: 0;
    stroke-dasharray: 8 6;
    stroke-dashoffset: 80;
    transition: opacity 0.5s, stroke-dashoffset 0.8s;
}

.eco-status {
    display: grid;
    gap: 12px;
}

.eco-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: rgba(13, 15, 18, 0.85);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.eco-chip strong {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eco-chip em {
    font-style: normal;
    color: var(--accent);
    font-weight: 700;
}

.eco-chip[data-show] {
    opacity: 0.28;
}

.eco-pin[data-phase="1"] .eco-chip[data-show="1"],
.eco-pin[data-phase="2"] .eco-chip[data-show="2"],
.eco-pin[data-phase="3"] .eco-chip[data-show="3"],
.eco-pin[data-phase="4"] .eco-chip[data-show="4"],
.eco-pin[data-phase="5"] .eco-chip {
    opacity: 1;
}

/* ========== INDUSTRIES ========== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 320px;
    grid-auto-rows: 220px;
    gap: 14px;
}

.industries-grid .industry-card:nth-child(1),
.industries-grid .industry-card:nth-child(2) {
    grid-row: span 1;
    min-height: 300px;
}

.industries-grid .industry-card:nth-child(1) {
    grid-column: 1 / 3;
    min-height: 320px;
}

.industries-grid .industry-card:nth-child(2) {
    grid-column: 3 / 5;
    min-height: 320px;
}

/* ========== BRANDS ========== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.brands-note {
    margin-top: 22px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.brands-view-all {
    margin-top: 24px;
    text-align: center;
}

.brands-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}

.brands-view-all a:hover {
    text-decoration: underline;
}

/* ========== PROJECTS ========== */
.projects-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 16px;
}

/* ========== WHY ========== */
.why-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.why-lead {
    margin-top: 20px;
    max-width: 46ch;
    color: var(--text-secondary);
}

.why-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 36px;
}

.why-stat {
    padding: 22px 20px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.why-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--accent);
}

.why-stat span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ========== CTA ========== */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.cta__media {
    position: absolute;
    inset: 0;
}

.cta__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.cta__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 6, 7, 0.92) 0%, rgba(5, 6, 7, 0.78) 48%, rgba(5, 6, 7, 0.7) 100%),
        linear-gradient(180deg, rgba(5, 6, 7, 0.2) 0%, rgba(5, 6, 7, 0.85) 100%);
}

.cta__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.cta__title {
    font-size: var(--fs-display);
}

.cta__text {
    margin: 20px 0 32px;
    max-width: 46ch;
    color: var(--text-secondary);
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta__glow {
    position: absolute;
    width: 480px;
    height: 480px;
    right: -80px;
    top: -80px;
    background: radial-gradient(circle, rgba(225, 6, 0, 0.12) 0%, transparent 68%);
    pointer-events: none;
}

/* Enquiry form */
.enquiry {
    position: relative;
    z-index: 1;
    margin-top: 56px;
    padding: 28px;
    max-width: 820px;
    background: rgba(8, 9, 11, 0.78);
    border: 1px solid var(--border);
}

.enquiry__title {
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.enquiry__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.enquiry label {
    display: grid;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.enquiry label.full {
    grid-column: 1 / -1;
}

.enquiry input,
.enquiry select,
.enquiry textarea {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid var(--border-strong);
    background: #0b0d10;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}

.enquiry textarea {
    min-height: 110px;
    resize: vertical;
}

.enquiry input:focus,
.enquiry select:focus,
.enquiry textarea:focus {
    border-color: var(--accent);
}

.enquiry__file {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0;
}

.enquiry__status {
    margin-top: 12px;
    font-size: 0.86rem;
    color: var(--accent);
}
