:root {
  --paper: #f8f6f0;
  --paper-deep: #eee9df;
  --ink: #284852;
  --ink-soft: #587b91;
  --mist: #d9eef0;
  --green: #c2d9c4;
  --lilac: #cbc4d9;
  --sun: #f2d898;
  --petal: #ead1d5;
  --line: rgba(40, 72, 82, 0.16);
  --shadow: 0 24px 70px rgba(40, 72, 82, 0.16);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Lato", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: geometricPrecision;
}

img {
  display: block;
  max-width: 100%;
}

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

::selection {
  background: var(--mist);
  color: var(--ink);
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  background: rgba(248, 246, 240, 0.35);
}

.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink-soft);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 90;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  color: var(--ink);
  background: rgba(248, 246, 240, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(40, 72, 82, 0.12);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  transition: transform 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.site-header.is-hidden {
  transform: translate(-50%, -86px);
}

.brand,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-mark {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.main-nav {
  gap: 6px;
}

.main-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(40, 72, 82, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(88, 123, 145, 0.1);
  color: var(--ink);
}

.story-section {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 130px min(8vw, 96px) 80px;
  background: #d7e8ea;
}

.hero-bg,
.hero-haze {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/images/opening.png");
  background-position: calc(64% + var(--mx, 0px)) calc(50% + var(--my, 0px));
  background-size: cover;
  transform: scale(1.06);
  transition: background-position 180ms ease-out;
}

.hero-haze {
  background:
    linear-gradient(90deg, rgba(248, 246, 240, 1) 0%, rgba(248, 246, 240, 0.98) 52%, rgba(248, 246, 240, 0.2) 80%),
    linear-gradient(180deg, rgba(248, 246, 240, 0.46) 0%, rgba(248, 246, 240, 0.08) 42%, rgba(248, 246, 240, 0.18) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0, rgba(255, 255, 255, 0.07) 1px, transparent 1px, transparent 14px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.02;
}

h1 {
  font-size: 5.5rem;
}

h2 {
  font-size: 3.4rem;
}

h3 {
  font-size: 1.55rem;
}

.payoff {
  max-width: 420px;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 520px;
  margin: 26px 0 0;
  color: rgba(40, 72, 82, 0.82);
  font-size: 1.04rem;
}

.primary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 15px;
  margin-top: 34px;
  padding: 12px 18px 12px 20px;
  border: 1px solid rgba(40, 72, 82, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(40, 72, 82, 0.54);
  transform: translateY(-2px);
}

.primary-link.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.arrow {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 1px;
  background: currentColor;
}

.arrow::after {
  position: absolute;
  top: -4px;
  right: 0;
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 56px;
  place-items: start center;
  border: 1px solid rgba(40, 72, 82, 0.3);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 5px;
  height: 5px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--ink);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.25;
  }
  45% {
    transform: translateY(23px);
    opacity: 1;
  }
}

.section-heading {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading p:not(.kicker) {
  margin: 22px auto 0;
  max-width: 660px;
  color: rgba(40, 72, 82, 0.72);
}

.threshold {
  padding: 118px 0 88px;
  background:
    linear-gradient(180deg, #f8f6f0 0%, #eef5f4 100%);
}

.threshold::before,
.threshold::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.threshold::before {
  top: 74px;
}

.threshold::after {
  bottom: 64px;
}

.threshold-layout {
  display: grid;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.threshold-text {
  color: rgba(40, 72, 82, 0.82);
  font-size: 0.97rem;
}

.threshold-text p {
  margin: 0 0 18px;
}

.threshold-image {
  position: relative;
  margin: 0;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.threshold-image img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.threshold-image::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  content: "";
  pointer-events: none;
}

.threshold-payoff {
  width: min(900px, calc(100% - 40px));
  margin: 58px auto 0;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.threshold-payoff p,
.threshold-payoff strong,
.threshold-payoff span {
  display: block;
  margin: 0 auto;
  max-width: 790px;
}

.threshold-payoff p {
  color: rgba(40, 72, 82, 0.72);
}

.threshold-payoff strong {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.35;
}

.threshold-payoff span {
  margin-top: 22px;
  color: var(--ink-soft);
  font-style: italic;
}

.map {
  padding: 118px 0 108px;
  background:
    linear-gradient(180deg, #eef5f4 0%, #f8f6f0 22%, #f7f4ee 100%);
}

.room-grid {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 12px;
}

.room-card {
  position: relative;
  display: grid;
  min-height: 390px;
  align-content: end;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: var(--accent);
  box-shadow: 0 16px 42px rgba(40, 72, 82, 0.08);
  isolation: isolate;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.room-card:hover,
.room-card:focus-visible {
  box-shadow: 0 24px 58px rgba(40, 72, 82, 0.18);
  transform: translateY(-8px);
}

.room-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}

.room-card:hover img,
.room-card:focus-visible img {
  transform: scale(1.06);
}

.room-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(248, 246, 240, 0.08) 18%, rgba(248, 246, 240, 0.9) 88%);
  content: "";
}

.room-card span {
  color: rgba(40, 72, 82, 0.55);
  font-size: 0.74rem;
  font-weight: 700;
}

.room-card h3 {
  margin-top: 8px;
  font-size: 1.3rem;
  line-height: 1.08;
}

.room-card p {
  margin: 10px 0 0;
  color: rgba(40, 72, 82, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.room-rail {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 80;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.room-rail a {
  position: relative;
  width: 12px;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(40, 72, 82, 0.38);
  border-radius: 50%;
  background: rgba(248, 246, 240, 0.74);
  color: transparent;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.room-rail a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.35);
}

.room {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(320px, 43%) minmax(0, 1fr);
  align-items: center;
  gap: min(7vw, 86px);
  padding: 100px min(7vw, 92px);
  background:
    linear-gradient(90deg, var(--room-muted) 0%, var(--paper) 58%),
    var(--paper);
}

.room.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 43%);
  background:
    linear-gradient(270deg, var(--room-muted) 0%, var(--paper) 58%),
    var(--paper);
}

.room.reverse .room-media {
  order: 2;
}

.room.night {
  background:
    linear-gradient(270deg, #eef0f7 0%, #f8f6f0 58%),
    var(--paper);
}

.room-media {
  position: sticky;
  top: 108px;
  align-self: start;
  min-height: min(74vh, 760px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.room-media::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.room-media img {
  width: 100%;
  height: 100%;
  min-height: min(74vh, 760px);
  object-fit: cover;
}

.room-copy {
  max-width: 650px;
}

.room-number {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px;
  border: 1px solid rgba(40, 72, 82, 0.22);
  border-radius: 50%;
  background: var(--room-accent);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.room-copy h2 {
  max-width: 560px;
}

.room-copy h3 {
  max-width: 560px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.55rem;
  line-height: 1.28;
}

.room-copy p {
  margin: 16px 0 0;
  color: rgba(40, 72, 82, 0.78);
}

.room-copy h3 + p {
  margin-top: 28px;
}

.closing {
  display: grid;
  min-height: 74svh;
  place-items: center;
  padding: 120px 24px;
  background:
    linear-gradient(180deg, #f8f6f0 0%, #e7f0ef 100%);
  text-align: center;
}

.closing > div {
  width: min(720px, 100%);
}

.closing p:not(.kicker) {
  margin: 24px auto 0;
  max-width: 560px;
  color: rgba(40, 72, 82, 0.76);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .room-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }

  .room-card {
    min-height: 330px;
  }

  .threshold-layout {
    grid-template-columns: 1fr 1fr;
  }

  .threshold-image {
    grid-row: span 2;
    min-height: 620px;
  }

  .threshold-image img {
    min-height: 620px;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 94svh;
    padding: 120px 24px 72px;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-haze {
    background: linear-gradient(180deg, rgba(248, 246, 240, 0.88) 0%, rgba(248, 246, 240, 0.58) 48%, rgba(248, 246, 240, 0.16) 100%);
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  h3,
  .room-copy h3,
  .threshold-payoff strong {
    font-size: 1.3rem;
  }

  .threshold,
  .map {
    padding: 86px 0 74px;
  }

  .threshold-layout {
    grid-template-columns: 1fr;
  }

  .threshold-image {
    order: -1;
    min-height: 520px;
  }

  .threshold-image img {
    min-height: 520px;
  }

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

  .room-card {
    min-height: 300px;
  }

  .room-rail {
    display: none;
  }

  .room,
  .room.reverse {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 78px 24px;
  }

  .room.reverse .room-media {
    order: 0;
  }

  .room-media {
    position: relative;
    top: auto;
    min-height: 480px;
  }

  .room-media img {
    min-height: 480px;
  }

  .room-copy {
    max-width: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .brand span {
    font-size: 0.96rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding-inline: 18px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .payoff {
    font-size: 0.82rem;
  }

  .primary-link {
    width: 100%;
    justify-content: space-between;
  }

  .section-heading,
  .threshold-layout,
  .threshold-payoff,
  .room-grid {
    width: calc(100% - 32px);
  }

  .room-grid {
    grid-template-columns: 1fr;
  }

  .room-card {
    min-height: 320px;
  }

  .threshold-image,
  .threshold-image img,
  .room-media,
  .room-media img {
    min-height: 410px;
  }

  .room {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

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