/* ==========================================================================
   URBAN RETREAT — SHARED HOTEL TEMPLATE  (hotel-template.css)
   --------------------------------------------------------------------------
   Base template shared by The RuMa Hotel and Residences and its sister
   hotels (The PuLi Shanghai, The PuXuan Beijing).

   Layout, grid, dimensions, aspect ratios, type scale, motion and every
   responsive breakpoint live here and are brand-neutral.
   All colour and font decisions are driven by the design tokens in the
   THEME block below, which a per-brand file overrides.

   Brand files:
     - brand-ruma.css   (The RuMa Hotel and Residences)
     - brand-puli.css   (The PuLi Shanghai)   -- sister hotel, same template

   Contents
     01. Theme tokens + reset
     02. Typography primitives
     03. Buttons / links
     04. Header + navigation
     05. Hero carousel
     06. Scroll reveal
     07. Section shell
     08. Room rail (Accommodation)
     09. Statement band (pull quotes)
     10. Dining / Wellness tile grid
     11. Feature rows (Events / Experiences)
     12. Offers rail
     13. Awards band
     14. Testimonials
     15. Footer
     16. Back to top + utilities
     17. Breakpoints  (1280 / 1100 / 900 / 720 / 480 / short-viewport)
   ========================================================================== */

/* ==========================================================================
   01. THEME TOKENS + RESET
   ========================================================================== */

:root {
  /* --- Surfaces --------------------------------------------------------- */
  --paper:        #f4f5f0;   /* primary page background (off-white)        */
  --paper-2:      #e9ebe3;   /* alternate section band                     */
  --paper-3:      #dfe2d7;   /* deeper neutral, inputs & placeholders      */
  --white:        #ffffff;
  --ink:          #1c211c;   /* primary dark surface (header solid, footer)*/
  --ink-2:        #2a312a;   /* raised dark surface                        */

  /* --- Type colour ------------------------------------------------------ */
  --text:         #1e241e;
  --text-soft:    #566054;
  --text-mute:    #8b9489;
  --text-invert:  #f0f3ec;
  --text-invert-soft: rgba(240, 243, 236, .78);
  --text-invert-mute: rgba(240, 243, 236, .55);

  /* --- Accent (single, restrained brand accent) ------------------------- */
  --accent:       #1f5c46;
  --accent-2:     #14382b;
  --accent-soft:  #6f8f81;
  --accent-tint:  rgba(31, 92, 70, .10);

  /* --- Lines ------------------------------------------------------------ */
  --line:         rgba(30, 36, 30, .16);
  --line-soft:    rgba(30, 36, 30, .09);
  --line-invert:  rgba(240, 243, 236, .20);
  --line-invert-soft: rgba(240, 243, 236, .10);

  /* --- Imagery ---------------------------------------------------------- */
  --img-bg:       #d7dad0;                 /* placeholder behind images    */
  --hero-veil:    linear-gradient(180deg,
                    rgba(14, 20, 16, .46) 0%,
                    rgba(14, 20, 16, .20) 34%,
                    rgba(14, 20, 16, .34) 62%,
                    rgba(14, 20, 16, .72) 100%);
  --hero-veil-flat: rgba(14, 20, 16, .30);

  /* --- Typography ------------------------------------------------------- */
  --font-display: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-sans:    "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-hero:      clamp(2.9rem, 6.4vw, 6.6rem);
  --fs-h1:        clamp(2.5rem, 4.8vw, 4.7rem);
  --fs-h2:        clamp(1.9rem, 2.8vw, 2.9rem);
  --fs-h3:        clamp(1.35rem, 1.7vw, 1.75rem);
  --fs-h4:        clamp(1.1rem, 1.25vw, 1.3rem);
  --fs-quote:     clamp(1.35rem, 2.15vw, 2.15rem);
  --fs-body:      clamp(.9rem, .93vw, .975rem);
  --fs-small:     .8125rem;
  --fs-eyebrow:   .6875rem;

  --lh-display:   1.06;
  --lh-heading:   1.16;
  --lh-body:      1.78;

  --ls-display:   .075em;
  --ls-heading:   .055em;
  --ls-eyebrow:   .30em;
  --ls-button:    .17em;
  --ls-nav:       .13em;

  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;

  /* --- Metrics ---------------------------------------------------------- */
  --header-h:        96px;
  --header-h-compact: 72px;
  --shell-max:       1600px;
  --shell-pad:       56px;
  --rail-inset:      56px;   /* gutter that aligns rails with the shell     */

  --section-y:       clamp(76px, 8.2vw, 148px);
  --section-y-tight: clamp(56px, 6vw, 104px);

  --gap-xs:  10px;
  --gap-sm:  18px;
  --gap-md:  28px;
  --gap-lg:  44px;
  --gap-xl:  68px;

  --rail-card-w:     424px;
  --tile-ratio:      3 / 2;   /* room + offer card imagery                */
  --tile-ratio-wide: 4 / 3;   /* dining + wellness tile imagery           */

  --radius:      2px;
  --radius-lg:   3px;

  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.33, .01, .18, 1);
  --dur-fast:  .22s;
  --dur:       .42s;
  --dur-slow:  .9s;

  --z-header:  60;
  --z-drawer:  80;
  --z-top:     40;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
  letter-spacing: .015em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--fw-light);
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

