/* Mengalung Heights · website styles
   Built to the Mata Master Brand Book, Vol. 01 (Nov 2026):
   Kapur and Hutan carry the layout, Teluk and Lereng support, Sabana is a small accent on Hutan only.
   Kepler Std Display for names and headlines, Acumin Pro for text, Acumin Pro Wide capitals for labels. */

:root {
  --hutan: #1C2B25;
  --kapur: #EAEBE6;
  --sabana: #C2A46E;
  --teluk: #2D5F66;
  --lereng: #8B957D;
  --basalt: #3B403D;
  /* places at Mengalung Heights, from their own palettes */
  --tembaga: #C38B5D;
  --pasir: #E9DDCB;
  --cabai: #8A3324;
  --mentega: #EADBB0;
  --laut: #33576F;

  --serif: "kepler-std-display", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "acumin-pro", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: "acumin-pro-wide", "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 78rem;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --hair-dark: rgba(28, 43, 37, 0.2);
  --hair-light: rgba(234, 235, 230, 0.22);
  /* Lifted surface on dark sections: depth from a lighter tone, because shadows vanish on dark.
     Mixed in OKLCH (hutan, 9% toward kapur) so steps look even to the eye. The hex is the
     colour Chrome computes for that mix, for browsers without color-mix(). */
  --hutan-raised: #2B3A34;
}
@supports (color: color-mix(in oklch, red, blue)) {
  :root { --hutan-raised: color-mix(in oklch, var(--hutan) 91%, var(--kapur)); }
}

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

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

body {
  margin: 0;
  background: var(--kapur);
  color: var(--basalt);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 60rem) { body { font-size: 1.125rem; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol, dl { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--teluk); outline-offset: 3px; }
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--sabana); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--kapur); color: var(--hutan);
  padding: 0.75rem 1rem; font-family: var(--wide); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

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

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

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

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--hutan);
  margin: 0;
  letter-spacing: -0.005em;
  font-kerning: normal;
}
.display { font-size: clamp(2.875rem, 7.4vw, 6rem); line-height: 1.02; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 3.7vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.45rem, 2.1vw, 1.875rem); line-height: 1.2; }
h2, h3 { text-wrap: balance; }

.lead {
  font-weight: 300;
  font-size: clamp(1.1875rem, 1.7vw, 1.4375rem);
  line-height: 1.45;
  max-width: 34em;
}

/* Label: Acumin Pro Wide Medium, capitals, +300 (brand book, 01 · Typography) */
.label {
  display: block;
  font-family: var(--wide);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teluk);
  margin: 0 0 1.25rem;
}
.on-dark .label { color: var(--sabana); }

/* The horizon rule: two hairlines around a widely spaced label */
.horizon {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
  margin: 0 0 1.25rem;
}
.horizon::before,
.horizon::after { content: ""; flex: 0 0 2.75rem; height: 1px; background: var(--sabana); }
.horizon .label { margin: 0; padding-left: 0.3em; } /* balances the tracking after the last letter */

.measure { max-width: 36em; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem;
  font-family: var(--wide);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.15em 1.6em 1.15em 1.9em;
  border: 1px solid currentColor;
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
}
.btn--line { color: var(--kapur); }
@media (hover: hover) { .btn--line:hover { background: var(--kapur); color: var(--hutan); border-color: var(--kapur); } }
.btn--solid { background: var(--kapur); color: var(--hutan); border-color: var(--kapur); }
@media (hover: hover) { .btn--solid:hover { background: transparent; color: var(--kapur); } }
.btn--dark { background: var(--hutan); color: var(--kapur); border-color: var(--hutan); }
@media (hover: hover) { .btn--dark:hover { background: transparent; color: var(--hutan); } }
button.btn { -webkit-appearance: none; appearance: none; cursor: pointer; font: inherit; font-family: var(--wide); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.3em; }

