/* ==========================================================================
   Rathlin Glamping — core stylesheet
   Palette is pulled straight from the site photography: dusk ink, the
   turquoise of the Sea of Moyle, firepit amber, pod green, shell white.
   ========================================================================== */

:root {
  /* --- ink / ground --- */
  --ink:        #0a1a22;   /* dusk sky over Church Bay */
  --ink-2:      #102731;
  --ink-3:      #1a3c48;
  --shell:      #f6f2ea;   /* bleached shell + sand */
  --shell-2:    #ece5d9;
  --paper:      #fffdf9;

  /* --- accents --- */
  --moyle:      #1f7f85;   /* daylight sea */
  --moyle-lt:   #4aa9ab;
  --ember:      #d9833c;   /* firepit + path lights */
  --ember-lt:   #efa964;
  --pod:        #334c3e;   /* green shingle pods */

  /* --- type --- */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;

  /* --- rhythm --- */
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --max: 1320px;
  --measure: 62ch;

  /* --- motion --- */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);

  --radius: 22px;
  --radius-lg: 34px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .25vw, 1.125rem);
  line-height: 1.65;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

/* The build wraps art-directed images in <picture> for the WebP source. The
   wrapper must not become the img's containing block, or the height:100% /
   object-fit:cover media panels collapse. */
picture { display: contents; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.022em;
  margin: 0;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 120;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* Long unbroken strings — email addresses, URLs — must wrap rather than push
   the page wider than the viewport. */
body { overflow-wrap: break-word; }
.foot li, .foot a,
.menu__meta a,
.contact-card a,
.dl dd a { overflow-wrap: anywhere; }

a { color: inherit; }

button { font: inherit; }

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

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

/* Skip link — visible once focused */
.skip {
  position: fixed; top: 0; left: 0; z-index: 999;
  padding: .85rem 1.4rem;
  background: var(--ink); color: var(--shell);
  transform: translateY(-120%);
  transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }

:focus-visible {
  outline: 2.5px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  width: min(100% - (var(--gut) * 2), var(--max));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - (var(--gut) * 2), 880px); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

.section--ink {
  background: var(--ink);
  color: var(--shell);
}
.section--ink h2, .section--ink h3 { color: var(--paper); }

/* ==========================================================================
   Type helpers
   ========================================================================== */

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--moyle);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem; height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}
.section--ink .eyebrow { color: var(--ember-lt); }

.h-xl  { font-size: clamp(2.9rem, 8.5vw, 6.5rem); }
.h-lg  { font-size: clamp(2.3rem, 5.6vw, 4.25rem); }
.h-md  { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.h-sm  { font-size: clamp(1.3rem, 2.1vw, 1.65rem); }

.lede {
  font-size: clamp(1.15rem, 1.02rem + .62vw, 1.5rem);
  line-height: 1.5;
  max-width: 34ch;
  font-weight: 350;
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 0; }

.ital { font-style: italic; font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 120; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--shell);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1.02rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .4s var(--ease), background .3s var(--ease),
              color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--ember { --btn-bg: var(--ember); --btn-fg: #20130a; }
.btn--ember:hover { --btn-bg: var(--ember-lt); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
  opacity: .9;
}
.btn--ghost:hover { --btn-bg: currentColor; opacity: 1; }
.btn--ghost:hover { color: var(--ink); background: var(--shell); border-color: var(--shell); }

.btn--light { --btn-bg: var(--shell); --btn-fg: var(--ink); }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.2rem;
}

/* Text link with a drawn underline */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding-bottom: .3rem;
  border-bottom: 1.5px solid currentColor;
  transition: gap .3s var(--ease), opacity .3s var(--ease);
}
.tlink:hover { gap: .95rem; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem var(--gut);
  color: var(--shell);
  transition: background .45s var(--ease), color .45s var(--ease),
              box-shadow .45s var(--ease), padding .45s var(--ease);
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,26,34,.72), rgba(10,26,34,0));
  opacity: 1;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.nav.is-stuck {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(10,26,34,.1), 0 12px 34px -24px rgba(10,26,34,.5);
  padding-block: .8rem;
}
.nav.is-stuck::before { opacity: 0; }

/* Interior pages start on a light ground */
.nav--solid {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(10,26,34,.1);
}
.nav--solid::before { opacity: 0; }

