/* PEI Best Cottages: design system
   Palette (measured from Post Ranch Inn, approved 2026-10-07):
   deep blue-green #20373B, cream #F7F4EF, dark ink #0C1617.
   Type: Lora (variable 400-700) headings, Karla (variable 400-800) body/nav. */

@font-face {
  font-family: "Lora";
  src: url("fonts/lora-400.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("fonts/karla-400.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --pine: #20373B;
  --cream: #F7F4EF;
  --ink: #0C1617;
  --ink-soft: rgba(12, 22, 23, 0.72);
  --cream-dim: rgba(247, 244, 239, 0.82);
  --line: rgba(32, 55, 59, 0.18);
  --line-light: rgba(247, 244, 239, 0.28);
  --header-h: 92px;
  --header-h-compact: 58px;
  --serif: "Lora", Georgia, serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.18; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); letter-spacing: 0.005em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.1em; max-width: 62ch; }
a { color: var(--pine); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .hero :focus-visible { outline-color: var(--cream); }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 300;
  background: var(--pine); color: var(--cream);
  padding: 10px 18px; border-radius: 6px; text-decoration: none; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 clamp(18px, 4vw, 48px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s ease, border-color 0.45s ease, height 0.45s ease;
}
.site-header.is-solid {
  background: var(--pine);
  border-bottom-color: var(--line-light);
  height: var(--header-h-compact);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 64px; width: auto; transition: height 0.45s ease; }
.site-header.is-solid .brand img { height: 44px; }

.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.main-nav > a, .cottages-toggle {
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  color: var(--cream); text-decoration: none;
  text-shadow: 0 1px 8px rgba(12, 22, 23, 0.55);
  background: none; border: 0; padding: 6px 2px; cursor: pointer;
}
.main-nav > a:hover, .cottages-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
.cottages-toggle { display: inline-flex; align-items: center; gap: 7px; }
.cottages-toggle svg { transition: transform 0.3s ease; }
.cottages-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.btn-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); color: var(--pine);
  font-weight: 700; text-decoration: none; font-size: 0.95rem;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-call:hover { background: #fff; }
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 10px;
  color: var(--cream);
}

/* Cottages menu panel */
.cottages-menu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 190;
  background: var(--pine);
  border-bottom: 1px solid var(--line-light);
  padding: 18px clamp(18px, 4vw, 48px) 20px;
  display: none;
}
.cottages-menu.open { display: block; }
.cottages-menu-track {
  display: flex; gap: 18px; overflow-x: scroll; padding-bottom: 12px;
  scrollbar-width: auto; scrollbar-color: var(--cream) rgba(247,244,239,0.25);
}
.cottages-menu-track::-webkit-scrollbar { height: 10px; }
.cottages-menu-track::-webkit-scrollbar-track { background: rgba(247,244,239,0.22); border-radius: 6px; }
.cottages-menu-track::-webkit-scrollbar-thumb { background: var(--cream); border-radius: 6px; }
.menu-cottage {
  flex: 0 0 208px; text-decoration: none; color: var(--cream);
}
.menu-cottage img {
  width: 208px; height: 132px; object-fit: cover; border-radius: 4px;
  margin-bottom: 8px;
}
.menu-cottage .mc-name { font-family: var(--serif); font-size: 1.02rem; line-height: 1.25; }
.menu-cottage .mc-area { font-size: 0.85rem; color: var(--cream-dim); margin-top: 2px; }
.menu-cottage:hover .mc-name { text-decoration: underline; text-underline-offset: 3px; }
.menu-cottage[aria-current="page"] img { outline: 2px solid var(--cream); outline-offset: 2px; }