.text-link {
  font-family: var(--wide); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 0.35em;
  display: inline-block;
}
.text-link:hover { border-bottom-color: transparent; }

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

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 20; color: var(--kapur); pointer-events: none; transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1); }
.site-header a, .site-header summary, .site-header .menu-panel { pointer-events: auto; }
/* a soft shade behind the logo and links, so they read over any photo */
.site-header::before { content: ""; position: absolute; inset: 0 0 -3.5rem 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(28, 43, 37, 0.66) 0%, rgba(28, 43, 37, 0.3) 55%, rgba(28, 43, 37, 0) 100%); transition: opacity 0.35s ease; }
/* once scrolled: a compact bar on the lifted surface */
.site-header::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4.25rem; z-index: -1; background: var(--hutan-raised); box-shadow: 0 1px 0 var(--hair-light); opacity: 0; transition: opacity 0.35s ease; }
.site-header .header-inner { transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid::after { opacity: 1; }
.site-header.is-solid .header-inner { transform: translateY(min(0px, calc((4.25rem - var(--hdr, 6.5rem)) / 2))); }
.site-header.is-solid .brand img { transform: scale(0.8); filter: none; }
.site-header.is-hidden { transform: translateY(-110%); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-block: clamp(1.25rem, 2.6vw, 2rem);
}
.brand { display: block; flex: 0 0 auto; }
.brand img { width: clamp(200px, 21vw, 300px); height: auto; transform-origin: 0 50%; transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  filter: drop-shadow(0 1px 1px rgba(28, 43, 37, 0.4)) drop-shadow(0 0 12px rgba(28, 43, 37, 0.35)); } /* horizontal logo: 180 px minimum; larger so the thin wordmark and the descriptor read */

.nav-desktop { display: none; }
.nav-desktop ul { list-style: none; display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav-link {
  font-family: var(--wide); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  text-decoration: none; padding-block: 0.5rem; border-bottom: 1.5px solid transparent;
}
.nav-link:hover,
.nav-link[aria-current="page"] { border-bottom-color: var(--sabana); }

.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  font-family: var(--wide); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 0.85rem 0 0.85rem 1rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; display: inline-block; width: 1.1rem; height: 1.5px; background: currentColor; margin-left: 0.6rem; vertical-align: middle; transition: width 0.3s ease; }
.menu[open] summary::after { width: 0.6rem; }
.menu-panel {
  position: absolute; right: calc(-1 * var(--gutter)); top: calc(100% + 0.75rem);
  width: min(22rem, 100vw);
  background: var(--hutan-raised); color: var(--kapur);
  border: 1px solid var(--hair-light); border-right: 0;
  padding: 1.5rem var(--gutter) 2rem;
}
.menu-panel ul { list-style: none; }
.menu-panel li + li { border-top: 1px solid var(--hair-light); }
.menu-panel a:not(.btn) { display: block; padding: 0.9rem 0; font-family: var(--serif); font-weight: 300; font-size: 1.6rem; text-decoration: none; }
.menu-panel a[aria-current="page"] { color: var(--sabana); }
.menu-panel .btn { margin-top: 1.5rem; }

@media (min-width: 64rem) {
  .nav-desktop { display: block; }
  .menu { display: none; }
}

/* ---------------------------------------------------------------- heroes */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--hutan); color: var(--kapur);
  display: flex; align-items: flex-end;
}
.hero h1, .hero .display { color: var(--kapur); }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art > svg,
.hero-art > img { width: 100%; height: 100%; object-fit: cover; }

.hero--home { min-height: max(40rem, 100vh); min-height: max(40rem, 100svh); }
.hero--home .hero-inner { padding-block: 9.5rem clamp(3rem, 7vw, 5.5rem); }
.hero--page { min-height: max(30rem, 64vh); min-height: max(30rem, 64svh); }
.hero--page .hero-inner { padding-block: 9rem clamp(3rem, 6vw, 4.5rem); }
.hero--short { min-height: max(24rem, 46vh); min-height: max(24rem, 46svh); }
.hero--short .hero-inner { padding-block: 8.5rem clamp(3rem, 6vw, 4.5rem); }

.hero-grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1fr auto; } }
.hero .lead { color: rgba(234, 235, 230, 0.88); margin-top: 1.5rem; }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.hero-status { font-size: 0.9375rem; color: rgba(234, 235, 230, 0.7); margin: 0; }

