/* ============================================================
   Wadeem Gardens — Modon · Hudayriyat Island, Abu Dhabi
   "Desert Light" — limestone ground, Modon navy ink, bronze accent.

   Palette sampled directly from the developer's own brochure:
   navy #2B2A40 (logo + footer bar), landmass #F7F7EC, sea #D3D9D9.
   Cormorant Garamond (display) · Jost (UI) — Jost is a near match
   for the geometric grotesque of the real WADEEM GARDENS wordmark.
   ============================================================ */

:root {
    --ink: #2B2A40;
    --ink-deep: #201F31;
    --ink-mid: #3B3A52;
    --ink-soft: #5C5A72;
    --ink-faint: #8B899C;

    --limestone: #F4F1E9;
    --limestone-2: #EBE6DA;
    --paper: #FBF9F5;
    --land: #F7F7EC;
    --sea: #D3D9D9;
    --ice: #E4EFEF;

    --bronze: #9A7B4F;
    --bronze-light: #C0A277;
    --sage: #8B9585;

    --rule: rgba(43, 42, 64, .14);
    --rule-soft: rgba(43, 42, 64, .08);
    --rule-light: rgba(244, 241, 233, .22);

    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-ui: 'Jost', 'Avenir Next', 'Helvetica Neue', sans-serif;

    --wrap: 1280px;
    --pad: clamp(20px, 5vw, 56px);
    --section: clamp(84px, 11vw, 158px);
    --ease: cubic-bezier(.22, .61, .21, 1);
    --header-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-ui);
    font-weight: 300;
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ink-mid);
    background: var(--limestone);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--limestone); }

:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 3px;
}

.wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.wrap--narrow { max-width: 940px; }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ type */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -.005em;
}

h2 { font-size: clamp(31px, 4.4vw, 58px); }
h3 { font-size: clamp(21px, 2.3vw, 30px); }

p + p { margin-top: 1.1em; }

.eyebrow {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--bronze);
    display: block;
}

.eyebrow--light { color: var(--bronze-light); }

.lede {
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.68;
    color: var(--ink-soft);
    font-weight: 300;
}

.serif-note {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(19px, 2vw, 25px);
    line-height: 1.5;
    color: var(--ink-soft);
}

/* section header: index numeral + eyebrow + rule */

.shead { margin-bottom: clamp(38px, 5vw, 66px); }

.shead__top {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
}

.shead__idx {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    color: var(--bronze);
    flex: 0 0 auto;
}

.shead__rule {
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.shead--light .shead__rule { background: var(--rule-light); }
.shead--light h2 { color: var(--limestone); }
.shead--light .lede { color: rgba(244, 241, 233, .72); }

.shead__title { max-width: 19ch; }
.shead__title--wide { max-width: 26ch; }

.shead__lede { margin-top: 22px; max-width: 58ch; }

/* ------------------------------------------------------------ buttons */

.btn {
    --btn-bg: var(--ink);
    --btn-fg: var(--limestone);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 34px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-bg);
    overflow: hidden;
    isolation: isolate;
    transition: color .5s var(--ease), border-color .5s var(--ease);
    text-align: center;
}

/* fill sweeps up from the base rather than a flat colour swap */
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--bronze);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .5s var(--ease);
}

.btn:hover { color: #fff; border-color: var(--bronze); }
.btn:hover::before { transform: scaleY(1); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    border-color: var(--rule);
}
.btn--ghost:hover { color: #fff; border-color: var(--bronze); }

.btn--light {
    --btn-bg: var(--limestone);
    --btn-fg: var(--ink);
}

.btn--ghost-light {
    --btn-bg: transparent;
    --btn-fg: var(--limestone);
    border-color: var(--rule-light);
}
.btn--ghost-light:hover { color: #fff; border-color: var(--bronze-light); }

.btn--wide { width: 100%; }
.btn .ico { flex: 0 0 auto; }

/* quiet text link with an animated underline */
.tlink {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bronze);
    padding-bottom: 4px;
    background-image: linear-gradient(var(--bronze), var(--bronze));
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .45s var(--ease), color .3s;
}
.tlink:hover { background-size: 34% 1px; color: var(--ink); }

/* ------------------------------------------------------------ header */

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    padding-top: env(safe-area-inset-top, 0px);
    transition: background .45s var(--ease), box-shadow .45s var(--ease);
}

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

.header--solid {
    background: rgba(244, 241, 233, .93);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    box-shadow: 0 1px 0 var(--rule-soft);
}

.header__logo { display: flex; align-items: center; }
.header__logo img { height: 34px; width: auto; transition: opacity .4s var(--ease); }
.header__logo .logo--dark { display: none; }
.header--solid .header__logo .logo--dark { display: block; }
.header--solid .header__logo .logo--light { display: none; }

.nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 36px);
}