figure { margin: 0; }

hr {
  border: 0;
  height: 1px;
  background: var(--line-soft);
  margin: 0;
}

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

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--shell-pad);
  z-index: 999;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--white);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   02. TYPOGRAPHY PRIMITIVES
   ========================================================================== */

.eyebrow {
  display: block;
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--invert { color: var(--text-invert-mute); }
.eyebrow--plain  { color: var(--text-mute); }

.display,
.h1,
.h2,
.h3,
.h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin: 0;
}

.display {
  font-size: var(--fs-hero);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
}

.h1 { font-size: var(--fs-h1); text-transform: uppercase; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); letter-spacing: .04em; }

/* Serif display headings read better with a touch of optical size */
.display,
.h1 { font-weight: 300; }

.lede {
  max-width: 62ch;
  font-size: clamp(.95rem, 1.05vw, 1.075rem);
  line-height: 1.85;
  color: var(--text-soft);
}

.meta {
  font-size: var(--fs-small);
  letter-spacing: .06em;
  color: var(--text-mute);
}

.italic { font-style: italic; }
.center { text-align: center; }

/* ==========================================================================
   03. BUTTONS / LINKS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 13px 30px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--text);
  border-color: var(--text);
  color: var(--paper);
}

.btn--solid {
  background: var(--text);
  border-color: var(--text);
  color: var(--paper);
}
.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn--invert { color: var(--text-invert); }
.btn--invert:hover,
.btn--invert:focus-visible {
  background: var(--text-invert);
  border-color: var(--text-invert);
  color: var(--ink);
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--white);
}

.btn--block { width: 100%; }
.btn--sm {
  min-height: 38px;
  padding: 10px 20px;
  font-size: .6875rem;
}

/* Underlined text link with an animated rule */
.link {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--dur) var(--ease);
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform var(--dur) var(--ease);
}

.link:hover { color: var(--accent); }
.link:hover::after {
  transform-origin: left;
  animation: link-rule .55s var(--ease);
}

@keyframes link-rule {
  0%   { transform: scaleX(1); }
  49%  { transform: scaleX(0); }
  50%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

.link--invert { color: var(--text-invert); }
.link--invert:hover { color: var(--white); }

/* Grouped action row on a card */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.card-actions .link + .link { margin-left: 0; }

/* Arrow glyph used on rail controls */
.arrow {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.arrow svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.25;
  fill: none;
}

.arrow:hover:not(:disabled) {
  background: var(--text);
  border-color: var(--text);
  color: var(--paper);
}

.arrow:disabled {
  opacity: .3;
  cursor: default;
}

.arrow--invert {
  border-color: var(--line-invert);
  color: var(--text-invert);
}
.arrow--invert:hover:not(:disabled) {
  background: var(--text-invert);
  border-color: var(--text-invert);
  color: var(--ink);
}

/* ==========================================================================
   04. HEADER + NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: transparent;
  color: var(--text-invert);
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  width: 100%;
  max-width: var(--shell-max);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  transition: min-height var(--dur) var(--ease);
}

/* Solid state once scrolled past the hero top */
.header.is-solid {
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line-soft);
}

