/* =====================================================================
   W Residences Sardinia — Poltu Quatu (OLB40) — landing
   Brand: W Hotels (Marriott). Core palette Black + Off-White, Residences
   secondary accents (Charcoal, Mauve, Cool Gray, Teal). Typeface:
   W Supreme (Lineto, Marriott-licensed), with Jost as system fallback.
   ===================================================================== */

/* ---------- W Supreme (web fonts shipped with the site) ---------- */
@font-face{
    font-family:'W Supreme'; font-style:normal; font-weight:400; font-display:swap;
    src:url('../fonts/WSupremeWeb-Regular.woff2') format('woff2'),
    url('../fonts/WSupremeWeb-Regular.woff')  format('woff');
}
@font-face{
    font-family:'W Supreme'; font-style:italic; font-weight:400; font-display:swap;
    src:url('../fonts/WSupremeWeb-Italic.woff2') format('woff2'),
    url('../fonts/WSupremeWeb-Italic.woff')  format('woff');
}
@font-face{
    font-family:'W Supreme'; font-style:normal; font-weight:500; font-display:swap;
    src:url('../fonts/WSupremeWeb-Medium.woff2') format('woff2'),
    url('../fonts/WSupremeWeb-Medium.woff')  format('woff');
}
@font-face{
    font-family:'W Supreme'; font-style:italic; font-weight:500; font-display:swap;
    src:url('../fonts/WSupremeWeb-MediumItalic.woff2') format('woff2'),
    url('../fonts/WSupremeWeb-MediumItalic.woff')  format('woff');
}
@font-face{
    font-family:'W Supreme'; font-style:normal; font-weight:600; font-display:swap;
    src:url('../fonts/WSupremeWeb-SemiBold.woff2') format('woff2'),
    url('../fonts/WSupremeWeb-SemiBold.woff')  format('woff');
}
@font-face{
    font-family:'W Supreme'; font-style:italic; font-weight:600; font-display:swap;
    src:url('../fonts/WSupremeWeb-SemiBoldItalic.woff2') format('woff2'),
    url('../fonts/WSupremeWeb-SemiBoldItalic.woff')  format('woff');
}

/* ---------- Tokens ---------- */
:root{
    /* Core palette (W Hotels) */
    --off-white:   #F2F0E4;
    --off-white-2: #ECEADC;          /* slightly darker shade for hovered/secondary surfaces */
    --black:       #000000;
    --black-soft:  #0A0A0A;

    /* Residences-specific palette */
    --charcoal:    #453F47;
    --mauve:       #6D6F81;
    --mauve-2:     #6A6C7E;          /* AAA-compliant digital value */
    --cool-gray:   #9FABC2;
    --teal:        #7E959E;

    /* Working aliases (semantic) */
    --bg:          var(--off-white);
    --bg-2:        var(--off-white-2);
    --ink:         var(--black);
    --ink-2:       var(--charcoal);
    --ink-soft:    var(--mauve-2);
    --accent:      var(--mauve-2);   /* primary accent for eyebrows, hover, active */
    --accent-2:    var(--teal);      /* alternate accent (sparing) */
    --line:        rgba(0,0,0,.14);
    --line-soft:   rgba(0,0,0,.08);

    /* Inverted (dark) surfaces */
    --dark:        var(--black);
    --dark-2:      #111111;
    --dark-bone:   var(--off-white);
    --dark-soft:   var(--cool-gray);
    --line-light:  rgba(242,240,228,.18);
    --line-light-soft: rgba(242,240,228,.10);

    /* Backwards-compat aliases — earlier "warm Mediterranean" token names now
       remap to the W Hotels palette so the rest of the stylesheet inherits
       the new brand automatically. */
    --bone:        var(--off-white);
    --bone-2:      var(--off-white-2);
    --bone-3:      var(--cool-gray);
    --paper:       var(--off-white);
    --terracotta:  var(--accent);
    --terracotta-2:var(--mauve);
    --sage:        var(--teal);
    --granite:     var(--cool-gray);
    --gold:        var(--mauve);

    /* Typography */
    --font-display:'W Supreme', 'Jost', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-ui:     'W Supreme', 'Jost', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

    --maxw:        1480px;
    --pad-x:       clamp(1.25rem, 5vw, 6rem);
    --sec-y:       clamp(5rem, 13vh, 11rem);

    --ease:        cubic-bezier(.16,.84,.27,1);
    --ease-out:    cubic-bezier(.22,1,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{
    font-family:var(--font-ui);
    background:var(--bg);
    color:var(--ink);
    font-size:clamp(.95rem,.55rem + .55vw,1.075rem);
    line-height:1.55;             /* W Supreme body — per W linespacing chart */
    font-weight:400;
    letter-spacing:.01em;          /* slight positive tracking for small body */
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    overflow-x:clip;            /* clip, not hidden — keeps `position: sticky` working in descendants */
    overflow-wrap:break-word;
    word-break:normal;
    text-wrap:pretty;
}
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font:inherit; color:inherit; background:none; border:none; cursor:pointer; }
input,select,textarea{ font:inherit; color:inherit; }
::selection{ background:var(--terracotta); color:var(--paper); }

/* ---------- Layout helpers ---------- */
.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--pad-x); }
.section{ padding-block:var(--sec-y); position:relative; }
/* let grid/flex children shrink below their content's intrinsic width so long
   strings (emails, addresses) wrap instead of overflowing on narrow screens */
.manifesto__grid > *, .facts__list > li, .feature > *, .amenities__grid > *,
.services__cats > *, .services__foot > *,
.location__grid > *, .contact__inner > *, .contact__details > *,
.site-footer__inner > *, .section-head, .feature__text{ min-width:0; }

/* ---------- Typography ---------- */
.eyebrow{
    font-family:var(--font-ui);
    font-size:.7rem;
    font-weight:600;             /* W Supreme SemiBold */
    letter-spacing:.26em;        /* small caps: looser tracking per W spec */
    text-transform:uppercase;
    color:var(--accent);
    display:flex; align-items:center; gap:.85em;
}
.eyebrow::before{ content:""; width:2.4em; height:1px; background:currentColor; opacity:.7; }
/* On dark surfaces *and* on photography: W "Off-White On Image" is the
   primary pairing (Color On Image is for "use sparingly"). Switching the
   light eyebrow to off-white gives much stronger contrast on the hero and
   immersive sections, and still reads beautifully on the charcoal panels. */