.nav a {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--limestone);
    position: relative;
    padding-bottom: 3px;
    transition: color .3s;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--bronze-light);
    transition: width .4s var(--ease);
}
.nav a:hover::after { width: 100%; }
.header--solid .nav a { color: var(--ink-mid); }
.header--solid .nav a:hover { color: var(--ink); }

.header__side { display: flex; align-items: center; gap: 18px; }

.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    letter-spacing: .05em;
    color: var(--limestone);
    transition: color .3s;
}
.header--solid .header__phone { color: var(--ink); }
.header__phone:hover { color: var(--bronze-light); }
.header--solid .header__phone:hover { color: var(--bronze); }

.header__cta { padding: 13px 24px; font-size: 11px; }
.header .btn--ghost-light { border-color: rgba(244, 241, 233, .4); }
.header--solid .btn--ghost-light { color: var(--ink); border-color: var(--rule); }

.burger {
    display: none;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.burger span {
    display: block;
    width: 21px; height: 1px;
    background: var(--limestone);
    transition: background .3s, transform .4s var(--ease), opacity .3s;
}
.header--solid .burger span { background: var(--ink); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------ hero */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink-deep);
    text-align: center;
}

.hero__media { position: absolute; inset: 0; }
.hero__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 58% 50%;
    transform: scale(1.06);
    animation: heroDrift 18s var(--ease) forwards;
}
.hero__media picture { display: contents; }

@keyframes heroDrift { to { transform: scale(1); } }

/* Two layers: an elliptical scrim that sits directly behind the centred
   content so the type reads without squinting, over a top-and-tail linear
   that keeps the header and the lower edge legible. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 82% 66% at 50% 48%,
            rgba(22, 21, 36, .78) 0%,
            rgba(22, 21, 36, .58) 42%,
            rgba(22, 21, 36, .18) 72%,
            rgba(22, 21, 36, 0) 100%),
        linear-gradient(180deg,
            rgba(22, 21, 36, .70) 0%,
            rgba(22, 21, 36, .26) 26%,
            rgba(22, 21, 36, .34) 62%,
            rgba(22, 21, 36, .86) 100%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: clamp(38px, 6vw, 76px);
    padding-top: calc(var(--header-h) + 44px);
}

.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 9px 18px;
    border: 1px solid rgba(244, 241, 233, .28);
    background: rgba(32, 31, 49, .28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: clamp(22px, 3vw, 34px);
}

.hero__status span {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--limestone);
}

.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--bronze-light);
    box-shadow: 0 0 0 0 rgba(192, 162, 119, .7);
    animation: pulse 2.6s infinite;
    flex: 0 0 auto;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 9px rgba(192, 162, 119, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 162, 119, 0); }
}

.hero__logo {
    width: clamp(188px, 26vw, 300px);
    height: auto;
    margin-bottom: clamp(20px, 2.6vw, 30px);
}

.hero__title {
    font-size: clamp(34px, 4.9vw, 64px);
    line-height: 1.08;
    color: var(--limestone);
    font-weight: 300;
    /* the <br> sets the breaks; this only stops it running edge to edge */
    max-width: min(100%, 920px);
    text-wrap: balance;
    text-shadow: 0 2px 26px rgba(22, 21, 36, .55);
}

.hero__title em {
    font-style: italic;
    color: var(--bronze-light);
}

.hero__meta {
    margin-top: clamp(22px, 3vw, 32px);
    font-size: 12.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(244, 241, 233, .92);
    text-shadow: 0 1px 18px rgba(22, 21, 36, .7);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: clamp(28px, 3.6vw, 40px);
}