.header.is-compact .header__inner { min-height: var(--header-h-compact); }

/* --- Wordmark --------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.brand__mark svg { width: 100%; height: 100%; }

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: .17em;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__sub {
  display: block;
  margin-top: 3px;
  font-size: .5rem;
  font-weight: var(--fw-regular);
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .72;
  white-space: nowrap;
}

/* --- Primary nav ------------------------------------------------------ */

.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 30px);
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 0;
  font-size: .6875rem;
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  white-space: nowrap;
  color: inherit;
  transition: color var(--dur) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__item:hover > .nav__link::after,
.nav__link:focus-visible::after,
.nav__link.is-current::after { transform: scaleX(1); }

.nav__caret {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .8;
  transition: transform var(--dur) var(--ease);
}

.nav__item:hover .nav__caret { transform: rotate(225deg) translateY(-1px); }

/* Dropdown panel */
.nav__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 5;
  min-width: 258px;
  padding: 22px 0;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: 0 26px 54px -26px rgba(14, 20, 16, .34);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.nav__item:hover > .nav__panel,
.nav__item:focus-within > .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav__panel a {
  display: block;
  padding: 9px 30px;
  font-size: .8125rem;
  letter-spacing: .05em;
  color: var(--text-soft);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.nav__panel a:hover {
  color: var(--accent);
  background: var(--accent-tint);
}

/* --- Header actions --------------------------------------------------- */

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.header__utils {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .95;
  /* Legibility while the header sits over hero imagery. */
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

.header.is-solid .header__utils { text-shadow: none; }

.header__utils a { color: inherit; }
.header__utils a:hover { opacity: 1; }
.header__utils .sep { opacity: .45; }

/* Compact reserve widget.
   Visible in the header only where the viewport can actually accommodate it —
   otherwise it moves into the drawer (.drawer__reserve). */
.reserve-widget {
  display: flex;
  align-items: stretch;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  overflow: hidden;
}

.header .reserve-widget { display: none; }

/* In the drawer the widget gets the full width in a light-on-dark treatment. */
.drawer__reserve .reserve-widget {
  width: 100%;
  border-color: var(--line-invert);
  color: var(--text-invert);
}

.drawer__reserve .reserve-widget__field {
  flex: 1 1 0;
  min-width: 0;
}

.reserve-widget__field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 15px;
  min-width: 104px;
  border-right: 1px solid currentColor;
}

.reserve-widget__label {
  font-size: .5rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .7;
  line-height: 1;
}

.reserve-widget__input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: var(--fw-light);
  letter-spacing: .04em;
  line-height: 1.3;
  outline: none;
}

/* Native date pickers render a dark glyph by default — soften it */
.reserve-widget__input::-webkit-calendar-picker-indicator {
  opacity: .5;
  cursor: pointer;
}
.header:not(.is-solid) .reserve-widget__input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: .6;
}

.reserve-widget__submit {
  padding: 0 22px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: .625rem;
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.reserve-widget__submit:hover {
  background: var(--text);
  color: var(--paper);
}

.header:not(.is-solid) .reserve-widget__submit:hover {
  background: var(--text-invert);
  color: var(--ink);
}

/* --- Burger ----------------------------------------------------------- */

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21.5px; }
.burger span:nth-child(3) { top: 27px; }

.is-nav-open .burger span:nth-child(1) { transform: translateX(-50%) translateY(5.5px) rotate(45deg); }
.is-nav-open .burger span:nth-child(2) { opacity: 0; }
.is-nav-open .burger span:nth-child(3) { transform: translateX(-50%) translateY(-5.5px) rotate(-45deg); }