/* The lockup is the client's own logo, retraced as outlines. Its ink is
   currentColor so it inverts with the bar; the brushstroke keeps its sage. */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 1;
  flex: none;
}
.brand__logo {
  display: block;
  width: clamp(188px, 20.5vw, 262px);
  height: auto;
  flex: none;
  /* the brushstroke dips below the wordmark, so nudge the optical centre up */
  margin-block: -.15rem .15rem;
}

.nav__right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: none;
}
.nav__right .btn { padding: .74rem 1.35rem; font-size: .75rem; }

/* Below tablet the bar keeps the brand and the menu trigger only — booking
   lives in the overlay and in the sticky bar at the foot of the page. */
@media (max-width: 720px) {
  .nav__right .btn--ember { display: none; }
  .brand__logo { width: clamp(168px, 48vw, 208px); }
}
@media (max-width: 420px) {
  .menu-btn__lbl { display: none; }
  .menu-btn { padding: .72rem .9rem; gap: 0; }
}

/* --- the menu trigger: label + two bars that cross on open --- */

.menu-btn {
  /* Hover inverts the pill. The fill/ink pair is swapped per ground so the
     label never lands on its own colour. */
  --mb-fill: var(--shell);
  --mb-ink: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .66rem 1.15rem .66rem 1.25rem;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease);
}
.nav.is-stuck .menu-btn,
.nav--solid .menu-btn { --mb-fill: var(--ink); --mb-ink: var(--shell); }

/* The overlay always sits on ink, whatever the bar was doing before. */
body.menu-open .menu-btn { --mb-fill: var(--shell); --mb-ink: var(--ink); }

.menu-btn:hover {
  background: var(--mb-fill);
  color: var(--mb-ink);
  border-color: var(--mb-fill);
}
.menu-btn:hover .menu-btn__bars i { background: var(--mb-ink); }

.menu-btn__lbl { display: block; min-width: 3.1em; text-align: left; }

.menu-btn__bars {
  position: relative;
  width: 17px; height: 11px;
  flex: none;
}
.menu-btn__bars i {
  position: absolute;
  left: 0; right: 0;
  height: 1.6px;
  background: currentColor;
  transition: transform .45s var(--ease), background .3s var(--ease);
}
.menu-btn__bars i:nth-child(1) { top: 2px; }
.menu-btn__bars i:nth-child(2) { bottom: 2px; }

body.menu-open .menu-btn__bars i:nth-child(1) { transform: translateY(3.7px) rotate(45deg); }
body.menu-open .menu-btn__bars i:nth-child(2) { transform: translateY(-3.7px) rotate(-45deg); }

/* While the overlay is up the bar always sits on ink */
body.menu-open .nav,
body.menu-open .nav.is-stuck,
body.menu-open .nav--solid {
  background: transparent;
  color: var(--shell);
  box-shadow: none;
}
body.menu-open .nav::before { opacity: 0; }
body.menu-open .nav__right .btn--ember { opacity: 0; pointer-events: none; }

/* ==========================================================================
   FULLSCREEN MENU
   ========================================================================== */

.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  /* faint horizon glow, painted rather than placed — see note below */
  background:
    radial-gradient(135% 78% at 50% 122%,
      rgba(217,131,60,.17) 0%,
      rgba(31,127,133,.08) 55%,
      transparent 72%),
    var(--ink);
  color: var(--shell);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .85s var(--ease), visibility 0s linear .85s;
}
body.menu-open .menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .85s var(--ease), visibility 0s;
}

.menu__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  width: min(100% - (var(--gut) * 2), var(--max));
  margin-inline: auto;
  padding-block: clamp(6.5rem, 14vh, 9rem) clamp(2rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-content: center;
}
@media (min-width: 900px) {
  .menu__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
}

.menu__nav ol {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: m;
}
.menu__nav li { counter-increment: m; }

.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: clamp(.9rem, 2.5vw, 1.8rem);
  text-decoration: none;
  padding-block: clamp(.3rem, 1.1vh, .6rem);
  position: relative;
}