/* fact rail across the base of the hero */
.hero__rail {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 980px;
    margin-top: clamp(38px, 5vw, 62px);
    padding-top: clamp(22px, 2.6vw, 30px);
    border-top: 1px solid rgba(244, 241, 233, .24);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.hero__fact dt {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(244, 241, 233, .58);
    margin-bottom: 7px;
}

.hero__fact dd {
    font-family: var(--font-display);
    font-size: clamp(17px, 1.9vw, 23px);
    color: var(--limestone);
    line-height: 1.2;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 3;
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, transparent, rgba(244, 241, 233, .6));
    overflow: hidden;
}
.scroll-cue::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bronze-light);
    animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ------------------------------------------------------------ intro */

.intro { padding-block: var(--section); background: var(--limestone); }

.intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: start;
}

.intro__statement {
    font-family: var(--font-display);
    font-size: clamp(25px, 3.1vw, 41px);
    line-height: 1.26;
    color: var(--ink);
    font-weight: 400;
}

.intro__statement em { font-style: italic; color: var(--bronze); }

.intro__body { padding-top: 6px; }

.stat-rail {
    margin-top: clamp(50px, 6vw, 84px);
    padding-top: clamp(30px, 3.6vw, 44px);
    border-top: 1px solid var(--rule);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(18px, 3vw, 40px);
}

.stat dt {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1;
    color: var(--ink);
    margin-bottom: 14px;
    font-variant-numeric: lining-nums;
}

.stat dd {
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* ------------------------------------------------------------ the 25/75 plan */

.plan {
    position: relative;
    padding-block: var(--section);
    background: var(--ink-deep);
    color: rgba(244, 241, 233, .78);
    overflow: hidden;
}

.plan::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 80% 0%, rgba(154, 123, 79, .16) 0%, transparent 58%);
    pointer-events: none;
}

.plan .wrap { position: relative; z-index: 1; }

.plan__ratio {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(14px, 3vw, 46px);
    margin-bottom: clamp(30px, 4vw, 46px);
}

.plan__num {
    text-align: center;
    flex: 0 0 auto;
}

.plan__num b {
    display: block;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(74px, 15vw, 190px);
    line-height: .92;
    color: var(--limestone);
    letter-spacing: -.02em;
    /* Cormorant defaults to old-style figures — the 2, 5 and 7 descend
       straight through the label below. Lining figures sit on the baseline. */
    font-variant-numeric: lining-nums;
}

.plan__num span {
    display: block;
    margin-top: clamp(14px, 1.8vw, 24px);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--bronze-light);
}

.plan__slash {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(56px, 11vw, 140px);
    line-height: 1;
    color: rgba(192, 162, 119, .5);
    align-self: flex-start;
}

.plan__num--hero b { color: var(--bronze-light); }

/* proportion bar */
.plan__bar {
    display: flex;
    height: 8px;
    background: rgba(244, 241, 233, .1);
    overflow: hidden;
    margin-bottom: 14px;
}

.plan__seg {
    height: 100%;
    width: 0;
    transition: width 1.5s var(--ease);
}
.plan__seg--build { background: rgba(244, 241, 233, .42); }
.plan__seg--hand { background: var(--bronze); }
.plan.in .plan__seg--build { width: 25%; }
.plan.in .plan__seg--hand { width: 75%; }

.plan__barlabels {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(244, 241, 233, .5);
    margin-bottom: clamp(40px, 5vw, 66px);
}

.plan__pitch {
    max-width: 62ch;
    margin-inline: auto;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(21px, 2.5vw, 31px);
    line-height: 1.42;
    color: var(--limestone);
    font-weight: 400;
}

.plan__pitch em { font-style: italic; color: var(--bronze-light); }

/* two routes: self-funded 45/55, or 25/75 with an ADIB off-plan mortgage */
.plan__options {
    margin-top: clamp(40px, 5vw, 62px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--rule-light);
    border: 1px solid var(--rule-light);
    max-width: 880px;
    margin-inline: auto;
}

