/* ==========================================================================
   EXPORT PAGE
   Page-specific styles. Built only on the theme's existing tokens
   (style.css / colors/scheme-01.css) – no new colours or fonts.
   Motif: "The Export Route" – thin lines, pins and routes.
   ========================================================================== */

.ex-page {
    --ex-ease: cubic-bezier(.19, 1, .22, 1);
    --ex-line-dark: rgba(var(--bg-dark-1-rgb), .16);
    --ex-line-light: rgba(255, 255, 255, .18);
}

/* --------------------------------------------------------------------------
   Shared: reveal helpers
   -------------------------------------------------------------------------- */
.ex-mask {
    display: block;
    overflow: hidden;
    padding-bottom: .08em;
    margin-bottom: -.08em;
}
.ex-mask > span {
    display: block;
}
.ex-js .ex-mask > span {
    transform: translateY(110%);
    transition: transform 1.2s var(--ex-ease);
}
.ex-js .is-inview .ex-mask > span {
    transform: none;
}
.ex-mask:nth-child(2) > span { transition-delay: .12s; }
.ex-mask:nth-child(3) > span { transition-delay: .24s; }

.ex-js .ex-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s var(--ex-ease), transform .9s var(--ex-ease);
}
.ex-js .is-inview .ex-fade {
    opacity: 1;
    transform: none;
}
.ex-js .is-inview .ex-fade:nth-child(2) { transition-delay: .15s; }

.ex-display {
    font-size: clamp(40px, 6vw, 84px);
    line-height: .95;
    letter-spacing: -.02em;
    margin-bottom: 0;
}

.ex-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* Label with the route arrow: "India → World" */
.ex-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.ex-label__arrow {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 1px;
    background: currentColor;
    opacity: .7;
}
.ex-label__arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}

/* Pin – origin / destination marker */
.ex-pin {
    position: relative;
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #ffffff;
}
.ex-pin::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    animation: ex-pulse 2.6s ease-out infinite;
}
@keyframes ex-pulse {
    0%   { transform: scale(1);   opacity: .7; }
    100% { transform: scale(3.4); opacity: 0; }
}

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.ex-hero {
    background: var(--bg-dark-1);
    padding: 170px 0 110px;
    min-height: 100vh;
}
.ex-hero .subtitle {
    margin-bottom: 26px;
}
.ex-hero__title {
    font-size: clamp(44px, 6.4vw, 92px);
    margin-bottom: 40px;
}
.ex-hero__title-end {
    text-align: right;
}
.ex-hero__lower {
    align-items: flex-end;
}
.ex-hero__intro p {
    max-width: 440px;
    font-size: 18px;
}

.ex-hero__visual {
    --pw: 480px;    /* product max width (right aligned) */
    --mw: 1300px;   /* rendered width of the world linework */
    --ax: calc(100% - min(100%, var(--pw)) - 44px); /* origin (India): just left of the product */
    --ay: 58%;      /* y position of the origin */
    position: relative;
}
.ex-hero__map {
    position: absolute;
    z-index: 0;
    width: var(--mw);
    aspect-ratio: 1000 / 438;
    /* 0.692 / 0.1792 = India's position inside the map (see world-map generator) */
    left: calc(var(--ax) - var(--mw) * .692);
    top: calc(var(--ay) - var(--mw) * .1792);
    pointer-events: none;
}
.ex-hero__lines {
    display: block;
    width: 100%;
    height: 100%;
    opacity: .16;
}
.ex-hero__routes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.ex-hero__routes path {
    fill: none;
    stroke: #ffffff;
    stroke-opacity: .55;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}
.ex-hero__routes circle {
    fill: #ffffff;
    fill-opacity: .8;
}
.ex-js .ex-hero__routes path {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2.2s var(--ex-ease);
}
.ex-js .ex-hero__routes path:nth-of-type(2) { transition-delay: .25s; }
.ex-js .ex-hero__routes path:nth-of-type(3) { transition-delay: .5s; }
.ex-js .ex-hero__routes path:nth-of-type(4) { transition-delay: .75s; }
.ex-js .ex-hero__routes circle {
    opacity: 0;
    transition: opacity .8s ease 1.6s;
}
.ex-js .ex-hero.is-ready .ex-hero__routes path { stroke-dashoffset: 0; }
.ex-js .ex-hero.is-ready .ex-hero__routes circle { opacity: 1; }