.eyebrow--light{ color:var(--off-white); }
.eyebrow--light::before{ background:var(--off-white); opacity:.9; }
/* extra dark halo when the eyebrow sits over a photograph — small caps text
   needs tight local contrast even with the 28% overlay underneath */
.hero .eyebrow--light,
.immersive .eyebrow--light{ text-shadow:0 0 14px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.55); }

/* W headlines = SemiBold, ALL CAPS, tight tracking, tight line-height */
.display{
    font-family:var(--font-display);
    font-weight:600;
    line-height:1.04;
    letter-spacing:-.008em;      /* W "just right" tracking for large type */
    text-transform:uppercase;
    font-size:clamp(2rem, 1rem + 3.6vw, 4.4rem);
    color:var(--ink);
}
h1,h2,h3,h4{ font-weight:inherit; }

/* ---------- Buttons ---------- */
.btn{
    --bg:var(--ink); --fg:var(--paper); --bd:var(--ink);
    display:inline-flex; align-items:center; justify-content:center; gap:.6em;
    font-family:var(--font-ui);
    font-size:.74rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
    padding:1.05em 1.9em;
    border:1px solid var(--bd);
    background:var(--bg); color:var(--fg);
    border-radius:999px;
    transition:background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
    will-change:transform;
}
.btn:hover{ transform:translateY(-2px); }
.btn--solid{ --bg:var(--ink); --fg:var(--paper); --bd:var(--ink); }
.btn--solid:hover{ --bg:var(--terracotta); --bd:var(--terracotta); --fg:var(--paper); }
.btn--ghost{ --bg:transparent; --fg:var(--ink); --bd:var(--line); }
.btn--ghost:hover{ --bg:var(--ink); --fg:var(--paper); --bd:var(--ink); }
.btn--ghost-light{ --bg:transparent; --fg:var(--paper); --bd:rgba(242,240,228,.5); }
.btn--ghost-light:hover{ --bg:var(--paper); --fg:var(--ink); --bd:var(--paper); }
.btn--full{ width:100%; }

.btn--text, .btn--text-light{
    display:inline-flex; align-items:center; gap:.55em;
    font-family:var(--font-ui); font-size:.74rem; font-weight:600;
    letter-spacing:.18em; text-transform:uppercase;
    padding:.5em 0; border:0; border-radius:0; background:none;
    position:relative;
}
.btn--text{ color:var(--ink); }
.btn--text-light{ color:var(--paper); }
.btn--text::after, .btn--text-light::after{
    content:""; position:absolute; left:0; bottom:0; width:100%; height:1px;
    background:currentColor; transform:scaleX(0); transform-origin:right;
    transition:transform .5s var(--ease);
}
.btn--text:hover::after, .btn--text-light:hover::after{ transform:scaleX(1); transform-origin:left; }

/* =====================================================================
   PRELOADER
   ===================================================================== */
.preloader{
    position:fixed; inset:0; z-index:1000;
    background:var(--dark);
    display:grid; place-items:center;
    transition:opacity .8s var(--ease), visibility .8s;
}
.preloader.is-done{ opacity:0; visibility:hidden; pointer-events:none; }
.preloader__inner{ display:grid; justify-items:center; gap:1.6rem; color:var(--dark-bone); padding:2rem; text-align:center; }
.preloader__logo{
    display:block; width:clamp(110px, 18vw, 160px); aspect-ratio:1.042 / 1;
    background-color:var(--off-white);
    -webkit-mask:url('../img/logo/wresidences-stacked-offwhite.png') center / contain no-repeat;
    mask:url('../img/logo/wresidences-stacked-offwhite.png') center / contain no-repeat;
}
.preloader__bar{ width:min(220px,46vw); height:1px; background:var(--line-light); overflow:hidden; }
.preloader__bar i{ display:block; height:100%; width:0; background:var(--dark-bone); transition:width .25s linear; }


/* =====================================================================
   HEADER
   ===================================================================== */
.site-header{
    position:fixed; top:0; left:0; right:0; z-index:90;
    transition:background .5s var(--ease), box-shadow .5s var(--ease), color .5s var(--ease);
    color:var(--paper);
}
.site-header__inner{
    max-width:var(--maxw); margin-inline:auto;
    padding:clamp(1rem,2.4vh,1.8rem) var(--pad-x);
    display:flex; align-items:center; justify-content:space-between; gap:1.5rem;
}
.site-header.scrolled{
    background:var(--bone);
    color:var(--ink);
    box-shadow:0 1px 0 var(--line-soft), 0 18px 40px -34px rgba(0,0,0,.5);
}
.site-header.scrolled .site-header__inner{ padding-block:clamp(.7rem,1.7vh,1.05rem); }
.site-header.hide{ transform:translateY(-100%); }
.site-header{ transition:transform .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease), color .5s var(--ease); }

.brand{ display:flex; align-items:center; line-height:1; }
.brand__logo{
    display:block;
    height:clamp(28px, 3.2vw, 36px);
    width:auto;
    aspect-ratio:3.176 / 1;
    background-color:var(--off-white);
    -webkit-mask:url('../img/logo/wresidences-horizontal-offwhite.png') center / contain no-repeat;
    mask:url('../img/logo/wresidences-horizontal-offwhite.png') center / contain no-repeat;
    transition:background-color .5s var(--ease);
}
.site-header.scrolled .brand__logo{ background-color:var(--charcoal); }
/* keep the logo readable when the mobile menu is open (its bg is dark) */
body.menu-open .brand__logo{ background-color:var(--off-white); }

.nav{ display:flex; gap:clamp(1rem,2.2vw,2.4rem); }
.nav a{
    font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; font-weight:600;
    position:relative; padding:.4em 0; opacity:.85; transition:opacity .35s var(--ease);
}
.nav a::after{
    content:""; position:absolute; left:0; bottom:-.1em; height:1px; width:100%;
    background:currentColor; transform:scaleX(0); transform-origin:right;
    transition:transform .45s var(--ease);
}
.nav a:hover{ opacity:1; }
.nav a:hover::after{ transform:scaleX(1); transform-origin:left; }