.plan__opt {
    background: var(--ink-deep);
    padding: clamp(22px, 2.8vw, 34px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan__opt--lead { background: #292840; }

.plan__optlabel {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(244, 241, 233, .55);
}
.plan__opt--lead .plan__optlabel { color: var(--bronze-light); }

.plan__optratio {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1;
    color: var(--limestone);
    font-variant-numeric: lining-nums;
}
.plan__optratio i { font-style: normal; color: rgba(244, 241, 233, .35); margin: 0 4px; }
.plan__opt--lead .plan__optratio { color: var(--bronze-light); }

.plan__optcopy { font-size: 13.5px; line-height: 1.6; color: rgba(244, 241, 233, .66); }

/* schedule — anchor dates open, the milestone calendar gated */
.plan__table {
    margin-top: clamp(40px, 5vw, 62px);
    max-width: 880px;
    margin-inline: auto;
    border-top: 1px solid var(--rule-light);
}

.plan__hrow,
.plan__trow {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 104px 118px;
    gap: 14px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--rule-light);
}

.plan__hrow {
    padding-block: 11px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(244, 241, 233, .45);
}

.plan__m {
    font-family: var(--font-display);
    font-size: 19px;
    color: rgba(244, 241, 233, .6);
    font-variant-numeric: lining-nums tabular-nums;
}

.plan__d { font-size: 14px; color: rgba(244, 241, 233, .78); }
.plan__d b { display: block; font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-light); margin-top: 3px; }

.plan__d--locked {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(192, 162, 119, .8);
}

.plan__p {
    font-family: var(--font-display);
    font-size: 21px;
    color: rgba(244, 241, 233, .82);
    text-align: center;
    font-variant-numeric: lining-nums tabular-nums;
}

.plan__p--none { color: rgba(244, 241, 233, .22); font-size: 16px; }
.plan__p--fin { color: var(--bronze-light); }

.plan__p small {
    display: block;
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .16em;
    color: rgba(244, 241, 233, .45);
    margin-top: 2px;
}

.plan__trow--key { border-bottom: 0; }
.plan__trow--key .plan__d,
.plan__trow--key .plan__m { color: var(--limestone); }
.plan__trow--key .plan__p { font-size: 25px; color: var(--limestone); }
.plan__trow--key .plan__p--fin { color: var(--bronze-light); }

.plan__foot {
    margin-top: clamp(30px, 4vw, 44px);
    text-align: center;
}

.plan__fine {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(244, 241, 233, .42);
    line-height: 1.6;
}

/* ------------------------------------------------------------ residences */

.res { padding-block: var(--section); background: var(--paper); }

.res__list {
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 3vw, 38px);
}

/* mirrors the developer's own brochure layout: ink panel + render */
.res__item {
    display: grid;
    grid-template-columns: minmax(0, 27%) minmax(0, 73%);
    min-height: clamp(230px, 27vw, 330px);
}

.res__item--flip { grid-template-columns: minmax(0, 73%) minmax(0, 27%); }
.res__item--flip .res__panel { order: 2; }
.res__item--flip .res__media { order: 1; }

.res__panel {
    background: var(--ink);
    color: var(--limestone);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(24px, 3vw, 40px) 18px;
    gap: 6px;
}

.res__figure {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(46px, 6vw, 82px);
    line-height: 1;
    color: var(--limestone);
    font-variant-numeric: lining-nums;
}

.res__type {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(244, 241, 233, .74);
}

.res__cta {
    margin-top: 16px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bronze-light);
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(192, 162, 119, .45);
    transition: color .3s, border-color .3s;
}
.res__cta:hover { color: var(--limestone); border-color: var(--limestone); }

/* The three source renders have very different native aspect ratios
   (1.40, 0.99, 2.07) — without a fixed ratio the square 5BR render makes
   its row twice the height of the others. */
.res__media {
    position: relative;
    overflow: hidden;
    background: var(--limestone-2);
    aspect-ratio: 16 / 9;
}
.res__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}
.res__item:hover .res__media img { transform: scale(1.04); }

.res__note {
    margin-top: clamp(34px, 4vw, 52px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: clamp(24px, 3vw, 34px);
    border-top: 1px solid var(--rule);
}

.res__note p { max-width: 54ch; font-size: 15px; color: var(--ink-soft); }

/* ------------------------------------------------------------ gallery */

.gal { padding-block: var(--section); background: var(--limestone); }

/* One tall portrait beside a landscape and a copy panel. Every tile is fed a
   crop taken from the full-resolution source and only ever scaled DOWN. */
.gal__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    gap: clamp(14px, 1.8vw, 26px);
}

.gal__fig {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--limestone-2);
}