/* ---------- Hero montage ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 560px; max-height: 1100px;
  overflow: hidden;
  background: var(--pine);
}
.hero-scenes { position: absolute; inset: 0; }
.hero-scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-scene:first-child { opacity: 1; }             /* no-JS still */
html.js .hero-scene:first-child:not(.active) { opacity: 0; }     /* JS drives the cycle */
.hero-scene.active { opacity: 1; }
.hero-scene.drift { animation: heroDrift 7.5s ease-out forwards; }
.hero.is-paused .hero-scene { animation-play-state: paused; }
@keyframes heroDrift {
  from { transform: scale(1.0); }
  to { transform: scale(1.055); }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,22,23,0.34) 0%, rgba(12,22,23,0.08) 38%, rgba(12,22,23,0.5) 100%);
  pointer-events: none;
}
.hero-content {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  padding: 0 clamp(20px, 5vw, 64px) clamp(88px, 13vh, 140px);
  color: var(--cream);
}
.hero-content h1 { color: var(--cream); max-width: 15ch; text-shadow: 0 2px 18px rgba(12,22,23,0.45); }
.hero-content p { color: var(--cream); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 46ch; text-shadow: 0 1px 10px rgba(12,22,23,0.5); }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn-light { background: var(--cream); color: var(--pine); }
.btn-light:hover { background: #fff; }
.btn-pine { background: var(--pine); color: var(--cream); }
.btn-pine:hover { background: #2a464b; }
.btn-outline-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline-light:hover { background: rgba(247,244,239,0.14); }
.hero-pause {
  position: absolute; z-index: 4; right: clamp(20px, 4vw, 48px); bottom: 26px;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(12,22,23,0.55); color: var(--cream);
  border: 1px solid rgba(247,244,239,0.5); border-radius: 999px;
  font: 600 0.9rem var(--sans); padding: 9px 16px; cursor: pointer;
  backdrop-filter: none;
}
.hero-pause:hover { background: rgba(12,22,23,0.75); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 64px); }
.section-inner { max-width: 1180px; margin: 0 auto; }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 58ch; }
.band-pine { background: var(--pine); color: var(--cream); }
.band-pine h2, .band-pine h3 { color: var(--cream); }
.band-pine .lead, .band-pine p { color: var(--cream-dim); }
.band-pine a:not(.btn) { color: var(--cream); }

/* ---------- Cottage rail (desktop) ---------- */
.rail { position: relative; }
.rail-sticky { position: sticky; top: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.rail.live .rail-sticky { top: var(--header-h-compact); height: calc(100svh - var(--header-h-compact)); }
.rail.live .cottage-card { width: min(clamp(280px, 30vw, 430px), calc(100svh - var(--header-h-compact) - 310px)); }
.rail-head { padding: 0 clamp(20px, 5vw, 64px); margin-bottom: clamp(18px, 3vh, 34px); }
.rail-viewport { overflow-x: auto; }                 /* native sideways scroll without JS */
.rail.live .rail-viewport { overflow: hidden; }
.rail-row {
  display: flex; gap: clamp(18px, 2.4vw, 34px);
  padding: 0 clamp(20px, 5vw, 64px);
  will-change: auto;
}
.cottage-card { flex: 0 0 auto; width: clamp(280px, 30vw, 430px); }
.card-flip { perspective: 1400px; }
.card-flip-inner {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.35, 0.1, 0.2, 1);
}
.cottage-card.flipped .card-flip-inner { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 6px; overflow: hidden;
}
.card-face img { width: 100%; height: 100%; object-fit: cover; }
.card-face.back { transform: rotateY(180deg); }
.card-meta { padding-top: 14px; }
.card-meta h3 { margin-bottom: 2px; }
.card-facts { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-small {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  font: 600 0.92rem var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--pine);
}
.btn-flip { background: transparent; color: var(--pine); }
.btn-flip:hover { background: rgba(32,55,59,0.08); }
.btn-flip[aria-pressed="true"] { background: var(--pine); color: var(--cream); }
.btn-view { background: var(--pine); color: var(--cream); border-color: var(--pine); }
.btn-view:hover { background: #2a464b; }

.rail-controls {
  display: flex; align-items: center; gap: 18px;
  padding: 26px clamp(20px, 5vw, 64px) 0;
}
.rail-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--pine); background: transparent; color: var(--pine);
  font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.rail-btn:hover { background: var(--pine); color: var(--cream); }
.rail-btn:disabled { opacity: 0.3; cursor: default; }
.rail-btn:disabled:hover { background: transparent; color: var(--pine); }
.rail-progress {
  flex: 1; height: 3px; background: var(--line); border-radius: 2px; position: relative;
}
.rail-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: var(--pine); border-radius: 2px;
}