/* --- Mobile drawer ---------------------------------------------------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text-invert);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.is-nav-open .drawer {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h-compact);
  padding: 0 var(--shell-pad);
  border-bottom: 1px solid var(--line-invert-soft);
}

.drawer__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-invert);
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 28px var(--shell-pad) 40px;
  -webkit-overflow-scrolling: touch;
}

.drawer__group + .drawer__group { margin-top: 6px; }

.drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--line-invert-soft);
  background: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--fw-light);
  letter-spacing: .04em;
  text-align: left;
  cursor: pointer;
}

.drawer__toggle .nav__caret { opacity: .6; }

.drawer__toggle[aria-expanded="true"] .nav__caret {
  transform: rotate(225deg) translateY(-1px);
}

.drawer__sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur) var(--ease-soft);
}

.drawer__sub ul { padding: 6px 0 14px; }

.drawer__sub a {
  display: block;
  padding: 9px 0 9px 14px;
  font-size: .8125rem;
  letter-spacing: .05em;
  color: var(--text-invert-mute);
  border-left: 1px solid var(--line-invert-soft);
}

.drawer__sub a:hover { color: var(--text-invert); }

.drawer__foot {
  padding: 26px var(--shell-pad) 34px;
  border-top: 1px solid var(--line-invert-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer__contact {
  font-size: .8125rem;
  line-height: 1.9;
  color: var(--text-invert-soft);
}

.drawer__contact a { color: var(--text-invert); }

.drawer__langs {
  display: flex;
  gap: 16px;
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-invert-mute);
}

.drawer__langs a:hover { color: var(--text-invert); }

/* ==========================================================================
   05. HERO CAROUSEL
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  max-height: 1080px;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-invert);
  isolation: isolate;
}

/* Fallback for browsers without svh: keep dvh where supported */
@supports (height: 100dvh) {
  .hero { height: 100dvh; }
}

.hero__stage { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.35s var(--ease-soft), visibility 1.35s var(--ease-soft);
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight over-scale so the slow drift never reveals an edge */
  transform: scale(1.045);
  transition: transform 8.5s linear;
  will-change: transform;
}

.hero__slide.is-active .hero__media img { transform: scale(1.13); }

@media (prefers-reduced-motion: reduce) {
  .hero__slide.is-active .hero__media img { transform: scale(1.045); }
  .hero__slide { transition-duration: .01ms; }
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
}

/* --- Hero content ----------------------------------------------------- */

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad) clamp(120px, 15vh, 172px);
}

.hero__content--center {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: clamp(90px, 12vh, 150px);
}

.hero__eyebrow {
  margin-bottom: 20px;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-invert-soft);
}

.hero__title { text-shadow: 0 2px 30px rgba(0, 0, 0, .22); }

.hero__rule {
  width: 1px;
  height: clamp(30px, 5vh, 58px);
  margin: 26px 0;
  background: var(--line-invert);
}

.hero__content--center .hero__rule { margin: 26px auto; }

.hero__tagline {
  max-width: 54ch;
  font-size: clamp(.95rem, 1.12vw, 1.14rem);
  line-height: 1.8;
  color: var(--text-invert-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__content--center .hero__actions { justify-content: center; }

/* --- Hero controls ---------------------------------------------------- */

.hero__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(30px, 5vh, 52px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  pointer-events: none;
}

.hero__controls > * { pointer-events: auto; }

.hero__dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__dot {
  width: 34px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.hero__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line-invert);
  transition: background-color var(--dur) var(--ease);
}

.hero__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-invert);
  transform: scaleX(0);
  transform-origin: left;
}

.hero__dot.is-active::after {
  animation: dot-progress var(--hero-interval, 7000ms) linear forwards;
}

@keyframes dot-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero__dot.is-active::before { background: var(--line-invert); }

.hero__arrows { display: flex; gap: 10px; }

/* Scroll cue */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 4.6vh, 48px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
  font-size: .5625rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-invert-mute);
}

.hero__scroll span { writing-mode: horizontal-tb; }

.hero__scroll i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, var(--text-invert));
  position: relative;
  overflow: hidden;
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text-invert);
  animation: scroll-cue 2.4s var(--ease-soft) infinite;
}