.gal__fig img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
}
.gal__fig:hover img { transform: scale(1.035); }

.gal__fig--tall { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 3 / 4; }
.gal__fig--wide { grid-column: 2; grid-row: 1; aspect-ratio: 3 / 2; }

.gal__cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: clamp(16px, 2.2vw, 28px);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--limestone);
    background: linear-gradient(180deg, rgba(22, 21, 36, 0) 0%, rgba(22, 21, 36, .72) 100%);
}

.gal__note {
    grid-column: 2;
    grid-row: 2;
    background: var(--ink);
    color: rgba(244, 241, 233, .74);
    padding: clamp(24px, 3.2vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.gal__note p { font-size: 15px; line-height: 1.7; }
.gal__note .tlink {
    color: var(--bronze-light);
    background-image: linear-gradient(var(--bronze-light), var(--bronze-light));
    align-self: flex-start;
}
.gal__note .tlink:hover { color: var(--limestone); }

/* ------------------------------------------------------------ full-bleed quote band */

.band {
    position: relative;
    min-height: clamp(400px, 56vw, 660px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink-deep);
}

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

.band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(32, 31, 49, .86) 0%, rgba(32, 31, 49, .58) 46%, rgba(32, 31, 49, .3) 100%);
}

.band__inner { position: relative; z-index: 2; width: 100%; }

.band__quote {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.6vw, 50px);
    line-height: 1.24;
    color: var(--limestone);
    font-weight: 300;
    max-width: 19ch;
}

.band__quote em { font-style: italic; color: var(--bronze-light); }

.band__attr {
    margin-top: clamp(20px, 2.6vw, 30px);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(244, 241, 233, .6);
}

/* ------------------------------------------------------------ way of life */

.life { padding-block: var(--section); background: var(--ice); }

.life__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    background: rgba(43, 42, 64, .12);
    border: 1px solid rgba(43, 42, 64, .12);
}

.life__cell {
    background: var(--ice);
    padding: clamp(26px, 3.4vw, 44px) 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    text-align: center;
    transition: background .45s var(--ease);
}

.life__cell:hover { background: #EDF5F5; }

.life__cell img {
    height: clamp(44px, 4.6vw, 58px);
    width: auto;
    opacity: .88;
    transition: transform .55s var(--ease), opacity .4s;
}
.life__cell:hover img { transform: translateY(-3px); opacity: 1; }

.life__cell span {
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.5;
}

.life__foot {
    margin-top: clamp(32px, 4vw, 48px);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.life__foot p { max-width: 56ch; font-size: 15px; color: var(--ink-soft); }

/* ------------------------------------------------------------ location */

.loc { padding-block: var(--section) 0; background: var(--sea); }
.loc .shead h2, .loc .shead__idx { color: var(--ink); }
.loc .shead__idx { color: var(--bronze); }
.loc .shead__rule { background: rgba(43, 42, 64, .18); }

.loc__times {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 34px);
    margin-bottom: clamp(40px, 5vw, 64px);
    padding-top: clamp(28px, 3.4vw, 40px);
    border-top: 1px solid rgba(43, 42, 64, .18);
}

.loc__time dt {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.8vw, 48px);
    line-height: 1;
    color: var(--ink);
    margin-bottom: 10px;
    font-variant-numeric: lining-nums;
}
.loc__time dt small {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-left: 5px;
}
.loc__time dd {
    font-size: 12.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-mid);
    line-height: 1.55;
}

.loc__mapwrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.loc__map {
    display: block;
    width: 100%;
    min-width: 780px;
    height: auto;
}

.loc__hint {
    display: none;
    padding: 12px 0 18px;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: center;
}

/* ------------------------------------------------------------ developer */

.dev { padding-block: var(--section); background: var(--limestone); }

.dev__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: stretch;
}

.dev__logo { width: clamp(150px, 16vw, 200px); height: auto; margin-bottom: 26px; }

.dev__points {
    margin-top: clamp(28px, 3.4vw, 40px);
    display: grid;
    gap: 1px;
    background: var(--rule);
    border-block: 1px solid var(--rule);
}

.dev__point {
    background: var(--limestone);
    padding: 18px 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: baseline;
}

.dev__point b {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    color: var(--bronze);
    min-width: 62px;
}