.ex-hero__origin {
    position: absolute;
    z-index: 3;
    left: var(--ax);
    top: var(--ay);
    transform: translate(-50%, -50%);
}
/* tag sits on the product side of the pin, clear of the routes */
.ex-hero__coords {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    padding: 7px 12px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    background: rgba(var(--bg-dark-1-rgb), .82);
}
.ex-hero__coords strong {
    display: block;
    font-weight: 500;
    color: #ffffff;
}

.ex-hero__product {
    position: relative;
    z-index: 2;
    max-width: var(--pw);
    margin: 0 0 0 auto;
}
.ex-hero__frame {
    overflow: hidden;
    aspect-ratio: 1 / 1.02;
    border-radius: var(--rounded-1);
}
.ex-hero__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 70%;
}
.ex-js .ex-hero__frame {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.5s var(--ex-ease);
}
.ex-js .ex-hero__frame img {
    transform: scale(1.15);
    transition: transform 2.2s var(--ex-ease);
}
.ex-js .ex-hero.is-ready .ex-hero__frame { clip-path: inset(0 0 0 0); }
.ex-js .ex-hero.is-ready .ex-hero__frame img { transform: none; }

.ex-hero__caption {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--ex-line-light);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}
.ex-hero__caption span {
    color: #ffffff;
}

.ex-scroll-cue {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}
.ex-scroll-cue:hover {
    color: #ffffff;
}
.ex-scroll-cue__line {
    position: relative;
    width: 1px;
    height: 56px;
    overflow: hidden;
    background: var(--ex-line-light);
}
.ex-scroll-cue__line::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: #ffffff;
    animation: ex-cue 2.4s var(--ex-ease) infinite;
}
@keyframes ex-cue {
    0%   { transform: translateY(-100%); }
    60%  { transform: translateY(100%); }
    100% { transform: translateY(100%); }
}

/* --------------------------------------------------------------------------
   2. Journey
   -------------------------------------------------------------------------- */
.ex-journey {
    background: var(--bg-default);
    overflow: hidden;
}
.ex-route {
    position: relative;
    margin-top: 130px;
}
.ex-route__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.ex-route__base {
    fill: none;
    stroke: rgba(var(--bg-dark-1-rgb), .25);
    stroke-width: 1;
    stroke-dasharray: 3 6;
}
.ex-route__draw {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 1.5;
}
.ex-route__traveller {
    position: absolute;
    z-index: 3;
    left: 0;
    top: 0;
    width: 46px;
    padding: 3px;
    background: #ffffff;
    border: 1px solid rgba(var(--primary-color-rgb), .4);
    transform: translate(-50%, calc(-100% - 16px));
    opacity: 0;
    transition: opacity .4s ease;
    will-change: left, top;
}
.ex-route__traveller.is-visible {
    opacity: 1;
}
.ex-route__traveller::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1px;
    height: 12px;
    background: var(--primary-color);
}
.ex-route__traveller img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.ex-route__end {
    position: absolute;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--body-font-color);
    white-space: nowrap;
}
.ex-route__end--start {
    left: 0;
    top: -58px;
}
.ex-route__end--finish {
    right: 0;
    top: -58px;
}