/* the contour texture drawing itself in, once, on every hero */
.hero .contours path {
  fill: none; stroke: var(--kapur); stroke-opacity: 0.17; stroke-width: 1;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.4s cubic-bezier(0.3, 0.55, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Sunset in Kuta today (computed in the browser) */
.sunset { margin: 0; text-align: left; }
.sunset[hidden] { display: none; }
.sunset .label { margin-bottom: 0.4rem; }
.sunset-time { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.25rem, 3.6vw, 3rem); line-height: 1; color: var(--sabana); font-variant-numeric: lining-nums; }
@media (min-width: 60rem) { .sunset { text-align: right; } }

/* ---------------------------------------------------------------- sections */

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--hutan { background: var(--hutan); color: rgba(234, 235, 230, 0.86); }
.section--hutan h2, .section--hutan h3 { color: var(--kapur); }
.section--teluk { background: var(--teluk); color: rgba(234, 235, 230, 0.92); position: relative; isolation: isolate; overflow: hidden; }
.section--teluk h2 { color: var(--kapur); }
.section--teluk .label { color: var(--kapur); }
.band-art { position: absolute; inset: 0; z-index: -1; }
.band-art img { width: 100%; height: 100%; object-fit: cover; }

.split { display: grid; gap: 2.75rem; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 5fr 6fr; gap: 3rem 7rem; align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--media { grid-template-columns: 7fr 5fr; align-items: center; gap: 3rem 5rem; }
  .split--media-right { grid-template-columns: 5fr 7fr; }
  .split--media-right > :first-child { order: 2; }
}
.split h2 + .lead,
.split h2 + p { margin-top: 1.5rem; }
.stack > * + * { margin-top: 1.5rem; }

/* hairline lists, as in the brand book's What's there and Who it's for */
.ruled { list-style: none; border-bottom: 1px solid var(--hair-dark); }
.ruled li { border-top: 1px solid var(--hair-dark); padding: 0.95rem 0; }
.on-dark .ruled, .on-dark .ruled li { border-color: var(--hair-light); }

.facts { border-bottom: 1px solid var(--hair-dark); }
.facts > div { display: grid; gap: 0.35rem 2rem; border-top: 1px solid var(--hair-dark); padding: 1.35rem 0; }
@media (min-width: 48rem) { .facts > div { grid-template-columns: 13rem 1fr; } }
.facts dt { font-family: var(--serif); font-weight: 300; font-size: 1.5rem; line-height: 1.2; color: var(--hutan); }
.facts dd { margin: 0; }

.figure { margin: 0; overflow: hidden; overflow: clip; background: var(--lereng); }
.figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.figure--wide img { aspect-ratio: 21 / 9; }
@media (max-width: 47.99rem) { .figure--wide img { aspect-ratio: 4 / 3; } }

/* three lines on Hutan, titled with the horizon rule */
.horizons { display: grid; gap: 3.5rem; text-align: center; }
@media (min-width: 56rem) { .horizons { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.horizons h3 { font-size: clamp(1.6rem, 2.3vw, 2rem); margin-bottom: 1.25rem; }
.horizons .text-link { color: var(--kapur); }

/* the places on the hill, each on its own ground */
.places { display: grid; gap: 1px; }
@media (min-width: 56rem) { .places { grid-template-columns: repeat(3, 1fr); } }
.place { display: flex; flex-direction: column; gap: 1.5rem; padding: clamp(2rem, 3.5vw, 3rem); min-height: 17rem; text-decoration: none; }
@media (min-width: 56rem) { .place { min-height: 25rem; } }
.place .place-logo { height: 5.5rem; display: flex; align-items: center; }
.place .place-logo img { height: 100%; width: auto; max-width: 100%; }
.place p { margin: 0; max-width: 24em; }
.place .text-link { margin-top: auto; align-self: flex-start; }
.place--saji { background: var(--cabai); color: var(--kapur); }
.place--angin { background: var(--hutan); color: var(--pasir); }
.place--halfway { background: var(--mentega); color: var(--laut); }

.place-band { padding-block: clamp(4rem, 9vw, 7rem); }
.place-band .split { align-items: center; }
.place-band .place-logo img { width: min(100%, 300px); height: auto; }
.place-band p { max-width: 32em; }
.place-band h2 { color: inherit; }
.place-band .label { color: inherit; opacity: 0.8; }

/* schedule of accommodation */
.schedule { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.schedule caption { text-align: left; }
.schedule th, .schedule td { text-align: left; padding: 1.1rem 1rem 1.1rem 0; border-top: 1px solid var(--hair-dark); vertical-align: baseline; }
.schedule tbody tr:last-child > * { border-bottom: 1px solid var(--hair-dark); }
.schedule tbody th { white-space: nowrap; width: 34%; }
.schedule .num { width: 16%; }
.schedule td[data-label="Pool"] { width: 16%; }
.schedule thead th {
  font-family: var(--wide); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--teluk); border-top: 0; padding-top: 0;
}
.schedule tbody th { font-family: var(--serif); font-weight: 300; font-size: 1.45rem; color: var(--hutan); }
.schedule .num { font-family: var(--serif); font-weight: 300; font-size: 1.45rem; color: var(--hutan); }
@media (max-width: 47.99rem) {
  .schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .schedule tr { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--hair-dark); padding: 1rem 0; }
  .schedule tr:last-child { border-bottom: 1px solid var(--hair-dark); }
  .schedule th, .schedule td { border: 0 !important; padding: 0.15rem 0; width: auto !important; white-space: normal !important; }
  .schedule tbody th { grid-column: 1 / -1; }
  .schedule td::before { content: attr(data-label) ": "; font-family: var(--wide); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teluk); }
  .schedule td.num { font-family: var(--sans); font-size: 1rem; color: inherit; }
  .schedule td { grid-column: 1 / -1; }
}

.note { font-size: 0.9375rem; color: var(--basalt); opacity: 0.85; }

/* ---------------------------------------------------------------- interest list band */

.cta-inner { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 60rem) { .cta-inner { grid-template-columns: 1fr auto; } }
.cta-inner p { max-width: 32em; margin-top: 1.25rem; }

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

.form { display: grid; gap: 1.75rem; }
.field { display: grid; gap: 0.55rem; }
.field label,
.field legend {
  font-family: var(--wide); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--teluk);
}
.field .optional { letter-spacing: 0.15em; color: var(--lereng); text-transform: none; font-family: var(--sans); font-weight: 400; font-size: 0.8125rem; }
.field input,
.field select,
.field textarea {
  font: inherit; color: var(--hutan);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(28, 43, 37, 0.45);
  border-radius: 0;
  padding: 0.6rem 0;
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; border: 1px solid rgba(28, 43, 37, 0.35); padding: 0.75rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--hutan) 50%), linear-gradient(135deg, var(--hutan) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--teluk); box-shadow: 0 1px 0 0 var(--teluk); }
.field textarea:focus { box-shadow: 0 0 0 1px var(--teluk); }
.field-row { display: grid; gap: 1.75rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; font-size: 0.9375rem; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--teluk); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aside-box { border-top: 1px solid var(--hair-dark); padding-top: 1.5rem; }
.aside-box + .aside-box { margin-top: 2.5rem; }

/* ---------------------------------------------------------------- prose (privacy) */

.prose { max-width: 40em; }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin: 2.75rem 0 1rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li + li { margin-top: 0.35rem; }

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

.site-footer { background: var(--hutan); color: rgba(234, 235, 230, 0.78); padding-block: clamp(4rem, 8vw, 6rem) 2.5rem; font-size: 0.9375rem; }
.footer-top { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-logo img { width: 200px; height: auto; }
.site-footer .label { color: var(--sabana); margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 0.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.75rem; border-top: 1px solid var(--hair-light);
  display: grid; gap: 1rem 2.5rem; align-items: center; font-size: 0.8125rem; color: rgba(234, 235, 230, 0.62);
}
@media (min-width: 60rem) { .footer-bottom { grid-template-columns: auto 1fr auto; } }
.footer-bottom p { margin: 0; }
.endorsement img { width: 150px; height: auto; }

/* ---------------------------------------------------------------- page bits */

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); align-items: end; }
.section--flush-bottom { padding-bottom: 0; }
.section--flush-top { padding-top: 0; }