.header-actions{ display:flex; align-items:center; gap:clamp(.8rem,1.5vw,1.5rem); }
.lang-switch{ display:flex; align-items:center; gap:.5em; font-size:.7rem; letter-spacing:.16em; font-weight:600; }
.lang-switch span{ opacity:.4; }
.lang-switch button{ opacity:.5; transition:opacity .3s; letter-spacing:.16em; }
.lang-switch button.is-active{ opacity:1; text-decoration:underline; text-underline-offset:.4em; text-decoration-thickness:1px; }
.lang-switch button:hover{ opacity:.85; }
.header-cta{ padding:.85em 1.5em; }

.burger{ display:none; width:2.6rem; height:2.6rem; position:relative; flex:0 0 auto; }
.burger span{
    position:absolute; left:50%; width:1.5rem; height:1.4px; background:currentColor;
    transform:translateX(-50%); transition:transform .4s var(--ease), opacity .3s;
}
.burger span:nth-child(1){ top:calc(50% - 5px); }
.burger span:nth-child(2){ top:calc(50% + 5px); }
body.menu-open .burger span:nth-child(1){ transform:translateX(-50%) translateY(5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2){ transform:translateX(-50%) translateY(-5px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu{
    position:fixed; inset:0; z-index:80;
    background:var(--dark); color:var(--dark-bone);
    display:flex; flex-direction:column; justify-content:center; gap:2.5rem;
    padding:6rem var(--pad-x) 3rem;
    clip-path:inset(0 0 100% 0);
    transition:clip-path .7s var(--ease);
    pointer-events:none;
}
body.menu-open .mobile-menu{ clip-path:inset(0 0 0 0); pointer-events:auto; }
.mobile-menu__nav{ display:flex; flex-direction:column; gap:.2rem; }
.mobile-menu__nav a{
    font-family:var(--font-display); font-size:clamp(2rem,9vw,3rem); font-weight:360;
    padding:.18em 0; opacity:0; transform:translateY(20px);
    transition:opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
body.menu-open .mobile-menu__nav a{ opacity:1; transform:none; }
body.menu-open .mobile-menu__nav a:nth-child(1){ transition-delay:.18s; }
body.menu-open .mobile-menu__nav a:nth-child(2){ transition-delay:.24s; }
body.menu-open .mobile-menu__nav a:nth-child(3){ transition-delay:.30s; }
body.menu-open .mobile-menu__nav a:nth-child(4){ transition-delay:.36s; }
body.menu-open .mobile-menu__nav a:nth-child(5){ transition-delay:.42s; }
body.menu-open .mobile-menu__nav a:nth-child(6){ transition-delay:.48s; }
body.menu-open .mobile-menu__nav a:nth-child(7){ transition-delay:.54s; }
.mobile-menu__nav a:hover{ color:var(--terracotta-2); }
.mobile-menu__foot{ display:flex; flex-direction:column; gap:1.4rem; align-items:flex-start; }
.lang-switch--big{ gap:1.4rem; font-size:.78rem; letter-spacing:.22em; text-transform:uppercase; }
.lang-switch--big button{ opacity:.45; }
.lang-switch--big button.is-active{ opacity:1; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero{
    position:relative; min-height:100svh;
    display:flex; flex-direction:column; justify-content:flex-end;
    padding:0 var(--pad-x) clamp(3rem,8vh,6rem);
    color:var(--paper);
    overflow:hidden;
}
.hero__media{ position:absolute; inset:0; z-index:-1; overflow:hidden; }
.hero__media img{ position:absolute; left:0; top:-9%; width:100%; height:118%; object-fit:cover; object-position:50% 55%; will-change:transform; }
/* W "Type Legibility — Overlay Construction" (Brand Guidelines p. 138–140):
   apply a uniform black layer at the minimum opacity needed, capped at 30%.
   The previous fade dropped to 0% mid-image — that's where COSTA SMERALDA
   was landing on a bone-coloured wall and losing contrast. A flat 28% tint
   is the W-textbook approach: image stays "respected" (<30%) AND the type
   gets the same consistent backdrop no matter where it sits. */
.hero__scrim{
    position:absolute; inset:0;
    background:rgba(0,0,0,.28);
}
@media (max-width:760px){
    .hero__scrim{ background:rgba(0,0,0,.30); }
}
.hero__content{ max-width:min(1100px,92vw); margin-inline:auto; width:100%; }
.hero .eyebrow{ margin-bottom:1.6rem; }
.hero__title{
    font-family:var(--font-display);
    font-weight:600;             /* W Supreme SemiBold */
    line-height:.98;
    letter-spacing:-.018em;      /* W: very tight on huge type */
    text-transform:uppercase;
    font-size:clamp(2.6rem, 1rem + 8.2vw, 8rem);
    text-wrap:balance;
    text-shadow:0 2px 24px rgba(0,0,0,.35);    /* keeps Off-White readable over busy photo highlights */
}
.hero__title .line{ display:block; overflow:hidden; padding-bottom:.04em; }
.hero__sub{
    margin-top:1.7rem; max-width:42ch;
    font-size:clamp(1rem,.7rem + .7vw,1.25rem);
    line-height:1.6; color:var(--off-white);
    text-shadow:0 1px 18px rgba(0,0,0,.5);
}
.hero__cta{ margin-top:2.4rem; display:flex; flex-wrap:wrap; align-items:center; gap:1.4rem 2rem; }
.hero__scroll{
    position:absolute; right:var(--pad-x); bottom:clamp(2rem,6vh,4rem);
    display:flex; flex-direction:column; align-items:center; gap:.9rem;
    font-size:.62rem; letter-spacing:.3em; text-transform:uppercase; color:rgba(242,240,228,.8);
    writing-mode:vertical-rl;
}
.hero__scroll i{ width:1px; height:3.4rem; background:linear-gradient(rgba(242,240,228,.85),rgba(242,240,228,0)); position:relative; overflow:hidden; }
.hero__scroll i::after{ content:""; position:absolute; top:0; left:0; width:100%; height:40%; background:var(--paper); animation:scrollDown 1.9s var(--ease) infinite; }
@keyframes scrollDown{ 0%{ transform:translateY(-100%);} 60%,100%{ transform:translateY(340%);} }
@media (max-width:760px){ .hero__scroll{ display:none; } }

/* =====================================================================
   MANIFESTO / INTRO
   ===================================================================== */
.manifesto{ background:var(--bone); }
.manifesto__grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(2.5rem,7vw,7rem); align-items:start; }
.manifesto__head .eyebrow{ margin-bottom:1.8rem; }
.manifesto__head .display{ font-size:clamp(2.4rem,1.1rem + 4.3vw,5.6rem); }
.manifesto__body{ padding-top:.6rem; max-width:48ch; }
.manifesto__body p{ color:var(--ink-2); margin-bottom:1.4rem; }
.manifesto__body p:first-child{ font-size:1.12em; color:var(--ink); }
.manifesto__body .btn{ margin-top:1.2rem; }
@media (max-width:920px){ .manifesto__grid{ grid-template-columns:1fr; gap:2.6rem; } }

/* =====================================================================
   FACTS BAND
   ===================================================================== */
/* W "Brand First" composition: flat color background + off-white type.
   Charcoal panel — Residences palette, "Sophistication / Elegance / Considered".
   Replaces the previous image + heavy scrim (which violated the ≤30% overlay rule). */
.facts{
    position:relative; background:var(--charcoal); color:var(--off-white);
    padding-block:clamp(4.5rem,12vh,9rem);
}
.facts__media{ display:none; }
.facts__scrim{ display:none; }
.facts__inner .eyebrow{ margin-bottom:2.6rem; }
.facts__list{
    display:grid; grid-template-columns:repeat(4,1fr);
    gap:clamp(1.6rem,4vw,3.5rem);
    border-top:1px solid var(--line-light);
    padding-top:clamp(1.6rem,4vh,2.6rem);
}
.facts__list--3{ grid-template-columns:repeat(3,1fr); max-width:60rem; }
.facts__list li{ display:flex; flex-direction:column; gap:.45rem; min-height:8.5rem; }
.facts__num{ font-family:var(--font-display); font-weight:600; font-size:clamp(2.6rem,1.3rem + 4vw,5rem); line-height:1; letter-spacing:-.015em; }
.facts__num--text{ font-weight:500; }
.facts__unit{ font-family:var(--font-display); font-weight:500; font-size:1rem; opacity:.9; line-height:1.1; }
.facts__label{ margin-top:auto; }
.facts__label{ font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--off-white); opacity:.6; }
@media (max-width:860px){ .facts__list{ grid-template-columns:1fr 1fr; gap:2rem; } }
@media (max-width:480px){ .facts__list{ grid-template-columns:1fr; } }

/* =====================================================================
   SECTION HEAD (shared)
   ===================================================================== */
.section-head{ max-width:62rem; }
.section-head .eyebrow{ margin-bottom:1.6rem; }
.section-head .display{ margin-bottom:1.4rem; }
.section-head__intro{ max-width:54ch; color:var(--ink-2); font-size:1.08em; }
.section-head--light .display{ color:var(--dark-bone); }
.section-head--light .section-head__intro{ color:var(--off-white); opacity:.8; }

/* =====================================================================
   RESIDENCES / FEATURES
   ===================================================================== */
.residences{ background:var(--paper); }
.residences .section-head{ margin-bottom:clamp(3rem,8vh,6rem); }

.feature{
    max-width:var(--maxw); margin-inline:auto;
    padding-inline:var(--pad-x);
    display:grid; grid-template-columns:1.12fr .88fr; align-items:center;
    gap:clamp(2rem,5vw,5.5rem);
    padding-block:clamp(2.5rem,6vh,5rem);
}
.feature + .feature{ border-top:1px solid var(--line-soft); }
.feature--reverse{ direction:rtl; }
.feature--reverse > *{ direction:ltr; }
.feature__media{ overflow:hidden; border-radius:2px; aspect-ratio:4/3; position:relative; }
.feature--reverse .feature__media{ aspect-ratio:3/4; }
.feature:nth-child(4) .feature__media{ aspect-ratio:16/10; }
.feature__media img{ position:absolute; left:0; top:-9%; width:100%; height:118%; object-fit:cover; will-change:transform; }
.feature__text{ max-width:34rem; }
.feature__index{ font-family:var(--font-display); font-size:1rem; color:var(--terracotta); margin-bottom:1rem; letter-spacing:.05em; }
.feature__title{ font-family:var(--font-display); font-weight:600; font-size:clamp(1.7rem,1.1rem + 1.7vw,2.7rem); line-height:1.05; letter-spacing:-.005em; text-transform:uppercase; margin-bottom:1.1rem; }
.feature__desc{ color:var(--ink-2); margin-bottom:1.8rem; max-width:42ch; }
.feature__specs{ display:flex; flex-direction:column; border-top:1px solid var(--line); margin-bottom:1.8rem; }
.feature__specs li{ display:flex; justify-content:space-between; gap:1rem; padding:.85em 0; border-bottom:1px solid var(--line-soft); font-size:.92rem; }
.feature__specs li span{ letter-spacing:.12em; text-transform:uppercase; font-size:.7rem; font-weight:600; color:var(--ink-soft); align-self:center; }
.feature__specs li b{ font-family:var(--font-display); font-weight:500; font-size:1rem; text-align:right; letter-spacing:.005em; }
@media (max-width:880px){
    .feature, .feature--reverse{ grid-template-columns:1fr; direction:ltr; gap:1.8rem; }
    .feature__media, .feature--reverse .feature__media, .feature:nth-child(4) .feature__media{ aspect-ratio:4/3; }
}

/* =====================================================================
   IMMERSIVE QUOTE
   ===================================================================== */
.immersive{
    position:relative; color:var(--paper);
    min-height:90svh; display:flex; align-items:center;
    padding-block:clamp(5rem,16vh,11rem);
    overflow:hidden;
}
.immersive__media{ position:absolute; inset:0; z-index:-1; overflow:hidden; }
.immersive__media img{ position:absolute; left:0; top:-9%; width:100%; height:118%; object-fit:cover; object-position:50% 60%; will-change:transform; }
/* Same uniform W "Type Legibility" overlay as the hero — 28% flat ≤30%. */
.immersive__scrim{ position:absolute; inset:0; background:rgba(0,0,0,.28); }
.immersive__inner{ max-width:72rem; }
.immersive__quote{
    font-family:var(--font-display); font-style:italic; font-weight:500;
    font-size:clamp(1.55rem,1rem + 2.6vw,3.1rem); line-height:1.22; letter-spacing:-.005em;
    text-transform:none;                /* keep the quote in sentence case for warmth */
    color:var(--off-white); text-wrap:balance;
    text-shadow:0 2px 22px rgba(0,0,0,.5);   /* hold contrast over the bougainvillea highlights */
}
.immersive__by{
    margin-top:1.8rem; font-size:.74rem; letter-spacing:.2em; text-transform:uppercase;
    color:var(--off-white);                              /* "Off-White On Image" pairing */
    text-shadow:0 1px 16px rgba(0,0,0,.5);                /* extra contrast over photo highlights */
}

/* =====================================================================
   INTERIORS GALLERY — horizontal
   Two modes (chosen by JS):
   • default / mobile / no-JS / reduced-motion → native horizontal scroll-snap
   • desktop (.gallery--scroll-driven) → vertical scroll pans the strip sideways
     via a sticky viewport (no library, no pin-spacer hacks → no scroll/refresh bugs)
   ===================================================================== */
.interiors{ background:var(--dark); color:var(--dark-bone); padding-block:var(--sec-y); }
.interiors .section-head{ margin-bottom:clamp(2.5rem,7vh,5rem); }

.gallery{ position:relative; }
.gallery__viewport{ position:relative; }
.gallery__track{
    display:flex; gap:clamp(1rem,2vw,1.6rem);
    padding-inline:var(--pad-x);
    overflow-x:auto; overflow-y:hidden;
    scroll-snap-type:x proximity;
    scroll-padding-inline:var(--pad-x);
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
}
.gallery__track::-webkit-scrollbar{ display:none; }

.gallery__item{
    flex:0 0 clamp(240px, 38vw, 460px);
    scroll-snap-align:center;
    position:relative; overflow:hidden;
    aspect-ratio:4/5; background:var(--dark-2);
    border-radius:2px;
}
.gallery__item--wide{ flex-basis:clamp(320px, 58vw, 780px); aspect-ratio:16/10; }
.gallery__item--tall{ flex-basis:clamp(230px, 32vw, 380px); aspect-ratio:3/4; }
.gallery__item img{
    width:100%; height:100%; object-fit:cover;
    transition:transform 1.1s var(--ease), filter .6s var(--ease);
    filter:saturate(.96) brightness(.97);
}
.gallery__item:hover img{ transform:scale(1.045); filter:saturate(1) brightness(1); }
.gallery__item figcaption{
    position:absolute; left:0; bottom:0; right:0;
    padding:1.1rem 1.3rem;
    font-size:.66rem; letter-spacing:.2em; text-transform:uppercase; font-weight:600;
    color:var(--paper);
    background:linear-gradient(to top, rgba(0,0,0,.7), transparent);
    display:flex; align-items:center; gap:.6em;
}
.gallery__item figcaption::before{ content:"+"; font-size:1.1rem; font-weight:400; line-height:0; opacity:.8; }
.gallery__item{ cursor:pointer; }

.gallery__progress{ margin:2.4rem var(--pad-x) 0; height:1px; background:var(--line-light); }
.gallery__progress i{ display:block; height:100%; width:8%; background:var(--dark-bone); transition:width .12s linear; }
.gallery__hint{ margin:1rem var(--pad-x) 0; font-size:.68rem; letter-spacing:.22em; text-transform:uppercase; color:var(--off-white); opacity:.55; }

/* ----- scroll-driven mode (desktop) ----- */
/* .gallery height is set inline by JS (= 100vh + horizontal overscroll) */
.gallery--scroll-driven .gallery__viewport{
    position:sticky; top:0;
    height:100vh; overflow:hidden;
    display:flex; flex-direction:column; justify-content:center;
}
.gallery--scroll-driven .gallery__track{
    overflow:visible; scroll-snap-type:none;
    will-change:transform;
}
.gallery--scroll-driven .gallery__progress{ margin-top:clamp(1.4rem,4vh,2.4rem); }
.gallery--scroll-driven .gallery__hint{ display:none; }
.gallery--scroll-driven .gallery__item{ cursor:pointer; }
@media (prefers-reduced-motion: reduce){
    /* JS already skips this mode, but be safe */
    .gallery--scroll-driven{ height:auto !important; }
    .gallery--scroll-driven .gallery__viewport{ position:static; height:auto; overflow:visible; display:block; }
    .gallery--scroll-driven .gallery__track{ overflow-x:auto; }
}

/* =====================================================================
   CAROUSEL (reusable — Project, Residences, …)
   Editorial scroll-snap slider. Captions sit BELOW the image (no photo
   overlays) to respect the W "no gradients / overlay ≤30%" rules.
   ===================================================================== */
.carousel{ position:relative; margin-top:clamp(2.2rem,5vh,3.6rem); }
.carousel__track{
    display:flex; gap:clamp(.8rem,1.6vw,1.3rem);
    overflow-x:auto; scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch; cursor:grab;
    scrollbar-width:none; padding-bottom:.2rem;
}
.carousel__track::-webkit-scrollbar{ display:none; }
.carousel__track.is-grabbing{ cursor:grabbing; scroll-snap-type:none; scroll-behavior:auto; }
.carousel__item{
    flex:0 0 clamp(270px,60%,720px); scroll-snap-align:start;
    margin:0; cursor:zoom-in;
}
.carousel__media{ overflow:hidden; border-radius:2px; aspect-ratio:3/2; background:var(--bone-2); }
.carousel__item img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .9s var(--ease); }
.carousel__item:hover img{ transform:scale(1.03); }
.carousel__item figcaption{ margin-top:.9rem; font-size:.7rem; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-2); }
.carousel__controls{ display:flex; align-items:center; gap:clamp(1rem,2vw,1.6rem); margin-top:1.5rem; }
.carousel__bar{ flex:1; height:1px; background:var(--line); position:relative; overflow:hidden; }
.carousel__bar i{ position:absolute; left:0; top:0; height:100%; width:8%; background:var(--ink); transition:width .18s linear; }
.carousel__nav{
    width:2.7rem; height:2.7rem; border-radius:50%; border:1px solid var(--line);
    background:transparent; color:var(--ink); cursor:pointer; flex:0 0 auto;
    display:grid; place-items:center; transition:background .3s, color .3s, border-color .3s, opacity .3s;
}
.carousel__nav:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.carousel__nav:disabled{ opacity:.28; cursor:default; }
.carousel__nav:disabled:hover{ background:transparent; color:var(--ink); border-color:var(--line); }
.carousel__nav svg{ width:13px; height:13px; }
/* dark-surface variant */
.section--dark .carousel__item figcaption{ color:var(--off-white); opacity:.7; }
.section--dark .carousel__bar{ background:var(--line-light); }
.section--dark .carousel__bar i{ background:var(--off-white); }
.section--dark .carousel__nav{ border-color:var(--line-light); color:var(--off-white); }
.section--dark .carousel__nav:hover{ background:var(--off-white); color:var(--ink); border-color:var(--off-white); }
.section--dark .carousel__nav:disabled:hover{ background:transparent; color:var(--off-white); border-color:var(--line-light); }
@media (max-width:720px){ .carousel__item{ flex-basis:86%; } }

/* Editorial standalone paragraph (typology lead, credits, notes) */
.section-note{ max-width:66ch; margin-top:clamp(2rem,5vh,3.2rem); color:var(--ink-2); font-size:clamp(1rem,.96rem + .2vw,1.12rem); line-height:1.62; }
.section-note--credit{ font-size:.9rem; letter-spacing:.01em; }
.section--dark .section-note{ color:var(--off-white); opacity:.82; }
.section--dark .section-note--credit{ opacity:.62; }

/* =====================================================================
   AMENITIES
   ===================================================================== */
.amenities{ background:var(--bone); }
.amenities__head{ max-width:64rem; }
.amenities__head .eyebrow{ margin-bottom:1.6rem; }
.amenities__head .display{ margin-bottom:1.5rem; font-size:clamp(2.1rem,1.1rem + 3.4vw,4.3rem); }
.amenities__lead{ color:var(--ink-2); max-width:66ch; font-size:clamp(1rem,.96rem + .2vw,1.14rem); line-height:1.62; }
.amenities__collage{
    display:grid; grid-template-columns:repeat(6,1fr);
    grid-auto-rows:clamp(118px,15vw,208px);
    gap:clamp(.6rem,1.1vw,1rem);
    margin-top:clamp(2.4rem,5.5vh,4rem);
}
.amenities__collage figure{ margin:0; position:relative; overflow:hidden; border-radius:2px; background:var(--bone-2); cursor:zoom-in; }
.amenities__collage img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .9s var(--ease); }
.amenities__collage figure:hover img{ transform:scale(1.04); }
.amenities__c-lg{ grid-column:span 3; grid-row:span 2; }
.amenities__c-wide{ grid-column:span 3; }
.amenities__c-sm{ grid-column:span 2; }
.amenities__collage figcaption{
    position:absolute; left:.75rem; bottom:.75rem;
    font-size:.62rem; letter-spacing:.18em; text-transform:uppercase; font-weight:600;
    color:var(--off-white); background:rgba(0,0,0,.28);
    padding:.45em .75em; border-radius:2px;
}
@media (max-width:780px){
    .amenities__collage{ grid-template-columns:repeat(2,1fr); grid-auto-rows:clamp(128px,38vw,190px); }
    .amenities__c-lg{ grid-column:span 2; grid-row:span 2; }
    .amenities__c-wide{ grid-column:span 2; }
    .amenities__c-sm{ grid-column:span 1; }
}