.ex-route__stages {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ex-stage {
    position: relative;
    padding-right: 10px;
}
.ex-stage:nth-child(even) {
    margin-top: 120px;
}
.ex-stage__node {
    position: relative;
    display: block;
    width: 15px;
    height: 15px;
    margin-bottom: 30px;
    border-radius: 50%;
    background: var(--bg-default);
    border: 1px solid rgba(var(--bg-dark-1-rgb), .35);
    transition: background .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.ex-stage__num {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    letter-spacing: .14em;
    color: var(--primary-color);
}
.ex-stage__title {
    font-size: clamp(22px, 2vw, 28px);
    margin-bottom: 8px;
}
.ex-stage__text {
    margin: 0;
    max-width: 220px;
}
.ex-js .ex-stage__num,
.ex-js .ex-stage__title,
.ex-js .ex-stage__text {
    opacity: .3;
    transform: translateY(10px);
    transition: opacity .7s var(--ex-ease), transform .7s var(--ex-ease);
}
.ex-stage.is-active .ex-stage__node {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 7px rgba(var(--primary-color-rgb), .14);
}
.ex-js .ex-stage.is-active .ex-stage__num,
.ex-js .ex-stage.is-active .ex-stage__title,
.ex-js .ex-stage.is-active .ex-stage__text {
    opacity: 1;
    transform: none;
}
.ex-js .ex-stage.is-active .ex-stage__title { transition-delay: .06s; }
.ex-js .ex-stage.is-active .ex-stage__text { transition-delay: .12s; }

/* --------------------------------------------------------------------------
   3. Global reach map
   -------------------------------------------------------------------------- */
.ex-reach {
    background: var(--bg-dark-1);
}
.ex-map {
    margin-top: 60px;
    align-items: center;
}
.ex-map__canvas {
    position: relative;
}
.ex-js .ex-map__canvas {
    opacity: 0;
    transition: opacity 1.2s ease;
}
.ex-js .ex-map__canvas.is-inview {
    opacity: 1;
}
.ex-map__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.ex-map__graticule path {
    fill: none;
    stroke: rgba(255, 255, 255, .07);
    stroke-width: .5;
}
.ex-map__region path {
    fill: rgba(255, 255, 255, .04);
    stroke: rgba(255, 255, 255, .2);
    stroke-width: .35;
    transition: fill .45s ease;
}
.ex-map__region.is-enabled {
    cursor: pointer;
    outline: none;
}
.ex-map__region.is-enabled path {
    fill: rgba(255, 255, 255, .1);
}
.ex-map__region.is-enabled:hover path,
.ex-map__region.is-enabled:focus-visible path {
    fill: rgba(var(--primary-color-rgb), .6);
}
.ex-map__region.is-active path,
.ex-map__region.is-active:hover path {
    fill: rgba(var(--primary-color-rgb), .45);
    stroke: rgba(255, 255, 255, .3);
}
/* the countries we actually ship to — highlighted wherever they sit on the map */
.ex-map__svg path.is-market,
.ex-map__region.is-active path.is-market,
.ex-map__region.is-enabled:hover path.is-market {
    fill: var(--bg-default);
    stroke: #ffffff;
    stroke-width: .5;
}
.ex-map__origin-country {
    fill: var(--primary-color);
    stroke: #ffffff;
    stroke-width: .6;
}
.ex-map__route {
    fill: none;
    stroke: rgba(255, 255, 255, .35);
    stroke-width: 1;
    stroke-dasharray: .012 .014;
    vector-effect: non-scaling-stroke;
    display: none;
}
.ex-map__route.is-enabled {
    display: inline;
}
.ex-map__route.is-active {
    stroke: #ffffff;
    stroke-width: 1.5;
    stroke-dasharray: 1;
    animation: ex-draw 1.4s var(--ex-ease) both;
}
@keyframes ex-draw {
    from { stroke-dashoffset: 1; }
    to   { stroke-dashoffset: 0; }
}
.ex-map__hub {
    display: none;
    fill: rgba(255, 255, 255, .6);
}
.ex-map__hub.is-enabled {
    display: inline;
}
.ex-map__hub.is-active {
    fill: #ffffff;
}
.ex-map__origin-dot {
    fill: #ffffff;
}
.ex-map__origin-pulse {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1;
    transform-box: fill-box;
    transform-origin: center;
    animation: ex-pulse 2.6s ease-out infinite;
}

.ex-map__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    margin-top: 30px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}
.ex-map__legend span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.ex-map__legend-origin {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 1px solid #ffffff;
}
.ex-map__legend-route {
    width: 28px;
    border-top: 1px dashed rgba(255, 255, 255, .6);
}

.ex-map__panel {
    padding-left: 40px;
    border-left: 1px solid var(--ex-line-light);
}
.ex-map__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ex-map__tab {
    padding: 6px 16px;
    font-family: var(--body-font);
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
    background: none;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--btn-rounded);
    transition: all .3s ease;
}
.ex-map__tab:hover,
.ex-map__tab:focus-visible {
    color: #ffffff;
    border-color: #ffffff;
    outline: none;
}
.ex-map__tab.is-active {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.ex-map__detail {
    margin-top: 44px;
    transition: opacity .3s ease, transform .3s ease;
}
.ex-map__detail.is-changing {
    opacity: 0;
    transform: translateY(8px);
}
.ex-map__index {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .5);
}
.ex-map__name {
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.1;
    margin-bottom: 12px;
}
.ex-map__markets {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 26px 0 20px;
}
.ex-map__count {
    font-family: var(--heading-font);
    font-size: 72px;
    line-height: 1;
    letter-spacing: -.03em;
    color: #ffffff;
}
.ex-map__count-label {
    font-size: 14px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ex-map__countries {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ex-map__countries li {
    padding: 9px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

/* --------------------------------------------------------------------------
   4. Stats
   -------------------------------------------------------------------------- */
.ex-stats__list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin: 100px 0 0;
    padding: 50px 0 0;
}
/* route divider */
.ex-stats__list::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: rgba(var(--primary-color-rgb), .45);
    transform-origin: left center;
}
.ex-stats__list::after {
    content: "";
    position: absolute;
    right: 0;
    top: -4px;
    width: 9px;
    height: 9px;
    border-top: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
    transform: rotate(45deg);
}
.ex-js .ex-stats__list::before {
    transform: scaleX(0);
    transition: transform 1.8s var(--ex-ease);
}
.ex-js .ex-stats__list::after {
    opacity: 0;
    transition: opacity .6s ease 1.3s;
}
.ex-js .ex-stats__list.is-inview::before { transform: scaleX(1); }
.ex-js .ex-stats__list.is-inview::after { opacity: 1; }

.ex-stat {
    position: relative;
    padding-right: 20px;
}
.ex-stat + .ex-stat {
    padding-left: 30px;
    border-left: 1px solid var(--ex-line-dark);
}
.ex-stat::before {
    content: "";
    position: absolute;
    left: -4px;
    top: -54px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}
.ex-stat:first-child::before {
    left: 0;
}
.ex-js .ex-stat::before {
    transform: scale(0);
    transition: transform .6s var(--ex-ease);
}
.ex-js .is-inview .ex-stat::before { transform: scale(1); }
.ex-js .is-inview .ex-stat:nth-child(2)::before,
.ex-js .is-inview .ex-stat:nth-child(2) .ex-mask > span { transition-delay: .3s; }
.ex-js .is-inview .ex-stat:nth-child(3)::before,
.ex-js .is-inview .ex-stat:nth-child(3) .ex-mask > span { transition-delay: .6s; }
.ex-js .is-inview .ex-stat:nth-child(4)::before,
.ex-js .is-inview .ex-stat:nth-child(4) .ex-mask > span { transition-delay: .9s; }

.ex-stat__value {
    display: block;
    font-family: var(--heading-font);
    font-size: clamp(52px, 6.6vw, 104px);
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--heading-font-color);
}
.ex-stat__value em {
    font-style: normal;
    color: var(--primary-color);
}
.ex-stat__label {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   5. Spaces
   -------------------------------------------------------------------------- */
.ex-spaces {
    background: var(--bg-default);
}
.ex-spaces__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    margin-top: 70px;
}
.ex-space {
    position: relative;
    display: block;
    overflow: hidden;
    color: #ffffff;
    border-radius: var(--rounded-1);
}
.ex-space--residential {
    grid-column: 1 / span 7;
    grid-row: 1;
    aspect-ratio: 1 / 1.02;
}
.ex-space--hospitality {
    grid-column: 9 / span 4;
    grid-row: 1;
    align-self: start;
    margin-top: 190px;
    aspect-ratio: 3 / 4;
}
.ex-space--projects {
    grid-column: 5 / span 8;
    grid-row: 2;
    aspect-ratio: 16 / 8;
}
.ex-spaces__note {
    grid-column: 1 / span 3;
    grid-row: 2;
    align-self: end;
    margin: 0;
}
.ex-spaces__note span {
    display: block;
    margin-bottom: 10px;
    padding-bottom: 10px;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(var(--primary-color-rgb), .35);
}