/* the hill in numbers, under the wide hill panel on the home page */
.numbers {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem;
  border-bottom: 1px solid var(--hair-dark); margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 60rem) { .numbers { grid-template-columns: repeat(4, 1fr); } }
.numbers li { border-top: 1px solid var(--hair-dark); padding: 1.35rem 0 1.5rem; display: grid; gap: 0.4rem; align-content: start; }
.number-value { font-family: var(--serif); font-weight: 300; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; color: var(--hutan); font-variant-numeric: lining-nums; }
.number-unit { font-size: 0.5em; letter-spacing: 0.02em; }
.number-label { font-size: 0.9375rem; line-height: 1.4; max-width: 14em; }

/* a real photograph, with a caption under it */
.figure--photo { background: none; overflow: visible; }
.figure--photo img { height: auto; background: var(--lereng); }
.figure--photo figcaption { margin-top: 0.85rem; font-size: 0.8125rem; line-height: 1.45; color: var(--basalt); opacity: 0.8; }
.figure--photo figcaption .credit { display: block; margin-top: 0.2rem; }
.credit { font-size: 0.75rem; line-height: 1.45; opacity: 0.75; }
.credit a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* three real photos in a row, each with its caption and licence credit */
.photo-row { display: grid; gap: 1.75rem 1.5rem; margin-top: clamp(2.25rem, 4.5vw, 3.5rem); }
@media (min-width: 48rem) { .photo-row { grid-template-columns: repeat(3, 1fr); } }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--lereng); }
.photo figcaption { display: grid; gap: 0.2rem; margin-top: 0.8rem; font-size: 0.8125rem; line-height: 1.45; color: var(--basalt); }

.schedule td[data-label="Planned"] { width: 16%; white-space: nowrap; }
.ruled strong { font-weight: 600; }
.note-on-dark { font-size: 0.9375rem; color: rgba(234, 235, 230, 0.7); }
.split--even h2 { font-size: clamp(1.75rem, 2.8vw, 2.375rem); }
.journeys-logo { width: 200px; height: auto; }
.section--journeys { background: var(--pasir); }
@media (min-width: 60rem) { .split--form { grid-template-columns: 7fr 4fr; gap: 3rem 6rem; } }
.hero .lead a { color: var(--kapur); }

/* ---------------------------------------------------------------- motion */

/* ---------------------------------------------------------------- renders
   Concept renders are AI-generated impressions until the architects' renders exist.
   Every one carries a visible "Concept render" tag. */

.hero--image { background: var(--hutan); }
.hero-art--photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 43, 37, 0.62) 0%, rgba(28, 43, 37, 0) 26%),
    linear-gradient(0deg, rgba(28, 43, 37, 0.88) 0%, rgba(28, 43, 37, 0.45) 38%, rgba(28, 43, 37, 0) 68%);
}
@media (min-width: 60rem) {
  .hero-art--photo::after {
    background:
      linear-gradient(180deg, rgba(28, 43, 37, 0.6) 0%, rgba(28, 43, 37, 0) 24%),
      linear-gradient(0deg, rgba(28, 43, 37, 0.8) 0%, rgba(28, 43, 37, 0.25) 42%, rgba(28, 43, 37, 0) 62%),
      linear-gradient(90deg, rgba(28, 43, 37, 0.45) 0%, rgba(28, 43, 37, 0) 55%);
  }
}
.hero--image .hero-art > img { object-position: 50% 60%; }
.hero-art--photo > img,
.hero-art--photo > svg,
.hero-veil { position: absolute; inset: 0; }
.hero-art--photo::after { z-index: 1; }
.hero-veil { z-index: 2; background: var(--hutan); animation: veil 2.2s cubic-bezier(0.45, 0, 0.2, 1) 1.2s forwards; }
.hero--image .contours { z-index: 3; animation: settle 1.8s ease 3.6s forwards; }
.hero--image .contours path { stroke-opacity: 0.3; }
@keyframes veil { to { opacity: 0; } }
.hero--home .hero-art > img { object-position: 50% 45%; }
@media (max-width: 47.99rem) { .photo-note { bottom: auto; top: 5.5rem; left: var(--gutter); right: auto; letter-spacing: 0.14em; } .photo-note-date { display: none; } }
.hero-photo { transform-origin: 50% 40%; animation: arrive 4.6s cubic-bezier(0.23, 1, 0.32, 1) 1.2s both; }
@keyframes arrive { from { transform: scale(1.09); } to { transform: scale(1); } }
.photo-note { position: absolute; right: var(--gutter); bottom: 1.25rem; z-index: 4; font-family: var(--wide); font-weight: 500; font-size: 0.75rem; line-height: 1; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(234, 235, 230, 0.86); text-shadow: 0 1px 10px rgba(28, 43, 37, 0.6); pointer-events: none; }
@keyframes settle { to { opacity: 0.4; } }

.render-tag {
  position: absolute; right: 0.75rem; bottom: 0.75rem; z-index: 1;
  font-family: var(--wide); font-weight: 500; font-size: 0.75rem; line-height: 1;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--kapur); background: rgba(28, 43, 37, 0.62);
  padding: 0.45rem 0.55rem 0.45rem 0.75rem;
  pointer-events: none;
}
.render-tag--hero { right: var(--gutter); bottom: 1.25rem; background: rgba(28, 43, 37, 0.5); }

.figure--render { position: relative; }

.hero--image .lead { max-width: 30em; text-wrap: balance; }
.hero--image .lead,
.hero--image .hero-status { text-shadow: 0 1px 14px rgba(28, 43, 37, 0.55); }
.hero--image .hero-status { color: rgba(234, 235, 230, 0.82); }