.menu__no {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  opacity: .42;
  flex: none;
  width: 2.1em;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.menu__no::before { content: "0" counter(m); }

/* each label is a mask the word slides up through */
.menu__lbl {
  display: block;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(2.3rem, 7.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 120;
  /* The mask has to sit below the baseline or it shears the descenders off
     "Gallery" and "Getting Here". Padding opens it up; the negative margin
     takes the space back so the rhythm is unchanged. */
  padding-bottom: .18em;
  margin-bottom: -.18em;
}
.menu__lbl span {
  display: block;
  transform: translateY(115%);
  transition: transform .8s var(--ease), color .35s var(--ease);
  transition-delay: var(--md, 0ms);
}
body.menu-open .menu__lbl span { transform: none; }

.menu__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .3rem;
  height: 1px;
  background: currentColor;
  opacity: .18;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
body.menu-open .menu__nav a::after { transform: scaleX(1); transition-delay: var(--md, 0ms); }

.menu__nav a:hover .menu__lbl span,
.menu__nav a:focus-visible .menu__lbl span { color: var(--ember-lt); }
.menu__nav a:hover .menu__no { opacity: 1; transform: translateX(3px); }

.menu__nav a[aria-current="page"] .menu__lbl span { color: var(--moyle-lt); }

/* --- the preview plate: swaps as you run down the links --- */

.menu__aside {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vh, 2.5rem);
}

.menu__preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
  display: none;
  opacity: 0;
  transform: scale(.97);
  transition: opacity .7s var(--ease) .25s, transform .9s var(--ease) .25s;
}
@media (min-width: 900px) { .menu__preview { display: block; } }
body.menu-open .menu__preview { opacity: 1; transform: none; }

.menu__preview img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .8s var(--ease), transform 1.4s var(--ease);
}
.menu__preview img.is-on { opacity: 1; transform: none; }

.menu__meta {
  display: grid;
  gap: 1.5rem;
  font-size: .94rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease) .5s, transform .6s var(--ease) .5s;
}
body.menu-open .menu__meta { opacity: 1; transform: none; }

.menu__meta h4 {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .5;
  margin: 0 0 .55rem;
}
.menu__meta a { text-decoration: none; display: block; }
.menu__meta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu__meta-row { display: grid; gap: clamp(1.2rem, 4vw, 2.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 430px) {
  /* side by side the address gets ~160px and breaks mid-word; stacked it
     has the full width and sets on one line */
  .menu__meta-row { grid-template-columns: 1fr; gap: 1.4rem; }
}

.menu__foot {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gut) * 2), var(--max));
  margin-inline: auto;
  padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .6s var(--ease) .6s;
}
body.menu-open .menu__foot { opacity: .62; }
.menu__foot a { text-decoration: none; }
.menu__foot a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .menu { transition: none; }
  .menu__lbl span,
  .menu__preview,
  .menu__meta,
  .menu__foot { transition: none; }
}

/* ==========================================================================
   Scroll progress
   ========================================================================== */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 101;
  background: transparent;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, var(--moyle), var(--ember));
  transform: scaleX(var(--sp, 0));
  transform-origin: left;
}
body.menu-open .progress { opacity: 0; }

/* ==========================================================================
   Sunset strip — "tonight the light goes at ..."
   ========================================================================== */

.sunstrip {
  background: var(--ink-2);
  color: var(--shell);
  border-block: 1px solid rgba(246,242,234,.12);
  padding-block: clamp(1.6rem, 3.5vw, 2.4rem);
}
.sunstrip__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .sunstrip__inner { grid-template-columns: auto 1fr auto; }
}
.sunstrip__lab {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .55;
}
.sunstrip__times {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.6rem;
  align-items: baseline;
}
.sunstrip__t { display: flex; align-items: baseline; gap: .7rem; }
.sunstrip__t b {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 80;
}
.sunstrip__t:first-child b { color: var(--moyle-lt); }
.sunstrip__t:last-child b { color: var(--ember-lt); }
.sunstrip__t small {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .62;
}
.sunstrip__note { font-size: .84rem; opacity: .6; }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7,18,24,.96);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.lb.is-on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }

.lb__img {
  max-width: min(100%, 1400px);
  max-height: 82vh;
  border-radius: 10px;
  object-fit: contain;
  transform: scale(.97);
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.lb.is-on .lb__img { transform: none; }
.lb__img.is-swapping { opacity: 0; }

.lb__cap {
  position: absolute;
  left: 50%; bottom: clamp(1rem, 3vw, 2rem);
  transform: translateX(-50%);
  color: var(--shell);
  font-size: .8rem;
  letter-spacing: .1em;
  opacity: .7;
  text-align: center;
  width: min(100% - 8rem, 48rem);
}

.lb button {
  position: absolute;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(246,242,234,.1);
  border: 1px solid rgba(246,242,234,.26);
  border-radius: 50%;
  color: var(--shell);
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.lb button:hover { background: rgba(246,242,234,.22); transform: scale(1.06); }
.lb button svg { width: 20px; height: 20px; }
.lb__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lb__prev { left: clamp(.6rem, 3vw, 2rem); top: 50%; margin-top: -26px; }
.lb__next { right: clamp(.6rem, 3vw, 2rem); top: 50%; margin-top: -26px; }

/* ==========================================================================
   Sticky booking bar (appears once the hero is behind you)
   ========================================================================== */

.bookbar {
  position: fixed;
  left: 50%;
  bottom: clamp(.9rem, 2.5vw, 1.6rem);
  transform: translate(-50%, 160%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: .6rem .6rem .6rem 1.5rem;
  background: rgba(10,26,34,.9);
  backdrop-filter: blur(14px);
  color: var(--shell);
  border: 1px solid rgba(246,242,234,.18);
  border-radius: 999px;
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.9);
  transition: transform .6s var(--ease);
  max-width: calc(100% - (var(--gut) * 2));
}
.bookbar.is-on { transform: translate(-50%, 0); }
body.menu-open .bookbar { transform: translate(-50%, 160%); }

.bookbar__txt {
  font-size: .82rem;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bookbar__txt b { font-weight: 600; }
.bookbar .btn { padding: .72rem 1.3rem; font-size: .74rem; flex: none; }

@media (max-width: 560px) {
  .bookbar { padding-left: 1.1rem; gap: .8rem; }
  .bookbar__txt { font-size: .76rem; }
}

/* ==========================================================================
   Word-by-word heading reveal
   ========================================================================== */

.rv-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* same descender headroom as the menu labels */
  padding-bottom: .16em;
  margin-bottom: -.16em;
}
.rv-words .w > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform .95s var(--ease);
  transition-delay: var(--wd, 0ms);
}
.rv-words.rv-in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv-words .w > span { transform: none; transition: none; }
}

/* ==========================================================================
   HERO — sticky stage, video scales from full bleed into a framed plate
   ========================================================================== */

.hero {
  position: relative;
  /* Scroll runway. JS swaps this when the choreography is unavailable. */
  height: 100svh;
  background: var(--ink);
}
.hero.is-scroll { height: 260svh; }

/* On a touch screen 260svh is roughly three deliberate swipes of hero before
   any content arrives. A mouse wheel covers that in one flick; a thumb does
   not. Shorten the runway wherever the pointer is coarse — the choreography
   is identical, it just happens over less travel. */
@media (pointer: coarse) {
  .hero.is-scroll { height: 165svh; }
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* driven by --p (0→1 scroll progress) */
  transform: scale(var(--media-scale, 1));
  border-radius: var(--media-radius, 0px);
  transition: none;
  will-change: transform, border-radius;
}
.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  /* The hero is now a bright daytime aerial rather than a dark dusk shot, so
     the middle of the gradient has to carry real weight — the headline sits
     between roughly 26% and 68% of the frame. */
  background:
    linear-gradient(to bottom,
      rgba(10,26,34,.58) 0%,
      rgba(10,26,34,.42) 28%,
      rgba(10,26,34,.44) 58%,
      rgba(10,26,34,.82) 100%);
  opacity: var(--scrim, 1);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - (var(--gut) * 2), var(--max));
  margin-inline: auto;
  color: var(--shell);
  text-align: center;
  opacity: var(--copy-op, 1);
  transform: translateY(var(--copy-y, 0px));
  will-change: opacity, transform;
}

.hero__kicker {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .88;
  margin: 0 0 1.6rem;
}

.hero h1 {
  font-size: clamp(2.9rem, 9.2vw, 7.6rem);
  line-height: .95;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(10,26,34,.42);
}
.hero h1 .ital { display: block; }

.hero__sub {
  margin: 1.8rem auto 0;
  max-width: 38ch;
  font-size: clamp(1.02rem, .95rem + .4vw, 1.3rem);
  line-height: 1.55;
  opacity: .92;
  text-wrap: balance;
}

.hero .btn-row { justify-content: center; margin-top: 2.5rem; }

/* scroll cue */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 2.1rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  color: var(--shell);
  font-size: .64rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: var(--cue-op, .82);
  pointer-events: none;
}
.hero__cue i {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, currentColor, transparent);
  position: relative;
  overflow: hidden;
}
.hero__cue i::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 14px;
  background: var(--ember-lt);
  animation: cue 2.3s var(--ease-io) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-16px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