/* =====================================================================
   À LA CARTE SERVICES — Whatever/Whenever®
   W "Brand-first" flat composition on charcoal: signals premium,
   differentiates the on-demand residence services from the shared
   borgo amenities, and respects the ≤30% overlay rule by design.
   ===================================================================== */
.services{
    background:var(--charcoal); color:var(--off-white);
    padding-block:clamp(5rem,13vh,10rem);
}
.services__inner{ display:grid; gap:clamp(3rem,7vh,5.5rem); }
.services__head{ max-width:72rem; display:grid; gap:1.6rem; }
.services__head .eyebrow{ margin-bottom:1.4rem; }
.services__head .display{
    color:var(--off-white);
    font-size:clamp(2.4rem,1.4rem + 3.8vw,4.8rem);
    line-height:1.04; letter-spacing:-.012em;
}
.services__intro{ color:var(--off-white); opacity:.88; max-width:62ch; font-size:clamp(1rem,.95rem + .2vw,1.15rem); }
.services__reg{
    font-size:.42em; vertical-align:super; line-height:0;
    margin-left:.18em; letter-spacing:0; font-weight:400;
}
.services__media{
    display:grid; grid-template-columns:repeat(3,1fr);
    gap:clamp(.8rem,1.6vw,1.4rem);
    border-top:1px solid var(--line-light);
    padding-top:clamp(2rem,5vh,3.4rem);
}
.services__media figure{ margin:0; cursor:zoom-in; }
.services__shot{ overflow:hidden; border-radius:2px; aspect-ratio:4/5; background:var(--dark-2); }
.services__media img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .9s var(--ease); }
.services__media figure:hover img{ transform:scale(1.04); }
.services__media figcaption{ margin-top:.85rem; font-size:.7rem; letter-spacing:.18em; text-transform:uppercase; color:var(--off-white); opacity:.8; }
.services__foot{
    display:flex; flex-wrap:wrap; gap:clamp(1.4rem,4vw,3.5rem);
    align-items:center; justify-content:space-between;
    border-top:1px solid var(--line-light);
    padding-top:clamp(1.8rem,4.5vh,2.8rem);
}
.services__note{
    color:var(--off-white); opacity:.65; font-size:.88rem; line-height:1.55;
    max-width:58ch; margin:0;
}
.services__foot .btn--ghost-light{ flex:0 0 auto; }
@media (max-width:680px){
    .services__media{ grid-template-columns:1fr; gap:1.4rem; }
    .services__shot{ aspect-ratio:3/2; }
    .services__foot{ flex-direction:column; align-items:flex-start; }
    .services__foot .btn--ghost-light{ align-self:stretch; text-align:center; }
}