/* ---------- About + photo stack ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 90px); align-items: center;
}
.stack { position: relative; height: clamp(340px, 38vw, 480px); }
.stack-photo {
  position: absolute; width: 62%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(12,22,23,0.14);
}
.stack-photo:nth-child(1) { left: 0; top: 6%; transform: rotate(-6deg); z-index: 1; }
.stack-photo:nth-child(2) { right: 4%; top: 0; transform: rotate(4deg); z-index: 2; }
.stack-photo:nth-child(3) { left: 20%; bottom: 0; transform: rotate(0deg); z-index: 3; }
html.js .stack.animate-in .stack-photo { opacity: 0; transform: translateY(26px) rotate(0deg); }
html.js .stack.animate-in.settled .stack-photo { opacity: 1; transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 0.8, 0.3, 1); }
html.js .stack.animate-in.settled .stack-photo:nth-child(1) { transform: rotate(-6deg); transition-delay: 0s; }
html.js .stack.animate-in.settled .stack-photo:nth-child(2) { transform: rotate(4deg); transition-delay: 0.16s; }
html.js .stack.animate-in.settled .stack-photo:nth-child(3) { transform: rotate(0deg); transition-delay: 0.32s; }

/* ---------- Contact / enquiry ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 26px 0 34px; }
.contact-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px;
  background: #fff;
}
.contact-card h3 { margin-bottom: 4px; font-size: 1.15rem; }
.contact-card p { margin: 0; }
.confirm-note {
  font-size: 1.05rem; border-left: 3px solid var(--pine); padding: 4px 0 4px 18px;
  max-width: 56ch;
}
.band-pine .confirm-note { border-left-color: var(--cream); color: var(--cream); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; max-width: 760px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font: 400 1rem var(--sans); color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); outline: none; box-shadow: 0 0 0 3px rgba(32,55,59,0.18); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: var(--cream-dim); padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 64px) 40px; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 84px; width: auto; margin-bottom: 16px; }
.site-footer h2, .site-footer h3 { color: var(--cream); font-size: 1.1rem; font-family: var(--sans); font-weight: 700; margin-bottom: 10px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-base {
  max-width: 1180px; margin: 42px auto 0; padding-top: 22px;
  border-top: 1px solid var(--line-light);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-base a { color: var(--cream-dim); }

/* Sticky phone call bar */
.call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
  background: var(--pine); border-top: 1px solid var(--line-light);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.call-bar a {
  flex: 1; text-align: center; text-decoration: none; font-weight: 700;
  padding: 12px 10px; border-radius: 999px; font-size: 0.98rem;
}
.call-bar .cb-call { background: var(--cream); color: var(--pine); }
.call-bar .cb-enquire { background: transparent; color: var(--cream); border: 1.5px solid var(--cream); }

/* ---------- Cottage pages ---------- */
.page-intro {
  padding: calc(var(--header-h) + clamp(40px, 7vh, 80px)) clamp(20px, 5vw, 64px) clamp(36px, 5vh, 60px);
  background: var(--pine); color: var(--cream);
}
.page-intro .section-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.page-intro h1 { color: var(--cream); }
.page-intro p { color: var(--cream-dim); }
.page-intro img { border-radius: 8px; width: 100%; height: auto; }
.fact-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 24px; font-weight: 600; }
.fact-row span { display: inline-flex; align-items: center; gap: 7px; }

.tour-wrap { background: var(--cream); }
.tour {
  display: flex; align-items: stretch; gap: clamp(20px, 3vw, 44px);
  overflow-x: auto; overflow-y: hidden;
  padding: clamp(40px, 6vh, 70px) clamp(20px, 5vw, 64px);
  scrollbar-width: auto; scrollbar-color: var(--pine) var(--line);
}
.tour::-webkit-scrollbar { height: 10px; }
.tour::-webkit-scrollbar-track { background: var(--line); }
.tour::-webkit-scrollbar-thumb { background: var(--pine); border-radius: 6px; }
.tour-panel { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; }
.tour-panel.text { width: min(400px, 78vw); }
.tour-panel.text h2, .tour-panel.text h3 { margin-bottom: 0.4em; }
.tour-panel img {
  height: min(64vh, 620px); width: auto; max-width: none;
  border-radius: 8px; cursor: zoom-in;
}
.tour-panel img.portrait { height: min(66vh, 640px); }
.tour-end { justify-content: center; }
.tour-hint { font-size: 0.9rem; color: var(--ink-soft); padding: 0 clamp(20px, 5vw, 64px) 26px; margin: 0; }