/* The caption that fades up as the plate frames itself */
.hero__plate-cap {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(2rem, 7vh, 5rem);
  transform: translateX(-50%);
  width: min(100% - (var(--gut) * 2), var(--max));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  color: var(--shell);
  opacity: var(--cap-op, 0);
  pointer-events: none;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero__plate-cap span { opacity: .85; }

@media (prefers-reduced-motion: reduce) {
  .hero, .hero.is-scroll { height: 100svh; }
  .hero__cue i::after { animation: none; }
}

/* ==========================================================================
   Marquee band
   ========================================================================== */

.band {
  background: var(--ink);
  color: var(--shell);
  padding-block: 1.15rem;
  overflow: hidden;
  border-block: 1px solid rgba(246,242,234,.12);
}
.band__track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: slide 46s linear infinite;
}
.band__track span {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  font-size: .78rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .82;
}
.band__track span::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ember);
  flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .band__track { animation: none; }
}

/* ==========================================================================
   Intro / editorial two-column
   ========================================================================== */

.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .intro { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
.intro__head h2 { text-wrap: balance; }
.intro__body { font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); }
.intro__body p + p { margin-top: 0; }

/* Stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 5rem);
  background: rgba(10,26,34,.14);
  border-block: 1px solid rgba(10,26,34,.14);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--shell);
  padding: clamp(1.6rem, 3.4vw, 2.5rem) clamp(1rem, 2vw, 1.6rem);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--moyle);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 80;
}
.stat small {
  display: block;
  margin-top: .7rem;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
  line-height: 1.4;
}
.section--ink .stats { background: rgba(246,242,234,.18); border-color: rgba(246,242,234,.18); }
.section--ink .stat { background: var(--ink); }
.section--ink .stat b { color: var(--ember-lt); }

/* ==========================================================================
   Feature rows — big image + copy, alternating
   ========================================================================== */

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 5.5rem); }
  .feature--flip .feature__media { order: 2; }
}
.feature + .feature { margin-top: var(--section); }

.feature__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-2);
  aspect-ratio: 4 / 5;
}
.feature__media img, .feature__media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature__copy h2 { text-wrap: balance; }
.feature__copy .prose { margin-top: 1.5rem; }

/* small tag list under feature copy */
.taglist {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.taglist li {
  font-size: .76rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 600;
  padding: .5rem 1rem;
  border: 1px solid rgba(10,26,34,.2);
  border-radius: 999px;
}
.section--ink .taglist li { border-color: rgba(246,242,234,.26); }

/* ==========================================================================
   Full-bleed image panel with copy over it
   ========================================================================== */

.panel {
  position: relative;
  min-height: clamp(560px, 86vh, 880px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--shell);
  isolation: isolate;
}
.panel__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.panel__bg img, .panel__bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08) translateY(var(--par, 0px));
  will-change: transform;
}
.panel__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,26,34,.88) 0%, rgba(10,26,34,.3) 48%, rgba(10,26,34,.42) 100%);
}
.panel__inner {
  width: min(100% - (var(--gut) * 2), var(--max));
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.panel__inner .prose { max-width: 46ch; margin-top: 1.4rem; opacity: .94; }

/* Three-up cards sitting on the panel foot */
.panel__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: rgba(246,242,234,.22);
  border: 1px solid rgba(246,242,234,.22);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
@media (min-width: 900px) { .panel__cards { grid-template-columns: repeat(3, 1fr); } }
.panel__cards div {
  background: rgba(10,26,34,.52);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.panel__cards h3 {
  font-size: 1.22rem;
  margin-bottom: .55rem;
}
.panel__cards p { font-size: .95rem; opacity: .86; margin: 0; }

/* ==========================================================================
   Pod cards
   ========================================================================== */

.pods {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 2.6vw, 2.2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 820px) { .pods { grid-template-columns: repeat(2, 1fr); } }

.pod {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(10,26,34,.09), 0 30px 60px -48px rgba(10,26,34,.6);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pod:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(10,26,34,.09), 0 40px 70px -46px rgba(10,26,34,.65); }

.pod--feature { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .pod--feature { flex-direction: row; align-items: stretch; }
  .pod--feature .pod__media { flex: 1 1 52%; aspect-ratio: auto; }
  .pod--feature .pod__body { flex: 1 1 48%; padding: clamp(2rem, 4vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; }
}

.pod__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--ink-2);
}
.pod__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.pod:hover .pod__media img { transform: scale(1.045); }

.pod__flag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--ember);
  color: #20130a;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5rem .9rem;
  border-radius: 999px;
}