/* =====================================================================
   LOCATION
   ===================================================================== */
.location{ background:var(--paper); }
.location .section-head{ margin-bottom:clamp(2.5rem,7vh,5rem); }
.location__grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(2rem,5vw,5rem); align-items:start; }
.location__map{ overflow:hidden; border-radius:2px; position:relative; background:var(--bone-2); cursor:pointer; position:sticky; top:clamp(6rem,12vh,9rem); }
.location__map img{ width:100%; height:100%; object-fit:cover; max-height:80vh; }
.location__map figcaption{
    position:absolute; left:1.2rem; bottom:1.2rem;
    background:rgba(0,0,0,.82); color:var(--paper);
    font-size:.64rem; letter-spacing:.2em; text-transform:uppercase; font-weight:600;
    padding:.7em 1.1em; border-radius:999px;
    display:flex; align-items:center; gap:.6em;
}
.location__map figcaption::before{ content:"+"; opacity:.8; }
.location__lists{ padding-top:.4rem; display:grid; gap:clamp(2rem,4.5vh,3rem); }
.location__listhead{ font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; font-weight:600; color:var(--ink-soft); margin-bottom:1.1rem; }
.location__group ul{ border-top:1px solid var(--line); }
.location__group li{ display:flex; justify-content:space-between; gap:1rem; padding:.82em 0; border-bottom:1px solid var(--line-soft); }
.location__group li span{ color:var(--ink-2); }
.location__group li b{ font-family:var(--font-display); font-weight:500; white-space:nowrap; letter-spacing:.005em; }
.location__lists .btn{ justify-self:start; margin-top:.2rem; }
@media (max-width:880px){
    .location__grid{ grid-template-columns:1fr; gap:2.4rem; }
    .location__map{ position:static; }
}