@keyframes scroll-cue {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Award badges sitting over the hero base */
.hero__badges {
  position: absolute;
  right: var(--shell-pad);
  top: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
}

.hero__badge {
  width: 62px;
  height: 62px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
}

.hero__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   06. SCROLL REVEAL
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1s var(--ease-soft),
    transform 1s var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   07. SECTION SHELL
   ========================================================================== */

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section--tight { padding: var(--section-y-tight) 0; }
.section--alt   { background: var(--paper-2); }
.section--dark  { background: var(--ink); color: var(--text-invert); }
.section--flush-top { padding-top: 0; }

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

/* Full-bleed row that still aligns its first card with the shell gutter */
.shell-bleed {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--shell-pad);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-lg);
  margin-bottom: clamp(36px, 4vw, 62px);
}

.section__head--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.section__head-text { max-width: 74ch; }

.section__title { margin-bottom: 16px; }

.section__intro {
  max-width: 66ch;
  color: var(--text-soft);
}

.section--dark .section__intro { color: var(--text-invert-soft); }

.section__link { flex: 0 0 auto; padding-bottom: 6px; }

.section--dark .link { color: var(--text-invert); }
.section--dark .link:hover { color: var(--white); }

/* ==========================================================================
   08. ROOM RAIL (ACCOMMODATION)
   ========================================================================== */

.rail-wrap { position: relative; }

.rail {
  display: flex;
  gap: var(--gap-md);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-right: var(--shell-pad);
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rail::-webkit-scrollbar { display: none; }

.rail__item {
  flex: 0 0 var(--rail-card-w);
  max-width: var(--rail-card-w);
  scroll-snap-align: start;
}

/* Non-scrolling grid variant, used when a section fits in one row */
.rail--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-md) var(--gap-md);
  overflow: visible;
  padding-right: var(--shell-pad);
}

.rail--grid .rail__item {
  flex: initial;
  max-width: none;
}

/* --- Card ------------------------------------------------------------- */

.rcard { display: flex; flex-direction: column; }

.rcard__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--tile-ratio);
  background: var(--img-bg);
}

.rcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-soft);
}

.rcard:hover .rcard__media img { transform: scale(1.045); }

.rcard__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
}

.rcard__title { font-size: var(--fs-h3); }

.rcard__meta {
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.rcard__text {
  font-size: .875rem;
  line-height: 1.75;
  color: var(--text-soft);
}

/* Badge overlay on media, e.g. "Twin Towers view" */
.rcard__tag {
  position: absolute;
  left: 0;
  top: 0;
  padding: 9px 16px;
  background: var(--paper);
  color: var(--text);
  font-size: .5rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Rail navigation: buttons float over the right edge on desktop */
.rail-nav {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.rail-nav--float {
  position: absolute;
  right: var(--shell-pad);
  top: calc(50% - 60px);
  z-index: 4;
  margin-top: 0;
}

.rail-progress {
  position: relative;
  height: 1px;
  margin-top: 34px;
  background: var(--line-soft);
  overflow: hidden;
}

.rail-progress__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  transition: transform .18s linear, width .18s linear;
  transform-origin: left;
}

/* ==========================================================================
   09. STATEMENT BAND (PULL QUOTES)
   ========================================================================== */

.statements {
  background: var(--paper-2);
}

.statements__inner {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.statement {
  position: relative;
  padding: clamp(30px, 3.6vw, 52px) 0;
}

.statement + .statement { border-top: 1px solid var(--line-soft); }

.statement__text {
  font-family: var(--font-display);
  font-size: var(--fs-quote);
  font-weight: var(--fw-light);
  font-style: italic;
  line-height: 1.42;
  letter-spacing: .022em;
  color: var(--text);
  margin: 0;
}

.statement__text strong {
  font-weight: 400;
  font-style: normal;
  color: var(--accent);
}

/* ==========================================================================
   10. DINING / WELLNESS TILE GRID
   ========================================================================== */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-lg) var(--gap-md);
}

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

.tile { display: flex; flex-direction: column; }

.tile__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--tile-ratio-wide);
  background: var(--img-bg);
  margin-bottom: 24px;
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.15s var(--ease-soft);
}