.pod__body { padding: clamp(1.5rem, 3vw, 2.1rem); }
.pod__body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.pod__price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-top: .9rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(10,26,34,.13);
}
.pod__price b {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--moyle);
  letter-spacing: -.02em;
}
.pod__price small { font-size: .82rem; opacity: .68; }

.pod__list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: .62rem;
  font-size: .95rem;
}
.pod__list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  line-height: 1.45;
}
.pod__list svg {
  width: 1.05em; height: 1.05em;
  flex: none;
  margin-top: .28em;
  color: var(--moyle);
}

/* ==========================================================================
   Spec grid (what's in every pod)
   ========================================================================== */

.specs {
  display: grid;
  /* Six items: an explicit 1 → 2 → 3 keeps complete rows, where auto-fit
     gave five across and one stranded on a second row at desktop. */
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(246,242,234,.2);
  border: 1px solid rgba(246,242,234,.2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 560px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .specs { grid-template-columns: repeat(3, 1fr); } }

.spec {
  background: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}
.spec svg { width: 26px; height: 26px; color: var(--ember-lt); margin-bottom: 1.1rem; }
.spec h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.spec p { font-size: .92rem; opacity: .8; margin: 0; line-height: 1.5; }

/* light variant */
.specs--light { background: rgba(10,26,34,.14); border-color: rgba(10,26,34,.14); }
.specs--light .spec { background: var(--shell); }
.specs--light .spec svg { color: var(--moyle); }

/* ==========================================================================
   Gallery

   Column masonry rather than a grid: a grid with row/column spans always
   leaves holes where a span cannot tile, and cropping every photo to a
   square wastes the good ones. Columns flow top-to-bottom, fill completely,
   and keep each photograph at its own proportions.
   ========================================================================== */

.gal {
  columns: 2;
  column-gap: clamp(.5rem, 1.2vw, 1rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 760px)  { .gal { columns: 3; } }
@media (min-width: 1100px) { .gal { columns: 4; } }

.gal figure {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 clamp(.5rem, 1.2vw, 1rem);
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ink-2);
  cursor: zoom-in;
}
.gal figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .9s var(--ease);
}
.gal figure:hover img { transform: scale(1.06); }

.gal figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,26,34,.28);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.gal figure:hover::after { opacity: 1; }

/* ---- fixed strip -------------------------------------------------------
   Masonry is right for the gallery wall, where ragged column ends read as
   deliberate. It is wrong for a short row of four, where one shorter frame
   just looks like a mistake. A strip overrides the columns with a grid and
   crops every frame to the same shape. */

.gal--strip {
  --cell: 3 / 4;
  columns: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.5rem, 1.2vw, 1rem);
}
@media (min-width: 760px) {
  .gal--strip { grid-template-columns: repeat(var(--strip-cols, 4), 1fr); }
}
.gal--strip figure {
  margin: 0;
  aspect-ratio: var(--cell);
}
.gal--strip figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* landscape frames, for the row of lighthouses */
.gal--wide { --cell: 4 / 3; --strip-cols: 3; }

/* ==========================================================================
   Island / things-to-do list
   ========================================================================== */

.things {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(10,26,34,.15);
}
.section--ink .things { border-color: rgba(246,242,234,.2); }

.thing {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem 2rem;
  padding-block: clamp(1.6rem, 3vw, 2.3rem);
  border-bottom: 1px solid rgba(10,26,34,.15);
  align-items: baseline;
}
.section--ink .thing { border-color: rgba(246,242,234,.2); }
@media (min-width: 900px) {
  .thing { grid-template-columns: 4.5rem minmax(0, 15rem) minmax(0, 1fr) auto; }
}
.thing__no {
  font-family: var(--display);
  font-size: .95rem;
  opacity: .5;
  letter-spacing: .06em;
}
.thing h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.thing p { font-size: .97rem; opacity: .82; margin: 0; max-width: 54ch; }
.thing__meta {
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .6;
  white-space: nowrap;
}

/* ==========================================================================
   Info / detail list (ferry, terms, contact)
   ========================================================================== */