/* =====================================================================
   ONVIA — owner benefits (6-tile grid)
   ===================================================================== */
.onvia{ background:var(--bone); }
.onvia__head{ max-width:64rem; display:grid; gap:1.3rem; margin-bottom:clamp(2.4rem,5.5vh,4rem); }
.onvia__head .eyebrow{ margin-bottom:1.1rem; }
.onvia__lead{ color:var(--ink-2); max-width:60ch; font-size:clamp(1rem,.96rem + .2vw,1.14rem); line-height:1.62; }
.onvia__head .btn{ justify-self:start; margin-top:.6rem; }
.onvia__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(.7rem,1.4vw,1.1rem); }
.onvia__tile{ margin:0; position:relative; overflow:hidden; border-radius:2px; aspect-ratio:1/1; background:var(--bone-2); }
.onvia__tile img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform 1s var(--ease); }
.onvia__tile::after{ content:""; position:absolute; inset:0; background:rgba(0,0,0,.30); transition:background .4s; } /* ≤30% per W type-legibility rule */
.onvia__tile:hover img{ transform:scale(1.05); }
.onvia__label{
    position:absolute; inset:0; z-index:1; display:grid; place-items:center; text-align:center; padding:1rem;
    font-family:var(--font-display); font-weight:600; font-size:clamp(.95rem,.85rem + .4vw,1.25rem);
    letter-spacing:.06em; text-transform:uppercase; color:var(--off-white); line-height:1.2;
}
@media (max-width:820px){ .onvia__grid{ grid-template-columns:repeat(2,1fr); } }