.dev__point span { font-size: 15px; color: var(--ink-soft); }

/* fills the column height rather than floating in it */
.dev__media { overflow: hidden; background: var(--limestone-2); min-height: 380px; }
.dev__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }

/* ------------------------------------------------------------ priority / EOI */

.prio { padding-block: var(--section); background: var(--paper); }

.prio__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-bottom: clamp(34px, 4.2vw, 52px);
}

.prio__step {
    background: var(--paper);
    padding: clamp(28px, 3.4vw, 44px) clamp(22px, 2.6vw, 34px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prio__n {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    color: var(--bronze);
}

.prio__step h3 { font-size: clamp(19px, 2vw, 25px); }
.prio__step p { font-size: 14.5px; color: var(--ink-soft); }

.eoi {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(24px, 4vw, 54px);
    align-items: center;
    padding: clamp(28px, 3.6vw, 46px);
    background: var(--ink);
    color: rgba(244, 241, 233, .76);
}

.eoi p { font-size: 14.5px; max-width: 58ch; }

/* needs to outrank `.eoi p` above, which would otherwise shrink it to 14.5px */
.eoi p.eoi__figure {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.15;
    color: var(--limestone);
    margin-bottom: 14px;
    max-width: none;
    font-variant-numeric: lining-nums;
}
.eoi__figure em { font-style: italic; color: var(--bronze-light); }

/* ------------------------------------------------------------ FAQ */

.faq { padding-block: var(--section); background: var(--limestone); }

.faq__list { border-top: 1px solid var(--rule); }

.faq__item { border-bottom: 1px solid var(--rule); }

.faq__q {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(20px, 2.4vw, 28px) 0;
    text-align: left;
    font-family: var(--font-display);
    font-size: clamp(18px, 1.9vw, 23px);
    line-height: 1.35;
    color: var(--ink);
    transition: color .3s;
}
.faq__q:hover { color: var(--bronze); }

.faq__sign {
    position: relative;
    flex: 0 0 auto;
    width: 15px; height: 15px;
    margin-top: 7px;
}
.faq__sign::before,
.faq__sign::after {
    content: "";
    position: absolute;
    background: var(--bronze);
    transition: transform .45s var(--ease), opacity .3s;
}
.faq__sign::before { inset: 7px 0 7px 0; height: 1px; }
.faq__sign::after { inset: 0 7px 0 7px; width: 1px; }
.faq__item.open .faq__sign::after { transform: scaleY(0); opacity: 0; }

.faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .5s var(--ease);
}
.faq__item.open .faq__a { grid-template-rows: 1fr; }

.faq__a > div { overflow: hidden; }
.faq__a p {
    padding-bottom: clamp(20px, 2.4vw, 28px);
    max-width: 74ch;
    font-size: 15.5px;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------ register */

.reg { padding-block: var(--section); background: var(--ink-deep); color: rgba(244, 241, 233, .76); }

.reg__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 86px);
    align-items: start;
}

.reg__aside h2 { color: var(--limestone); max-width: 20ch; }
.reg__aside .lede { color: rgba(244, 241, 233, .68); margin-top: 20px; max-width: 46ch; }

.reg__contacts {
    margin-top: clamp(30px, 3.6vw, 42px);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reg__contact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule-light);
    color: var(--limestone);
    font-size: 15px;
    letter-spacing: .04em;
    transition: color .3s, padding-left .4s var(--ease);
}
.reg__contact:first-child { border-top: 1px solid var(--rule-light); }
.reg__contact:hover { color: var(--bronze-light); padding-left: 8px; }
.reg__contact .ico { flex: 0 0 auto; opacity: .8; }

.reg__card {
    background: var(--limestone);
    padding: clamp(26px, 3.2vw, 42px);
}

.reg__card h3 { margin-bottom: 8px; }
.reg__card > p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 26px; }

/* ------------------------------------------------------------ form */

.form { display: flex; flex-direction: column; gap: 14px; }

.form-control {
    width: 100%;
    padding: 15px 16px;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 300;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 0;
    transition: border-color .3s, box-shadow .3s;
    -webkit-appearance: none;
    appearance: none;
}

.form-control::placeholder { color: var(--ink-faint); }
.form-control:focus {
    outline: none;
    border-color: var(--bronze);
    box-shadow: 0 0 0 3px rgba(154, 123, 79, .12);
}