.ex-space__media {
    position: absolute;
    inset: 0;
}
.ex-space__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ex-ease);
}
.ex-space--projects .ex-space__media img {
    object-position: 50% 64%;
}
.ex-js .ex-space .ex-space__media {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.4s var(--ex-ease);
}
.ex-js .ex-space.is-inview .ex-space__media {
    clip-path: inset(0 0 0 0);
}
.ex-space .gradient-edge-bottom {
    z-index: 1;
}
.ex-space__arrow {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    width: 80px;
    padding: 22px;
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: opacity .4s ease, transform .5s var(--ex-ease);
}
.ex-space:hover .ex-space__arrow,
.ex-space:focus-visible .ex-space__arrow {
    opacity: 1;
    transform: none;
}
.ex-space__caption {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 40px;
}
.ex-space__index {
    display: block;
    font-size: 13px;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .7);
}
.ex-space__title {
    margin: 4px 0 0;
    font-size: clamp(30px, 3.2vw, 48px);
    line-height: 1.1;
}
.ex-space__text {
    max-width: 360px;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    color: rgba(255, 255, 255, .85);
    transition: max-height .6s var(--ex-ease), opacity .5s ease, margin .6s var(--ex-ease);
}
.ex-space:hover .ex-space__text,
.ex-space:focus-visible .ex-space__text {
    max-height: 90px;
    margin-top: 8px;
    opacity: 1;
}
@media (hover: none) {
    .ex-space__text {
        max-height: none;
        margin-top: 8px;
        opacity: 1;
    }
    .ex-space__arrow {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   6. Statement
   -------------------------------------------------------------------------- */
.ex-statement__image {
    width: 52%;
    margin-top: 70px;
}
.ex-principles {
    list-style: none;
    margin: 60px 0 0;
    padding: 0;
}
.ex-principle {
    position: relative;
    display: grid;
    grid-template-columns: 70px 1fr;
    padding: 44px 0;
}
.ex-principle::before,
.ex-principle:last-child::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(var(--bg-dark-1-rgb), .2);
    transform-origin: left center;
}
.ex-principle::before { top: 0; }
.ex-principle:last-child::after { bottom: 0; }
.ex-principle__num {
    padding-top: 8px;
    font-size: 14px;
    letter-spacing: .14em;
    color: var(--primary-color);
}
.ex-principle__title {
    font-size: clamp(24px, 2.3vw, 32px);
    margin-bottom: 8px;
}
.ex-principle__text {
    margin: 0;
}
.ex-js .ex-principle::before,
.ex-js .ex-principle:last-child::after {
    transform: scaleX(0);
    transition: transform 1.4s var(--ex-ease);
}
.ex-js .ex-principle > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .9s var(--ex-ease) .25s, transform .9s var(--ex-ease) .25s;
}
.ex-js .ex-principle.is-inview::before,
.ex-js .ex-principle.is-inview:last-child::after {
    transform: scaleX(1);
}
.ex-js .ex-principle.is-inview > * {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   7. CTA – the route arrives
   -------------------------------------------------------------------------- */
.ex-cta {
    padding: 150px 0 140px;
}
.ex-arrival {
    position: relative;
    height: 20px;
    margin-bottom: 80px;
}
.ex-arrival__line {
    position: absolute;
    top: 50%;
    left: -50vw;
    right: 40%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .65));
    transform-origin: left center;
}
.ex-arrival .ex-pin {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
}
.ex-arrival__label {
    position: absolute;
    top: 50%;
    left: calc(60% + 26px);
    transform: translateY(-50%);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255, 255, 255, .75);
}
.ex-js .ex-arrival__line {
    transform: scaleX(0);
    transition: transform 1.8s var(--ex-ease);
}
.ex-js .ex-arrival .ex-pin,
.ex-js .ex-arrival__label {
    opacity: 0;
    transition: opacity .6s ease 1.3s;
}
.ex-js .ex-arrival.is-inview .ex-arrival__line { transform: scaleX(1); }
.ex-js .ex-arrival.is-inview .ex-pin,
.ex-js .ex-arrival.is-inview .ex-arrival__label { opacity: 1; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .ex-hero__visual { --mw: 1100px; }
    .ex-map__panel { padding-left: 30px; }
}