/* =====================================================================
   CONTACT
   ===================================================================== */
/* W "Brand First" — flat Charcoal panel + Off-White type (no image overlay).
   Companion to the Charcoal Facts band so the two anchor the dark/colored
   rhythm of the page per W's 50/50 off-property ratio of use. */
.contact{ position:relative; color:var(--off-white); overflow:hidden; padding-block:clamp(5rem,13vh,10rem); background:var(--charcoal); }
.contact__media{ display:none; }
.contact__scrim{ display:none; }
.contact__inner{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2.5rem,6vw,6rem); align-items:start; }
.contact__col--info .eyebrow{ margin-bottom:1.6rem; }
.contact__col--info .display{ color:var(--paper); margin-bottom:1.3rem; font-size:clamp(2rem,1.1rem + 3.2vw,4rem); }
.contact__col--info > p{ color:rgba(242,240,228,.86); max-width:44ch; margin-bottom:2.4rem; }
.contact__details{ display:grid; grid-template-columns:1fr 1fr; gap:1.6rem 2rem; border-top:1px solid var(--line-light); padding-top:1.8rem; max-width:34rem; }
.contact__details > div{ min-width:0; }
.contact__lab{ display:block; font-size:.66rem; letter-spacing:.2em; text-transform:uppercase; font-weight:600; color:var(--off-white); opacity:.65; margin-bottom:.45rem; }
.contact__details p{ font-size:.95rem; color:rgba(242,240,228,.92); line-height:1.5; overflow-wrap:anywhere; }
.contact__details a:hover{ color:var(--terracotta-2); }

.contact__form{
    background:rgba(243,237,223,.97);
    color:var(--ink);
    padding:clamp(1.8rem,3.5vw,2.8rem);
    border-radius:3px;
    box-shadow:0 40px 80px -50px rgba(0,0,0,.6);
    display:grid; gap:1.1rem;
}
.field{ display:grid; gap:.45rem; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:1.1rem; }
.field label{ font-size:.66rem; letter-spacing:.16em; text-transform:uppercase; font-weight:600; color:var(--ink-soft); }
.field input, .field select, .field textarea{
    background:transparent; border:0; border-bottom:1px solid var(--line);
    padding:.7em 0; font-size:1rem; color:var(--ink); border-radius:0;
    transition:border-color .35s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--terracotta); }
