:root {
  --ink: #263224;
  --ink-soft: #596052;
  --gold: #c7a77b;
  --gold-dark: #a88759;
  --paper: #faf9f6;
  --paper-deep: #f2f0ea;
  --white: #ffffff;
  --black: #0a0a0a;
  --line: #dedbd3;
  --shadow: 0 24px 60px rgba(27, 31, 24, 0.14);
  --display: "Marcellus", "Times New Roman", serif;
  --body: "Jost", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

body.intro-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

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

button,
select {
  cursor: pointer;
}

button,
input,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.wide-shell {
  width: min(1400px, calc(100% - 64px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 24px;
  z-index: 10000;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--white);
  color: var(--black);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

h1,
h2,
h3,
.brand,
.footer__brand {
  font-family: var(--display);
  font-weight: 400;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.eyebrow,
.hero__eyebrow {
  margin-bottom: 18px;
  color: var(--gold-dark);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--gold {
  color: var(--gold);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 25px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.button:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
}

.button--gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
}

.section-paper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
}

.section-paper::before,
.section-paper::after {
  position: absolute;
  z-index: -1;
  width: 40vw;
  height: 40vw;
  border: 1px solid rgba(38, 50, 36, 0.035);
  content: "";
  pointer-events: none;
  transform: rotate(38deg);
}

.section-paper::before {
  top: -25vw;
  left: -20vw;
}

.section-paper::after {
  right: -28vw;
  bottom: -25vw;
}

/* Opening film */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--black);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.24));
}

.intro__button {
  position: absolute;
  right: 28px;
  bottom: 28px;
  min-width: 116px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 500;
  color: var(--white);
}