/* a centred head and foot around the horizons on a dark band */
.band-head { max-width: 40rem; margin: 0 auto clamp(3rem, 6vw, 4.5rem); text-align: center; }
.band-head h2 { color: var(--kapur); }
.band-head .lead { margin-top: 1.25rem; color: rgba(234, 235, 230, 0.86); }
.band-foot { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; text-align: center; }
.band-foot .text-link { color: var(--kapur); }

.place--with-photo { padding-top: 0; }
.place-photo {
  position: relative; display: block; overflow: hidden;
  margin-inline: calc(-1 * clamp(2rem, 3.5vw, 3rem));
  aspect-ratio: 3 / 2; background: var(--lereng);
}
.place-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1); }
.place--with-photo:hover .place-photo img,
.place--with-photo:focus-visible .place-photo img { transform: scale(1.03); }
.place--with-photo .place-logo { height: 4.25rem; }
@media (min-width: 56rem) { .place--with-photo { min-height: 0; } }

/* ---------------------------------------------------------------- the hill, from the road to the top
   Static by default (no script, or reduced motion): the plan fully drawn and every stop listed.
   With motion allowed, site.js adds .climb--live: the panel pins and the hill draws as you scroll. */

.climb { position: relative; margin-top: var(--section); background: var(--hutan); color: rgba(234, 235, 230, 0.86); }
.climb h2, .climb h3 { color: var(--kapur); }
.climb-panel { position: relative; padding-block: var(--section); }
.climb-grid { display: grid; gap: 2.5rem; grid-template-areas: "head" "art" "stops" "note"; }
.climb-text { display: contents; }
.climb-head { grid-area: head; }
.climb-stops { grid-area: stops; }
.climb-note { grid-area: note; }
.climb-art { grid-area: art; position: relative; }
@media (min-width: 60rem) {
  .climb-grid { grid-template-columns: 5fr 6fr; grid-template-areas: none; gap: 3rem 6rem; align-items: center; }
  .climb-text { display: block; }
  .climb-art { grid-area: auto; }
  .climb-text .climb-stops { margin-top: 2.25rem; }
  .climb-text .climb-note { margin-top: 1.25rem; }
}
.climb-head h2 { text-wrap: balance; }
.climb-head .lead { margin-top: 1.25rem; color: rgba(234, 235, 230, 0.86); max-width: 30em; }
.climb-stops { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-light); }
.climb-stops li { border-bottom: 1px solid var(--hair-light); padding: 0.95rem 0 1rem; }
.climb-where { display: block; font-family: var(--wide); font-weight: 500; font-size: 0.75rem; line-height: 1.6; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sabana); }
.climb-stops h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.2; margin: 0.3rem 0 0; }
.climb-stops p { margin: 0.5rem 0 0; font-size: 0.9375rem; line-height: 1.5; max-width: 32em; }
.climb-note { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: rgba(234, 235, 230, 0.6); }

.climb-svg { display: block; width: 100%; height: auto; max-height: 80vh; max-height: 80dvh; margin-inline: auto; overflow: visible; }
.climb-lines path { fill: none; stroke: var(--kapur); stroke-opacity: 0.2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.climb-lines path.climb-index { stroke-opacity: 0.36; }
.climb-road { fill: none; stroke: var(--kapur); stroke-opacity: 0.3; stroke-width: 2; stroke-dasharray: 6 9; }
.climb-route { fill: none; stroke: var(--kapur); stroke-opacity: 0.4; stroke-width: 3; stroke-dasharray: 0.5 11; stroke-linecap: round; }
.climb-pano { opacity: 0.5; }
.climb-rays { fill: none; stroke: var(--sabana); stroke-opacity: 0.6; stroke-width: 2; stroke-dasharray: 5 7; }
.climb--live .climb-viewg { opacity: calc(0.45 + 0.55 * var(--open, 1)); }
.climb--live .climb-bay { opacity: calc(0.35 + 0.65 * var(--open, 1)); }
.climb-node { fill: var(--sabana); stroke: var(--sabana); stroke-width: 3; transition: fill 0.4s ease, stroke 0.4s ease; }
.climb-buggy { display: none; }
.climb-dot { fill: var(--sabana); }
.climb-halo { fill: var(--sabana); opacity: 0.22; transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; }
@keyframes halo { 0% { transform: scale(0.6); opacity: 0.38; } 100% { transform: scale(1.9); opacity: 0; } }
.climb-north path, .climb-bay path { fill: none; stroke: var(--kapur); stroke-opacity: 0.55; stroke-width: 2.5; }
.climb-north text, .climb-bay text { fill: var(--kapur); fill-opacity: 0.6; font-family: var(--wide); font-weight: 500; font-size: 22px; letter-spacing: 0.24em; }
.climb-hint { display: none; }

.climb-height { position: absolute; top: 0; right: 0; margin: 0; display: grid; justify-items: end; gap: 0.4rem; text-align: right; pointer-events: none; }
.climb-height-value { font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 4.4vw, 3.75rem); line-height: 1; color: var(--kapur); font-variant-numeric: lining-nums tabular-nums; }
.climb-height-unit { font-size: 0.5em; letter-spacing: 0.02em; }
.climb-height-label { font-family: var(--wide); font-weight: 500; font-size: 0.75rem; line-height: 1.6; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sabana); }