@media (max-width: 991.98px) {
    .ex-hero {
        padding: 150px 0 90px;
        min-height: 0;
    }
    .ex-hero__title { margin-bottom: 40px; }
    .ex-hero__title-end { text-align: left; }
    .ex-hero__routes path { stroke-opacity: .3; }
    .ex-scroll-cue { display: none; }

    /* Journey becomes vertical */
    .ex-route { margin-top: 90px; }
    .ex-route__stages {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ex-stage,
    .ex-stage:nth-child(even) {
        margin-top: 0;
        padding: 0 0 46px 48px;
    }
    .ex-stage__node {
        position: absolute;
        left: 0;
        top: 4px;
        margin: 0;
    }
    .ex-stage__text { max-width: none; }
    .ex-route__traveller { display: none; }
    .ex-route__end--start { left: 0; top: -40px; }
    .ex-route__end--finish { left: 0; right: auto; top: auto; bottom: -34px; }

    /* Map */
    .ex-map__panel {
        padding: 30px 0 0;
        border-left: 0;
        border-top: 1px solid var(--ex-line-light);
    }
    .ex-map__detail { margin-top: 30px; }

    /* Stats */
    .ex-stats__list {
        grid-template-columns: 1fr 1fr;
        row-gap: 60px;
        margin-top: 70px;
    }
    .ex-stat:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }
    .ex-stat:nth-child(3)::before,
    .ex-stat:nth-child(4)::before { display: none; }

    /* Spaces */
    .ex-spaces__grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .ex-space--residential { grid-column: 1; grid-row: 1; aspect-ratio: 3 / 4; }
    .ex-space--hospitality { grid-column: 2; grid-row: 1; aspect-ratio: 3 / 4; margin-top: 80px; }
    .ex-space--projects { grid-column: 1 / -1; grid-row: 2; aspect-ratio: 16 / 9; }
    .ex-spaces__note { grid-column: 1 / -1; grid-row: 3; max-width: 420px; }
    .ex-space__caption { padding: 26px 28px; }

    /* Statement */
    .ex-statement__image { display: none; }
    .ex-principles { margin-top: 10px; }

    .ex-cta { padding: 110px 0 100px; }
    .ex-arrival { margin-bottom: 50px; }
}