.form__row { display: flex; flex-direction: column; gap: 14px; }

.form__consent {
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-top: 2px;
}
.form__consent a { color: var(--bronze); text-decoration: underline; text-underline-offset: 2px; }

.form__done {
    text-align: center;
    padding: 30px 10px;
}
.form__done h4 {
    font-size: clamp(22px, 2.4vw, 30px);
    margin-bottom: 12px;
}
.form__done p { font-size: 15px; color: var(--ink-soft); }

/* The country selector's layout (prefix, flag, dropdown panel, the 94px
   left padding on the tel input) is injected by lead-form.js with
   !important — deliberately not restyled here. */

/* ------------------------------------------------------------ footer */

.footer { background: var(--ink); color: rgba(244, 241, 233, .6); }

.footer__inner {
    padding-block: clamp(44px, 5vw, 66px);
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
}

.footer__logo { height: 88px; width: auto; margin-bottom: 16px; }
.footer__tag { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }

.footer__links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 13px; }
.footer__links a { transition: color .3s; }
.footer__links a:hover { color: var(--bronze-light); }

.footer__disclaimer { border-top: 1px solid rgba(244, 241, 233, .12); }
.footer__disclaimer .wrap { padding-block: 26px; }

.footer__disclaimer-text {
    font-size: 11.5px;
    line-height: 1.7;
    color: rgba(244, 241, 233, .42);
    margin-bottom: 16px;
}
.footer__disclaimer-text a { color: rgba(244, 241, 233, .7); text-decoration: underline; }

.footer__copy { font-size: 11.5px; color: rgba(244, 241, 233, .42); }
.footer__copy a { text-decoration: underline; }

/* ------------------------------------------------------------ mobile action bar */

.actionbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 55;
    display: none;
    background: var(--ink);
    border-top: 1px solid rgba(244, 241, 233, .12);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