.climb--live .climb-track { height: 300vh; height: 300svh; }
.climb--live .climb-panel { position: sticky; top: 0; height: 100vh; height: 100dvh; padding-block: 0; display: flex; align-items: center; overflow: hidden; }
.climb--live .climb-grid { width: 100%; }
.climb--live .climb-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.climb--live .climb-node { fill: var(--hutan); stroke: var(--kapur); stroke-opacity: 0.55; }
.climb--live .climb-node.is-reached { fill: var(--sabana); stroke: var(--sabana); stroke-opacity: 1; }
.climb--live .climb-buggy { display: inline; }
.climb--live .climb-stops li { opacity: 0.38; transition: opacity 0.45s ease; }
.climb--live .climb-stops li.is-active { opacity: 1; }
.climb--live .climb-stops p { max-height: 0; opacity: 0; margin-top: 0; overflow: hidden; transition: max-height 0.5s ease, opacity 0.45s ease, margin-top 0.5s ease; }
.climb--live .climb-stops li.is-active p { max-height: 9em; opacity: 1; margin-top: 0.5rem; }
.climb--live .climb-hint {
  display: block; position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); margin: 0;
  font-family: var(--wide); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(234, 235, 230, 0.7); text-align: center; transition: opacity 0.5s ease;
}
.climb--live .climb-hint::after {
  content: ""; display: block; width: 1px; height: 2.25rem; margin: 0.75rem auto 0;
  background: linear-gradient(var(--sabana), rgba(194, 164, 110, 0)); transform-origin: top; animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.climb--live.is-going .climb-hint { opacity: 0; }

/* live on phones: the heading, the plan, then one stop at a time */
@media (max-width: 59.99rem) {
  .climb--live .climb-panel { align-items: stretch; }
  .climb--live .climb-grid { height: 100%; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 1rem; padding-block: 2rem 1.5rem; }
  .climb--live .climb-head h2 { font-size: 1.75rem; }
  .climb--live .climb-head .lead { font-size: 1rem; margin-top: 0.75rem; }
  .climb--live .climb-art { min-height: 0; }
  .climb--live .climb-svg { height: 100%; max-height: none; }
  .climb--live .climb-stops { display: grid; margin-top: 0; border: 0; }
  .climb--live .climb-stops li { grid-area: 1 / 1; border: 0; padding: 0; opacity: 0; filter: blur(6px); transition: opacity 0.45s ease, filter 0.45s ease; }
  .climb--live .climb-stops li.is-active { opacity: 1; filter: blur(0); }
  .climb--live .climb-stops p { max-height: none; opacity: 1; margin-top: 0.4rem; }
  .climb--live .climb-note { margin-top: 0; font-size: 0.75rem; }
  .climb--live .climb-height-value { font-size: 2.25rem; }
  .climb--live .climb-hint { display: none; }
}
@media (min-width: 60rem) and (max-height: 760px) {
  .climb--live .climb-stops { margin-top: 1.25rem; }
  .climb--live .climb-stops li { padding: 0.6rem 0 0.7rem; }
}

/* ---------------------------------------------------------------- activities: a photo-led page
   Photos of real places near Kuta, mostly free Unsplash photos; credits live on /credits/. */

.hero--tall { min-height: max(36rem, 88vh); min-height: max(36rem, 88svh); }
.hero--tall .hero-inner { padding-block: 9.5rem clamp(3rem, 7vw, 5.5rem); }
.hero--quick .hero-veil { animation-delay: 0.5s; animation-duration: 1.6s; }
.hero--quick .contours { animation-delay: 2.6s; }

/* how far things are from the hill, as a line of stops */
.ruler { position: relative; list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; gap: 1.6rem; }
.ruler::before { content: ""; position: absolute; left: 0.27rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--hair-dark); }
.ruler li { position: relative; padding-left: 1.75rem; }
.ruler li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--sabana); box-shadow: 0 0 0 4px var(--kapur); }
.ruler-time { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, 2.6vw, 2.375rem); line-height: 1; color: var(--hutan); font-variant-numeric: lining-nums; }
.ruler-time small { font-size: 0.5em; letter-spacing: 0.02em; }
.ruler-place { display: block; margin-top: 0.45rem; font-size: 0.9375rem; line-height: 1.4; max-width: 15em; }
@media (min-width: 60rem) {
  .ruler { grid-template-columns: repeat(6, 1fr); gap: 0 1.5rem; padding-top: 2.25rem; }
  .ruler::before { left: 0; right: 0; top: 0.3rem; bottom: auto; width: auto; height: 1px; }
  .ruler li { padding-left: 0; }
  .ruler li::before { top: -2.25rem; }
}
.ruler-note { margin: 1.75rem 0 0; font-size: 0.8125rem; color: var(--basalt); opacity: 0.75; }

