/* Cayet's Cabin Private Villa / Resort. Motif: their own gold-on-maroon Balinese medallion and the lantern-lit
   pool at night. Gold hairline arches (the carved Balinese doorway shape) frame their real photos. */
@font-face { font-family: Fraunces; src: url(/fonts/fraunces-normal-300-700.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: Fraunces; src: url(/fonts/fraunces-italic-300-700.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-400-700.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --maroon: #5c1418;
  --maroon-2: #7a1d22;
  --night: #1b0d0e;
  --gold: #d6a756;
  --gold-2: #f3d9a0;
  --cream: #fbf4e8;
  --sand: #f2e6d2;
  --ink: #2a1a17;
  --serif: Fraunces, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --k-ink: var(--ink);
  --k-muted: #6b5550;
  --k-paper: #fffdf8;
  --k-surface: var(--sand);
  --k-line: #e4d4bb;
  --k-accent: var(--maroon);
  --k-accent-ink: #fff7ea;
  --k-accent-2: var(--gold);
  --k-dark: var(--night);
  --k-dark-muted: #d7c2a8;
  --k-font: var(--sans);
  --k-display: var(--serif);
  --k-display-weight: 600;
  --k-head-em: var(--maroon-2);
  --k-sec-pad: clamp(48px, 8vw, 96px);
  --k-form-bg: var(--maroon);
  --k-dock-bg: var(--night);
  --k-dock-cta-bg: var(--gold);
  --k-dock-cta-ink: var(--night);
  --k-chat-head: var(--maroon);
  --k-radius: 12px;
}

body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(1.95rem, 4.6vw, 3.2rem); line-height: 1.06; margin: 0 0 16px; }
h2 em, h1 em { font-style: italic; color: var(--maroon-2); font-weight: 400; }
img { max-width: 100%; height: auto; display: block; }
.cc-eyebrow, .cc-kicker { font: 600 .74rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #9a6a24; margin: 0 0 12px; }
.cc-btn-gold { background: linear-gradient(180deg, #e8c27a, var(--gold) 55%, #b98a3c); color: var(--night); box-shadow: 0 10px 30px -12px rgba(214,167,86,.8); }
.cc-btn-line { background: rgba(27,13,14,.35); color: #fff; box-shadow: inset 0 0 0 1.5px var(--gold-2); backdrop-filter: blur(4px); }

/* ---------- arch frame (carved Balinese doorway) ---------- */
.cc-arch { margin: 0; position: relative; padding: 7px; }
.cc-arch::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--gold); border-radius: 999px 999px 10px 10px / 46% 46% 10px 10px; pointer-events: none; }
.cc-arch__in { border-radius: 999px 999px 6px 6px / 44% 44% 6px 6px; overflow: hidden; background: var(--sand); }
.cc-arch__in img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }

/* ---------- hero ---------- */
.cc-hero { position: relative; min-height: min(92svh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.cc-hero__media, .cc-hero__bg, .cc-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-hero__media { animation: cc-drift 22s ease-out both; touch-action: pan-y; }
/* the living hot spring: one WebGL layer that redraws their photo with touchable ripples, warm glints and rising steam */
.cc-spring__cv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.cc-spring__cv.is-on { opacity: 1; }
.cc-hero__hint { display: inline-flex; align-items: center; gap: 9px; margin: -10px 0 20px; font: 500 .82rem/1 var(--sans); letter-spacing: .06em; color: var(--gold-2); opacity: 0; transition: opacity 1s ease .6s; }
.cc-hero__hint.is-shown { opacity: .92; }
.cc-hero__hint.is-gone { opacity: 0; transition-delay: 0s; }
.cc-hero__hint i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--gold-2), 0 0 0 4px rgba(243,217,160,.18), 0 0 0 9px rgba(243,217,160,.07); }
@media (hover: hover) { .cc-hero { cursor: crosshair; } .cc-hero a, .cc-hero button { cursor: pointer; } }
@keyframes cc-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.cc-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,13,14,.55) 0%, rgba(27,13,14,0) 26%, rgba(27,13,14,.18) 46%, rgba(27,13,14,.62) 78%, rgba(27,13,14,.84) 100%); }
.cc-hero__copy { position: relative; padding-top: 96px; padding-bottom: clamp(28px, 6vw, 64px); }
.cc-hero__seal { width: 86px; height: 86px; border-radius: 50%; box-shadow: 0 0 0 1px var(--gold), 0 0 0 6px rgba(214,167,86,.18), 0 18px 40px -10px #000; margin-bottom: 16px; }
.cc-hero .cc-kicker { color: var(--gold-2); }
.cc-hero h1 { font-size: clamp(2.5rem, 9vw, 5.6rem); line-height: .98; margin: 0 0 14px; max-width: 12em; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.cc-hero h1 em { color: var(--gold-2); }
.cc-hero__sub { font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 34em; margin: 0 0 22px; color: #f6e9d6; }
.cc-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 26px; }
.cc-hero__facts { list-style: none; padding: 18px 0 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid rgba(243,217,160,.35); max-width: 640px; }
.cc-hero__facts b { display: block; font: 500 clamp(1.15rem, 3.4vw, 1.6rem)/1.1 var(--serif); color: var(--gold-2); }
.cc-hero__facts span { font-size: .8rem; line-height: 1.3; color: #ecdcc4; display: block; }
@media (min-width: 900px) { .cc-hero__seal { width: 110px; height: 110px; } }
/* phones: compact copy on top, and the photo set low and large so a clear band of the real pool fills the lower half */
@media (max-width: 759px) {
  .cc-hero { min-height: calc(100svh - 60px); align-items: flex-start; }
  .cc-hero__media { top: auto; bottom: 0; height: 170%; }
  .cc-hero__shade { background: linear-gradient(180deg, rgba(27,13,14,.86) 0%, rgba(27,13,14,.78) 40%, rgba(27,13,14,.2) 56%, rgba(27,13,14,0) 64%, rgba(27,13,14,0) 84%, rgba(27,13,14,.5) 100%); }
  .cc-hero__copy { position: static; padding-top: 18px; padding-bottom: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .cc-hero__copy > * { grid-column: 1 / -1; position: relative; }
  .cc-hero__seal { grid-column: 1; width: 52px; height: 52px; margin: 0; box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px rgba(214,167,86,.18); }
  .cc-hero .cc-kicker { grid-column: 2; margin: 0; font-size: .68rem; letter-spacing: .14em; line-height: 1.35; }
  .cc-hero h1 { font-size: clamp(2.05rem, 9.6vw, 2.7rem); margin: 14px 0 8px; }
  .cc-hero__sub { font-size: .95rem; line-height: 1.5; margin: 0 0 14px; }
  .cc-hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
  .cc-hero__ctas .k-btn { min-height: 46px; padding: 0 10px; font-size: .95rem; }
  .cc-long { display: none; }
  .cc-hero__facts { padding-top: 10px; gap: 8px; }
  .cc-hero__facts b { font-size: 1.12rem; }
  .cc-hero__facts span { font-size: .72rem; }
  .cc-hero__hint { position: absolute; left: 0; right: 0; bottom: 31%; width: fit-content; margin: 0 auto; padding: 9px 16px; border-radius: 999px; background: rgba(27,13,14,.42); backdrop-filter: blur(3px); }
}

/* ---------- intro ---------- */
.cc-intro { padding: var(--k-sec-pad) 0; }
.cc-intro__grid { display: grid; gap: 28px; align-items: center; }
.cc-intro__grid p { max-width: 36em; }
.cc-intro__links a { color: var(--maroon); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); }
.cc-intro__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc-arch--b { margin-top: 36px; }
@media (min-width: 900px) { .cc-intro__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }

/* ---------- the pools (dark, lantern-lit) ---------- */
.cc-water { background: radial-gradient(120% 80% at 20% 0%, #3a1416 0%, var(--night) 60%); color: #f6e9d6; padding: var(--k-sec-pad) 0; }
.cc-water h2 { color: #fff; } .cc-water h2 em { color: var(--gold-2); }
.cc-water .cc-eyebrow { color: var(--gold); }
.cc-water__grid { display: grid; gap: 32px; align-items: center; }
.cc-arch--big .cc-arch__in img { aspect-ratio: 4 / 5; }
.cc-ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.cc-ticks li { padding-left: 26px; position: relative; }
.cc-ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px 2px rgba(214,167,86,.7); }
.cc-ticks b { color: #fff; font-weight: 600; }
.cc-water__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-water__pair img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .cc-water__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- plan your stay (signature) ---------- */
.cc-plan { padding: var(--k-sec-pad) 0; background: var(--sand); }
.cc-plan__lede { max-width: 36em; margin: 0 0 24px; }
.cc-plan__grid { display: grid; gap: 22px; align-items: start; }
.cc-plan__steps { display: grid; gap: 14px; min-width: 0; }
.cc-step { background: var(--k-paper); border: 1px solid var(--k-line); border-radius: 14px; padding: 16px 16px 16px 58px; position: relative; min-width: 0; }
.cc-step__n { position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--maroon); color: var(--gold-2); font: 600 .95rem/1 var(--serif); }
.cc-step__h { display: block; font: 600 1.12rem/1.3 var(--serif); margin: 4px 0 10px; }
.cc-step__h small { display: block; font: 400 .85rem/1.4 var(--sans); color: var(--k-muted); }
.cc-step__note { font-size: .88rem; color: var(--k-muted); margin: 8px 0 0; }
.cc-step__note b { color: var(--maroon); }
.cc-input { width: 100%; max-width: 280px; min-height: 48px; padding: 0 12px; border: 1px solid var(--k-line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.cc-stepper { display: inline-flex; align-items: center; border: 1px solid var(--k-line); border-radius: 999px; overflow: hidden; background: #fff; }
.cc-stepper button { width: 48px; height: 48px; border: 0; background: transparent; font-size: 1.4rem; color: var(--maroon); cursor: pointer; }
.cc-stepper output { min-width: 56px; text-align: center; font: 600 1.3rem/1 var(--serif); }
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-chips button, .cc-filters button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--k-line); background: #fff; color: var(--ink); font: 500 .92rem/1 var(--sans); cursor: pointer; }
.cc-chips button[aria-pressed="true"], .cc-filters button[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: var(--gold-2); }
.cc-step--rooms { padding-left: 16px; }
.cc-step--rooms .cc-step__h { padding-left: 42px; min-height: 32px; }
.cc-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cc-room { position: relative; padding: 0; border: 1px solid var(--k-line); border-radius: 12px; overflow: hidden; background: #fff; text-align: left; cursor: pointer; color: var(--ink); font: inherit; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.cc-room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cc-room__txt { padding: 8px 10px 10px; display: grid; gap: 2px; }
.cc-room__txt b { font: 600 .92rem/1.2 var(--serif); }
.cc-room__txt small { font-size: .76rem; line-height: 1.3; color: var(--k-muted); }
.cc-room__txt em { font-style: normal; font-size: .74rem; color: #9a6a24; font-weight: 600; }
.cc-room__tick { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(27,13,14,.55); box-shadow: inset 0 0 0 1.5px #fff; }
.cc-room[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.cc-room[aria-pressed="true"] .cc-room__tick { background: var(--gold); box-shadow: none; }
.cc-room[aria-pressed="true"] .cc-room__tick::after { content: ""; position: absolute; left: 10px; top: 6px; width: 6px; height: 12px; border: solid var(--night); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@media (min-width: 640px) { .cc-rooms { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cc-card { position: relative; background: linear-gradient(160deg, var(--maroon-2), var(--maroon) 45%, #3d0d10); color: #f7e8d0; border-radius: 18px; padding: 26px 22px 22px; box-shadow: 0 30px 60px -30px rgba(60,10,12,.8), inset 0 0 0 1px rgba(243,217,160,.25); overflow: hidden; }
.cc-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(214,167,86,.45); border-radius: 12px; pointer-events: none; }
.cc-card__seal { position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; opacity: .22; border-radius: 50%; }
.cc-card__k { font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.cc-card__date { font: 500 1.6rem/1.15 var(--serif); color: #fff; margin: 0 0 14px; }
.cc-card__list { margin: 0 0 14px; display: grid; gap: 0; }
.cc-card__list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(243,217,160,.3); }
.cc-card__list dt { color: var(--gold-2); font-size: .85rem; }
.cc-card__list dd { margin: 0; text-align: right; font-weight: 600; color: #fff; }
.cc-card__promo { font-size: .86rem; background: rgba(214,167,86,.16); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; color: #fbe9c6; }
.cc-card__go { width: 100%; }
.cc-card__fb { display: block; text-align: center; margin-top: 12px; color: var(--gold-2); font-size: .9rem; min-height: 44px; line-height: 44px; }
@media (min-width: 960px) { .cc-plan__grid { grid-template-columns: 1fr 340px; } .cc-card { position: sticky; top: 90px; } }

/* ---------- after the swim ---------- */
.cc-after { padding: var(--k-sec-pad) 0; }
.cc-after__grid { display: grid; gap: 26px; }
.cc-scene h3 { font-size: 1.5rem; margin: 14px 0 6px; color: var(--maroon); }
.cc-scene p { margin: 0; color: var(--k-muted); }
.cc-scene .cc-arch__in img { aspect-ratio: 4 / 4.4; }
@media (min-width: 760px) { .cc-after__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- gallery ---------- */
.cc-gallery { padding: var(--k-sec-pad) 0; background: var(--night); color: #f6e9d6; }
.cc-gallery h2 { color: #fff; } .cc-gallery h2 em { color: var(--gold-2); }
.cc-gallery .cc-eyebrow { color: var(--gold); }
.cc-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 0 18px; scrollbar-width: none; }
.cc-filters button { flex: none; background: transparent; color: #f6e9d6; border-color: rgba(243,217,160,.35); }
.cc-grid { columns: 2; column-gap: 10px; }
.cc-tile { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; break-inside: avoid; background: #2c1517; }
.cc-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--k-ease); }
.cc-tile.is-tall img { aspect-ratio: 3 / 4; }
.cc-tile:hover img { transform: scale(1.04); }
/* depth: each photo drifts inside its frame as you scroll, like looking through the villa's openings */
.cc-grid.is-deep .cc-tile img { transform: translate3d(0, var(--py, 0px), 0) scale(1.16); transition: transform .5s var(--k-ease), filter .5s; will-change: transform; }
.cc-grid.is-deep .cc-tile:hover img { transform: translate3d(0, var(--py, 0px), 0) scale(1.21); }
.cc-grid.is-deep.is-moving .cc-tile img { transition: filter .5s; }

/* the planner card slips into the pool when sent */
.cc-card__rings { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.cc-card__rings i { position: absolute; width: 40px; height: 16px; margin: -8px 0 0 -20px; border-radius: 50%; border: 1.5px solid rgba(243,217,160,.85); opacity: 0; }
.cc-card.is-dip { animation: cc-dip 1.1s cubic-bezier(.3,.6,.3,1) both; }
.cc-card.is-dip::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60%; height: 60%; background: linear-gradient(180deg, rgba(120,190,200,.0), rgba(120,190,200,.28) 18%, rgba(40,90,110,.55)); border-top: 1px solid rgba(243,217,160,.6); border-radius: 50% 50% 0 0 / 14px 14px 0 0; animation: cc-tide 1.1s cubic-bezier(.3,.6,.3,1) both; pointer-events: none; }
.cc-card.is-dip .cc-card__rings i { animation: cc-ring 1.1s ease-out both; }
.cc-card.is-dip .cc-card__rings i:nth-child(2) { animation-delay: .16s; }
.cc-card.is-dip .cc-card__rings i:nth-child(3) { animation-delay: .32s; }
@keyframes cc-dip { 0% { transform: none; } 35% { transform: translateY(10px) rotate(-.4deg); } 100% { transform: none; } }
@keyframes cc-tide { 0% { transform: translateY(0); } 40% { transform: translateY(-62%); } 100% { transform: translateY(0); } }
@keyframes cc-ring { 0% { opacity: .95; transform: scale(.4); } 100% { opacity: 0; transform: scale(9); } }
.cc-tile[hidden] { display: none; }
@media (min-width: 760px) { .cc-grid { columns: 3; column-gap: 14px; } .cc-tile { margin-bottom: 14px; } }
@media (min-width: 1100px) { .cc-grid { columns: 4; } }

.cc-lb { position: fixed; inset: 0; z-index: 90; background: rgba(15,6,7,.95); display: grid; place-items: center; padding: 56px 12px 90px; }
.cc-lb[hidden] { display: none; }
.cc-lb figure { margin: 0; max-width: min(1100px, 100%); }
.cc-lb img { max-height: 74svh; width: auto; margin: 0 auto; border-radius: 8px; }
.cc-lb figcaption { text-align: center; color: #ecdcc4; font-size: .92rem; margin-top: 10px; }
.cc-lb__x, .cc-lb__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(243,217,160,.5); background: rgba(27,13,14,.6); color: #fff; font-size: 1.6rem; cursor: pointer; }
.cc-lb__x { top: 10px; right: 10px; }
.cc-lb__prev { left: 10px; top: 50%; } .cc-lb__next { right: 10px; top: 50%; }
.cc-lb__cta { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); }

/* ---------- visit ---------- */
.cc-visit { padding: var(--k-sec-pad) 0; background: var(--sand); }
.cc-visit__grid { display: grid; gap: 26px; }
.cc-visit__addr { font: 400 1.15rem/1.5 var(--serif); }
.cc-visit__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cc-visit__lines li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--k-line); overflow-wrap: anywhere; }
.cc-visit__lines span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #9a6a24; font-weight: 600; padding-top: 3px; }
.cc-visit__lines a { color: var(--maroon); font-weight: 600; text-decoration: none; }
@media (min-width: 900px) { .cc-visit__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

@media (prefers-reduced-motion: reduce) { .cc-hero__media { animation: none; } .cc-tile img { transition: none; } .cc-card.is-dip, .cc-card.is-dip::after, .cc-card.is-dip .cc-card__rings i { animation: none; } }

/* ---------- everything included (grouped amenities) ---------- */
.cc-incl { margin-top: clamp(32px, 5vw, 56px); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--k-line); border-radius: 18px; background: var(--k-paper); position: relative; }
.cc-incl::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(214,167,86,.35); border-radius: 13px; pointer-events: none; }
.cc-incl__h { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0 0 18px; color: var(--ink); }
.cc-incl__h em { color: var(--maroon-2); font-weight: 400; }
.cc-incl__grid { display: grid; gap: 18px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-incl__k { font: 600 .72rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #9a6a24; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--k-line); }
.cc-incl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; line-height: 1.35; }
.cc-incl li { padding-left: 16px; position: relative; }
.cc-incl li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (max-width: 420px) { .cc-incl__grid { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .cc-incl__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* =====================================================================================================
   Inner pages. Each opens through a carved Balinese split gate (candi bentar) that parts onto their own
   photo; eyebrows are lanterns that light as you walk down; every page ends on the lantern "villa map".
   ===================================================================================================== */
.cc-gate { position: relative; min-height: clamp(440px, 74svh, 680px); display: flex; align-items: flex-end; overflow: hidden; background: var(--night); color: #fff; }
.cc-gate__photo, .cc-gate__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-gate__photo { animation: cc-drift 18s ease-out both; }
.cc-gate__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,13,14,.45) 0%, rgba(27,13,14,0) 30%, rgba(27,13,14,.25) 55%, rgba(27,13,14,.9) 100%); }
/* the two halves of the gate: stepped, carved silhouettes in maroon with a gold edge, parting once */
.cc-gate__door { position: absolute; top: 0; bottom: 0; width: 51%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, #7a1d22, #4a0f13 70%, #2c0a0c); }
.cc-gate__door::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 46px, rgba(214,167,86,.28) 46px 47px), radial-gradient(60% 40% at 50% 30%, rgba(243,217,160,.18), transparent 70%); }
.cc-gate__door--l { left: 0; clip-path: polygon(0 0, 78% 0, 78% 8%, 86% 8%, 86% 18%, 93% 18%, 93% 30%, 100% 30%, 100% 100%, 0 100%); box-shadow: inset -2px 0 0 var(--gold); transform: translateX(-104%); }
.cc-gate__door--r { right: 0; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%, 0 30%, 7% 30%, 7% 18%, 14% 18%, 14% 8%, 22% 8%); box-shadow: inset 2px 0 0 var(--gold); transform: translateX(104%); }
/* the gate plays once per visit (class set in <head> before first paint). At rest the doors sit open off-screen
   and are not even displayed, so the page is fully visible even if animations never run. */
.cc-gate__door { display: none; }
.cc-gate-play .cc-gate__door { display: block; }
.cc-gate-play .cc-gate__door--l { animation: cc-gate-l .9s cubic-bezier(.7,0,.25,1) .05s backwards; }
.cc-gate-play .cc-gate__door--r { animation: cc-gate-r .9s cubic-bezier(.7,0,.25,1) .05s backwards; }
.cc-gate-play .cc-gate__copy { animation: cc-rise .5s ease .45s backwards; }
@keyframes cc-gate-l { from { transform: translateX(0); } to { transform: translateX(-104%); } }
@keyframes cc-gate-r { from { transform: translateX(0); } to { transform: translateX(104%); } }
.cc-gate__copy { position: relative; z-index: 1; padding-top: 90px; padding-bottom: clamp(28px, 6vw, 56px); }
@keyframes cc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cc-gate .cc-kicker { color: var(--gold-2); }
.cc-gate h1 { font-size: clamp(2.3rem, 8vw, 4.6rem); line-height: 1; margin: 0 0 12px; max-width: 13em; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.cc-gate h1 em { color: var(--gold-2); }
.cc-gate__lede { max-width: 36em; margin: 0; color: #f6e9d6; font-size: clamp(1rem, 2.2vw, 1.15rem); }
.cc-gate__lede a { color: var(--gold-2); }

/* lantern eyebrows: unlit until you reach them */
.cc-lamp { display: flex; align-items: center; gap: 10px; }
.cc-lamp i { flex: none; width: 12px; height: 16px; border-radius: 6px 6px 4px 4px; background: #6b4a2a; box-shadow: inset 0 0 0 1px rgba(214,167,86,.6); transition: background .8s ease, box-shadow .8s ease; position: relative; }
.cc-lamp i::before { content: ""; position: absolute; left: 50%; top: -5px; width: 1px; height: 5px; background: rgba(214,167,86,.7); }
.cc-lamp.is-lit i, .k-ready .cc-lamp.is-lit i { background: radial-gradient(circle at 50% 45%, #fff3c9, #f2b54e 55%, #b8731f); box-shadow: 0 0 10px 3px rgba(242,181,78,.55), 0 0 28px 8px rgba(242,181,78,.22); }

.cc-sec { padding: clamp(44px, 7vw, 84px) 0; }
.cc-sec--sand { background: var(--sand); }
.cc-sec--night { background: radial-gradient(120% 80% at 20% 0%, #3a1416 0%, var(--night) 60%); color: #f6e9d6; }
.cc-sec--night h2, .cc-sec--night h3 { color: #fff; } .cc-sec--night h2 em { color: var(--gold-2); }
.cc-sec--night .cc-eyebrow { color: var(--gold); }
.cc-note { color: var(--k-muted); font-size: .92rem; max-width: 40em; }
.cc-lede { max-width: 36em; }
.cc-btn-ghost { background: transparent; color: var(--maroon); box-shadow: inset 0 0 0 1.5px var(--maroon); }
.cc-sec--night .cc-btn-ghost { color: var(--gold-2); box-shadow: inset 0 0 0 1.5px var(--gold-2); }
.cc-pcta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }

/* rooms */
.cc-rgrid { display: grid; gap: 16px; }
.cc-rcard { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--k-paper); border: 1px solid var(--k-line); border-radius: 16px; overflow: hidden; }
.cc-rcard__ph img { width: 100%; aspect-ratio: 914 / 620; object-fit: cover; }
.cc-rcard__txt { padding: 14px 16px 16px; }
.cc-rcard h3 { margin: 0 0 8px; font-size: 1.3rem; color: var(--maroon); }
.cc-spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cc-spec li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px dashed var(--k-line); font-size: .92rem; }
.cc-spec b { font: 600 .7rem/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9a6a24; }
@media (min-width: 680px) { .cc-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cc-rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* photo strips: swipe on phones, a row on desktop */
.cc-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(68%, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; margin-top: 18px; }
.cc-strip figure { margin: 0; scroll-snap-align: start; border-radius: 12px; overflow: hidden; }
.cc-strip img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .cc-strip { grid-auto-columns: 1fr; overflow: visible; } }

/* pools, zones, splits */
.cc-pools, .cc-zones { display: grid; gap: 34px; }
.cc-pool h2 { margin-top: 4px; }
.cc-pool .cc-arch, .cc-zone .cc-arch { margin-bottom: 16px; }
.cc-zone h3 { font-size: 1.45rem; margin: 2px 0 6px; color: var(--maroon); }
.cc-zone p { margin: 0; color: var(--k-muted); }
.cc-videoke { margin-top: 40px; padding: 22px; border-radius: 16px; background: linear-gradient(160deg, var(--maroon-2), var(--maroon) 50%, #3d0d10); color: #f7e8d0; }
.cc-videoke h2 { color: #fff; } .cc-videoke h2 em { color: var(--gold-2); } .cc-videoke .cc-eyebrow { color: var(--gold); }
.cc-split { display: grid; gap: 30px; align-items: center; }
.cc-ticks--ink b { color: var(--ink); }
.cc-chiplist { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cc-chiplist li { padding: 8px 14px; border-radius: 999px; background: var(--sand); border: 1px solid var(--k-line); font-size: .9rem; }
@media (min-width: 900px) { .cc-pools { grid-template-columns: 1fr 1fr; gap: 56px; } .cc-zones { grid-template-columns: repeat(3, 1fr); } .cc-split { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* the villa map: lantern-lit doors to every page */
.cc-map { padding: clamp(40px, 6vw, 72px) 0; background: radial-gradient(100% 70% at 80% 0%, #3a1416, var(--night) 65%); color: #f6e9d6; }
.cc-map .cc-eyebrow { color: var(--gold); }
.cc-map__h { color: #fff; } .cc-map__h em { color: var(--gold-2); }
.cc-map__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.cc-door { display: block; text-decoration: none; color: #f6e9d6; min-width: 0; }
.cc-door__ph { display: block; position: relative; border-radius: 999px 999px 8px 8px / 46% 46% 8px 8px; overflow: hidden; box-shadow: 0 0 0 1px rgba(214,167,86,.6); margin-bottom: 8px; }
.cc-door__ph img { width: 100%; aspect-ratio: 3 / 3.4; object-fit: cover; transition: transform .6s var(--k-ease), filter .6s; filter: brightness(.82) saturate(.95); }
.cc-door:hover .cc-door__ph img, .cc-door:focus-visible .cc-door__ph img { transform: scale(1.05); filter: brightness(1.05); }
.cc-door b { display: block; font: 500 1.08rem/1.2 var(--serif); color: #fff; }
.cc-door small { display: block; font-size: .8rem; line-height: 1.35; color: #d7c2a8; }
@media (min-width: 760px) { .cc-map__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cc-map__row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  .cc-gate__door { display: none; } .cc-gate__copy, .cc-gate__photo { animation: none; }
  .cc-lamp i { transition: none; } .cc-door__ph img { transition: none; }
}

/* ---------- phone menu (the top nav only shows from 1000px) ---------- */
.cc-menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--k-line); background: var(--k-paper); color: var(--maroon); font: 600 .85rem/1 var(--sans); cursor: pointer; flex: none; }
.cc-menu-btn i { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }

.cc-menu { position: fixed; inset: 0; z-index: 95; background: radial-gradient(120% 80% at 80% 0%, #3a1416, var(--night) 62%); color: #f6e9d6; display: flex; flex-direction: column; padding: 14px 20px max(20px, env(safe-area-inset-bottom)); overflow-y: auto; }
.cc-menu[hidden] { display: none; }
.cc-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.cc-menu__top b { font: 500 1.15rem/1 var(--serif); color: var(--gold-2); }
.cc-menu__x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(243,217,160,.5); background: transparent; color: #fff; font-size: 1.5rem; cursor: pointer; }
.cc-menu ul { list-style: none; margin: 18px 0 0; padding: 0; }
.cc-menu li a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 4px; border-bottom: 1px solid rgba(243,217,160,.18); color: #fff; text-decoration: none; font: 500 1.45rem/1.1 var(--serif); }
.cc-menu li a::after { content: "\2192"; color: var(--gold); font-size: 1rem; }
.cc-menu li a[aria-current="page"] { color: var(--gold-2); }
.cc-menu__foot { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }

/* ---------- shared header: seal + name, all 7 pages, Check my date, Menu under 1100px ---------- */
.cc-top .k-top__row { gap: 12px; }
.cc-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--maroon); min-width: 0; flex: 0 1 auto; }
.cc-brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px var(--gold); flex: none; }
.cc-brand span { display: grid; font: 600 1.12rem/1.05 var(--serif); white-space: nowrap; }
.cc-brand small { font: 600 .62rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9a6a24; }
.cc-nav { display: none; }
.cc-top__acts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.cc-top__cta { min-height: 44px; padding: 0 16px; font-size: .9rem; }
.cc-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); font: 500 .86rem/1 var(--sans); white-space: nowrap; }
.cc-nav a:hover { color: var(--maroon); }
.cc-nav a[aria-current="page"] { color: var(--maroon); font-weight: 600; }
.cc-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px 2px rgba(242,181,78,.6); }
@media (max-width: 420px) { .cc-brand small { display: none; } .cc-top__cta { padding: 0 12px; font-size: .84rem; } .cc-menu-btn span { display: none; } }
@media (max-width: 340px) { .cc-top__cta { display: none; } }
@media (min-width: 1100px) { .cc-nav { display: flex; gap: 18px; margin-left: 20px; } .cc-menu-btn { display: none; } }
.cc-menu li a[aria-current="page"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 3px rgba(242,181,78,.55); margin-right: 12px; }
.cc-menu li a[aria-current="page"] { justify-content: flex-start; }
.cc-menu li a[aria-current="page"]::after { margin-left: auto; }
/* footer page list */
.cc-foot__nav { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; }
.cc-foot__nav a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.cc-foot__nav a:hover { text-decoration: underline; }
.cc-foot__nav a[aria-current="page"] { color: var(--gold-2); }
.cc-foot__nav a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 8px; }
@media (min-width: 760px) { .cc-foot__row { grid-template-columns: 1.3fr .8fr 1fr 1fr; } }