.amenities-list { columns: 2; column-gap: 44px; list-style: none; padding: 0; margin: 18px 0 0; max-width: 760px; }
.amenities-list li { padding: 7px 0 7px 26px; position: relative; break-inside: avoid; }
.amenities-list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--pine);
}
.band-pine .amenities-list li::before { background: var(--cream); }

.other-cottages { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 22px; }
.other-cottage { text-decoration: none; color: var(--ink); }
.other-cottage img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.other-cottage .oc-name { font-family: var(--serif); font-size: 1.05rem; }
.other-cottage:hover .oc-name { text-decoration: underline; text-underline-offset: 3px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(12, 22, 23, 0.93);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; }
.lightbox button {
  position: absolute; background: rgba(247,244,239,0.12); color: var(--cream);
  border: 1px solid rgba(247,244,239,0.4); border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.lightbox button:hover { background: rgba(247,244,239,0.28); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--cream-dim); font-size: 0.9rem; }

/* ---------- Reveal helper ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); }
html.js [data-reveal].revealed { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1); }

/* ---------- Small screens ---------- */
html:not(.js) .cottages-toggle, html:not(.js) .nav-toggle { display: none; }
/* The unenhanced document always offers a complete vertical route. */
html:not(.js) .site-header { position: static; height: auto; background: var(--pine); flex-wrap: wrap; gap: 20px; padding: 20px; }
html:not(.js) .main-nav { flex-wrap: wrap; width: 100%; }
html:not(.js) .cottages-menu { display: block; position: static; width: 100%; padding: 0; }
html:not(.js) .cottages-menu-track { flex-direction: column; overflow: visible; }
html:not(.js) .menu-cottage { flex: none; display: flex; align-items: center; gap: 16px; }
html:not(.js) .menu-cottage img { width: 100px; height: 75px; margin: 0; }
html:not(.js) .rail { height: auto; }
html:not(.js) .rail-sticky { position: static; height: auto; display: block; overflow: visible; }
html:not(.js) .rail-viewport { overflow: visible; }
html:not(.js) .rail-row { flex-direction: column; gap: 44px; }
html:not(.js) .cottage-card { width: min(100%, 600px); margin: auto; }
html:not(.js) .card-flip-inner { height: auto; aspect-ratio: auto; }
html:not(.js) .card-face { position: static; margin-bottom: 12px; }
html:not(.js) .card-face.back { transform: none; }
html:not(.js) .card-face img { aspect-ratio: 1; height: auto; }
html:not(.js) .hero-pause, html:not(.js) .btn-flip, html:not(.js) .rail-controls,
html:not(.js) .tour-controls, html:not(.js) .tour-hint { display: none; }
html:not(.js) .tour { display: block; overflow: visible; }
html:not(.js) .tour-panel { margin-bottom: 34px; }
html:not(.js) .tour-panel.text { width: 100%; }
html:not(.js) .tour-panel img { width: 100%; height: auto; max-width: 100%; cursor: auto; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }
.tour-controls { display: flex; justify-content: flex-end; gap: 12px; padding: 20px clamp(20px, 5vw, 64px) 0; }
.tour-controls button { width: 46px; height: 46px; border: 1px solid var(--pine); background: transparent; color: var(--pine); font-size: 1.5rem; cursor: pointer; }
.tour-controls button:disabled { opacity: 0.35; cursor: default; }
.menu-cottage img, .card-face, .stack-photo, .page-intro img, .tour-panel img, .other-cottage img { border-radius: 0; }
.main-nav > .btn-call { background: var(--cream); color: var(--pine); padding: 10px 20px; text-shadow: none; }
@media (max-width: 899px), (pointer: coarse) {
  :root { --header-h: 72px; }
  html.js .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 210;
    width: min(340px, 88vw);
    background: var(--pine);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 86px 26px 30px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }
  html.js .main-nav.open { transform: translateX(0); }
  .main-nav > a, .cottages-toggle { font-size: 1.15rem; padding: 12px 4px; text-align: left; text-shadow: none; }
  html:not(.js) .main-nav { gap: 12px; }
  html:not(.js) .main-nav > a { font-size: 0.9rem; }
  html.js .nav-toggle { display: block; position: relative; z-index: 220; }
  .nav-toggle svg { display: block; }
  html.js .cottages-menu { position: static; border: 0; padding: 4px 0 10px; background: transparent; }
  html.js .cottages-menu-track { flex-direction: column; overflow-x: visible; gap: 4px; padding-bottom: 0; }
  html.js .menu-cottage { display: flex; align-items: center; gap: 12px; flex: none; padding: 6px 0; }
  html.js .menu-cottage img { width: 74px; height: 56px; margin: 0; }
  html.js .menu-cottage .mc-name { font-size: 1rem; }
  html.js .btn-call.nav-call { margin-top: 14px; text-align: center; }

  .hero-content { padding-bottom: 96px; }
  .hero-pause { bottom: 86px; }

  /* rail becomes a plain vertical flow */
  .rail { height: auto !important; }
  .rail-sticky { position: static; overflow: visible; display: block; }
  .rail-head { padding: 0 20px; margin-bottom: 26px; }
  .rail-viewport { overflow: visible; }
  .rail-row { flex-direction: column; padding: 0 20px; gap: 44px; transform: none !important; }
  .cottage-card { width: 100%; max-width: 520px; margin: 0 auto; }
  .rail-controls { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .stack { order: -1; height: clamp(300px, 78vw, 420px); max-width: 520px; margin: 0 auto; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-intro .section-inner { grid-template-columns: 1fr; }
  .amenities-list { columns: 1; }

  /* property tour becomes vertical */
  .tour { display: block; overflow: visible; padding: 40px 20px 10px; }
  .tour-panel { margin-bottom: 34px; }
  .tour-panel.text { width: 100%; }
  .tour-panel img, .tour-panel img.portrait { width: 100%; height: auto; max-width: 100%; }
  .tour-hint, .tour-controls { display: none; }
  .call-bar { display: flex; }
  body { padding-bottom: 0; }
  main { padding-bottom: 66px; }
}
@media (max-width: 899px) {
  .brand img { height: 50px; }
  .hero-content h1 { font-size: clamp(2rem, 8.4vw, 2.8rem); }
}

.site-footer img { border-radius: 50%; }

.mobile-menu-brand, .nav-backdrop { display: none; }
.faq-item { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq-item summary { cursor: pointer; list-style: none; position: relative; padding: 14px 40px 14px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { display: inline; }
.faq-item summary::after { content: ""; position: absolute; right: 8px; top: 22px; width: 10px; height: 10px; border-right: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(45deg); }
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-a { padding: 0 40px 14px 0; }
@media (max-width: 899px), (pointer: coarse) {
  html.js .main-nav .mobile-menu-brand { display: block; padding: 0 0 20px; }
  .mobile-menu-brand img { width: 180px; height: auto; }
  body.nav-open .brand { visibility: hidden; }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 180; border: 0; background: rgba(12,22,23,0.25); }
}
/* Short desktop windows retain the whole square card, facts and controls. */
@media (min-width: 900px) and (max-height: 760px) and (pointer: fine) {
  .rail.live .rail-head { margin-bottom: 18px; }
  .rail.live .rail-head h2 { font-size: 2.2rem; }
  .rail.live .rail-head .lead { font-size: 1rem; line-height: 1.5; max-width: none; }
  .rail.live .cottage-card { width: min(30vw, calc(100svh - var(--header-h-compact) - 342px)); }
  .rail.live .card-meta h3 { font-size: 1.22rem; line-height: 1.3; }
  .rail.live .card-facts { font-size: 0.9rem; line-height: 1.45; margin-bottom: 8px; }
  .rail.live .rail-controls { padding-top: 16px; }
}
main [id] { scroll-margin-top: calc(var(--header-h-compact) + 20px); }
#cottages { scroll-margin-top: var(--header-h-compact); }
.btn-small, .hero-pause { min-height: 44px; }
.btn-small { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 899px), (pointer: coarse) {
  .cottage-card h3 a, .footer-links a, .footer-base a, .contact-card a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Second edit round: the latest approved layout. */
:root { --header-h: 110px; --header-h-compact: 80px; }
.brand { position: relative; width: 218px; height: 80px; transition: width .45s, height .45s; }
.brand img, .site-header.is-solid .brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.brand .brand-outline { opacity: .78; filter: drop-shadow(0 1px 2px rgba(12,22,23,.45)); transition: opacity .45s; }
.brand .brand-colour { opacity: 0; transition: opacity .45s; }
.site-header.is-solid .brand { width: 180px; height: 66px; }
.site-header.is-solid .brand .brand-outline, html:not(.js) .brand .brand-outline { opacity: 0; }
.site-header.is-solid .brand .brand-colour, html:not(.js) .brand .brand-colour { opacity: 1; }
.mobile-menu-brand img { width: 218px; height: auto; }
.btn, .btn-small { font-family: var(--sans); line-height: 1.25; }
.btn.btn-light { background: var(--cream); color: var(--pine); text-shadow: none; }
.btn.btn-pine, .btn-small.btn-view { background: var(--pine); color: var(--cream); text-shadow: none; }
.btn.btn-outline-light { color: var(--cream); }
.band-pine .contact-card, .page-intro .contact-card { background: transparent; border-color: var(--line-light); }
.band-pine .contact-card a, .page-intro .contact-card a { color: var(--cream); overflow-wrap: anywhere; }
.hero-scene.drift { animation: heroCamera 5.4s linear forwards; }
.hero-scene:nth-child(even).drift { animation-name: heroCameraReverse; }
@keyframes heroCamera { from { transform: scale(1.06) translate(-1.8%, .5%); } to { transform: scale(1.19) translate(1.2%, -1%); } }
@keyframes heroCameraReverse { from { transform: scale(1.19) translate(1.2%, -1%); } to { transform: scale(1.06) translate(-1.8%, .5%); } }
.rail.live .rail-sticky { justify-content: flex-start; padding: 18px 0 12px; }
.rail.live .cottage-card { width: calc((100vw - 112px) / 2.5); }
.rail.live .rail-head { margin-bottom: 14px; }
.rail-head h2 { margin: 0 0 8px; }
.rail-head .lead { margin: 0 0 10px; max-width: none; }
.rail-head .rail-progress { width: 100%; flex: none; height: 2px; }
.rail-row { gap: 24px; padding: 0 48px; }
.card-meta h3 { font-size: clamp(1.1rem, 1.8vw, 1.55rem); line-height: 1.2; }
.card-meta { padding-top: 10px; }
.card-facts { margin-bottom: 8px; }
.rail-viewport { scrollbar-width: none; }
.rail-viewport::-webkit-scrollbar { display: none; }
.stack-photo { width: 78%; border-radius: 18px; }
.stack-photo:nth-child(1) { left: 5%; right: auto; top: 2%; bottom: auto; transform: rotate(-9deg); }
.stack-photo:nth-child(2) { left: 16%; right: auto; top: 10%; bottom: auto; transform: rotate(7deg); }
.stack-photo:nth-child(3) { left: 10%; right: auto; top: 20%; bottom: auto; transform: rotate(-2deg); }
html.js .stack.animate-in.settled .stack-photo:nth-child(1) { transform: rotate(-9deg); }
html.js .stack.animate-in.settled .stack-photo:nth-child(2) { transform: rotate(7deg); }
html.js .stack.animate-in.settled .stack-photo:nth-child(3) { transform: rotate(-2deg); }
.site-footer img { width: 220px; height: 220px; }
.story { position: relative; background: var(--cream); }
.story-track { display: block; }
.story-panel.photo { position: relative; }
.story-photo { width: 100%; height: auto; cursor: zoom-in; }
.story-title { position: absolute; left: clamp(20px,5vw,72px); right: 20px; bottom: 7vh; color: var(--cream); z-index: 2; text-shadow: 0 2px 14px #0c1617; pointer-events: none; }
.story-title h1 { max-width: 16ch; font-size: clamp(2.4rem,5vw,5rem); }
.story-title p { margin: 0; }
.story-panel:first-child::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(12,22,23,.55),transparent 70%); pointer-events: none; }
.eyebrow { font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 20px; }
.story-panel.text { padding: 60px 20px; }
.story-panel.text > div { max-width: 700px; margin: auto; }
.story-panel.text h2 { font-size: clamp(2rem,4vw,4rem); }
.story-panel.text p { font-size: clamp(1.1rem,1.7vw,1.55rem); line-height: 1.65; }
.story-progress { display: none; }
.story.live .story-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story.live .story-track { display: flex; height: 100%; width: max-content; }
.story.live .story-panel { flex: 0 0 100vw; width: 100vw; height: 100%; margin: 0; }
.story.live .story-photo { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.story.live .story-photo.portrait { object-fit: contain; }
.story.live .story-panel.text { display: grid; align-items: center; padding: calc(var(--header-h-compact) + 24px) 12vw 54px; }
.story.live .story-panel.text > div { width: min(700px,100%); }
.story.live .story-progress { display: block; position: absolute; height: 2px; background: rgba(247,244,239,.3); left: 0; right: 0; bottom: 0; }
.story-progress span { display: block; height: 100%; width: 0; background: #b04235; }
.gallery-grid { columns: 3; column-gap: 22px; }
.gallery-grid figure { margin: 0 0 22px; break-inside: avoid; }
.gallery-grid img { width: 100%; height: auto; max-width: 100%; cursor: zoom-in; }
.full-gallery { padding-top: 0; }
.availability-status { padding: 20px 0; max-width: 65ch; }
.availability-results { display: grid; gap: 14px; margin-top: 18px; }
.availability-result { border: 1px solid var(--line); padding: 22px; }
.availability-result h3 { font-size: 1.2rem; }
.availability-result .btn { margin-top: 6px; }
.availability-calendar { max-width: 620px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; text-align: center; }
.calendar-day { padding: 8px 2px; }
.calendar-day.busy { background: var(--pine); color: var(--cream); }
.calendar-day.unknown { background: #e8e4dc; }
.calendar-weekday { font-size: .85rem; font-weight: 600; }
@media (min-width: 900px) and (max-height: 760px) and (pointer: fine) {
 .rail.live .rail-sticky { padding: 8px 0; }
 .rail.live .rail-head { margin-bottom: 8px; }
 .rail.live .rail-head h2 { font-size: 2rem; margin: 0 0 6px; }
 .rail.live .rail-head .lead { display: none; }
 .rail.live .cottage-card { width: calc((100vw - 112px) / 2.5); }
 .rail.live .card-meta h3 { font-size: 1.12rem; }
 .rail.live .card-meta { padding-top: 7px; }
 .rail.live .card-facts { font-size: .88rem; line-height: 1.25; margin-bottom: 6px; }
 .rail.live .btn-small { padding: 8px 16px; }
}
@media (max-width: 899px), (pointer: coarse) {
 :root { --header-h: 86px; --header-h-compact: 76px; }
 .brand { width: 187px; height: 68px; }
 .site-header.is-solid .brand { width: 166px; height: 61px; }
 .rail-row { padding: 0 20px; gap: 44px; }
 .rail-head .rail-progress { display: none; }
 .story { height: auto !important; }
 .story-sticky { position: static; height: auto; overflow: visible; }
 .story-track { transform: none !important; display: block; }
 .story-panel { width: 100%; height: auto; }
 .story-panel:first-child .story-photo { height: 100svh; object-fit: cover; }
 .story-title { bottom: 8vh; }
 .story-title h1 { font-size: 2.65rem; }
 .story-panel.text { padding: 52px 24px; }
 .gallery-grid { columns: 1; }
 .site-footer img { width: 180px; height: 180px; }
 .stack-photo { border-radius: 16px; }
}
html:not(.js) .story { height: auto; }
html:not(.js) .story-sticky { position: static; height: auto; }
html:not(.js) .story-track { display: block; transform: none; }
html:not(.js) .story-panel { height: auto; width: 100%; }
html:not(.js) .story-panel:first-child .story-photo { height: min(85vh,900px); object-fit: cover; }
@media (max-width: 899px) and (orientation: landscape) {
 .hero-content { padding-bottom: 32px; }
 .hero-content h1 { font-size: 2.2rem; max-width: 24ch; margin-bottom: 12px; }
 .hero-content p { font-size: 1rem; margin-bottom: 12px; }
 .hero { min-height: 100svh; }
 .story-title { bottom: 24px; }
 .story-title h1 { font-size: 2.3rem; max-width: 24ch; }
}

.card-meta h3 a { text-decoration: none; }
.card-meta h3 a:hover { text-decoration: underline; }

/* Revision 3: stronger opening, closer photographs and continuous About sequence. */
.brand-outline { opacity: .98; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); }
.hero-scene.drift { animation-name: heroCameraR3; animation-duration: 5.2s; }
.hero-scene:first-child.drift { animation-name: cliffCameraR3; }
@keyframes heroCameraR3 {
 from { transform: scale(1.05) translate(-2.5%,1%); }
 to { transform: scale(1.26) translate(2.5%,-1.5%); }
}
@keyframes cliffCameraR3 {
 from { transform: scale(1.04) translate(-2.8%,1%); }
 to { transform: scale(1.29) translate(2.5%,-1.5%); }
}
.rail.live .rail-head { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 36px; row-gap: 8px; margin-bottom: 12px; }
.rail.live .rail-head h2, .rail.live .rail-head .lead { margin: 0; }
.rail.live .rail-head .lead { justify-self: end; text-align: right; }
.rail.live .rail-progress { grid-column: 1 / -1; margin: 0; }
.rail-row { gap: 12px; }
.rail.live .cottage-card { width: var(--rail-card-edge, calc((100vw - 112px) / 2.5)); }
.rail-viewport { flex: 0 0 auto; padding-bottom: 4px; }
.card-flip[role=button] { cursor: pointer; }
.card-flip:focus-visible { outline: 3px solid var(--pine); outline-offset: 4px; }
.stack.photo-loop .stack-photo { width: 85%; left: 7.5%; right: auto; top: 9%; bottom: auto; border-radius: 18px; opacity: 0; visibility: hidden; transform: rotate(0deg); transition: transform .85s cubic-bezier(.22,.8,.3,1), opacity .35s; }
.stack.photo-loop .loop-front { opacity: 1; visibility: visible; z-index: 3; transform: rotate(1.2deg); }
.stack.photo-loop .loop-back-one { opacity: 1; visibility: visible; z-index: 2; transform: translate(-2%,-2%) rotate(-4deg); }
.stack.photo-loop .loop-back-two { opacity: 1; visibility: visible; z-index: 1; transform: translate(1%,-3%) rotate(3deg); }
.stack.photo-loop .loop-enter { animation: stackArriveR3 .85s cubic-bezier(.22,.8,.3,1) both; }
@keyframes stackArriveR3 { from { opacity: 0; transform: translateY(70px) rotate(6deg) scale(.96); } to { opacity: 1; transform: translateY(0) rotate(1.2deg) scale(1); } }
.story.live .story-panel.text { flex-basis: 40vw; width: 40vw; padding: calc(var(--header-h-compact) + 24px) 3.5vw 40px; }
.story.live .story-panel.text h2 { font-size: clamp(2rem,3.4vw,3.4rem); }
.story.live .story-panel.text p { font-size: clamp(1.05rem,1.35vw,1.3rem); line-height: 1.5; }
.other-section { padding-block: clamp(40px,5vw,64px); }
.other-cottages { gap: 12px; margin-top: 16px; }
@media (min-width: 900px) and (max-height: 760px) and (pointer: fine) {
 .rail.live .rail-sticky { padding-top: 10px; padding-bottom: 8px; }
 .rail.live .rail-head { row-gap: 4px; margin-bottom: 6px; }
 .rail.live .rail-head h2 { font-size: 2rem; line-height: 1.1; }
 .rail.live .rail-head .lead { font-size: .95rem; }
 .rail.live .card-meta { padding-top: 6px; }
 .rail.live .card-meta h3 { font-size: 1rem; line-height: 1.15; margin-bottom: 4px; }
 .rail.live .card-facts { font-size: .9rem; line-height: 1.2; margin-bottom: 6px; }
}
@media (max-width: 899px), (pointer: coarse) {
 .rail-row { gap: 28px; }
 .story-panel.text { padding: 28px 24px; }
 .other-cottages { gap: 24px; }
}
html:not(.js) .stack .stack-photo:not(:first-child) { display: none; }