/* choose your day: photo tiles of different sizes */
.mosaic { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 12rem; margin-top: clamp(2rem, 4vw, 3rem); }
.tile--surf { grid-column: span 2; grid-row: span 2; }
.tile--hike { grid-row: span 2; }
.tile--sun, .tile--paint, .tile--wed { grid-column: span 2; }
@media (min-width: 60rem) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(12rem, 17vw, 16.5rem);
    grid-template-areas: "surf surf swim hike" "surf surf falls hike" "sun sun scoot sasak" "paint paint wed wed"; }
  .tile--surf { grid-area: surf; } .tile--swim { grid-area: swim; } .tile--hike { grid-area: hike; }
  .tile--falls { grid-area: falls; } .tile--sun { grid-area: sun; } .tile--scoot { grid-area: scoot; }
  .tile--sasak { grid-area: sasak; } .tile--paint { grid-area: paint; } .tile--wed { grid-area: wed; }
}
.tile { position: relative; display: block; overflow: hidden; background: var(--lereng); color: var(--kapur); text-decoration: none; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28, 43, 37, 0.86) 0%, rgba(28, 43, 37, 0.55) 30%, rgba(28, 43, 37, 0.12) 62%, rgba(28, 43, 37, 0) 80%); }
.tile:focus-visible img { transform: scale(1.045); }
@media (hover: hover) { .tile:hover img { transform: scale(1.045); } }
.tile-text { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 1; display: grid; gap: 0.35rem; text-shadow: 0 1px 12px rgba(28, 43, 37, 0.55); }
.tile-label { font-family: var(--wide); font-weight: 500; font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sabana); }
.tile-title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.15; }
.tile--surf .tile-title { font-size: clamp(1.6rem, 2.8vw, 2.5rem); }
.tile .render-tag { top: 0.75rem; bottom: auto; z-index: 2; }

/* a full-bleed photo with a card laid over its lower edge */
.feature { position: relative; padding-bottom: clamp(3rem, 7vw, 6rem); }
.feature-photo { position: relative; margin: 0; height: clamp(22rem, 58vw, 46rem); overflow: hidden; overflow: clip; background: var(--lereng); }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-card { position: relative; z-index: 1; max-width: 46rem; margin-top: clamp(-10rem, -12vw, -4rem); padding: clamp(2rem, 4vw, 3.5rem); background: var(--kapur); box-shadow: 0 30px 70px -40px rgba(28, 43, 37, 0.45); }
.feature--right .feature-card { margin-left: auto; }
.feature-cols { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 48rem) { .feature-cols { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.feature-cols h3 { font-size: 1.375rem; margin: 0 0 0.25rem; }
.feature-card h2 { margin-top: 0.6rem; }
.feature-card > p { margin-top: 1rem; }
.feature-card > p:last-child { margin-top: 1.5rem; }

/* two photos overlapping */
.figure--tall img { aspect-ratio: 4 / 5; }
.collage { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.collage img { display: block; width: 100%; height: auto; object-fit: cover; background: var(--lereng); }
.collage-a { grid-column: 1 / 9; grid-row: 1; aspect-ratio: 4 / 5; }
.collage-b { grid-column: 6 / 13; grid-row: 1; margin-top: 52%; aspect-ratio: 4 / 3; position: relative; z-index: 1; box-shadow: 0 0 0 0.6rem var(--kapur); }

/* a sideways-scrolling strip of photos */
.scroller { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  padding: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); scrollbar-width: thin;
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--edge), #000 calc(100% - var(--edge)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--edge), #000 calc(100% - var(--edge)), transparent); }
.scroller figure { flex: 0 0 auto; width: min(76vw, 24rem); margin: 0; scroll-snap-align: start; }
.scroller figure.is-wide { width: min(86vw, 36rem); }
.scroller img { display: block; width: 100%; height: clamp(17rem, 34vw, 25rem); object-fit: cover; background: var(--lereng); }
.scroller figcaption { margin-top: 0.65rem; font-size: 0.8125rem; line-height: 1.4; color: var(--basalt); }
.scroll-hint { margin: 0; font-family: var(--wide); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--teluk); }

/* photo credits page */
.credits-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-dark); }
.credits-list li { display: grid; gap: 0.2rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--hair-dark); font-size: 0.9375rem; }
@media (min-width: 48rem) { .credits-list li { grid-template-columns: 1fr 1.3fr; } }
.credits-list a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* home, the resort: the story under the headline, the reasons beside it as a numbered list */
.resort-story { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.reasons { list-style: none; margin: 1.25rem 0 0; padding: 0; counter-reset: reason; border-top: 1px solid var(--hair-dark); }
.reasons li { counter-increment: reason; display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 1rem; align-items: baseline; padding: 1.1rem 0 1.15rem; border-bottom: 1px solid var(--hair-dark); }
.reasons li::before { content: counter(reason, decimal-leading-zero); font-family: var(--serif); font-weight: 300; font-size: 1.375rem; line-height: 1; color: var(--sabana); font-variant-numeric: lining-nums tabular-nums; }
@media (min-width: 60rem) { .split--resort { align-items: start; } .resort-reasons { padding-top: 0.35rem; } }

/* ---------------------------------------------------------------- contour edges between colour bands
   Where the background changes, the lower band rises into the one above along a hill line with two
   faint contour lines over it (the brand's topographic motif). Drawn in the lower band's own colour, so it
   works over any band above. The SVG is also in assets/img/ridge.svg. */
:root { --ridge-h: clamp(2.25rem, 4.5vw, 4rem);
  --ridge: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'><path d='M0 96V62C120 58 210 44 330 40C470 35 560 52 690 56C820 60 905 38 1030 30C1160 22 1290 34 1440 46V96Z' fill='%23000'/><path d='M0 46C120 42 210 28 330 24C470 19 560 36 690 40C820 44 905 22 1030 14C1160 6 1290 18 1440 30' fill='none' stroke='%23000' stroke-opacity='.5' stroke-width='1.4'/><path d='M0 30C140 27 230 15 340 12C480 8 570 22 700 25C830 28 910 10 1040 4C1170 0 1300 8 1440 16' fill='none' stroke='%23000' stroke-opacity='.25' stroke-width='1.1'/></svg>"); }
.hero + .section, .climb, .climb + .section, .section--hutan, .section--hutan + .section, .section--journeys, .section--teluk, .site-footer, .place-band, .place-band + .section { position: relative; }
.hero + .section::before, .climb::before, .climb + .section::before, .section--hutan::before, .section--hutan + .section::before, .section--journeys::before, .section--teluk::before, .site-footer::before, .place-band::before, .place-band + .section::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--ridge-h); z-index: 1; pointer-events: none;
  background: var(--band, var(--kapur));
  -webkit-mask: var(--ridge) center bottom / 100% 100% no-repeat; mask: var(--ridge) center bottom / 100% 100% no-repeat; }