.tile:hover .tile__media img { transform: scale(1.05); }

.tile__logo {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  max-width: 108px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .45));
}

.tile__index {
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .1em;
  color: var(--text-invert);
  opacity: .66;
}

.tile__body { display: flex; flex-direction: column; gap: 12px; }

.tile__title { font-size: var(--fs-h3); }

.tile__text {
  font-size: .875rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.tile__meta {
  margin-top: 2px;
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.tile .link { margin-top: 6px; align-self: flex-start; }

/* ==========================================================================
   11. FEATURE ROWS (EVENTS / EXPERIENCES)
   ========================================================================== */

.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(40px, 6vw, 104px);
}

.feature + .feature { margin-top: clamp(60px, 7vw, 128px); }

.feature--reverse .feature__media { order: 2; }
.feature--reverse .feature__body { order: 1; }

.feature__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--img-bg);
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease-soft);
}

.feature:hover .feature__media img { transform: scale(1.04); }

.feature__body { max-width: 56ch; }

.feature__title { margin-bottom: 20px; }

.feature__text {
  color: var(--text-soft);
  margin-bottom: 26px;
}

.section--dark .feature__text { color: var(--text-invert-soft); }

.feature__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 28px;
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.feature__list li { position: relative; }

.feature__list li + li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 3px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

/* ==========================================================================
   12. OFFERS RAIL
   ========================================================================== */

.ocard { display: flex; flex-direction: column; }

.ocard__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--tile-ratio);
  background: var(--img-bg);
}

.ocard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-soft);
}

.ocard:hover .ocard__media img { transform: scale(1.05); }

.ocard__body {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-top: 20px;
}

.ocard__title { font-size: var(--fs-h4); }

.ocard__text {
  font-size: .875rem;
  line-height: 1.72;
  color: var(--text-soft);
}

.ocard .card-actions { margin-top: 4px; gap: 20px; }

/* ==========================================================================
   13. AWARDS BAND
   ========================================================================== */

.awards {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.awards__badges { display: flex; gap: 22px; }

.awards__badge {
  width: clamp(72px, 7vw, 96px);
  height: clamp(72px, 7vw, 96px);
  padding: 8px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.awards__badge img { width: 100%; height: 100%; object-fit: contain; }

.awards__text { max-width: 76ch; }

.awards__title { margin-bottom: 14px; }

.awards__body { color: var(--text-soft); }

.awards__link { flex: 0 0 auto; }

/* ==========================================================================
   14. TESTIMONIALS
   ========================================================================== */

.quotes { position: relative; }

.quotes__viewport { overflow: hidden; }

.quotes__track {
  display: flex;
  transition: transform var(--dur-slow) var(--ease-soft);
}

.quote {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 var(--shell-pad);
  text-align: center;
}

.quote__stars {
  display: block;
  margin-bottom: 22px;
  font-size: .8125rem;
  letter-spacing: .42em;
  color: var(--accent-soft);
}

.section--dark .quote__stars { color: var(--text-invert-mute); }

.quote__text {
  max-width: 44ch;
  margin: 0 auto 30px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.95rem);
  font-weight: var(--fw-light);
  font-style: italic;
  line-height: 1.45;
  letter-spacing: .02em;
}

.quote__author {
  font-size: .6875rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.section--dark .quote__author { color: var(--text-invert-mute); }

.quotes__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 40px;
}

.quotes__count {
  font-size: .6875rem;
  letter-spacing: .2em;
  color: var(--text-mute);
  min-width: 62px;
  text-align: center;
}

.section--dark .quotes__count { color: var(--text-invert-mute); }

.section--dark .arrow {
  border-color: var(--line-invert);
  color: var(--text-invert);
}
.section--dark .arrow:hover:not(:disabled) {
  background: var(--text-invert);
  border-color: var(--text-invert);
  color: var(--ink);
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.footer { background: var(--ink); color: var(--text-invert); }

.footer a { color: inherit; }

/* --- Upper band: property detail -------------------------------------- */

.footer__main {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(56px, 6vw, 92px) var(--shell-pad) clamp(44px, 4.6vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 78px);
}

.footer__brand { grid-column: 1 / -1; margin-bottom: clamp(30px, 3.6vw, 50px); }

.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: var(--fw-light);
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.1;
}

.footer__wordmark + p {
  margin-top: 12px;
  max-width: 42ch;
  font-size: .8125rem;
  color: var(--text-invert-mute);
}

.footer__col-title {
  margin: 0 0 20px;
  font-size: .625rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-invert-mute);
}