.actionbar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--limestone);
    border-right: 1px solid rgba(244, 241, 233, .12);
}
.actionbar__btn:last-child { border-right: 0; }
.actionbar__btn--primary { background: var(--bronze); color: #fff; }

/* ------------------------------------------------------------ popup */

.popup {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* `display: flex` above is an author rule, so it beats the UA stylesheet's
   [hidden] { display: none } — without this the closed popup stays laid out
   over the whole viewport at z-index 90 and eats every click on the page. */
.popup[hidden] { display: none; }

.popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(32, 31, 49, .72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.popup--in .popup__overlay { opacity: 1; }

.popup__card {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    max-height: 90svh;
    overflow-y: auto;
    background: var(--limestone);
    padding: clamp(28px, 4vw, 42px);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.popup--in .popup__card { opacity: 1; transform: none; }

.popup__close {
    position: absolute;
    top: 12px; right: 14px;
    width: 34px; height: 34px;
    font-size: 24px;
    line-height: 1;
    color: var(--ink-soft);
    transition: color .3s;
}
.popup__close:hover { color: var(--ink); }

.popup__card h3 { margin: 10px 0 8px; }
.popup__copy { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 22px; }

/* ------------------------------------------------------------ reveal */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: .09s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .27s; }
.reveal-d4 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .plan .plan__seg--build { width: 25%; }
    .plan .plan__seg--hand { width: 75%; }
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1080px) {
    .intro__grid,
    .dev__grid,
    .reg__grid { grid-template-columns: minmax(0, 1fr); }

    .dev__media { order: -1; }

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

@media (max-width: 900px) {
    :root { --header-h: 66px; }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--ink);
        padding: 8px var(--pad) 22px;
        transform: translateY(-14px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .35s var(--ease), transform .35s var(--ease);
        max-height: calc(100svh - var(--header-h));
        overflow-y: auto;
    }
    .nav.open { opacity: 1; transform: none; pointer-events: auto; }
    .nav a {
        color: var(--limestone);
        padding: 15px 0;
        border-bottom: 1px solid rgba(244, 241, 233, .1);
        font-size: 13px;
    }
    .header--solid .nav a { color: var(--limestone); }
    .nav a::after { display: none; }

    .burger { display: flex; }
    .header__phone, .header__cta { display: none; }

    .hero__rail { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
    .stat-rail { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
    .loc__times { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }

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

    .gal__grid { grid-template-columns: minmax(0, 1fr); }
    .gal__fig--tall { grid-column: 1; grid-row: auto; aspect-ratio: 4 / 5; }
    .gal__fig--wide { grid-column: 1; grid-row: auto; }
    .gal__note { grid-column: 1; grid-row: auto; }

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

    .actionbar { display: block; }
    body { padding-bottom: 54px; }
    .footer__inner { padding-bottom: 34px; }

    /* Centred means bottom padding no longer lifts the stack — it just grows
       the box and the centring splits the difference. So the phone hero is
       deliberately compact: the whole stack has to clear the fixed action bar
       at scroll 0, which costs roughly 200px against the desktop sizing. */
    /* Reserving the bar's height on the hero shrinks the flex content box, so
       the stack centres in the space ABOVE the bar instead of behind it. */
    .hero { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }

    .hero__inner {
        padding-top: calc(var(--header-h) + 14px);
        padding-bottom: clamp(20px, 4vw, 34px);
    }
    .hero__status { margin-bottom: 18px; padding: 8px 14px; }
    .hero__status span { font-size: 9.5px; letter-spacing: .2em; }
    .hero__logo { width: clamp(132px, 34vw, 180px); margin-bottom: 14px; }
    .hero__title { font-size: clamp(26px, 7.4vw, 38px); }
    .hero__meta { margin-top: 16px; font-size: 10.5px; letter-spacing: .14em; }
    .hero__actions { margin-top: 22px; gap: 10px; }
    .hero__actions .btn { padding: 15px 22px; }
    .hero__rail { margin-top: 26px; padding-top: 18px; gap: 14px 16px; }
    .hero__fact dt { font-size: 9.5px; margin-bottom: 4px; }
    .hero__fact dd { font-size: 15px; }
    .scroll-cue { display: none; }
}

/* Short phones (SE-class, ~667px) cannot hold the full centred stack above the
   action bar. Drop the fact rail there — the same four figures repeat as the
   stat rail in the section immediately below. */
@media (max-width: 900px) and (max-height: 730px) {
    .hero__rail { display: none; }
    .hero__logo { width: clamp(118px, 30vw, 150px); }
    .hero__title { font-size: clamp(24px, 6.6vw, 34px); }
    .hero__inner { padding-top: calc(var(--header-h) + 8px); }
    .hero__status { margin-bottom: 14px; }
    .hero__meta { margin-top: 12px; }
    .hero__actions { margin-top: 18px; }
}

@media (max-width: 760px) {
    .res__item,
    .res__item--flip { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .res__item--flip .res__panel { order: 0; }
    .res__item--flip .res__media { order: 1; }
    .res__media { aspect-ratio: 16 / 10; }
    .res__panel { padding: 26px 18px; }

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

    .loc__hint { display: block; }
    .loc__map { min-width: 680px; }

    .band::after {
        background: linear-gradient(180deg, rgba(32, 31, 49, .5) 0%, rgba(32, 31, 49, .82) 100%);
    }

    /* four columns will not fit a phone: month + date on one line,
       the two plan columns beneath with their own inline labels */
    .plan__hrow { display: none; }

    .plan__trow {
        grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 8px;
        padding: 16px 0;
    }
    .plan__m { grid-row: 1; grid-column: 1; }
    .plan__d { grid-row: 1; grid-column: 2 / -1; }
    .plan__trow > .plan__p:nth-child(3) { grid-row: 2; grid-column: 2; }
    .plan__trow > .plan__p:nth-child(4) { grid-row: 2; grid-column: 3; }

    .plan__p {
        text-align: left;
        font-size: 19px;
        line-height: 1.15;
    }
    .plan__p::before {
        content: attr(data-l);
        display: block;
        font-family: var(--font-ui);
        font-size: 9px;
        font-weight: 500;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: rgba(244, 241, 233, .4);
        margin-bottom: 4px;
    }
    .plan__trow--key .plan__p { font-size: 22px; }
}

@media (max-width: 520px) {
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
    .hero__rail { grid-template-columns: repeat(2, 1fr); }
    .plan__ratio { gap: 10px; }
    .plan__options { grid-template-columns: minmax(0, 1fr); }
    .footer__inner { flex-direction: column; align-items: flex-start; }
}