.climb, .section--hutan, .site-footer, .place--angin { --band: var(--hutan); }
.section--journeys { --band: var(--pasir); }
.section--teluk { --band: var(--teluk); overflow: visible; }
.section--teluk .band-art { overflow: hidden; }
.place--saji { --band: var(--cabai); }
.place--halfway { --band: var(--mentega); }
main > section:nth-of-type(even)::before, .site-footer::before { transform: scaleX(-1); }
.photo-note { bottom: calc(var(--ridge-h) + 0.75rem); }

/* the view section: never clip the top. Auto margins centre it when there is room and fall back to the top when there isn't */
.climb--live .climb-panel { align-items: stretch; }
@media (min-width: 60rem) {
  .climb--live .climb-grid { margin-block: auto; padding-block: clamp(5rem, 11vh, 7rem) max(var(--ridge-h), clamp(2.5rem, 6vh, 4rem)); }
}
@media (min-width: 60rem) and (max-height: 880px) {
  .climb--live .climb-head h2 { font-size: clamp(2rem, 3.2vw, 2.5rem); }
  .climb--live .climb-head .lead { font-size: 1.0625rem; margin-top: 0.9rem; }
  .climb--live .climb-svg { max-height: 68vh; max-height: 68dvh; }
}
@media (max-width: 59.99rem) {
  .climb--live .climb-grid { padding-block: 4.75rem max(var(--ridge-h), 1.5rem); }
}

/* ---------------------------------------------------------------- feel (VectorLab, Vercel guidelines, make-interfaces-feel-better) */
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
p, li, dd { text-wrap: pretty; }
[id] { scroll-margin-top: 5.5rem; }
.btn:active { transform: scale(0.97); }
.menu summary { min-height: 2.75rem; display: flex; align-items: center; }
.nav-link { display: inline-block; padding-block: 0.85rem 0.7rem; }
/* a faint inner edge on photos, so bright skies don't bleed into the page */
.figure img, .tile img, .scroller img, .collage img, .feature-photo img, .place-photo img { outline: 1px solid rgba(28, 43, 37, 0.08); outline-offset: -1px; }
.on-dark .figure img { outline-color: rgba(234, 235, 230, 0.08); }
/* the card over the photo: a hairline first, then a soft shadow */
.feature-card { box-shadow: 0 0 0 1px rgba(28, 43, 37, 0.06), 0 1px 2px rgba(28, 43, 37, 0.05), 0 28px 56px -28px rgba(28, 43, 37, 0.08); }
/* the phone menu eases in */
.menu[open] .menu-panel { animation: menu-in 0.22s cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-0.5rem); } }
/* each section slides up gently as one layer when it reaches the screen (script adds the classes) */
.reveal-on [data-reveal] { opacity: 0; transform: translate3d(0, 2.5rem, 0); transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.3s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal-on [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- scroll motion: slow, quiet, compositor-only
   Off with reduced motion. Scroll-linked parts use CSS scroll timelines where the browser has them;
   elsewhere the page simply stays still. */
.number-value { font-variant-numeric: lining-nums tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* the view at the top drifts down and settles back as you scroll away from it */
    .hero--image .hero-art { animation: hero-drift linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
    @keyframes hero-drift { to { transform: translate3d(0, 16vh, 0); } }
    .hero--image .hero-inner { animation: hero-lift linear both; animation-timeline: scroll(root block); animation-range: 0 70vh; }
    @keyframes hero-lift { to { transform: translate3d(0, -6vh, 0); opacity: 0.25; } }
    /* large photos move a little inside their frames */
    .feature-photo > img, .figure--render > img, .figure--tall > img { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes drift { from { transform: translate3d(0, -3%, 0) scale(1.07); } to { transform: translate3d(0, 3%, 0) scale(1.07); } }
  }
  /* the line of driving times draws itself, then the dots arrive */
  .reveal-on .ruler::before { transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.6s cubic-bezier(0.23, 1, 0.32, 1); }
  .reveal-on .ruler.is-drawn::before { transform: none; }
  @media (min-width: 60rem) {
    .reveal-on .ruler::before { transform: scaleX(0); transform-origin: 0 50%; }
  }
  /* section labels: a short gold rule eases in before the words */
  .reveal-on [data-reveal] :not(.horizon) > .label:first-child::before { content: ""; display: inline-block; vertical-align: middle; width: 0; height: 1px; margin-right: 0; background: currentColor; opacity: 0.7;
    transition: width 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.25s, margin-right 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.25s; }
  .reveal-on [data-reveal].is-revealed :not(.horizon) > .label:first-child::before { width: 1.75rem; margin-right: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .hero .contours path { animation: none; stroke-dashoffset: 0; }
  .hero-veil { animation: none; opacity: 0; }
  .hero--image .contours { animation: none; opacity: 0.4; }
  .place-photo img { transition: none; }
  .climb-halo, .climb-hint::after { animation: none; }
  .tile img { transition: none; }
  .hero-photo { animation: none; }
  .menu[open] .menu-panel { animation: none; }
  .btn:active { transform: none; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
}