.footer__address {
  font-style: normal;
  font-size: .9375rem;
  line-height: 1.95;
  color: var(--text-invert-soft);
}

.footer__address strong {
  display: block;
  font-weight: var(--fw-regular);
  color: var(--text-invert);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: .875rem;
  color: var(--text-invert-soft);
}

.footer__list a:hover { color: var(--white); }

/* Airport / transfer times */
.footer__dists {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-invert-soft);
}

.footer__dist {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8125rem;
  color: var(--text-invert-soft);
}

.footer__dist svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.2;
  fill: none;
  opacity: .8;
}

.footer__dist b {
  font-weight: var(--fw-regular);
  color: var(--text-invert);
}

/* Newsletter */
.footer__form { margin-top: 6px; }

.field {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-invert);
  transition: border-color var(--dur) var(--ease);
}

.field:focus-within { border-color: var(--text-invert); }

.field input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 0;
  border: 0;
  background: transparent;
  color: var(--text-invert);
  font-size: .875rem;
  letter-spacing: .03em;
  outline: none;
}

.field input::placeholder { color: var(--text-invert-mute); }

.field button {
  flex: 0 0 auto;
  padding: 13px 0 13px 18px;
  border: 0;
  background: transparent;
  color: var(--text-invert);
  font-size: .625rem;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  cursor: pointer;
}

.field button:hover { color: var(--white); }

.footer__note {
  margin-top: 13px;
  font-size: .75rem;
  line-height: 1.7;
  color: var(--text-invert-mute);
}

.footer__form-msg {
  margin-top: 13px;
  font-size: .75rem;
  color: var(--accent-soft);
  min-height: 1.2em;
}

/* Social */
.footer__social {
  display: flex;
  gap: 11px;
  margin-top: 26px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-invert);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer__social a:hover {
  background: var(--text-invert);
  border-color: var(--text-invert);
  color: var(--ink);
}

.footer__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Lower band: group / legal ---------------------------------------- */

.footer__sub {
  border-top: 1px solid var(--line-invert-soft);
  background: var(--accent-2);
}

.footer__sub-inner {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(40px, 4.4vw, 64px) var(--shell-pad) clamp(30px, 3.2vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(32px, 4vw, 64px);
}

.footer__absolutely {
  margin: 0 0 22px;
  color: var(--text-invert-soft);
  font-size: .875rem;
  line-height: 1.75;
  max-width: 38ch;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .8125rem;
  color: var(--text-invert-soft);
}

.footer__links a:hover { color: var(--white); }

.footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.footer__logos img {
  max-height: 30px;
  width: auto;
  opacity: .82;
  transition: opacity var(--dur) var(--ease);
}

.footer__logos a:hover img { opacity: 1; }

.footer__legal {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 22px var(--shell-pad) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line-invert-soft);
  font-size: .75rem;
  color: var(--text-invert-mute);
}

/* ==========================================================================
   16. BACK TO TOP + UTILITIES
   ========================================================================== */

.to-top {
  position: fixed;
  right: clamp(16px, 2.4vw, 34px);
  bottom: clamp(16px, 2.4vw, 34px);
  z-index: var(--z-top);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.to-top svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
}

.no-scroll { overflow: hidden; }

/* ==========================================================================
   17. BREAKPOINTS
   ========================================================================== */

/* --- Large desktop: widen gutters, allow 4 dining tiles --------------- */
@media (max-width: 1440px) {
  :root {
    --shell-pad: 44px;
    --rail-card-w: 392px;
  }
}