.dl {
  display: grid;
  gap: 0;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  border-top: 1px solid rgba(10,26,34,.15);
  container-type: inline-size;
}
.dl > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: .35rem 2rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid rgba(10,26,34,.15);
}
/* Queried against the list itself: a .dl sitting in a half-width feature
   column stays stacked while a full-width one splits. Browsers without
   container queries keep the stacked layout, which reads fine either way. */
@container (min-width: 34rem) {
  .dl > div { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }
}
.dl dt {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .62;
}
.dl dd { margin: 0; }
.dl dd p:last-child { margin-bottom: 0; }
.section--ink .dl, .section--ink .dl > div { border-color: rgba(246,242,234,.2); }

/* A plain run of rules — the hot tub list on the terms page. The same
   hairlines as .dl, without a term column competing for the width. */
.rules {
  list-style: none;
  margin: clamp(1.1rem, 2.2vw, 1.6rem) 0 0;
  padding: 0;
  border-top: 1px solid rgba(10,26,34,.15);
}
.rules li {
  max-width: var(--measure);
  padding-block: .82rem;
  border-bottom: 1px solid rgba(10,26,34,.15);
}
.rules--sub { margin-top: .9rem; }
.subhead {
  margin-top: clamp(2rem, 3.6vw, 2.8rem);
  font-size: 1.22rem;
}

/* ==========================================================================
   Steps (how to get here)
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: rgba(10,26,34,.14);
  border: 1px solid rgba(10,26,34,.14);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--shell); padding: clamp(1.6rem, 3vw, 2.2rem); }
.step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--shell);
  font-family: var(--display);
  font-size: .95rem;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.step p { font-size: .93rem; opacity: .78; margin: 0; line-height: 1.5; }

/* ==========================================================================
   Quote
   ========================================================================== */

.quote {
  text-align: center;
  max-width: 24ch;
  margin-inline: auto;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.028em;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 120;
  text-wrap: balance;
}
.quote cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .76rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .62;
}

/* ==========================================================================
   Booking CTA
   ========================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  color: var(--shell);
  text-align: center;
  isolation: isolate;
}
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10,26,34,.66);
}
.cta .wrap { padding-block: clamp(5rem, 12vw, 9rem); }
.cta h2 { text-wrap: balance; }
.cta .prose { margin-inline: auto; margin-top: 1.4rem; max-width: 46ch; opacity: .92; }
.cta .btn-row { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */

.foot {
  background: var(--ink);
  color: var(--shell);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.2rem, 5vw, 4rem);
}
@media (min-width: 820px) {
  .foot__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
}
.foot h3 {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .58;
  margin-bottom: 1.2rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot a { text-decoration: none; opacity: .88; transition: opacity .25s var(--ease); }
.foot a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot__brand .brand { margin-bottom: 1.3rem; }
.foot__brand p { font-size: .97rem; opacity: .76; max-width: 34ch; }

.foot__social { display: flex; gap: .65rem; margin-top: 1.4rem; }
.foot__social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(246,242,234,.26);
  border-radius: 50%;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.foot__social a:hover { background: var(--shell); color: var(--ink); border-color: var(--shell); }
.foot__social svg { width: 18px; height: 18px; }

.foot__bar {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(246,242,234,.16);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  justify-content: space-between;
  font-size: .8rem;
  opacity: .66;
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */

.phead {
  position: relative;
  padding-top: clamp(8rem, 16vh, 11rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  background: var(--shell);
  overflow: hidden;
}
.phead h1 { text-wrap: balance; max-width: 16ch; }
.phead .lede { margin-top: 1.5rem; max-width: 46ch; }

.phead--img {
  color: var(--shell);
  background: var(--ink);
  min-height: clamp(62vh, 70vh, 760px);
  display: grid;
  align-items: end;
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.phead--img .phead__bg { position: absolute; inset: 0; }
.phead--img .phead__bg img {
  width: 100%; height: 100%; object-fit: cover;
  /* A wide header only shows a band of a 4:3 photograph. Pages whose subject
     sits high in the frame set --phead-focus to lift that band. */
  object-position: center var(--phead-focus, 50%);
}
.phead--high { --phead-focus: 22%; }
.phead--img .phead__bg::after {
  content: "";
  position: absolute; inset: 0;
  /* The heading sits around the middle of this box, so the scrim stays heavy
     there — these photos have bright sea and sky right where the text lands. */
  background: linear-gradient(to top,
    rgba(10,26,34,.92) 0%,
    rgba(10,26,34,.72) 38%,
    rgba(10,26,34,.46) 72%,
    rgba(10,26,34,.62) 100%);
}
.phead--img .wrap { position: relative; }

/* breadcrumb */
.crumb {
  display: flex;
  gap: .6rem;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 1.6rem;
}
/* The link needs a finger-sized target without the trail growing taller,
   so the padding is given back as a negative margin. */
.crumb a {
  text-decoration: none;
  display: inline-block;
  padding-block: .72rem;
  margin-block: -.72rem;
}
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

[data-rv] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--rv-d, 0ms);
}
[data-rv].rv-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-rv] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Misc
   ========================================================================== */

.note {
  font-size: .88rem;
  opacity: .7;
  margin-top: 1.4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--ember);
  line-height: 1.55;
}