@media (max-width: 767.98px) {
    .ex-hero { padding-top: 130px; }
    .ex-hero .subtitle { font-size: 14px; margin-bottom: 20px; }
    .ex-hero__visual {
        --pw: 100%;
        --mw: 900px;
        --ax: 30px;
        --ay: 42%;
    }
    .ex-hero__lines { opacity: .12; }
    .ex-hero__frame { aspect-ratio: 4 / 4.2; }
    .ex-hero__coords {
        left: 18px;
        padding: 6px 10px;
        font-size: 11px;
    }
    .ex-scroll-cue { display: none; }

    .ex-map__count { font-size: 56px; }
    .ex-map__legend { font-size: 12px; }

    .ex-stat,
    .ex-stat + .ex-stat { padding: 0 12px 0 0; }
    .ex-stat:nth-child(even) {
        padding-left: 18px;
        border-left: 1px solid var(--ex-line-dark);
    }
    .ex-stat:nth-child(2)::before { left: -4px; }

    .ex-spaces__grid { grid-template-columns: 1fr; }
    .ex-space--residential,
    .ex-space--hospitality,
    .ex-space--projects { grid-column: 1; grid-row: auto; margin-top: 0; aspect-ratio: 4 / 5; }
    .ex-space--projects { aspect-ratio: 4 / 3.4; }
    .ex-spaces__note { grid-row: auto; }

    .ex-principle { grid-template-columns: 50px 1fr; padding: 32px 0; }

    .ex-arrival .ex-pin { left: 55%; }
    .ex-arrival__label { left: calc(55% + 22px); }
    .ex-arrival__line { right: 45%; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ex-page *,
    .ex-page *::before,
    .ex-page *::after {
        animation: none !important;
        transition: none !important;
    }
}