/* --- Roomier desktops: the full utility row needs the extra width ------ */
@media (max-width: 1400px) {
  .header__utils { display: none; }
}

/* The reserve widget plus an eight-item navigation needs roughly 1700px of
   header. Below that it moves into the drawer, which keeps the primary
   navigation readable instead of crushed against the edge. */
@media (max-width: 1739px) {
  .header .reserve-widget { display: none; }
}

@media (min-width: 1740px) {
  .header .reserve-widget { display: flex; }
  /* Tighten the row so the three groups fit the available track. */
  .header__inner { gap: var(--gap-sm); }
  .nav__list { gap: 12px; }
  .reserve-widget__field { min-width: 96px; padding: 8px 12px; }
  .reserve-widget__submit { padding: 0 18px; }
}

/* --- Desktop down: collapse the primary nav into the drawer ----------- */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__inner { justify-content: space-between; }
  .header__actions { margin-left: auto; }
}

@media (max-width: 1100px) {
  :root {
    --shell-pad: 36px;
    --rail-card-w: 352px;
  }

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

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

  .footer__brand { grid-column: 1 / -1; }

  .awards {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 30px;
  }

  .awards__link { grid-column: 1 / -1; }

  .rail-nav--float {
    position: static;
    margin-top: 34px;
    justify-content: flex-start;
  }
}

/* --- Tablet ----------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --header-h: 78px;
    --header-h-compact: 66px;
    --shell-pad: 28px;
    --rail-card-w: 320px;
    --gap-lg: 34px;
  }

  .hero { min-height: 560px; }
  .hero__badges { display: none; }

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

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

  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  /* On a single column the image always leads */
  .feature--reverse .feature__media { order: 0; }
  .feature--reverse .feature__body { order: 0; }

  .feature__media { aspect-ratio: 4 / 3; }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .reserve-widget__field { min-width: 92px; padding: 7px 12px; }
}

/* --- Small tablet / large phone --------------------------------------- */
@media (max-width: 720px) {
  :root {
    --shell-pad: 22px;
    --section-y: 68px;
    --section-y-tight: 52px;
    --rail-card-w: 76vw;
    --gap-md: 20px;
    --gap-lg: 28px;
  }

  body { line-height: 1.75; }

  .reserve-widget { display: none; }

  .brand__name { font-size: 1.12rem; letter-spacing: .14em; }
  .brand__sub { letter-spacing: .22em; }
  .brand__mark { width: 28px; height: 28px; }

  .hero { min-height: 520px; }
  .hero__content { padding-bottom: clamp(120px, 22vh, 190px); }
  .hero__controls { padding: 0 var(--shell-pad); }
  .hero__scroll { display: none; }
  .hero__actions .btn { width: 100%; }

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

  .rail { gap: 16px; }

  /* Reveal the next card edge as an affordance */
  .rail__item { flex-basis: var(--rail-card-w); }

  .statements__inner { text-align: left; }
  .statements__inner .eyebrow { text-align: left; }

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

  .awards {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .quotes__controls { gap: 14px; }

  .quote { padding: 0 6px; }
}

/* --- Phone ------------------------------------------------------------ */
@media (max-width: 480px) {
  :root {
    --shell-pad: 18px;
    --rail-card-w: 84vw;
  }

  .brand__sub { display: none; }

  .hero__tagline { font-size: .9rem; }

  .card-actions { gap: 18px; }

  .footer__legal { flex-direction: column; align-items: flex-start; }
}

/* --- Short viewports: keep hero content from colliding with controls -- */
@media (max-height: 680px) and (min-width: 721px) {
  .hero { min-height: 520px; }
  .hero__content { padding-bottom: 132px; }
  .hero__scroll { display: none; }
}

/* --- Print ------------------------------------------------------------ */
@media print {
  .header,
  .drawer,
  .to-top,
  .hero__controls,
  .hero__scroll,
  .rail-nav { display: none !important; }

  .hero { height: auto; min-height: 0; color: #000; }
  body { background: #fff; }
  [data-reveal] { opacity: 1; transform: none; }
}