.topbar {
  height: 26px;
  background: var(--black);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.topbar__inner > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.topbar select {
  min-width: 46px;
  height: 26px;
  padding: 0 14px 0 4px;
  border: 0;
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  font-size: 0.63rem;
  text-transform: none;
}

.topbar__divider {
  width: 1px;
  height: 12px;
  margin-inline: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.nav-wrap {
  height: 92px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent);
  transition: height 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.site-header.is-scrolled .nav-wrap {
  height: 76px;
  background: rgba(250, 249, 246, 0.98);
  box-shadow: 0 8px 26px rgba(18, 24, 16, 0.09);
  color: var(--ink);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.brand {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: inherit;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.brand strong {
  font: inherit;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: 8px;
  font-family: var(--body);
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.nav__links {
  width: 100%;
}

.nav__group {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  transform: translateY(-50%);
}

.nav__group--left {
  left: 0;
}

.nav__group--right {
  right: 0;
}

.nav__group a {
  position: relative;
  min-height: 44px;
  padding: 13px 0 10px;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nav__group a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav__group a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 11px;
  border: 0;
  background: transparent;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(2) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(3) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  height: clamp(720px, 100svh, 880px);
  min-height: 720px;
  color: var(--white);
}

.hero__slides,
.hero__slide,
.hero__slide img,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__slides {
  overflow: hidden;
  background: var(--black);
}

.hero__slide {
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero__slide img {
  object-fit: cover;
  transform: scale(1.04);
}

.hero__slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero__slide.is-active img {
  animation: hero-drift 8s ease-out both;
}

@keyframes hero-drift {
  from { transform: scale(1.1); }
  to { transform: scale(1.02); }
}

.hero__shade {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.37) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  height: 100%;
  padding-bottom: 155px;
}

.hero__eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero h1 {
  width: min(780px, 90%);
  margin: 0;
  color: var(--white);
  font-size: clamp(3.8rem, 7vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 36px rgba(0, 0, 0, 0.2);
}

.hero__progress {
  position: absolute;
  top: 50%;
  right: 28px;
  z-index: 4;
  display: flex;
  gap: 10px;
  flex-direction: column;
  transform: translateY(-50%);
}

.hero__progress span {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.42);
  transition: height 0.35s ease, background 0.35s ease;
}

.hero__progress span.is-active {
  height: 62px;
  background: var(--white);
}

.availability {
  position: absolute;
  right: 0;
  bottom: -54px;
  left: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 0.8fr 0.8fr auto;
  min-height: 108px;
  padding: 0 0 0 18px;
  border-top: 3px solid var(--gold);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.field {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 19px 22px;
}

.field:not(:first-child)::before {
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.field label {
  margin-bottom: 6px;
  color: #6b7067;
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 36px;
  padding: 2px 22px 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
}

.availability__button {
  min-width: 180px;
  border: 0;
  background: var(--ink);
}

/* Story */
.story {
  padding: 180px 0 130px;
}

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(55px, 8vw, 125px);
  align-items: center;
}

.story__portrait {
  position: relative;
  padding: 0 0 62px 40px;
}

.story__portrait::before {
  position: absolute;
  top: -28px;
  right: 35px;
  bottom: 27px;
  left: 0;
  border: 1px solid var(--gold);
  content: "";
}

.story__portrait picture {
  position: relative;
  height: 650px;
  overflow: hidden;
}

.story__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__content {
  max-width: 580px;
  padding-top: 30px;
}

.story__content blockquote {
  margin: 0 0 28px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.65;
}

.story__content > p:not(.eyebrow) {
  max-width: 520px;
  color: var(--ink-soft);
}

.story__details {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  margin-top: 42px;
  align-items: end;
}

.story__details img {
  width: 100%;
  height: 175px;
  object-fit: cover;
}

.story__details img:last-child {
  height: 130px;
}

/* Running text */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: var(--ink);
  color: var(--white);
}

.marquee > div {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  min-width: 200%;
  padding: 23px 0;
  animation: marquee 28s linear infinite;
}

.marquee span {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.marquee i {
  color: var(--gold);
  font-style: normal;
}

.marquee--soft {
  border-color: var(--line);
  background: var(--paper-deep);
  color: var(--ink);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Editorial headings */
.rooms,
.experiences,
.kandy,
.dining,
.gallery {
  padding: 130px 0;
}

.editorial-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr);
  gap: 70px;
  margin-bottom: 70px;
  align-items: end;
}

.editorial-heading h2 {
  max-width: 750px;
  margin-bottom: 0;
}

.editorial-heading > p {
  max-width: 430px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.currency-note {
  margin: -46px 0 40px;
  color: #70756c;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-align: right;
}

/* Rooms */
.room-entry {
  position: relative;
  min-height: 650px;
  margin-bottom: 150px;
}

.room-entry:last-child {
  margin-bottom: 0;
}

.room-entry__image {
  width: 72%;
  height: 650px;
  overflow: hidden;
}

.room-entry__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.room-entry:hover .room-entry__image img {
  transform: scale(1.025);
}

.room-entry__card {
  position: absolute;
  top: 50%;
  right: 0;
  width: min(49%, 555px);
  padding: 62px 60px 55px;
  border-top: 3px solid var(--gold);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-50%);
}

.room-entry--reverse .room-entry__image {
  margin-left: auto;
}

.room-entry--reverse .room-entry__card {
  right: auto;
  left: 0;
}

.entry-number {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.room-entry__card h3 {
  margin-bottom: 18px;
}

.room-entry__card > p:not(.entry-meta) {
  color: var(--ink-soft);
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #73786f;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.entry-meta i {
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.entry-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.entry-footer > div {
  display: grid;
  gap: 2px;
}

.entry-footer small {
  color: #747a71;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.entry-footer strong {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
}

.reserve-button,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reserve-button b,
.text-button b {
  color: var(--gold-dark);
  font-family: var(--body);
  font-size: 1.1rem;
  font-weight: 300;
  transition: transform 0.25s ease;
}

.reserve-button:hover b,
.text-button:hover b {
  transform: translate(3px, -3px);
}

/* Nature band */
.nature-band {
  position: relative;
  height: min(620px, 70vh);
  min-height: 480px;
  overflow: hidden;
  color: var(--white);
}

.nature-band > img,
.nature-band__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nature-band > img {
  object-fit: cover;
}

.nature-band__shade {
  background: rgba(9, 14, 8, 0.34);
}

.nature-band__words {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
}

.nature-band__words span {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 3.9rem);
}

.nature-band__words span:last-child {
  border-right: 0;
}

/* Experiences */
.experiences {
  background: var(--white);
}

.experience-list {
  display: grid;
  gap: 135px;
}

.experience-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(60px, 9vw, 125px);
  align-items: center;
}

.experience-entry--reverse {
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
}

.experience-entry--reverse > img {
  grid-column: 2;
  grid-row: 1;
}

.experience-entry--reverse .experience-entry__content {
  grid-column: 1;
  grid-row: 1;
}

.experience-entry > img {
  width: 100%;
  height: 545px;
  object-fit: cover;
}

.experience-entry__content {
  max-width: 490px;
}

.experience-entry__content h3 {
  margin-bottom: 25px;
}

.experience-entry__content > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.experience-entry dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 34px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.experience-entry dl div {
  padding: 20px 18px 20px 0;
}

.experience-entry dl div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.experience-entry dt {
  color: #747a71;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.experience-entry dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
}

/* Dark amenity section */
.features-dark {
  padding: 125px 0;
  background: var(--black);
  color: var(--white);
}

.features-dark__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1.2fr);
  gap: clamp(70px, 10vw, 150px);
}

.features-dark__intro {
  padding-top: 10px;
}

.features-dark__intro h2 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.features-dark__intro > p:last-child {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.56);
}

.feature-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-list > div {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-list span {
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.75rem;
}

.feature-list strong {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 400;
}

/* Kandy places */
.places-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(50px, 7vw, 95px);
  align-items: stretch;
}

.places-layout > img {
  width: 100%;
  height: 650px;
  object-fit: cover;
}

.places-list {
  border-top: 1px solid var(--line);
}

.places-list article {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 8px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.places-list article > span {
  padding-top: 5px;
  color: var(--gold-dark);
  font-family: var(--display);
  font-size: 0.7rem;
}

.places-list h3 {
  margin-bottom: 7px;
  font-size: 1.35rem;
}

.places-list p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Dining */
.dining {
  padding-top: 110px;
  padding-bottom: 110px;
}

.dining__grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(60px, 9vw, 125px);
  align-items: center;
}

.dining__content > p:not(.eyebrow, .fine-print) {
  max-width: 510px;
  color: var(--ink-soft);
}

.dining__image {
  height: 690px;
}

.dining__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-list {
  margin-top: 45px;
  border-top: 1px solid var(--line);
}

.menu-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.menu-list span {
  display: grid;
  gap: 3px;
}

.menu-list strong {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 400;
}

.menu-list small,
.fine-print {
  color: #747a71;
  font-size: 0.72rem;
}

.menu-list b {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 400;
  white-space: nowrap;
}

.fine-print {
  margin: 18px 0 0;
  line-height: 1.6;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 145px;
  gap: 14px;
}

.gallery-item {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: var(--paper-deep);
  overflow: hidden;
}

.gallery-item--tall {
  grid-column: span 5;
  grid-row: span 4;
}

.gallery-item--wide {
  grid-column: span 5;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.55s ease, transform 0.75s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: brightness(0.86);
  transform: scale(1.035);
}

/* Location */
.location {
  position: relative;
  min-height: 760px;
  color: var(--ink);
  overflow: hidden;
}

.location__background,
.location__background img,
.location__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.location__background img {
  object-fit: cover;
}

.location__shade {
  background: linear-gradient(90deg, rgba(8, 12, 7, 0.5), rgba(8, 12, 7, 0.04) 70%);
}

.location__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 760px;
}

.location-card {
  width: min(540px, 100%);
  padding: 60px;
  border-top: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.location-card > p:not(.eyebrow),
.location-card address {
  color: var(--ink-soft);
}

.location-card address {
  margin: 26px 0;
  font-style: normal;
  line-height: 1.7;
}

.location-card address strong {
  color: var(--ink);
  font-weight: 500;
}

.location-card dl {
  margin: 0 0 30px;
  border-top: 1px solid var(--line);
}

.location-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.location-card dt {
  color: #777c74;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.location-card dd {
  margin: 0;
  font-family: var(--display);
  text-align: right;
}

/* Footer */
.footer {
  padding: 86px 0 25px;
  background: var(--black);
  color: rgba(255, 255, 255, 0.66);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 1fr 0.75fr;
  gap: 55px;
  padding-bottom: 65px;
}

.footer__brand {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--white);
  font-size: 1.6rem;
}

.footer__top h2 {
  margin-bottom: 22px;
  color: var(--gold);
  font-family: var(--body);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer__top a,
.footer__top address {
  display: block;
  margin-bottom: 9px;
  font-size: 0.83rem;
  font-style: normal;
  line-height: 1.7;
}

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

.footer__top p {
  max-width: 250px;
  font-size: 0.83rem;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
}

.whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 450;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: #265a3c;
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  font-size: 1.5rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.whatsapp:hover {
  background: #1e7645;
  transform: translateY(-3px);
}

/* Gallery viewer */
.gallery-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}

.gallery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.gallery-dialog__panel {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 70px 90px;
}

.gallery-dialog__panel img {
  width: auto;
  max-width: min(1200px, 100%);
  height: auto;
  max-height: calc(100vh - 170px);
  object-fit: contain;
}

.gallery-dialog__panel p {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: min(760px, calc(100% - 48px));
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  text-align: center;
  transform: translateX(-50%);
}

.gallery-dialog__close,
.gallery-dialog__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: var(--white);
}