.map-embed {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  border: 1px solid rgba(10,26,34,.14);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.contact-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 0 1px 0 rgba(10,26,34,.09), 0 30px 60px -50px rgba(10,26,34,.6);
}
.contact-card a { font-weight: 500; }

/* ==========================================================================
   Enquiry form
   ========================================================================== */

.enquiry { display: grid; gap: 1.1rem; }

.field { display: grid; gap: .5rem; border: 0; padding: 0; margin: 0; min-width: 0; }

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field label, .field legend {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .62;
  padding: 0;
}

.field input[type="text"],
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  padding: .92rem 1.05rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(10,26,34,.2);
  border-radius: 12px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.55; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--moyle);
  box-shadow: 0 0 0 3px rgba(31,127,133,.16);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(10,26,34,.38); }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1em;
  padding-right: 2.8rem;
}

/* checkbox chips */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .2rem; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
  padding: .6rem 1.05rem;
  border: 1px solid rgba(10,26,34,.22);
  border-radius: 999px;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.chips label:hover span { border-color: var(--moyle); }
.chips input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--shell);
}
.chips input:focus-visible + span { outline: 2.5px solid var(--ember); outline-offset: 3px; }

.field.is-bad input { border-color: #b4452c; box-shadow: 0 0 0 3px rgba(180,69,44,.14); }

/* ==========================================================================
   Layout utilities

   These replace what used to be one-off inline styles, so section intros,
   stacked blocks and centred groups are consistent from page to page.
   ========================================================================== */

/* Section intro blocks — two widths only, so headings wrap predictably. */
.sec-head { max-width: 42rem; }
.sec-head--wide { max-width: 52rem; }   /* copy sitting over a full-bleed image */

/* A page header already supplies the top space on interior pages. */
.section--flush { padding-top: 0; }

/* Two sections on the same ground would otherwise stack their full padding
   and read as a gap rather than a rhythm. Ink sections keep theirs — the
   colour block needs the room. */
.section:not(.section--ink) + .section:not(.section--ink) { padding-top: 0; }

/* Vertical stack steps, matched to the section scale. */
.stack-sm { margin-top: 1.3rem; }
.stack-md { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.stack-lg { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Centred groups. */
.u-center { text-align: center; }
.u-center .prose,
.u-center .lede { margin-inline: auto; }
.u-center .btn-row,
.u-center .eyebrow { justify-content: center; }

.eyebrow--center { justify-content: center; }
.eyebrow--ember { color: var(--ember-lt); }

/* Unit suffix inside a stat figure — "25min", "6000BC". */
.stat .unit { font-size: .5em; letter-spacing: 0; }

/* Steps on an ink ground. */
.steps--ink { background: rgba(246,242,234,.2); border-color: rgba(246,242,234,.2); }
.steps--ink .step { background: var(--ink); }

/* ==========================================================================
   Touch targets

   The brand lockup and the inline text links are visually small; these pad
   the hit area out to roughly 44px without changing how they look.
   ========================================================================== */

.brand { padding-block: .35rem; }

.tlink { padding-top: .5rem; padding-bottom: .55rem; }

/* Spacing modifiers used by the content fragments. */
.dl--flush { margin-top: 0; }
.prose--gap { margin-bottom: 2rem; }
.stack-head { margin-bottom: 1.1rem; }

/* A panel whose background is a clip rather than a still. Slightly taller so
   the motion has room, and no parallax — shifting a decoding video judders. */
.panel--video { min-height: clamp(620px, 92vh, 940px); }
.panel--video .panel__bg video { transform: scale(1.02); }

/* Panel copy sits on photography, so the eyebrow takes the light tint it uses
   on ink sections — the mid teal is too dim against a dark image. */
.panel .eyebrow { color: var(--ember-lt); }