.field select{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000000' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right .2em center; padding-right:1.6em; }
.field textarea{ resize:vertical; min-height:3.4em; }
.field.error input, .field.error select, .field.error textarea{ border-color:#8C2C26; }
.field.error label{ color:#8C2C26; }
.checkbox.error span{ color:#8C2C26; }
.checkbox{ display:flex; align-items:flex-start; gap:.7rem; font-size:.82rem; color:var(--ink-2); line-height:1.5; }
.checkbox input{ margin-top:.2em; accent-color:var(--terracotta); width:1em; height:1em; flex:0 0 auto; }
.contact__form .btn{ margin-top:.4rem; }
.form__note{ font-size:.74rem; color:var(--ink-soft); text-align:center; }
.form__success{ font-size:.92rem; color:var(--teal); background:rgba(126,149,158,.12); padding:1em 1.2em; border-radius:3px; text-align:center; }
@media (max-width:880px){
    .contact__inner{ grid-template-columns:1fr; gap:2.6rem; }
    .contact__details{ grid-template-columns:1fr 1fr; }
}
@media (max-width:520px){ .field-row{ grid-template-columns:1fr; } .contact__details{ grid-template-columns:1fr; } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer{ background:var(--dark); color:var(--off-white); padding-top:clamp(3.5rem,9vh,6rem); }
.site-footer__inner{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:2.5rem; padding-bottom:clamp(2.5rem,7vh,4rem); border-bottom:1px solid var(--line-light); }
.site-footer__inner > *{ min-width:0; }
.site-footer__logo{
    display:block;
    width:clamp(100px, 11vw, 140px); aspect-ratio:1.042 / 1;
    background-color:var(--off-white);
    -webkit-mask:url('../img/logo/wresidences-stacked-offwhite.png') center / contain no-repeat;
    mask:url('../img/logo/wresidences-stacked-offwhite.png') center / contain no-repeat;
    margin-bottom:1.4rem;
}
.site-footer__tag{ font-size:.92rem; max-width:34ch; }
.site-footer__nav{ display:flex; flex-direction:column; gap:.7rem; }
.site-footer__nav a{ font-size:.74rem; letter-spacing:.16em; text-transform:uppercase; font-weight:600; color:var(--off-white); opacity:.78; transition:opacity .3s, color .3s; }
.site-footer__nav a:hover{ opacity:1; color:var(--off-white); }
.site-footer__contact p{ font-size:.92rem; margin-bottom:.45rem; overflow-wrap:anywhere; }
.site-footer__contact a:hover{ color:var(--dark-bone); }
.site-footer__legal{ display:flex; justify-content:space-between; gap:1.5rem 3rem; flex-wrap:wrap; padding-block:1.8rem 1.4rem; font-size:.72rem; }
.site-footer__disclaimer{ max-width:60ch; opacity:.7; }
/* Marriott / W trademark disclaimer — spec requires ~8pt at bottom of all collateral */
.site-footer__brand-disclaimer{
    padding-block:0 2.2rem;
    border-top:1px solid var(--line-light-soft);
    padding-top:1.4rem;
}
.site-footer__brand-disclaimer p{
    font-size:.66rem;             /* ≈ 8pt equivalent for digital */
    line-height:1.55;
    letter-spacing:.005em;
    color:var(--off-white);
    opacity:.6;
    max-width:88ch;
}
@media (max-width:820px){ .site-footer__inner{ grid-template-columns:1fr 1fr; } .site-footer__brand{ grid-column:1/-1; } }
@media (max-width:520px){ .site-footer__inner{ grid-template-columns:1fr; } }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox{
    position:fixed; inset:0; z-index:200;
    background:rgba(0,0,0,.96);
    display:flex; align-items:center; justify-content:center;
    padding:clamp(1rem,4vw,3rem);
    opacity:0; visibility:hidden; transition:opacity .4s var(--ease), visibility .4s;
}
.lightbox.open{ opacity:1; visibility:visible; }
.lightbox__fig{ max-width:92vw; max-height:88vh; display:flex; flex-direction:column; align-items:center; gap:1rem; }
.lightbox__fig img{ max-width:92vw; max-height:80vh; object-fit:contain; border-radius:2px; box-shadow:0 40px 100px -40px #000; transform:scale(.97); transition:transform .45s var(--ease); }
.lightbox.open .lightbox__fig img{ transform:scale(1); }
.lightbox__fig figcaption{ color:var(--bone-3); font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; font-weight:600; }
.lightbox__close, .lightbox__nav{ position:absolute; color:var(--bone-3); width:3rem; height:3rem; border-radius:50%; border:1px solid var(--line-light); display:grid; place-items:center; font-size:1.6rem; line-height:0; transition:background .3s, color .3s, border-color .3s; }
.lightbox__close:hover, .lightbox__nav:hover{ background:var(--paper); color:var(--ink); border-color:var(--paper); }
.lightbox__close{ top:clamp(1rem,3vw,2rem); right:clamp(1rem,3vw,2rem); }
.lightbox__nav{ top:50%; transform:translateY(-50%); }
.lightbox__nav--prev{ left:clamp(.6rem,2vw,1.6rem); }
.lightbox__nav--next{ right:clamp(.6rem,2vw,1.6rem); }
@media (max-width:600px){ .lightbox__nav{ top:auto; bottom:1rem; transform:none; } .lightbox__nav--prev{ left:30%; } .lightbox__nav--next{ right:30%; } }

/* =====================================================================
   REVEAL ANIMATIONS (progressive enhancement)
   ===================================================================== */
html.has-js .reveal{ opacity:0; transform:translateY(26px); transition:opacity 1s var(--ease-out), transform 1s var(--ease-out); }
html.has-js .reveal.in{ opacity:1; transform:none; }

html.has-js .reveal-mask{ overflow:hidden; }
html.has-js .reveal-mask > *{ display:block; transform:translateY(105%); transition:transform 1.05s var(--ease-out); }
html.has-js .reveal-mask.in > *{ transform:none; }

html.has-js .reveal-stagger{ overflow:hidden; }
html.has-js .reveal-stagger > *{ display:inline-block; transform:translateY(108%); transition:transform 1.1s var(--ease-out); }
html.has-js .reveal-stagger.in > *{ transform:none; }

/* hero special: title lines stagger */
html.has-js .hero__title .line:nth-child(1) > *{ transition-delay:.45s; }
html.has-js .hero__title .line:nth-child(2) > *{ transition-delay:.58s; }
html.has-js .hero .eyebrow{ transition-delay:.35s; }
html.has-js .hero__sub{ transition-delay:.72s; }
html.has-js .hero__cta{ transition-delay:.84s; }

@media (prefers-reduced-motion: reduce){
    html.has-js .reveal, html.has-js .reveal-mask > *, html.has-js .reveal-stagger > *{ opacity:1 !important; transform:none !important; transition:none !important; }
    .hero__scroll i::after{ animation:none; }
}

/* =====================================================================
   RESPONSIVE — header / nav
   ===================================================================== */
@media (max-width:1100px){
    .nav{ display:none; }
    .burger{ display:block; }
    .header-cta{ display:none; }
}
@media (min-width:1101px){ .mobile-menu{ display:none; } }
@media (max-width:560px){
    .brand__logo{ height:26px; }
}