.gallery-dialog__close {
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
}

.gallery-dialog__nav {
  top: 50%;
  font-size: 2rem;
  transform: translateY(-50%);
}

.gallery-dialog__nav--prev {
  left: 22px;
}

.gallery-dialog__nav--next {
  right: 22px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 8000;
  max-width: min(390px, calc(100% - 48px));
  padding: 13px 18px;
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Motion */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal and error pages */
.legal-page {
  background: var(--paper);
}

.legal-header {
  padding: 24px 0;
  background: var(--ink);
  color: var(--white);
}

.legal-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header .footer__brand {
  margin: 0;
}

.legal-header a:last-child {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-content {
  width: min(820px, calc(100% - 48px));
  margin-inline: auto;
  padding: 100px 0 130px;
}

.legal-content h1 {
  margin-bottom: 30px;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1;
}

.legal-content h2 {
  margin: 48px 0 15px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  font-size: 1.55rem;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

.legal-content a {
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
}

.legal-note {
  padding: 22px 25px;
  border-left: 3px solid var(--gold);
  background: var(--white);
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 48px 24px;
  background:
    linear-gradient(rgba(8, 14, 7, 0.72), rgba(8, 14, 7, 0.72)),
    url("hills-1280.webp") center / cover;
  color: var(--white);
  text-align: center;
}

.error-page__inner {
  max-width: 770px;
}

.error-page__code {
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(5rem, 16vw, 10rem);
  line-height: 0.9;
}

.error-page h1 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.05;
}

.error-page__inner > p:not(.error-page__code) {
  color: rgba(255, 255, 255, 0.72);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

@media (max-width: 1040px) {
  .wide-shell {
    width: min(100% - 44px, 1180px);
  }

  .nav__group {
    gap: 20px;
  }

  .nav__group a {
    font-size: 0.59rem;
    letter-spacing: 0.11em;
  }

  .brand strong {
    font-size: 1.08rem;
  }

  .availability {
    width: min(940px, calc(100% - 48px));
    grid-template-columns: 1.2fr 1.2fr 0.7fr 0.7fr auto;
  }

  .field {
    padding-inline: 15px;
  }

  .availability__button {
    min-width: 155px;
  }

  .room-entry__card {
    width: 53%;
    padding: 48px;
  }

  .story__grid,
  .dining__grid {
    gap: 55px;
  }

  .story__portrait picture {
    height: 570px;
  }

  .experience-entry {
    gap: 55px;
  }

  .footer__top {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }

  .footer__top > div:last-child {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 90px;
  }

  .shell,
  .wide-shell {
    width: min(100% - 32px, 620px);
  }

  h2 {
    font-size: clamp(2.25rem, 11vw, 3.55rem);
  }

  .topbar {
    height: 28px;
  }

  .topbar__inner {
    width: calc(100% - 24px);
  }

  .topbar__inner > a {
    font-size: 0.55rem;
  }

  .topbar__controls label,
  .topbar__divider {
    display: none;
  }

  .topbar__controls {
    gap: 0;
  }

  .topbar select {
    height: 28px;
  }

  .nav-wrap,
  .site-header.is-scrolled .nav-wrap {
    height: 70px;
  }

  .nav-wrap {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent);
  }

  .nav {
    width: calc(100% - 28px);
  }

  .brand {
    position: static;
    align-items: flex-start;
    text-align: left;
    transform: none;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    margin-top: 6px;
    font-size: 0.41rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    top: 70px;
    right: -14px;
    left: -14px;
    display: grid;
    max-height: 0;
    padding: 0 22px;
    background: rgba(250, 249, 246, 0.99);
    color: var(--ink);
    box-shadow: 0 18px 30px rgba(16, 22, 14, 0.12);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease, visibility 0.35s ease;
  }

  .nav__links.is-open {
    max-height: 520px;
    padding-block: 13px 18px;
    opacity: 1;
    visibility: visible;
  }

  .nav__group {
    position: static;
    display: grid;
    gap: 0;
    transform: none;
  }

  .nav__group a {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    font-size: 0.66rem;
  }

  .nav__group a::after {
    display: none;
  }

  .hero {
    height: 790px;
    min-height: 790px;
  }

  .hero__content {
    padding-bottom: 240px;
  }

  .hero h1 {
    width: 100%;
    font-size: clamp(3.35rem, 16vw, 5.7rem);
  }

  .hero__progress {
    top: 42%;
    right: 15px;
  }

  .availability {
    bottom: -126px;
    width: calc(100% - 32px);
    min-height: 250px;
    padding: 10px 10px 0;
    grid-template-columns: repeat(2, 1fr);
  }

  .field {
    min-width: 0;
    padding: 11px 12px;
  }

  .field::before {
    display: none;
  }

  .field:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .field:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .availability__button {
    grid-column: 1 / -1;
    min-height: 54px;
  }

  .story {
    padding: 210px 0 90px;
  }

  .story__grid,
  .editorial-heading,
  .experience-entry,
  .experience-entry--reverse,
  .features-dark__grid,
  .places-layout,
  .dining__grid {
    grid-template-columns: 1fr;
  }

  .story__grid,
  .dining__grid,
  .features-dark__grid {
    gap: 48px;
  }

  .story__portrait {
    padding: 0 0 35px 20px;
  }

  .story__portrait picture {
    height: min(580px, 135vw);
  }

  .story__content {
    padding-top: 0;
  }

  .story__details img {
    height: 135px;
  }

  .story__details img:last-child {
    height: 105px;
  }

  .rooms,
  .experiences,
  .kandy,
  .gallery {
    padding: 90px 0;
  }

  .dining {
    padding: 90px 0;
  }

  .editorial-heading {
    gap: 22px;
    margin-bottom: 48px;
  }

  .currency-note {
    margin: -25px 0 35px;
    text-align: left;
  }

  .room-entry {
    display: grid;
    min-height: 0;
    margin-bottom: 85px;
  }

  .room-entry__image,
  .room-entry--reverse .room-entry__image {
    width: 100%;
    height: min(520px, 78vw);
    margin: 0;
  }

  .room-entry__card,
  .room-entry--reverse .room-entry__card {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: calc(100% - 28px);
    margin: -48px 0 0 auto;
    padding: 35px 28px 30px;
    transform: none;
  }

  .room-entry--reverse .room-entry__card {
    margin-right: auto;
    margin-left: 0;
  }

  .entry-footer {
    align-items: center;
  }

  .nature-band {
    min-height: 530px;
  }

  .nature-band__words {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .nature-band__words span {
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .nature-band__words span:nth-child(even) {
    border-right: 0;
  }

  .nature-band__words span:nth-child(n + 3) {
    border-bottom: 0;
  }

  .experience-list {
    gap: 90px;
  }

  .experience-entry,
  .experience-entry--reverse {
    gap: 35px;
  }

  .experience-entry--reverse > img,
  .experience-entry--reverse .experience-entry__content {
    grid-column: 1;
  }

  .experience-entry--reverse > img {
    grid-row: 1;
  }

  .experience-entry--reverse .experience-entry__content {
    grid-row: 2;
  }

  .experience-entry > img {
    height: min(520px, 82vw);
  }

  .features-dark {
    padding: 90px 0;
  }

  .places-layout > img {
    height: min(570px, 92vw);
  }

  .dining__content {
    order: 2;
  }

  .dining__image {
    order: 1;
    height: min(610px, 110vw);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 8px;
  }

  .gallery-item,
  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item--tall {
    grid-row: span 2;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .location,
  .location__inner {
    min-height: 720px;
  }

  .location__inner {
    align-items: flex-end;
    padding-bottom: 32px;
  }

  .location-card {
    padding: 38px 28px;
  }

  .footer {
    padding-top: 65px;
  }

  .footer__top {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 25px;
  }

  .footer__top > div:last-child {
    grid-column: auto;
  }

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

  .gallery-dialog__panel {
    padding: 70px 18px;
  }

  .gallery-dialog__nav {
    top: auto;
    bottom: 64px;
    transform: none;
  }

  .legal-content {
    width: calc(100% - 32px);
    padding: 70px 0 90px;
  }
}

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

  .topbar__inner > a {
    max-width: 95px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar select {
    min-width: 43px;
    padding-right: 8px;
    font-size: 0.55rem;
  }

  .hero {
    height: 760px;
    min-height: 760px;
  }

  .hero__content {
    padding-bottom: 250px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .availability {
    bottom: -132px;
  }

  .field {
    padding: 9px 7px;
  }

  .field input,
  .field select {
    font-size: 0.83rem;
  }

  .story {
    padding-top: 215px;
  }

  .story__details {
    gap: 9px;
  }

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

  .reserve-button {
    align-self: stretch;
    justify-content: space-between;
  }

  .experience-entry dl {
    grid-template-columns: 1fr;
  }

  .experience-entry dl div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .feature-list > div {
    grid-template-columns: 48px 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 140px;
  }

  .location-card dl div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .location-card dd {
    text-align: left;
  }

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

  .legal-header .shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .error-page__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .whatsapp {
    right: 16px;
    bottom: 16px;
  }
}

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

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

  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
