@font-face {
  font-family: "Causten";
  src: url("fonts/causten-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Causten";
  src: url("fonts/causten-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Causten";
  src: url("fonts/causten-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Causten";
  src: url("fonts/causten-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Causten";
  src: url("fonts/causten-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Cormorant Garamond 500, roman and italic (SIL Open Font License), served from this site rather
   than Google Fonts, so phones need no extra connections before the serif lines can show.
   Latin covers the site's text; latin-ext only downloads if a character needs it. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-500-latin-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-500-italic-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-500-italic-latin-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@property --reveal {
  syntax: "<percentage>";
  initial-value: 58%;
  inherits: true;
}

:root {
  --cream: #f6f0e6;
  --cream-soft: #fbf7f0;
  --ink: #2a2e34;
  --ink-soft: #5c636c;
  --evening: #1b3a5b;
  --terracotta: #c15f35;
  --kava-olive: #a1ad3a;
  --kava-blue: #438bc0;
  --kava-amber: #ea9825;
  --kava-clay: #8f5b3b; /* Stays: the colour of the mud walls */
  --accent: var(--terracotta);
  --line: rgba(27, 58, 91, 0.12);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Causten", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glide: cubic-bezier(0.7, 0, 0.28, 1);
  --type-kicker: 0.72rem;
  --type-serif: clamp(1.2rem, 1.6vw, 1.45rem);
  --type-title: clamp(2.4rem, 3.6vw, 3.5rem);
  --type-section: clamp(1.8rem, 2.8vw, 2.6rem);
  --type-body: 1.02rem;
  --type-leading: 1.65;
  --space-section: 12vh;
  --gutter: 7vw;
  --col: 54vw;
  --fade: 22.7vw;
  --logo: 32px;
}

/* One size per heading level on every page: --type-title for page titles, --type-section for
   section headings. Phones get fixed sizes so every page's titles match exactly. */
@media (max-width: 860px) {
  :root {
    --type-title: 2.3rem;
    --type-section: 1.85rem;
    --logo: 22px;
  }
}

.landing,
.experiences-page { --accent: var(--terracotta); }
.about-page { --accent: var(--kava-olive); }
.host-page { --accent: var(--kava-blue); }
.gallery-page { --accent: var(--kava-amber); }
.stays-page { --accent: var(--terracotta); }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--cream-soft);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Page changes: a quick fade in (0.3s) and an even quicker fade out (see is-leaving),
     so moving between pages feels smooth without making anyone wait. */
  transition: opacity 0.3s var(--glide);
}

html.is-leaving body { transition-duration: 0.22s; }

html.is-arriving body,
html.is-leaving body { opacity: 0; }

html.is-arriving body { transition: none; }

::selection {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--evening);
}

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

a { color: inherit; }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: start;
}

.frame {
  --reveal: 58%;
  --blend: linear-gradient(
    to right,
    #000 0%,
    #000 var(--reveal),
    rgba(0, 0, 0, 0.97) calc(var(--reveal) + 6%),
    rgba(0, 0, 0, 0.88) calc(var(--reveal) + 12%),
    rgba(0, 0, 0, 0.72) calc(var(--reveal) + 18%),
    rgba(0, 0, 0, 0.52) calc(var(--reveal) + 24%),
    rgba(0, 0, 0, 0.32) calc(var(--reveal) + 30%),
    rgba(0, 0, 0, 0.14) calc(var(--reveal) + 36%),
    transparent calc(var(--reveal) + 42%)
  );
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--cream-soft);
  transition: width 1.05s cubic-bezier(0.7, 0, 0.28, 1), --reveal 1.05s cubic-bezier(0.7, 0, 0.28, 1);
}

.frame .stack {
  position: relative;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: var(--blend);
  mask-image: var(--blend);
}

.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--glide), object-position 1.4s var(--glide);
}

.frame img.on { opacity: 1; }

.sheet {
  min-height: 100vh;
  padding: 0 var(--gutter);
  background: var(--cream-soft);
  transition: opacity 1.05s cubic-bezier(0.7, 0, 0.28, 1), transform 1.05s cubic-bezier(0.7, 0, 0.28, 1);
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 22px 0 14px;
  background: var(--cream-soft);
}

/* The logo is one size on every page (--logo) and never shrinks on scroll. */
.mark img {
  height: var(--logo);
  width: auto;
}

.experiences-page .mark { display: grid; }

.experiences-page .mark img { grid-area: 1 / 1; }

.experiences-page .logo-on-film { opacity: 0; }

@media (max-width: 860px) {
  .experiences-page.is-cards.is-on-dark .logo-on-cream { opacity: 0; }

  .experiences-page.is-cards.is-on-dark .logo-on-film { opacity: 1; }
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a,
.site-nav span {
  position: relative;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0 10px;
  color: var(--ink-soft);
  transition: color 0.45s var(--ease);
}

.site-nav .nav-line,
.about-page .site-nav .nav-line,
.about-page.is-reading .site-nav .nav-line {
  position: absolute;
  z-index: 1;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--evening);
  pointer-events: none;
  letter-spacing: 0;
  font-size: 0;
  transition: left 0.62s var(--ease), width 0.62s var(--ease);
}

.landing .nav-line,
.experiences-page.is-cards.is-on-dark .nav-line { background: #fff; }

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.site-nav a[aria-current="page"] { color: var(--evening); }
.site-nav a:hover { color: var(--evening); }

.site-nav a[aria-current="page"]::after { opacity: 1; }
.site-nav a:hover::after { opacity: 1; }

.site-nav.is-ready a::after,
.site-nav.is-ready a:hover::after,
.site-nav.is-ready a[aria-current="page"]::after { opacity: 0; }

.site-nav .menu-toggle { display: none; }

@media (max-width: 860px) {
  .site-nav > a:not(.menu-toggle),
  .site-nav .nav-line { display: none; }

  .site-nav .menu-toggle { display: inline-block; }
}

.landing .site-nav > a:not(.menu-toggle),
.landing .site-nav .nav-line { display: none; }

.landing .site-nav .menu-toggle { display: inline-block; }

html.is-menu-open,
html.is-menu-open body { overflow: hidden; }

.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 22px calc(30px + env(safe-area-inset-bottom));
  background: var(--cream-soft);
  opacity: 0;
  transition: opacity 0.45s var(--glide);
}

.menu-sheet[hidden] { display: none; }

.menu-sheet.is-open { opacity: 1; }

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
}

.menu-mark img { height: var(--logo); width: auto; }

.menu-close {
  margin: 0;
  padding: 8px 0 10px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: auto 0;
}

.menu-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  width: max-content;
  color: var(--evening);
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.55rem, 7vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease) calc(var(--i) * 60ms + 80ms),
    transform 0.7s var(--ease) calc(var(--i) * 60ms + 80ms);
}

.menu-sheet.is-open .menu-links a {
  opacity: 1;
  transform: none;
}

.menu-links a[aria-current="page"] { color: var(--accent); }

.menu-links a[aria-current="page"]::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* Instagram reads as a link: icon, underline and an outward arrow. */
.menu-insta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid currentColor;
  color: var(--evening);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu-insta svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.menu-insta-arrow {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.menu-close:focus-visible,
.menu-links a:focus-visible,
.menu-insta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .menu-sheet,
  .menu-links a { transition: none; }
}

.mark:focus-visible,
.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100vh - 88px);
  padding: 0 0 var(--space-section);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: var(--type-kicker);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.intro-kicker {
  margin: 0 0 0.85rem;
  max-width: 28em;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--type-serif);
  line-height: 1.35;
  color: var(--ink-soft);
}

h1 {
  margin: 0;
  max-width: 9em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--type-title);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--evening);
}

.experiences-page .intro h1 { color: var(--terracotta); }

.lead {
  margin: 1.4rem 0 0;
  max-width: 32ch;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: var(--type-leading);
}

.intro-more {
  display: block;
  margin: 1.4rem 0 0;
  max-width: 40ch;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: var(--type-leading);
}
/* The closing line of the intro, set apart in the italic script face. */
.intro-close {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--type-serif);
  line-height: 1.35;
  color: var(--evening);
}

.intro-kicker,
.intro-more,
.intro h1 .word {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(0.32rem);
}

.intro h1 .word { display: inline-block; }

.intro-kicker {
  transition:
    opacity 0.9s var(--ease) 0.08s,
    filter 0.9s var(--ease) 0.08s,
    transform 1.05s var(--ease) 0.08s;
}

.intro h1 .word {
  transition:
    opacity 0.85s var(--ease) calc(var(--i) * 90ms + 0.22s),
    filter 0.85s var(--ease) calc(var(--i) * 90ms + 0.22s),
    transform 1s var(--ease) calc(var(--i) * 90ms + 0.22s);
}

.intro-more {
  transition:
    opacity 0.9s var(--ease) 0.72s,
    filter 0.9s var(--ease) 0.72s,
    transform 1.05s var(--ease) 0.72s;
}

.intro.is-seen .intro-kicker,
.intro.is-seen .intro-more,
.intro.is-seen h1 .word {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.intro-next {
  display: block;
  margin: 2.4rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.45rem, 1.8vw, 1.85rem);
  line-height: 1.25;
  color: var(--evening);
}

.list {
  margin: 0;
  padding: 0 4vw 46vh 0;
  list-style: none;
}

.item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0.3rem;
  align-items: baseline;
  padding: 0.7rem 0 0.55rem;
  border-top: 1px solid var(--line);
  transition: padding 0.7s var(--ease);
}

.item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0.7rem;
  bottom: 0.55rem;
  width: 1px;
  background: var(--terracotta);
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.item.is-near { padding: 1.05rem 0 0.85rem; }

.item.is-active { padding: 1.85rem 0 1.5rem; }

.item.is-active::before { opacity: 1; }

.item:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 861px) {
  .item { cursor: pointer; }

  .item:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 6px;
  }
}

.num {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(193, 95, 53, 0.4);
  transition: color 0.7s var(--ease);
}

.item.is-near .num { color: rgba(193, 95, 53, 0.68); }

.item.is-active .num { color: var(--terracotta); }

h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--type-section);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #a3adb6;
  transition: color 0.7s var(--ease);
}

.item.is-near h2 { color: #5e6b78; }

.item.is-active h2 { color: var(--evening); }

.tag {
  margin: 0;
  max-width: 28ch;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #c5ced4;
  transition: color 0.7s var(--ease);
}

.item.is-near .tag { color: #8b969f; }

.item.is-active .tag { color: var(--ink-soft); }

.phone { display: none; }

.row { display: contents; }

.living {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 7.5rem 2.4rem 2.1rem;
  background: linear-gradient(to top, rgba(10, 18, 28, 0.78) 0%, rgba(10, 18, 28, 0.2) 58%, rgba(10, 18, 28, 0) 100%);
  color: #fbf7f0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
  -webkit-mask-image: var(--blend);
  mask-image: var(--blend);
}

.living.show {
  opacity: 1;
  transform: none;
}

.living-num {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0c2a8;
}

.living-name {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--type-title);
  line-height: 1;
  letter-spacing: -0.02em;
}

.living-tag {
  margin: 0.5rem 0 0;
  font-size: 1.02rem;
  color: rgba(251, 247, 240, 0.88);
}

.living.tick .living-num,
.living.tick .living-name,
.living.tick .living-tag {
  animation: caption-in 0.7s var(--ease);
}

@keyframes caption-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

html.is-gentle .frame img {
  transition-duration: 1.1s;
  transition-timing-function: cubic-bezier(0.7, 0, 0.28, 1);
}

html.is-gentle .item,
html.is-gentle .item::before,
html.is-gentle .num,
html.is-gentle h2,
html.is-gentle .tag,
html.is-gentle .living {
  transition-duration: 1.05s;
  transition-timing-function: cubic-bezier(0.7, 0, 0.28, 1);
}

html.is-gentle .living.tick .living-num,
html.is-gentle .living.tick .living-name,
html.is-gentle .living.tick .living-tag {
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.7, 0, 0.28, 1);
}

.end {
  margin: 0;
  padding: 8vh 0 12vh;
}

/* One or two lines, not a word on each. */
.end-line {
  margin: 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.7rem, 2.2vw, 2.15rem);
  line-height: 1.15;
  color: var(--evening);
}

.end-more {
  margin: 1.2rem 0 0;
  max-width: 28em;
  font-size: var(--type-body);
  line-height: var(--type-leading);
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  /* Phones scroll natively and snap one card at a time. */
  html { scroll-snap-type: y mandatory; scroll-behavior: auto; }

  /* From the closing line down, the snap lets go so the footer can be read freely
     (experiences.html sets html.is-tail there). */
  html.is-tail { scroll-snap-type: none; }

  .stage { display: block; }

  .frame { display: none; }

  .sheet { padding: 0; }

  .site-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 14px 18px;
    background: var(--cream-soft);
  }

  .intro {
    display: block;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    padding: 112px 22px 36px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .intro-more {
    display: block;
    margin: 1.5rem 0 0;
    max-width: 34em;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .intro-next {
    display: block;
    margin: 2.4rem 0 0;
    font-family: var(--serif);
    font-weight: 500;
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.25;
    color: var(--evening);
  }


  .list { padding: 0; }

  .item,
  .item.is-near,
  .item.is-active {
    display: block;
    position: relative;
    height: 100svh;
    min-height: 520px;
    padding: 0;
    border: 0;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .item::before { content: none; }

  .item:last-child { border: 0; }

  .phone {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .row {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 5.5rem 22px 28px;
    background: linear-gradient(to top, rgba(10, 18, 28, 0.88) 0%, rgba(10, 18, 28, 0.55) 45%, rgba(10, 18, 28, 0) 100%);
  }

  .num,
  .item.is-near .num,
  .item.is-active .num { margin-bottom: 0.6rem; color: #f0c2a8; }

  h2,
  .item.is-near h2,
  .item.is-active h2 {
    color: #fbf7f0;
  }

  .tag,
  .item.is-near .tag,
  .item.is-active .tag {
    color: rgba(251, 247, 240, 0.9);
    max-width: 22ch;
  }

  .end {
    scroll-snap-align: start;
    margin: 0;
    padding: 12vh 22px;
    background: var(--cream-soft);
  }


  .site-nav { gap: 0.7rem; }

  .site-nav a,
  .site-nav span { font-size: 0.7rem; letter-spacing: 0.04em; }
}

.spacer,
.veil { display: none; }

.sheet {
  transition: transform 1.2s var(--glide), opacity 1.05s var(--glide);
}

.stage.is-away {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 861px) {
  .stage.has-experience .frame { cursor: pointer; }

  .stage.is-open .spacer { display: block; }

  .stage.is-open .frame {
    position: fixed;
    inset: 0;
    z-index: 3;
    transition: none;
  }

  .stage.is-open .stack,
  .stage.is-open .living {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .stage.is-open .living {
    width: min(36rem, 72vw);
    background: none;
  }

  .stage.is-open .frame img {
    max-width: none;
    transition:
      left 1.2s var(--glide),
      top 1.2s var(--glide),
      width 1.2s var(--glide),
      height 1.2s var(--glide),
      opacity 0.8s var(--ease);
  }

  .stage.is-open .veil {
    display: block;
    position: fixed;
    z-index: 4;
    top: 0;
    bottom: 0;
    left: calc(var(--col) * 0.58);
    right: 0;
    pointer-events: none;
    background: linear-gradient(
      to right,
      rgba(251, 247, 240, 0) 0,
      rgba(251, 247, 240, 0.03) calc(var(--fade) * 0.14),
      rgba(251, 247, 240, 0.12) calc(var(--fade) * 0.29),
      rgba(251, 247, 240, 0.28) calc(var(--fade) * 0.43),
      rgba(251, 247, 240, 0.48) calc(var(--fade) * 0.57),
      rgba(251, 247, 240, 0.68) calc(var(--fade) * 0.71),
      rgba(251, 247, 240, 0.86) calc(var(--fade) * 0.86),
      #fbf7f0 var(--fade)
    );
    transition: transform 1.2s var(--glide);
  }

  .stage.is-open .sheet {
    position: relative;
    z-index: 5;
  }

  .stage.is-full .veil,
  .stage.is-full .sheet {
    transform: translateX(110%);
  }

  .page .page-photo,
  .page .page-caption { display: none; }

  .page-hero { background: transparent; }
}

/* An experience page scrolls on its own, over the list. It stops dead at its top and at its
   footer instead of bouncing, since a bounce would pull it aside and show the list behind. */
.page {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: auto;
  overscroll-behavior: none;
  background: transparent;
}

html.is-in-experience,
html.is-in-experience body { overscroll-behavior: none; }

.page-hero {
  position: relative;
  height: 100vh;
  background: transparent;
}

.page-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-back,
.page-return {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.page-back {
  position: absolute;
  z-index: 2;
  top: 32px;
  left: 34px;
  color: #fbf7f0;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.7, 0, 0.28, 1);
}

.page.is-ready .page-back { opacity: 1; }

.page-caption,
.portal-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 7.5rem 2.4rem 2.1rem;
  background: linear-gradient(to top, rgba(10, 18, 28, 0.78) 0%, rgba(10, 18, 28, 0.2) 58%, rgba(10, 18, 28, 0) 100%);
  color: #fbf7f0;
  pointer-events: none;
}

.page-caption { opacity: 0; }

.page.is-ready .page-caption { opacity: 1; }

.page-num,
.portal-num {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #f0c2a8;
}

.page-title,
.portal-name {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--type-title);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fbf7f0;
}

.page-tag,
.portal-tag {
  margin: 0.5rem 0 0;
  font-size: 1.02rem;
  color: rgba(251, 247, 240, 0.88);
}

.page-body {
  padding: var(--space-section) 0 0;
  background: var(--cream-soft);
}

.story-open,
.story {
  width: min(34rem, calc(100% - 18vw));
  margin-left: 9vw;
  margin-right: auto;
}

.story-kicker {
  margin: 0 0 1.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.story-name {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--type-title);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--terracotta);
}

.story-tag {
  margin: 1.25rem 0 0;
  max-width: 22em;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.story { margin-top: 8vh; }

.story-lead {
  margin: 0;
  max-width: 16em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--terracotta);
}

.story-prose p {
  margin: 1.7rem 0 0;
  max-width: 36em;
  font-size: var(--type-body);
  line-height: var(--type-leading);
  color: var(--ink);
}

/* An experience without a lead line starts straight with its description. */
.story-lead:empty { display: none; }

.story-lead:empty + .story-prose p:first-child { margin-top: 0; }

.story-brochure {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.8rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.story-brochure[hidden] { display: none; }

.story-brochure:hover { color: color-mix(in srgb, var(--terracotta) 80%, #000); }

/* About the hosts: who leads the experience, under its description. */
.hosts {
  width: min(34rem, calc(100% - 18vw));
  margin: 8vh auto 0 9vw;
}

.hosts[hidden] { display: none; }

.hosts-title,
.glance-title,
.weekend-title,
.staying-title {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.host-one + .host-one { margin-top: 2rem; }

.host-one h4 {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* The host's role, under the name, and their Instagram. */
.host-role {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.host-insta {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}

.host-insta:hover { color: var(--terracotta); }

.host-one p {
  margin: 0;
  max-width: 36em;
  font-size: var(--type-body);
  line-height: var(--type-leading);
  color: var(--ink);
}

/* A glimpse of the weekend: one panel per day. Closed, a day shows its theme and its
   highlights in italics; opened, it adds the description. */
.weekend {
  width: min(40rem, calc(100% - 18vw));
  margin: 10vh 0 0 9vw;
}

.weekend[hidden] { display: none; }

.weekend-days { border-bottom: 1px solid rgba(193, 95, 53, 0.25); }

.day { border-top: 1px solid rgba(193, 95, 53, 0.25); }

.day summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.2rem;
  padding: 1.35rem 0;
  list-style: none;
  cursor: pointer;
}

.day summary::-webkit-details-marker { display: none; }

.day summary:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
}

.day-name {
  grid-column: 1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000;
}

.day-theme {
  grid-column: 1;
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.day-peek {
  grid-column: 1;
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* The day's place in the weekend, before its name: 01, 02, 03. */
.day-num {
  margin-right: 0.7rem;
  color: var(--terracotta);
}

/* A small chevron that turns up when the day is open. */
.day-sign {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  width: 10px;
  height: 10px;
  margin: 0 4px 6px 0;
  border-right: 1.5px solid var(--terracotta);
  border-bottom: 1.5px solid var(--terracotta);
  transform: rotate(45deg);
  transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.8;
}

.day.is-open .day-sign {
  margin-bottom: 0;
  margin-top: 6px;
  transform: rotate(-135deg);
}

.day.is-open .day-sign,
.day summary:hover .day-sign { opacity: 1; }

.day-body { overflow: hidden; }

.day-text {
  margin: 0;
  padding: 0 2.6rem 1.5rem 0;
  max-width: 36em;
  font-size: var(--type-body);
  line-height: var(--type-leading);
  color: var(--ink);
}


.weekend-note {
  margin: 1.3rem 0 0;
  max-width: 34em;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Staying at KAVA: a short note that leads to the Stays page. */
.staying {
  width: min(40rem, calc(100% - 18vw));
  margin: 10vh 0 0 9vw;
}

.staying p {
  margin: 0;
  max-width: 30em;
  font-size: var(--type-body);
  line-height: var(--type-leading);
  color: var(--ink);
}

.staying-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--cream-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s var(--ease);
}

.staying-link:hover { background: color-mix(in srgb, var(--terracotta) 85%, #000); }

.staying-link:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
}

/* Ready to join us? The few lines on how booking works, above the form. */
.register-intro { margin-top: 1.1rem; }

.register-intro p {
  margin: 0 0 0.6rem;
  max-width: 34em;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.register-done-line + .register-done-line { margin-top: 0.5rem; }

/* Places left, or "full: join the waitlist", once the registrations sheet is connected. */
.register-places {
  margin: 0.5rem 0 0;
  max-width: 34em;
  font-size: 0.98rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--terracotta);
}

/* At a glance: a calm card of label and value rows. */
.glance-card {
  width: min(48rem, calc(100% - 18vw));
  margin: 8vh 0 0 9vw;
  padding: 1.7rem 2rem 0.7rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--terracotta) 9%, var(--cream-soft));
}

.glance-title { margin-bottom: 0.5rem; }

.glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.6rem;
  margin: 0;
}

.glance > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid rgba(193, 95, 53, 0.2);
}

.glance > div:nth-child(-n + 2) { border-top: 0; }

.glance dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
}

.glance dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #000;
}

.register {
  width: min(40rem, calc(100% - 18vw));
  margin: 13vh 0 0 9vw;
  padding: 2.6rem 0 0;
  border-top: 1px solid rgba(193, 95, 53, 0.4);
}

.register-kicker {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.register-title {
  margin: 0;
  max-width: 16em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--type-section);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--evening);
}

.register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2.2rem;
}

.register-form[hidden] { display: none; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-wide { grid-column: 1 / -1; }

.field-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* A longer question's hint sits on its own line. */
.field-wide .field-label em {
  display: block;
  margin: 0.45rem 0 0;
}

.field-label em {
  margin-left: 0.4em;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #8b939b;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 0.55rem 0 0.6rem;
  border: 0;
  border-bottom: 1px solid rgba(42, 46, 52, 0.28);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--type-body);
  transition: border-color 0.35s var(--ease);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23c15f35' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 0.2rem center;
  cursor: pointer;
}

.field textarea {
  min-height: 3.4rem;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--terracotta);
}

.field.is-missing input { border-bottom-color: var(--terracotta); }

.register-send {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  margin-top: 0.6rem;
}

.register-send button {
  padding: 0.95rem 2.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.register-send button:hover { background: color-mix(in srgb, var(--terracotta) 86%, #000); }

.register-send button:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.register-error {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.92rem;
  color: var(--terracotta);
}

.register-error:empty { display: none; }

/* The way back sits just below the Register button. */
.page-return {
  display: inline-block;
  margin: 7vh 0 14vh;
  color: var(--ink-soft);
}

.register-done {
  margin-top: 2rem;
  outline: none;
  animation: register-in 0.8s var(--ease) both;
}

.register-done-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: var(--type-section);
  line-height: 1.1;
  color: var(--terracotta);
}

.register-done-line {
  margin: 1rem 0 0;
  max-width: 30em;
  font-size: var(--type-body);
  line-height: var(--type-leading);
  color: var(--ink);
}

@keyframes register-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.story-figure {
  width: min(58rem, calc(100% - 16vw));
  margin: 11vh 0 11vh 9vw;
}

.story-figure img {
  width: 100%;
  height: auto;
}

.portal {
  position: fixed;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}

.portal-sharp,
.portal-soft {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-sharp { opacity: 0; }

.portal.is-full .portal-sharp {
  opacity: 1;
  transition: opacity 0.45s cubic-bezier(0.7, 0, 0.28, 1);
}

.portal.is-full .portal-soft {
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.7, 0, 0.28, 1);
}

@media (max-width: 860px) {
  .page {
    background: transparent;
    overflow: hidden;
    transform: translateY(101%);
    transition: transform 1.05s var(--glide);
  }

  /* Cream behind the page too, so a phone that still bounces (iOS before 16) shows cream, not the list. */
  .page.is-ready {
    overflow: auto;
    overscroll-behavior: none;
    background: var(--cream-soft);
    transform: none;
    touch-action: pan-y;
  }

  .page-hero { display: none; }

  .page-body {
    min-height: 100%;
    padding: 10vh 0 14vh;
    background: var(--cream-soft);
  }

  .story-open,
  .story {
    width: calc(100% - 44px);
    margin-left: 22px;
  }

  .story-name { color: var(--terracotta); }

  .hosts {
    width: calc(100% - 44px);
    margin: 6vh 0 0 22px;
  }

  .weekend {
    width: calc(100% - 44px);
    margin: 7vh 0 0 22px;
  }

  .day-theme { font-size: 1.2rem; }

  .day-peek { font-size: 1.05rem; }

  .day-text { padding-right: 0; }

  .staying {
    width: calc(100% - 44px);
    margin: 7vh 0 0 22px;
  }

  .glance-card {
    width: calc(100% - 44px);
    margin: 7vh 0 0 22px;
    padding: 1.35rem 1.25rem 0.5rem;
    border-radius: 18px;
  }

  .glance { grid-template-columns: minmax(0, 1fr); }

  .glance > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0.95rem 0;
  }

  .glance > div:nth-child(2) { border-top: 1px solid rgba(193, 95, 53, 0.16); }

  .register {
    width: calc(100% - 44px);
    margin: 9vh 0 0 22px;
  }

  .register-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.3rem;
  }

  .field input,
  .field select,
  .field textarea { font-size: 16px; }

  .register-send button { width: 100%; }

  .story-figure {
    width: calc(100% - 44px);
    margin: 6vh 0 6vh 22px;
  }

  .story-figure img { height: auto; }

  .page-return { margin-bottom: 10vh; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-kicker,
  .intro-more,
  .intro h1 .word {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .frame img,
  .living,
  .item,
  .item::before,
  h2,
  .tag,
  .num,
  .portal-sharp,
  .portal-soft,
  .page-back,
  .stage,
  .frame,
  .frame img,
  .sheet,
  .veil,
  .page { transition: none; }

  .living.tick .living-num,
  .living.tick .living-name,
  .living.tick .living-tag { animation: none; }
}

html:has(body.gallery-page),
body.gallery-page { overflow-x: hidden; }

.gallery-page .site-head,
.stays-page .site-head {
  padding-left: 7vw;
  padding-right: 7vw;
}

.gallery-page .eyebrow { color: color-mix(in srgb, var(--kava-amber) 78%, #000); }

.reel {
  width: min(1120px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 4vh 0 8vh;
}

.reel-top { margin-bottom: 1.15rem; }

.reel-top h1 {
  max-width: 11em;
  /* The Gallery's amber, deepened just enough to read well as a heading. */
  color: color-mix(in srgb, var(--kava-amber) 82%, #000);
}

.reel-lead {
  margin: 0.9rem 0 0;
  max-width: 28em;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: var(--type-leading);
}

.reel-frame {
  position: relative;
  height: clamp(360px, calc(100vh - 500px), 680px);
  background: #efe8dc;
  overflow: hidden;
}

.reel-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.reel-photo.is-show { opacity: 1; }

.reel-nav {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 16%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.reel-prev { left: 0; }
.reel-next { right: 0; }

.reel-nav::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border-top: 1.5px solid var(--evening);
  border-right: 1.5px solid var(--evening);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.reel-prev::after { left: 26px; transform: translateY(-50%) rotate(-135deg); }
.reel-next::after { right: 26px; transform: translateY(-50%) rotate(45deg); }

.reel-frame:hover .reel-nav::after,
.reel-nav:focus-visible::after { opacity: 1; }

.reel-nav:focus-visible { outline: none; }

.reel-bar {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(42, 46, 52, 0.12);
}

.reel-bar span {
  display: block;
  height: 100%;
  background: var(--kava-amber);
  transform: scaleX(0);
  transform-origin: left center;
}

.reel-count {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.reel-count span { color: color-mix(in srgb, var(--kava-amber) 78%, #000); }

.reel-strip {
  display: flex;
  gap: 8px;
  margin-top: 0.9rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.reel-strip::-webkit-scrollbar { display: none; }

.reel-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 68px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #efe8dc;
  opacity: 0.42;
  cursor: pointer;
  transition: opacity 0.35s var(--ease);
}

.reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.reel-thumb.is-on {
  opacity: 1;
  box-shadow: inset 0 -2px 0 var(--kava-amber);
}

.reel-thumb:focus-visible {
  outline: 2px solid var(--kava-amber);
  outline-offset: 2px;
}

/* Testimonials on the Gallery page run edge to edge after the pictures, in the page's orange. */
.reel-voices {
  width: 100vw;
  margin: 3.4rem 0 0 calc(50% - 50vw);
  padding: 9vh 0;
}

.reel-voices .voices-kicker,
.reel-voices .voice-came { color: color-mix(in srgb, var(--kava-amber) 72%, #000); }

.reel-voices .voices-meter { background: color-mix(in srgb, var(--kava-amber) 28%, transparent); }

.reel-voices .voices-meter span { background: var(--kava-amber); }

/* "More of KAVA, on Instagram": the handle reads plainly as a link. */
.reel-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin: 2.8rem 0 0;
}

.reel-follow p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: color-mix(in srgb, var(--kava-amber) 70%, #000);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.insta-link svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.insta-arrow { font-size: 1rem; }

.insta-link:hover {
  background: color-mix(in srgb, var(--kava-amber) 70%, #000);
  color: #fff;
}

.insta-link:focus-visible {
  outline: 2px solid var(--kava-amber);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .gallery-page .site-head,
  .stays-page .site-head {
    padding-left: 18px;
    padding-right: 18px;
  }

  .reel {
    width: calc(100% - 36px);
    padding: 5vh 0 8vh;
  }

  .reel-frame { height: clamp(280px, calc(100svh - 340px), 520px); }

  .reel-nav::after { opacity: 0.85; }

  .reel-thumb { width: 76px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-photo { transition: none; }
}

/* Gallery on desktop: a cinema strip. Pictures keep their own shape, the current one sits
   centred at full strength, and its neighbours wait dimmed on either side. */
.reel-track { display: none; }

@media (min-width: 861px) {
  .reel-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
    column-gap: 3rem;
    align-items: end;
    margin-bottom: 2rem;
  }

  .reel-top .eyebrow,
  .reel-top h1 { grid-column: 1; }

  .reel-top .reel-lead {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0 0 0.4rem;
  }

  .reel-frame {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: clamp(420px, calc(100vh - 360px), 780px);
    background: none;
  }

  .reel-photo { display: none; }

  .reel-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    gap: 16px;
    transition: transform 1.15s var(--glide), opacity 0.38s var(--ease);
    will-change: transform;
  }

  .reel-track.is-hidden { opacity: 0; }

  .reel-slide {
    flex: none;
    height: 100%;
    aspect-ratio: var(--ratio);
    background: #efe8dc;
    opacity: 0.32;
    cursor: pointer;
    transition: opacity 1s var(--ease);
  }

  .reel-slide.is-on {
    opacity: 1;
    cursor: default;
  }

  .reel-slide:not(.is-on):hover { opacity: 0.55; }

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

  .reel-nav { width: 7vw; }

  .reel-bar {
    left: max(var(--gutter), calc(50% - 560px));
    right: max(var(--gutter), calc(50% - 560px));
    bottom: -14px;
  }

  .reel-count { margin-top: 1.6rem; }
}

@media (min-width: 861px) and (prefers-reduced-motion: reduce) {
  .reel-track,
  .reel-slide { transition: none; }
}

html:has(body.about-page),
body.about-page {
  overflow-x: hidden;
}

.about-page .site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  padding: 16px 7vw;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background 0.5s var(--glide), backdrop-filter 0.5s var(--glide), -webkit-backdrop-filter 0.5s var(--glide);
}

.about-page .site-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  bottom: -28px;
  pointer-events: none;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 46%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 46%, transparent 100%);
}

.about-page.is-reading .site-head::before { opacity: 0; }

.about-page.is-reading .site-head {
  background: rgba(251, 247, 240, 0.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.about-page .mark { display: grid; }

.about-page .mark img {
  grid-area: 1 / 1;
  transition: opacity 0.45s var(--glide);
}

.about-page .logo-on-film { opacity: 0; }
.about-page .logo-on-cream { opacity: 1; }
.about-page .site-nav a,
.about-page .site-nav span {
  color: var(--ink-soft);
  transition: color 0.45s var(--glide);
}

.about-page .site-nav a[aria-current="page"],
.about-page .site-nav a:hover { color: var(--evening); }

.about-page.is-reading .site-nav a,
.about-page.is-reading .site-nav span { color: var(--ink-soft); }

.about-page.is-reading .site-nav a[aria-current="page"],
.about-page.is-reading .site-nav a:hover { color: var(--evening); }

.about-note { background: var(--cream); }

/* The team photo; it opens the Gallery page. */
.about-picture {
  padding: 9vh var(--gutter) 0;
  background: var(--cream);
}

.about-photo {
  position: relative;
  display: block;
  max-width: 58rem;
  overflow: hidden;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}

.about-photo.is-seen {
  opacity: 1;
  transform: none;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease);
}

.about-photo:hover img { transform: scale(1.03); }

.about-photo-link {
  position: absolute;
  left: 1.2rem;
  bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: rgba(251, 247, 240, 0.92);
  color: var(--evening);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease);
}

.about-photo-link span { transition: transform 0.35s var(--ease); }

.about-photo:hover .about-photo-link span { transform: translateX(4px); }

.about-photo:focus-visible {
  outline: 2px solid var(--kava-olive);
  outline-offset: 4px;
}

/* The people: Kuhu's letter. */
/* Bottom padding gives the letter room above the thin light band (the margin below, where the
   page background shows) that separates it from the voices. */
.about-people {
  padding: 10vh var(--gutter) 8vh;
  margin-bottom: 1.05rem;
  background: var(--cream);
}

.about-people-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--type-section);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--evening);
}

.about-people .about-prose { margin-top: 1.2rem; }

@media (max-width: 860px) {
  .about-picture { padding: 7vh 22px 0; }

  .about-people { padding: 8vh 22px 6vh; }

  .about-photo-link {
    left: 0.8rem;
    bottom: 0.8rem;
    padding: 0.6rem 0.95rem;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-photo {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.about-spread {
  display: flex;
  align-items: center;
  padding: calc(var(--space-section) + 4rem) var(--gutter) 0;
  box-sizing: border-box;
}

.about-letter {
  margin: 0;
  max-width: 40rem;
}

.about-title {
  margin: 0;
  max-width: 12em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--type-title);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--evening);
  opacity: 0;
  filter: blur(4px);
  transform: translateY(0.4rem);
  transition:
    opacity 0.95s var(--ease),
    filter 0.95s var(--ease),
    transform 1.1s var(--ease);
}

.about-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin: 1.2rem 0 0;
  background: var(--kava-olive);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.05s var(--ease) 0.4s;
}

.about-title.is-seen {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.about-title.is-seen::after { transform: scaleX(1); }

.about-prose {
  margin-top: 1.8rem;
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: var(--type-leading);
  color: var(--ink);
}

.about-prose p,
.about-kicker,
.about-people-title,
.voices-kicker,
.voices-title {
  margin: 0 0 1.05rem;
  opacity: 0;
  filter: blur(3px);
  transform: translateY(0.45rem);
  transition:
    opacity 0.85s var(--ease),
    filter 0.85s var(--ease),
    transform 1s var(--ease);
}

.about-prose p.is-seen,
.about-kicker.is-seen,
.about-people-title.is-seen,
.voices-kicker.is-seen,
.voices-title.is-seen {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.about-prose .about-close {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--type-serif);
  line-height: 1.3;
  color: var(--evening);
}

/* "Knowledge, Adventure, Values & Abundance", each word in the colour of its letter in the logo. */
.kava-values { font-weight: 600; }
.kava-values .is-k { color: var(--kava-olive); }
.kava-values .is-a { color: var(--kava-blue); }
.kava-values .is-v { color: var(--kava-amber); }
.kava-values .is-a2 { color: var(--terracotta); }

.voices {
  padding: var(--space-section) 0;
  background: var(--cream);
  overflow: hidden;
}

.voices-head {
  width: min(44rem, calc(100% - 2 * var(--gutter)));
  margin: 0 auto 4.2rem;
}

.voices-kicker,
.about-kicker {
  margin: 0 0 0.9rem;
  font-size: var(--type-kicker);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--kava-olive) 72%, #000);
}

/* A thin rule above the small headings "The people" and "In their words" (not "The place"). */
.voices-kicker::before,
.about-people .about-kicker::before {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin-bottom: 1.1rem;
  background: currentColor;
}

.voices-title {
  margin: 0;
  max-width: 14em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--type-section);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--evening);
}

.voices-reel { touch-action: pan-y; }

.voices-window {
  display: grid;
  width: min(44rem, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}

.voice {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateX(2.4rem);
  pointer-events: none;
  transition: opacity 0.7s var(--ease), transform 0.85s var(--ease);
}

.voice.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.voice.is-leave { transform: translateX(-2.4rem); }

.voices-reel.is-back .voice:not(.is-on):not(.is-leave) { transform: translateX(-2.4rem); }

.voices-reel.is-back .voice.is-leave { transform: translateX(2.4rem); }

.voice blockquote {
  margin: 0;
  max-width: 16em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.85rem, 2.8vw, 2.55rem);
  line-height: 1.22;
  color: var(--evening);
}

.voice.is-mid blockquote { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }

.voice.is-long blockquote { font-size: clamp(1.35rem, 2vw, 1.85rem); }

.voice blockquote::before { content: "“"; }

.voice blockquote::after { content: "”"; }

.voice-who {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 1.6rem 0 0;
}

.voice-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.voice-came {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--kava-olive) 72%, #000);
}

.voices-meter {
  width: min(44rem, calc(100% - 18vw));
  height: 1px;
  margin: 2.4rem auto 0;
  background: rgba(161, 173, 58, 0.28);
  overflow: hidden;
}

.voices-meter span {
  display: block;
  height: 100%;
  background: var(--kava-olive);
  transform: scaleX(0);
  transform-origin: left center;
}

.stanza { display: block; }

.stanza + .stanza { margin-top: 0.85em; }

.line { display: block; }

.line-close { font-style: italic; }

.about-letter .word {
  color: rgba(27, 58, 91, 0.5);
  transition: color 0.5s var(--glide);
}

.about-letter .word.is-lit { color: var(--evening); }

.album-scene {
  position: relative;
  padding: 4vh 0 4vh;
  background: var(--cream);
}

.hour-wash {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 240%;
  height: 320%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse 42% 36% at 50% 50%,
    color-mix(in srgb, var(--wash) 46%, transparent) 0%,
    color-mix(in srgb, var(--wash) 24%, transparent) 46%,
    transparent 72%
  );
}

.hour-wash-back { opacity: 0; }



.album {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 18rem));
  margin: 0 auto;
}

.window-row {
  position: relative;
  width: 100%;
}

.window {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1.77 / 1;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mat, var(--evening)) 32%, transparent);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 0.6s var(--ease), background 0.6s var(--ease);
}

.window.is-dragging { cursor: grabbing; }

.hour {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.hour-back { z-index: 0; opacity: 0; }
.hour-front { z-index: 1; }

.album-time {
  height: 2px;
  margin-top: 1.1rem;
  background: rgba(27, 58, 91, 0.1);
  overflow: hidden;
  transition: opacity 0.6s var(--ease);
}

.album-time span {
  display: block;
  height: 100%;
  background: var(--next, var(--kava-amber));
  transform: scaleX(0);
  transform-origin: left center;
}

.album-time.is-turning span { opacity: 0; transition: opacity 0.5s var(--ease); }

.album-time.is-off { opacity: 0; }

.hour-lines {
  position: relative;
  min-height: 0;
  margin-top: 0;
}

.hour-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--evening);
}

.hour-line-back { opacity: 0; }

.album-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(27, 58, 91, 0.28);
  border-radius: 50%;
  background: transparent;
  color: var(--evening);
  cursor: pointer;
  transition: border-color 0.35s var(--glide), color 0.35s var(--glide), opacity 0.35s var(--glide);
}

.album-prev { left: -7.75rem; }
.album-next { right: -7.75rem; }

.album-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.album-arrow:hover {
  border-color: var(--evening);
  color: var(--evening);
}

@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .window-row::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: -9rem;
    right: -9rem;
  }

  .window-row .album-arrow { opacity: 0; }

  .window-row:hover .album-arrow,
  .window-row:focus-within .album-arrow { opacity: 1; }

  .window-row:hover .album-arrow:disabled,
  .window-row:focus-within .album-arrow:disabled { opacity: 0.28; }
}

.album-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.album-arrow:disabled {
  opacity: 0.28;
  cursor: default;
  border-color: rgba(27, 58, 91, 0.14);
  color: var(--evening);
}

.album-hint {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.loupe {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(16, 36, 58, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition:
    background 0.7s cubic-bezier(0.32, 0.08, 0.24, 1),
    backdrop-filter 0.7s cubic-bezier(0.32, 0.08, 0.24, 1),
    -webkit-backdrop-filter 0.7s cubic-bezier(0.32, 0.08, 0.24, 1);
}

.loupe[hidden] { display: none; }

.loupe.is-on {
  background: rgba(16, 36, 58, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.loupe img {
  position: fixed;
  z-index: 1;
  object-fit: cover;
  transform-origin: 0 0;
}

.loupe-close {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 4;
  padding: 0;
  border: 0;
  background: none;
  color: #fbf7f0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.loupe-arrow {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(251, 247, 240, 0.45);
  border-radius: 50%;
  background: rgba(251, 247, 240, 0.92);
  color: var(--evening);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.32, 0.08, 0.24, 1);
}

.loupe-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loupe.is-on .loupe-arrow { opacity: 1; }

.loupe.is-on .loupe-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.loupe-line {
  position: fixed;
  margin: 0;
  color: #fbf7f0;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.35;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.32, 0.08, 0.24, 1);
}

.loupe.is-on .loupe-line { opacity: 1; }

@media (max-width: 860px) {
  html:has(body.about-page) {
    scroll-snap-type: none;
    scroll-behavior: smooth;
  }

  body.about-page { touch-action: manipulation; }

  .about-page .site-head {
    padding: 14px 22px;
    background: transparent;
  }

  .about-page.is-reading .site-head {
    background: rgba(251, 247, 240, 0.22);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }



  .play-title { font-size: clamp(1.5rem, 6vw, 2rem); }

  .about-sound {
    left: 22px;
    bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .about-note { height: auto; }

  .about-spread { padding: calc(8vh + 3.5rem) 22px 0; }


  .about-prose { font-size: 1.08rem; }

  .album-scene { padding: 1.1rem 0 1.8rem; }

  .album {
    width: calc(100% - 44px);
    margin: 0 auto;
  }

  .album-prev { left: 8px; }
  .album-next { right: 8px; }

  .hour-line { font-size: 1.02rem; }

  .album-arrow,
  .album-arrow:hover,
  .album-arrow:active,
  .album-arrow:focus {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: none;
    color: #fbf7f0;
    filter: drop-shadow(0 1px 2px rgba(16, 12, 8, 0.55));
  }

  .album-arrow svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.5;
  }

  .album-arrow:disabled {
    border: 0;
    opacity: 0.4;
    color: #fbf7f0;
  }

  .album-time {
    width: 38%;
    height: 1px;
    margin: 1.15rem auto 0;
  }

  .album-hint { font-size: 1.05rem; }


  .voices { padding: 10vh 0 8vh; }

  .voices-head,
  .voices-window,
  .voices-meter { width: calc(100% - 44px); }

  .voices-head { margin-bottom: 2.6rem; }

  .voice blockquote { font-size: clamp(1.55rem, 6.4vw, 1.9rem); }


  .loupe-arrow {
    width: 40px;
    height: 40px;
    background: rgba(251, 247, 240, 0.22);
    border-color: rgba(251, 247, 240, 0.72);
    color: #fbf7f0;
  }

  .loupe-close {
    top: max(18px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-clip,
  .about-cue,
  .about-screen::after,
  .about-page .site-head,
  .about-page .site-nav a,
  .about-page .site-nav span,
  .about-page .mark img,
  .about-letter .word,
  .hour,
  .hour-line,
  .album-arrow,
  .loupe,
  .loupe img,
  .loupe-line,
  .loupe-arrow,
  .album-hint { transition: none; }

  .about-note { height: auto; }

  .about-spread {
    position: static;
    height: auto;
    padding: 18vh 8vw 10vh;
  }

  .about-letter { --open: 1; }

  .about-letter .line { transform: none; }

  .about-letter .word { color: var(--evening); }

  .about-title,
  .about-prose p,
  .about-title::after,
  .about-kicker,
  .about-people-title,
  .voices-kicker,
  .voices-title {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .voice { transition: none; }
  .voice.is-on { opacity: 1; transform: none; }

}

html:has(body.host-page),
.host-page {
  min-height: 100vh;
  background: #e4d3bc;
  scrollbar-gutter: stable;
}

.host-page .site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 22px 7vw 14px;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  z-index: 6;
  transition: background 0.45s var(--glide), backdrop-filter 0.45s var(--glide), -webkit-backdrop-filter 0.45s var(--glide);
}

.host-page.is-paper .site-head {
  background: rgba(251, 247, 240, 0.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.host-page .mark { display: grid; }

.host-page .mark img {
  grid-area: 1 / 1;
  transition: opacity 0.45s var(--glide);
}


/* The header sits on white, then on the paper desk, so it always uses the coloured logo and dark links. */
.host-page .logo-on-navy { opacity: 0; }

.host-page .site-nav a,
.host-page .site-nav span { color: var(--ink-soft); }

.host-page .site-nav a[aria-current="page"],
.host-page .site-nav a:hover { color: var(--evening); }

.host-desk {
  width: min(860px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}

.host-open {
  width: 100%;
  margin: 0;
  background: #fff;
  padding: calc(9vh + 5.2rem) 0 0;
}

.host-lead {
  width: min(680px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding-bottom: var(--space-section);
}

.host-lead .word {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(0.28em);
  transition:
    opacity 0.7s var(--ease) calc(var(--i) * 36ms + 0.7s),
    filter 0.7s var(--ease) calc(var(--i) * 36ms + 0.7s),
    transform 0.8s var(--ease) calc(var(--i) * 36ms + 0.7s);
}

.host-kicker .word,
.host-lead h1 .word {
  transition:
    opacity 0.85s var(--ease) calc(var(--i) * 110ms + 160ms),
    filter 0.85s var(--ease) calc(var(--i) * 110ms + 160ms),
    transform 0.95s var(--ease) calc(var(--i) * 110ms + 160ms);
}

.host-lead.is-seen .word {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.host-kicker {
  margin: 0 0 1.3rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--type-serif);
  line-height: 1.24;
  color: var(--kava-blue);
}

.host-page h1 {
  max-width: 12em;
  font-size: var(--type-title);
  line-height: 1.02;
  color: var(--ink);
}

.host-page h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin: 1.5rem 0 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.05s var(--ease) 1.05s;
}

.host-lead.is-seen h1::after { transform: scaleX(1); }

.host-title-caret {
  display: inline-block;
  width: 0.065em;
  height: 0.78em;
  margin-left: 0.08em;
  background: var(--ink);
  vertical-align: -0.06em;
  animation: host-caret 0.9s steps(1) infinite;
}

.host-title-caret.is-done {
  opacity: 0;
  animation: none;
  transition: opacity 0.4s ease;
}

@keyframes host-caret {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.host-note,
.host-open::after {
  opacity: 0;
}

.host-page.is-typed .host-note,
.host-page.is-typed .host-open::after {
  animation: host-title-in 0.9s var(--ease) both;
}

.host-open::after { display: none; }

@keyframes host-title-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.host-note {
  position: relative;
  max-width: 28em;
  margin-top: 1.7rem;
  padding: 0;
  border: 0;
  opacity: 1;
}

.host-note::after { display: none; }

.host-note-mark {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(251, 247, 240, 0.88);
}

.host-how {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: var(--type-leading);
  color: var(--ink);
}

.host-how em {
  font-style: italic;
  color: var(--evening);
}

.host-guide {
  appearance: none;
  display: inline-block;
  text-decoration: none;
  margin: 1.2rem 0 0;
  padding: 0 0 0.1rem;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--kava-blue) 60%, transparent);
  background: none;
  color: var(--kava-blue);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--type-serif);
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.host-guide:hover {
  color: var(--evening);
  border-bottom-color: var(--evening);
}

.host-guide:focus-visible {
  outline: 2px solid var(--kava-blue);
  outline-offset: 3px;
}

.host-desk {
  position: relative;
  margin-bottom: 16vh;
  padding-top: 8vh;
}

.host-letter {
  position: relative;
  margin: 0;
  padding: clamp(2.5rem, 6vh, 3.8rem) clamp(2.4rem, 6.5vw, 5.4rem) clamp(2.2rem, 5vh, 3.2rem);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255, 252, 246, 0.9), transparent 42%),
    linear-gradient(180deg, #fbf6ec 0%, #f4ead9 100%);
  box-shadow:
    inset 0 0 0 1px rgba(120, 84, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 1px rgba(90, 60, 30, 0.04),
    0 22px 40px -24px rgba(16, 36, 58, 0.28),
    0 46px 80px -36px rgba(16, 36, 58, 0.22);
  transform: none;
  transform-origin: 50% 50%;
  transition: transform 0.32s var(--glide), opacity 0.16s linear;
}

.host-letter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: var(--kava-blue);
  pointer-events: none;
}

.letter-body .letter-invite {
  margin: 0 0 1.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--type-serif);
  line-height: 1.3;
  color: var(--kava-blue);
}

.host-letter::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    radial-gradient(rgba(110, 78, 40, 0.09) 0.6px, transparent 0.7px),
    radial-gradient(rgba(255, 255, 255, 0.55) 0.5px, transparent 0.65px);
  background-size: 3px 3px, 5px 4px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: multiply;
}

.letter-body {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.18rem, 1.5vw, 1.45rem);
  line-height: 1.55;
  color: #1e354e;
  transition: opacity 0.35s var(--glide);
}

.letter-body p { margin: 0 0 0.5em; }

.letter-free { display: none; }

.host-letter.is-own .letter-composed { display: none; }

.host-letter.is-own .letter-free { display: block; }

.letter-own {
  display: block;
  min-height: 6.5em;
  margin: 0.3em 0 0.4em;
  border-bottom: 0;
  white-space: pre-wrap;
}

.letter-own:focus { border-bottom: 0; }

.letter-mode {
  display: inline-block;
  margin: 0.8rem 0 0.2rem;
  padding: 0 0 0.12rem;
  border: 0;
  border-bottom: 1px solid var(--evening);
  background: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--evening);
  cursor: pointer;
}

.letter-mode:hover { color: var(--kava-blue); border-bottom-color: var(--kava-blue); }

.letter-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.letter-body .letter-date {
  margin: 0 0 1.7rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-soft);
}

.letter-stamps {
  --stamp-w: 96px;
  --stamp-h: 120px;
  --stamp-step: 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: -0.4rem -0.4rem 0 0;
}

.stamp-stack {
  position: relative;
  display: block;
  width: calc(var(--stamp-w) + 8px + var(--stamp-step) * 3);
  height: calc(var(--stamp-h) + 8px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.stamp-stack:focus-visible {
  outline: 1px solid var(--evening);
  outline-offset: 6px;
}

.stamp {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px;
  background: var(--ink);
  filter: drop-shadow(0 6px 10px rgba(16, 36, 58, 0.14));
  transition: transform 0.6s var(--ease);
}

.stamp[data-pos="0"] { z-index: 4; transform: none; }
.stamp[data-pos="1"] { z-index: 3; transform: translateX(calc(var(--stamp-step) * -1)); }
.stamp[data-pos="2"] { z-index: 2; transform: translateX(calc(var(--stamp-step) * -2)); }
.stamp[data-pos="3"] { z-index: 1; transform: translateX(calc(var(--stamp-step) * -3)); }

@media (hover: hover) and (pointer: fine) {
  .stamp-stack:hover .stamp[data-pos="0"] { transform: translateY(-3px); }
}

.letter-body .stamp-hint {
  margin: 0.6rem 0 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ink-soft);
}

.letter-stamp {
  display: block;
  width: var(--stamp-w);
  height: var(--stamp-h);
  padding: 8px;
  background: #fffdf8;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 4px at 6px 6px, transparent 96%, #000) -6px -6px / 12px 12px;
  mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 4px at 6px 6px, transparent 96%, #000) -6px -6px / 12px 12px;
}

.letter-stamp img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blank {
  padding: 0 0.06em;
  border-bottom: 1px solid rgba(67, 139, 192, 0.45);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  -webkit-user-select: text;
  user-select: text;
  font-style: italic;
  color: var(--ink);
  outline: none;
  cursor: text;
  transition: border-color 0.3s var(--ease);
}

.blank:empty {
  display: inline-block;
  min-width: 1.4em;
}

.blank:empty::before {
  content: attr(data-placeholder);
  color: rgba(27, 58, 91, 0.3);
}

.blank:focus { border-bottom-color: var(--kava-blue); }

.blank.is-missing {
  border-bottom-color: var(--kava-blue);
  animation: blank-nudge 0.5s var(--ease);
}

.blank.is-missing:empty::before { color: rgba(27, 58, 91, 0.72); }

.pick {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(27, 58, 91, 0.35);
  border-radius: 0;
  background: none;
  font: inherit;
  font-style: italic;
  line-height: 1.2;
  color: var(--evening);
  cursor: pointer;
}

.pick:hover { border-bottom-style: solid; }

.pick-word { display: inline-block; }

.pick.is-rolled .pick-word { animation: pick-roll 0.42s var(--ease); }

.count { white-space: nowrap; }

.count-step {
  display: inline;
  margin: 0 0.28em;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: 0.72em;
  line-height: 1;
  color: var(--evening);
  vertical-align: 0.08em;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.count-step:hover { color: var(--kava-blue); }

.count-value {
  display: inline-block;
  min-width: 1.1em;
  font-style: italic;
  text-align: center;
  color: var(--accent);
}

.count-aside {
  font-style: italic;
  font-size: 0.7em;
  color: var(--ink-soft);
}

.letter-sign { margin-top: 1.3em; }

.letter-sign p { margin: 0; }

.letter-body .letter-signature {
  min-height: 1.2em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.1;
}

.letter-signature.is-empty { color: rgba(27, 58, 91, 0.2); }

.letter-send {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.6rem 1.4rem;
  margin-top: 1.4rem;
}

.host-desk { --seal: var(--kava-blue); }

.letter-body .letter-error {
  margin: 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--evening);
}

.letter-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--kava-blue);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background 0.35s var(--ease);
}

.letter-seal::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: radial-gradient(
    circle at 36% 32%,
    color-mix(in srgb, var(--seal, var(--terracotta)) 72%, #fff),
    var(--seal, var(--terracotta)) 55%,
    color-mix(in srgb, var(--seal, var(--terracotta)) 62%, #1b1208)
  );
}

.letter-seal::before { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85); }

.letter-seal:hover { background: color-mix(in srgb, var(--kava-blue) 86%, #000); }

.letter-seal:focus-visible {
  outline: 2px solid var(--kava-blue);
  outline-offset: 3px;
}

/* Sending a letter: it is folded into an envelope, sealed, and posted into the KAVA letterbox.
   host.html lays the scene out for the screen and plays it as one timeline (under 4 seconds). */
.host-sealed {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.host-sealed[hidden] { display: none; }

.host-sealed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  opacity: 0;
  transition: opacity 0.7s var(--glide);
}

body.is-sending { overflow: hidden; }

body.is-sending .host-sealed:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: auto;
}

body.is-sending .host-sealed:not([hidden])::before { opacity: 1; }

.host-desk.is-folding .host-letter {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.post-lift {
  position: absolute;
  inset: 0;
}

/* Envelope (seen from the back: side and bottom flaps, top flap open until sealed) */
.host-envelope {
  position: absolute;
  z-index: 2;
  aspect-ratio: 1.62;
  container-type: inline-size;
  perspective: 1400px;
  transform-origin: 50% 100%;
  opacity: 0;
  filter: drop-shadow(0 24px 28px rgba(16, 36, 58, 0.15)) drop-shadow(0 2px 3px rgba(16, 36, 58, 0.08));
}

.env-back,
.env-side,
.env-bottom,
.env-flap-wrap,
.env-flap {
  position: absolute;
  inset: 0;
}

.env-back {
  border-radius: 0.6cqw;
  background:
    radial-gradient(rgba(110, 78, 40, 0.07) 0.55px, transparent 0.65px),
    linear-gradient(165deg, #f7efe1, #eadbc4);
  background-size: 3px 3px, auto;
  box-shadow: inset 0 0 0 1px rgba(120, 84, 42, 0.1);
}

/* The letter itself, slipping into the pocket. Styled to match .post-sheet exactly. */
.env-paper {
  position: absolute;
  inset: 6% 5.5% 5%;
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255, 252, 246, 0.9), transparent 42%),
    linear-gradient(180deg, #fbf6ec 0%, #f4ead9 100%);
  box-shadow: inset 0 0 0 1px rgba(120, 84, 42, 0.07), 0 1px 2px rgba(16, 36, 58, 0.08);
}

.env-paper::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: var(--kava-blue);
}

.env-side,
.env-bottom { z-index: 2; }

.env-side-left {
  background: linear-gradient(100deg, #f6ead8 0%, #e5d0b3 80%);
  clip-path: polygon(0 0, 50% 56%, 0 100%);
}

.env-side-right {
  background: linear-gradient(260deg, #e2cbab 0%, #d8c0a0 85%);
  clip-path: polygon(100% 0, 50% 56%, 100% 100%);
}

.env-bottom {
  background: linear-gradient(180deg, #f2e4cf 0%, #e3ceb0 100%);
  clip-path: polygon(0 100%, 50% 48%, 100% 100%);
  filter: drop-shadow(0 -1px 1px rgba(90, 60, 30, 0.08));
}

.env-flap-wrap {
  z-index: 0;
  transform-origin: 50% 0;
  transform: rotateX(178deg);
  filter: drop-shadow(0 3px 4px rgba(16, 36, 58, 0.16));
}

.env-flap {
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.85), transparent 4cqw),
    linear-gradient(175deg, #f8f0e3 0%, #ead9c2 62%, #ddc7aa 100%);
  clip-path: polygon(0 0, 100% 0, 50% 62%);
}

.env-from {
  position: absolute;
  left: 0;
  right: 0;
  top: 74%;
  z-index: 3;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 5.4cqw;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8%;
  color: #24384f;
  opacity: 0;
}

.env-seal {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 14.5cqw;
  height: 14.5cqw;
  margin: -7.25cqw 0 0 -7.25cqw;
  border-radius: 48% 52% 46% 54%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 240, 220, 0.45), transparent 28%),
    radial-gradient(
      circle at 36% 32%,
      color-mix(in srgb, var(--seal, var(--terracotta)) 72%, #fff) 0%,
      var(--seal, var(--terracotta)) 46%,
      color-mix(in srgb, var(--seal, var(--terracotta)) 58%, #0b1420) 100%
    );
  box-shadow:
    inset 0 0 0 1.4cqw rgba(10, 20, 34, 0.16),
    inset 0 -1.4cqw 2cqw rgba(10, 20, 34, 0.22),
    0 1.4cqw 2.4cqw rgba(16, 36, 58, 0.28);
  font-family: var(--serif);
  font-style: italic;
  font-size: 7cqw;
  line-height: 1;
  color: rgba(251, 247, 240, 0.95);
  text-shadow: 0 1px 0 rgba(10, 20, 34, 0.35);
  opacity: 0;
  transform: scale(1.55) rotate(16deg);
}

/* The KAVA letterbox: an evening-blue post box seen a little from above. Letters drop through
   the brass-rimmed slot in its lid; the enamel plaque on its face carries the logo. */
.letterbox {
  position: absolute;
  z-index: 1;
  aspect-ratio: 1 / 0.92;
  container-type: inline-size;
  opacity: 0;
  transform: translateY(26px);
  filter: drop-shadow(0 30px 34px rgba(16, 36, 58, 0.2)) drop-shadow(0 3px 4px rgba(16, 36, 58, 0.14));
}

.letterbox > * { position: absolute; }

.letterbox-body {
  top: 19cqw;
  bottom: 5cqw;
  left: 1.2cqw;
  right: 1.2cqw;
  border-radius: 0 0 2.2cqw 2.2cqw;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0%, transparent 14%, transparent 80%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, #1d3e62 0%, #1b3a5b 40%, #142c46 100%);
  box-shadow: inset 0 -1.2cqw 2cqw rgba(0, 0, 0, 0.18);
}

/* Sloped lid: narrower at the back, a lit bevel along its front edge. */
.letterbox-lid {
  top: 0;
  left: 0;
  right: 0;
  height: 20cqw;
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 70%),
    linear-gradient(180deg, #4f7ca9 0%, #3a6592 55%, #2b5580 100%);
}

.letterbox-lid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.6cqw;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04) 60%, rgba(0, 0, 0, 0.2));
}

.letterbox-rim,
.letterbox-hole,
.letterbox-lip { clip-path: polygon(2.2% 0, 97.8% 0, 100% 100%, 0 100%); }

.letterbox-rim {
  top: 5.6cqw;
  left: 15cqw;
  right: 15cqw;
  height: 8.6cqw;
  background: linear-gradient(180deg, #f6e8c6 0%, #d9bd86 45%, #b0905a 100%);
}

.letterbox-hole {
  top: 6.8cqw;
  left: 16.4cqw;
  right: 16.4cqw;
  height: 6cqw;
  background: linear-gradient(180deg, #010409 0%, #08121d 60%, #14243a 100%);
}

/* The flap, hinged at the back of the slot; it tips inward to let a letter through. */
.letterbox-lip {
  top: 6.8cqw;
  left: 16.4cqw;
  right: 16.4cqw;
  height: 6cqw;
  display: grid;
  place-items: center;
  transform-origin: 50% 0;
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.65) 0, rgba(255, 252, 240, 0) 0.6cqw),
    linear-gradient(180deg, #efdcb2 0%, #d4b47a 55%, #bb9a62 100%);
  font-family: var(--sans);
  font-size: 2.3cqw;
  font-weight: 600;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  color: rgba(80, 56, 20, 0.6);
  text-shadow: 0 1px 0 rgba(255, 248, 230, 0.7);
}

.letterbox-plaque {
  top: 31cqw;
  left: 16cqw;
  right: 16cqw;
  bottom: 17cqw;
  display: grid;
  place-items: center;
  border-radius: 1.8cqw;
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    linear-gradient(180deg, #fdf9f1 0%, #efe4d1 100%);
  box-shadow:
    inset 0 0 0 0.6cqw #fbf6ec,
    inset 0 0 0 0.9cqw rgba(27, 58, 91, 0.14),
    0 0.3cqw 0 rgba(255, 255, 255, 0.08),
    0 0.8cqw 1.6cqw rgba(3, 9, 16, 0.45);
}

/* Two small brass screws holding the plaque. */
.letterbox-plaque::before,
.letterbox-plaque::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2cqw;
  height: 2cqw;
  margin-top: -1cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4d6 0%, #c9a86c 45%, #7d6235 100%);
  box-shadow: 0 0.2cqw 0.3cqw rgba(0, 0, 0, 0.3);
}

.letterbox-plaque::before { left: 2.2cqw; }
.letterbox-plaque::after { right: 2.2cqw; }

.letterbox-plaque img {
  width: 66%;
  height: auto;
}

.letterbox-foot {
  bottom: 0;
  left: -1.5cqw;
  right: -1.5cqw;
  height: 6.4cqw;
  border-radius: 1cqw;
  background: linear-gradient(180deg, #19355a 0%, #0e2135 100%);
  box-shadow: inset 0 0.4cqw 0 rgba(255, 255, 255, 0.08);
}

/* Shade cast over a letter as it sinks into the slot (sits above the envelope). */
.letterbox-mouth {
  position: absolute;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 6, 11, 0) 0%, rgba(2, 6, 11, 0.5) 100%);
}

/* The sheet in flight from the page to the envelope: looks exactly like the paper inside it. */
.post-sheet {
  position: absolute;
  z-index: 3;
  opacity: 0;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255, 252, 246, 0.9), transparent 42%),
    linear-gradient(180deg, #fbf6ec 0%, #f4ead9 100%);
  box-shadow: inset 0 0 0 1px rgba(120, 84, 42, 0.07), 0 1px 2px rgba(16, 36, 58, 0.08);
  filter: drop-shadow(0 24px 28px rgba(16, 36, 58, 0.15)) drop-shadow(0 2px 3px rgba(16, 36, 58, 0.08));
}

.post-sheet::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: var(--kava-blue);
}

.host-thanks {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 24px;
  font-family: var(--serif);
  text-align: center;
  color: var(--evening);
  opacity: 0;
}

.thanks-big {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--kava-blue);
}

.thanks-small {
  display: block;
  margin-top: 0.7rem;
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink-soft);
}

@keyframes pick-roll {
  from { opacity: 0; transform: translateY(0.45em); }
  to { opacity: 1; transform: none; }
}

@keyframes blank-nudge {
  0%, 100% { transform: none; }
  30% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
}

@media (max-width: 860px) {
  html:has(body.host-page) {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  body.host-page { touch-action: manipulation; }

  .host-page .site-head {
    padding: 14px 18px;
    background: transparent;
  }

  .host-page.is-moving .site-head,
  .host-page.is-scrolled .site-head {
    background: transparent;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .experiences-page.is-cards .site-head {
    background: transparent;
    overflow: visible;
  }

  .experiences-page.is-cards.is-on-dark .site-nav a,
  .experiences-page.is-cards.is-on-dark .site-nav span,
  .experiences-page.is-cards.is-on-dark .site-nav a[aria-current="page"],
  .experiences-page.is-cards.is-on-dark .site-nav a:hover {
    color: #fff;
  }

  .experiences-page.is-cards .site-head::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    top: 0;
    bottom: -36px;
    pointer-events: none;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 46%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 46%, transparent 100%);
  }


  .host-open {
    width: 100%;
    padding: calc(6vh + 4.4rem) 0 0;
  }

  .host-lead {
    width: calc(100% - 44px);
    padding-bottom: 7vh;
  }

  .host-note { max-width: none; }

  .host-desk {
    width: calc(100% - 24px);
    margin-bottom: 10vh;
  }

  .host-letter { padding: 2.15rem 1.65rem 2.3rem; }

  .letter-body {
    font-size: 1.55rem;
    line-height: 1.55;
  }

  .letter-stamps {
    --stamp-w: 72px;
    --stamp-h: 84px;
    --stamp-step: 8px;
    margin: -0.4rem -0.3rem 0 0;
  }

  .letter-stamp { padding: 6px; }

  .letter-body .stamp-hint { font-size: 0.95rem; }

  .letter-send {
    justify-content: flex-start;
    gap: 0.6rem 0;
  }

  .letter-body .letter-error { flex-basis: 100%; }

  .blank:empty + .stop { display: none; }

  .thanks-small {
    padding: 0 22px;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }

  .host-letter,
  .letter-body,
  .host-envelope,
  .env-flap-wrap,
  .env-seal,
  .letterbox,
  .letterbox-hole,
  .letterbox-lip,
  .post-lift,
  .stamp,
  .host-thanks { transition: none; }

  .host-page h1,
  .host-note,
  .host-open::after {
    animation: none;
    opacity: 1;
  }

  .host-lead .word,
  .host-page h1::after {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .host-title-caret { animation: none; opacity: 0; }

  .pick.is-rolled .pick-word,
  .blank.is-missing { animation: none; }
}

/* Landing. Four films on the cream paper. */

html:has(body.landing) {
  scroll-behavior: auto;
  scroll-snap-type: y mandatory;
  background: var(--cream-soft);
}

.landing {
  background: var(--cream-soft);
}

/* 480px clears every phone (the iPhone Pro Max is 440 wide), so films always reach both edges. */
.landing-shell {
  width: min(100%, 480px);
  margin-inline: auto;
}

.plate {
  height: 100vh;
  height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #1a140f;
}

.landing .site-head {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 6;
  width: min(100%, 480px);
  padding: max(14px, env(safe-area-inset-top)) 22px 34px;
  background: transparent;
  transform: translateX(-50%);
  transition: transform 0.7s var(--ease);
}

.landing .site-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 46%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 46%, transparent 100%);
}

.landing.is-nav-away .site-head {
  transform: translateX(-50%) translateY(-110%);
}

.landing .site-nav a,
.landing .site-nav a[aria-current="page"],
.landing .site-nav a:hover { color: var(--cream); }

.landing .mark { display: grid; }

.landing .mark img {
  grid-area: 1 / 1;
  transition: opacity 0.45s var(--ease);
}

.landing .logo-on-cream { opacity: 0; }

.landing.is-end .logo-on-film { opacity: 0; }

.landing.is-end .logo-on-cream { opacity: 1; }

.landing.is-end .site-nav a,
.landing.is-end .site-nav a[aria-current="page"],
.landing.is-end .site-nav a:hover { color: var(--evening); }

.landing.is-end .nav-line { background: var(--evening); }

.landing.is-end .site-head::before { opacity: 0; }

.plate-line {
  position: absolute;
  z-index: 2;
  left: 32px;
  right: 32px;
  top: 19%;
  margin: 0;
  text-align: center;
  text-wrap: balance;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.16;
  letter-spacing: -0.022em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--tone, var(--cream));
  /* A whisper of shadow on the letters; the soft shade behind them (::before) does the real work,
     so the brand colours stay clean instead of looking outlined. */
  text-shadow: 0 1px 1px rgba(14, 10, 7, 0.22), 0 0 14px rgba(14, 10, 7, 0.18);
  opacity: 0;
  transition: opacity 1.4s var(--ease) 0.25s;
}

/* A soft, wide pool of shade just behind the words. */
.plate-line::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3em -2.4em;
  background: radial-gradient(closest-side, rgba(12, 9, 6, 0.2), rgba(12, 9, 6, 0.09) 50%, rgba(12, 9, 6, 0));
  pointer-events: none;
}

.plate.is-here .plate-line { opacity: 1; }

/* Each slide reads phrase by phrase: one line per thought, arriving one after another
   with a small upward drift. */
.plate-line .ln {
  display: block;
  opacity: 0;
  transform: translateY(0.4em);
  transition:
    opacity 1.2s var(--ease),
    transform 1.6s var(--ease);
}

.plate-line .ln:nth-child(1) { transition-delay: 0.35s; }
.plate-line .ln:nth-child(2) { transition-delay: 0.6s; }

.plate.is-here .plate-line .ln {
  opacity: 1;
  transform: none;
}

.plate-line .plate-word { letter-spacing: 0.06em; }

.plate-line.is-invite .plate-button {
  opacity: 0;
  transition: opacity 1.2s var(--ease) 0.9s, background 0.35s var(--ease);
}

.plate.is-here .plate-line.is-invite .plate-button { opacity: 1; }

/* Slide 1: "Welcome to" over a large "KAVA", arriving with a gentle zoom. */
.plate-line.is-title {
  top: 20%;
  transform: scale(0.9);
  transition:
    opacity 1.8s var(--ease) 0.3s,
    transform 2.6s var(--ease) 0.3s;
}

.plate.is-here .plate-line.is-title { transform: none; }


.plate-line.is-title { --tone: #fff; }

/* Slide 2: higher, on the right. */
.plate-line.is-right {
  --tone: var(--kava-amber);
  top: 12%;
  left: 30%;
  right: 22px;
  text-align: right;
}

/* Slides 3 and 4: low on the screen, over a darker foot. */
.plate-line.is-low {
  top: auto;
  bottom: calc(15% + env(safe-area-inset-bottom));
}

.plate-line.is-olive { --tone: var(--kava-olive); }

.plate-line.is-invite {
  --tone: var(--kava-amber);
  bottom: calc(10% + env(safe-area-inset-bottom));
}

.film:has(.is-low)::after {
  background: linear-gradient(
    to top,
    rgba(10, 8, 6, 0.85) 0%,
    rgba(10, 8, 6, 0.66) 22%,
    rgba(10, 8, 6, 0.32) 40%,
    rgba(10, 8, 6, 0) 60%
  );
}

.plate-line.is-invite p {
  margin: 0;
}

/* Wording that differs between phone and desktop, and the logo that only phones show on slide 1. */
.on-phone,
.plate-logo { display: none; }

/* Phones: the slides follow the design mockups, which were drawn on the full 9:16 video frame
   (941 × 1673 px). The video fills the screen and is trimmed at the edges, so every position
   and size below is given in mockup pixels (--u) and shifted by the trimmed amount (--dx, --dy).
   That keeps the words in the same spot on the picture whatever the phone's shape. */
@media (max-width: 860px) {
  .on-phone { display: inline; }
  .on-desk { display: none; }

  .film { container-type: size; }

  /* No dark shading on phones: the films show in their own colours. */
  .film::after,
  .plate-line::before { display: none; }

  .plate-line {
    --w: max(100cqw, 56.25cqh);
    --u: calc(var(--w) / 941);
    --dx: calc((var(--w) - 100cqw) / 2);
    --dy: calc((var(--u) * 1673 - 100cqh) / 2);
    letter-spacing: 0;
    text-shadow: none;
  }

  .plate-line .ln { white-space: nowrap; }

  /* Slide 1: "WELCOME TO" over the KAVA logo, fading in. The film is anchored to its right edge. */
  .plate-line.is-title {
    --dx: calc(var(--w) - 100cqw);
    top: calc(var(--u) * 274.9 - var(--dy));
    left: 0;
    right: 0;
    line-height: 1;
    transform: none;
    transition: opacity 1.4s var(--ease) 0.2s;
  }

  .plate-line.is-title .ln { transform: none; }

  .plate-welcome {
    padding-left: 0.15em;
    font-size: calc(var(--u) * 26);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #383632;
  }

  .plate-line .plate-word {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .plate-logo {
    display: block;
    width: calc(var(--u) * 332);
    height: auto;
    margin: calc(var(--u) * 38.9) auto 0;
    opacity: 0;
    transition: opacity 1.6s var(--ease) 0.75s;
  }

  .plate.is-here .plate-logo { opacity: 1; }

  /* Slide 2: green, top right. */
  .plate-line.is-right {
    --tone: #587a4d;
    top: calc(var(--u) * 216.9 - var(--dy));
    left: auto;
    right: max(var(--gutter), calc(100cqw - var(--u) * 826 + var(--dx)));
    font-size: calc(var(--u) * 39.3);
    line-height: 1.12;
  }

  /* Slide 3: soft peach, bottom left. */
  .plate-line.is-olive {
    --dx: 0px;
    --tone: #f2d1b2;
    top: calc(var(--u) * 1530.9 - var(--dy));
    bottom: auto;
    left: max(16px, calc(var(--u) * 32 - var(--dx)));
    right: auto;
    text-align: left;
    font-size: calc(var(--u) * 39.4);
    line-height: 1.12;
  }

  /* Slide 4: deep brown, with an olive button. */
  .plate-line.is-invite {
    --tone: #511a03;
    top: calc(var(--u) * 1285.3 - var(--dy));
    bottom: auto;
    left: 0;
    right: 0;
    font-size: calc(var(--u) * 49.6);
    line-height: 1.15;
  }

  .plate-line.is-invite .plate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--u) * 565);
    height: calc(var(--u) * 72);
    margin-top: calc(var(--u) * 48.6);
    padding: 0 0 0 0.09em;
    background: #646e31;
    color: #dddcd8;
    font-size: calc(var(--u) * 29.7);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.09em;
  }

  .plate-line.is-invite .plate-button:hover { background: #707b38; }
}

.plate-button {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--cream-soft);
  color: var(--evening);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: none;
  text-decoration: none;
  transition: background 0.35s var(--ease);
}

.plate-button:hover { background: #fff; }

.plate-button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

/* Scroll hint: after a few idle seconds the film on screen and the one below it lift a little
   and settle, showing there is more below (index.html adds .is-nudging to the plate on screen).
   Only the films move, never the plates, so the snapped scroll position stays put. */
.plate.is-nudging .film,
.plate.is-nudging + .plate .film {
  animation: plate-nudge 2.6s both;
  will-change: transform;
}

/* Below the last film is the cream end screen, so the lift uncovers cream. */
.plate:last-child { background: var(--cream-soft); }

@keyframes plate-nudge {
  0% {
    transform: none;
    animation-timing-function: cubic-bezier(0.37, 0, 0.18, 1);
  }
  42% {
    transform: translateY(-5.5vh);
    animation-timing-function: cubic-bezier(0.5, 0, 0.3, 1);
  }
  100% { transform: none; }
}

.film {
  position: relative;
  height: 100%;
  background: #1a140f;
}

.film::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 6, 0.78) 0%,
    rgba(10, 8, 6, 0.62) 14%,
    rgba(10, 8, 6, 0.34) 32%,
    rgba(10, 8, 6, 0.1) 48%,
    rgba(10, 8, 6, 0) 64%
  );
}

.film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Slide 1 on phones: keep the house on the right fully in view; the trim comes off the left.
   Slide 3: lean left, so the words in the bottom-left corner clear the girl's feet. */
@media (max-width: 860px) {
  .plate[aria-labelledby="plate-1"] .film video { object-position: right center; }
  .plate[aria-labelledby="plate-3"] .film video { object-position: left center; }
}

.film video::-webkit-media-controls,
.film video::-webkit-media-controls-enclosure,
.film video::-webkit-media-controls-panel,
.film video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.landing-end {
  padding: 12vh 22px 11vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--cream-soft);
}

.landing-end span {
  display: block;
  width: 72px;
  height: 2px;
  margin: 0 0 1.5rem;
  background: var(--terracotta);
}

.landing-end a {
  display: block;
  max-width: 7.4em;
  color: var(--terracotta);
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--type-title);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.landing-end a:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 6px;
}

/* Happening at KAVA: square cards under "Find what calls you", swiped sideways. The next card
   peeks in at the edge, so it is clear there is more. */
.landing-end:has(+ .happening) { padding-bottom: 5vh; }

.happening {
  padding: 0 0 12vh;
  background: var(--cream-soft);
}

.happening-title {
  margin: 0 22px 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.happening-track {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0 22px 4px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 22px;
  scrollbar-width: none;
}

.happening-track::-webkit-scrollbar { display: none; }

.happening-card {
  flex: 0 0 min(68vw, 300px);
  scroll-snap-align: start;
}

.happening-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.happening-photo {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--cream);
}

.happening-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.happening-card a:hover .happening-photo img { transform: scale(1.04); }

.happening-card a:focus-visible .happening-photo {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.happening-date {
  display: block;
  margin: 0.95rem 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.happening-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.happening-tag {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* The last square leads to the full list. */
.happening-card.is-all .happening-photo {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--terracotta) 9%, var(--cream-soft));
}

.happening-more {
  max-width: 8em;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--terracotta);
}

@media (min-width: 861px) {
  .happening {
    padding: 0 0 14vh;
    scroll-snap-align: start;
  }

  .happening-title { margin: 0 10vw 1.3rem; }

  .happening-track {
    gap: 22px;
    padding: 0 10vw 6px;
    scroll-padding: 0 10vw;
  }

  .happening-card { flex-basis: 280px; }
}

/* Phones: the films scroll inside a fixed, full-screen pane instead of the page.
   iOS Safari draws the page behind its status bar and floating address bar, and shrinks the
   address bar as the page scrolls, which made a screen-tall film show its neighbours at the
   top and bottom. A pane that never moves keeps the screen size fixed, so each film fills
   exactly one screen, edge to edge, behind both bars. */
@media (max-width: 860px) {
  html:has(body.landing) {
    scroll-snap-type: none;
    scroll-behavior: auto;
    background: #1a140f;
  }

  .landing { background: #1a140f; }

  .landing-scroll {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
    scroll-snap-type: y mandatory;
    container-type: size;
    background: var(--cream-soft);
  }

  html.is-menu-open .landing-scroll { overflow: hidden; }

  /* A drag that starts on the header's empty space should still scroll the films. */
  .landing .site-head { pointer-events: none; }

  .landing .site-head > * { pointer-events: auto; }

  .plate {
    height: 100svh;
    height: 100cqh;
  }

  /* The cream end screens tint the status bar cream too, instead of the films' dark. */
  html:has(body.landing.is-end) { background: var(--cream-soft); }

  /* Past the last film the page scrolls freely: from the cream end screen down through the
     footer, with no snapping (index.html adds .is-free there). Safari can only jump between
     snap stops, which made the footer, taller than a phone screen, impossible to read. */
  .landing-scroll.is-free { scroll-snap-type: none; }

  .landing .trail-inner { padding-bottom: calc(2.6rem + env(safe-area-inset-bottom)); }

  .landing .site-head {
    position: fixed;
    padding: max(14px, env(safe-area-inset-top)) 22px 34px;
    background: transparent;
  }

  .landing .site-nav { gap: 0.7rem; }

  .landing .site-nav a {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }
}

@media (min-width: 861px) {
  .landing-shell { width: 100%; }

  .landing .site-head {
    left: 0;
    width: 100%;
    padding: 22px 7vw 40px;
    transform: none;
  }

  .landing.is-nav-away .site-head { transform: translateY(-110%); }


  .landing .site-nav > a:not(.menu-toggle) { display: inline; }

  .landing .site-nav .nav-line { display: block; }

  .landing .site-nav .menu-toggle { display: none; }

  .film,
  .film video {
    width: 100%;
    height: 100%;
  }

  .film video { object-fit: cover; }

  .plate-line {
    left: 14vw;
    right: 14vw;
    top: 24%;
    font-size: clamp(2rem, 2.8vw, 3.1rem);
  }

  .plate-line.is-title { top: 22%; }


  .plate-line.is-right {
    top: 15%;
    left: 44vw;
    right: 7vw;
  }

  .plate-line.is-low,
  .plate-line.is-invite { bottom: 14%; }

  .plate-button { font-size: 0.8rem; }

  .landing-end { padding: 16vh 10vw 14vh; }

}

@media (prefers-reduced-motion: reduce) {
  html:has(body.landing),
  .landing-scroll { scroll-snap-type: none; }

  .plate-line,
  .plate-line .ln,
  .plate-line .plate-logo,
  .plate-line .plate-button {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Form delivery: spam trap and sending state */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.register-send button[aria-busy="true"],
.letter-seal[aria-busy="true"] {
  cursor: progress;
  animation: send-breathe 1.4s var(--ease) infinite alternate;
}

@keyframes send-breathe {
  from { opacity: 1; }
  to { opacity: 0.62; }
}

@media (prefers-reduced-motion: reduce) {
  .register-send button[aria-busy="true"],
  .letter-seal[aria-busy="true"] { animation: none; opacity: 0.7; }
}

/* When a phone refuses to autoplay (iOS Low Power Mode), show the poster as a still, not a play button. */
.film video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.film video::-webkit-media-controls { display: none !important; }

/* Footer: the way through KAVA. One path through every page, read as a single sentence,
   ending at the village on the map. Built in transition.js; lays out by its own width. */
/* "Find what calls you": the same closing section above the footer on every page, tinted
   with the page's own colour (--accent). transition.js builds it. */
.calls {
  margin: 0;
  padding: var(--space-section) var(--gutter);
  background: color-mix(in srgb, var(--accent) 10%, var(--cream-soft));
  text-align: center;
}

.calls-kicker {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--type-serif);
  color: var(--ink-soft);
}

.calls-title {
  max-width: 12em;
  margin: 0 auto;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--type-title);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--evening);
}

.calls-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.calls-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.05rem 2.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.35s var(--ease);
}

/* Cream reads better than ink on the deeper terracotta. */
.landing .calls-link,
.experiences-page .calls-link { color: var(--cream-soft); }

.calls-link span { transition: transform 0.35s var(--ease); }

.calls-link:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }

/* A second button, beside the main one: outlined instead of filled. */
.calls-link.is-quiet,
.landing .calls-link.is-quiet,
.experiences-page .calls-link.is-quiet {
  background: transparent;
  color: var(--evening);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 80%, transparent);
}

.calls-link.is-quiet:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

.calls-link:hover span { transform: translateX(4px); }

.calls-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.calls > * {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(0.45rem);
  transition:
    opacity 0.85s var(--ease) calc(var(--i) * 140ms),
    filter 0.85s var(--ease) calc(var(--i) * 140ms),
    transform 1s var(--ease) calc(var(--i) * 140ms);
}

.calls.is-seen > * {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

@media (max-width: 860px) {
  .calls { padding: 10vh 22px 12vh; }

  .calls-links { margin-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .calls > * {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

.trail {
  container-type: inline-size;
  position: relative;
  /* A faint wash of the page at the top of the wheel (--wash, set by transition.js). */
  background: color-mix(in srgb, var(--wash, var(--cream)) 7%, var(--cream));
  transition: background-color 0.9s var(--ease);
  border-top: 1px solid var(--line);
  color: var(--ink);
}

/* Desktop home page: the footer is the last snap stop. Phones scroll the footer freely. */
@media (min-width: 861px) {
  .landing .trail { scroll-snap-align: end; }
}

.trail-inner {
  width: min(1120px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 12vh 0 3.2rem;
}

.trail-kicker {
  margin: 0 0 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--type-serif);
  color: var(--ink-soft);
  text-align: center;
}

/* The page wheel. transition.js places each stop on the rim of a wide ellipse (radii --rx and
   --ry) and turns it; stops fade out as they curve away, and the edges fade too. */
.wheel {
  position: relative;
  height: 9.5rem;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.wheel.is-dragging { cursor: grabbing; }

/* The rim: the top of the ellipse the stops ride on, centred on the dots. */
.wheel-rim {
  position: absolute;
  top: 2.2rem;
  left: 50%;
  width: calc(2 * var(--rx, 300px));
  height: calc(2 * var(--ry, 54px));
  margin-left: calc(-1 * var(--rx, 300px));
  border-radius: 50%;
  border-top: 1px dashed rgba(27, 58, 91, 0.28);
  pointer-events: none;
}

.wheel-track {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wheel-stop {
  position: absolute;
  top: calc(2.2rem - 11px);
  left: 50%;
  width: 8.5rem;
  margin-left: -4.25rem;
  transform-origin: 50% 11px;
  will-change: transform, opacity;
}

.wheel-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.wheel-dot {
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 2px solid var(--c);
  border-radius: 50%;
  background: var(--cream);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.wheel-stop.is-page .wheel-dot { background: var(--c); }

/* Pages already visited in this visit: a small dot of their colour inside the ring. */
.wheel-dot {
  display: grid;
  place-items: center;
}

.wheel-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.wheel-stop.is-seen:not(.is-page) .wheel-dot::after {
  opacity: 1;
  transform: none;
}

/* A soft pulse as a page reaches the top of the wheel. */
.wheel-dot.is-tick { animation: wheel-tick 0.5s var(--ease); }

@keyframes wheel-tick {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* "Open" under a page turned to (not this one), once the wheel is still. */
.wheel-open {
  margin-top: -0.4rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c) 78%, #000);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}

.wheel-stop.is-centre:not(.is-page) .wheel-open {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

.wheel.is-dragging .wheel-open,
.wheel.is-turning .wheel-open {
  opacity: 0;
  transition-delay: 0s;
}

.wheel-stop.is-centre .wheel-dot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent); }

.wheel-name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}

.wheel-stop.is-centre .wheel-name {
  color: var(--evening);
  font-weight: 600;
}

.wheel-link:hover .wheel-name { color: var(--evening); }

.wheel-link:focus-visible { outline: none; }

.wheel-link:focus-visible .wheel-name {
  outline: 2px solid var(--c);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Below the wheel: find us, say hello, sign-off. */
.trail-base {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 2rem 3rem;
  margin-top: 2.4rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}

.trail-label {
  margin: 0 0 0.75rem;
  font-size: var(--type-kicker);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.trail-place {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}

.trail-place svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.1rem;
  color: var(--terracotta);
}

.trail-map {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  background: var(--evening);
  color: var(--cream-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s var(--ease);
}

.trail-map:hover { background: color-mix(in srgb, var(--evening) 82%, #000); }

.trail-map:focus-visible {
  outline: 2px solid var(--evening);
  outline-offset: 3px;
}

.trail-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.95rem;
}

.trail-contact a,
.trail-small a {
  color: var(--evening);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--evening) 35%, transparent);
  transition: border-color 0.3s var(--ease);
}

.trail-contact a:hover,
.trail-small a:hover { border-color: currentColor; }

.trail-sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
  text-align: right;
}

.trail-mark img {
  height: 34px;
  width: auto;
}

.trail-small {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Wide (desktop): one compact band. The dial sits on the left with every page on it, the
   contact details beside it, and the sign-off runs along the bottom. */
@container (min-width: 761px) {
  .trail-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.75fr) minmax(0, 0.75fr);
    grid-template-areas:
      "way find reach"
      "sign sign sign";
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    padding: 7vh 0 2rem;
  }

  .trail-way { grid-area: way; }

  .trail-kicker {
    margin-bottom: 0.6rem;
    text-align: left;
  }

  .wheel {
    height: 7.4rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  }

  .wheel-rim { top: 1.6rem; }

  .wheel-stop {
    top: calc(1.6rem - 8px);
    width: 7rem;
    margin-left: -3.5rem;
    transform-origin: 50% 8px;
  }

  .wheel-link { gap: 0.6rem; }

  .wheel-dot {
    width: 16px;
    height: 16px;
    border-width: 1.6px;
  }

  .wheel-dot::after {
    width: 4px;
    height: 4px;
  }

  .wheel-stop.is-centre .wheel-dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent); }

  .wheel-name { font-size: 0.86rem; }

  .wheel-open {
    margin-top: -0.25rem;
    font-size: 0.6rem;
  }

  .trail-base { display: contents; }

  .trail-find {
    grid-area: find;
    padding-top: 0.5rem;
  }

  .trail-reach {
    grid-area: reach;
    padding-top: 0.5rem;
  }

  .trail-sign {
    grid-area: sign;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .trail-mark img { height: 28px; }
}

/* Narrow (phones, or a narrow column): the base stacks. */
@container (max-width: 760px) {
  .trail-inner { padding: 9vh 0 2.6rem; }

  .trail-base {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    margin-top: 1.8rem;
  }

  .trail-sign {
    align-items: flex-start;
    text-align: left;
  }
}

/* Experiences: the season. A counter under the header ("03 / 10"), a row of marks down the
   right edge on phones, and a zoomed-out grid of every experience (experiences.html). */
.season-count {
  position: fixed;
  z-index: 8;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem 0.45rem 0;
  border: 0;
  background: none;
  color: var(--evening);
  font: inherit;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.4s var(--ease);
}

.season-count.is-shown {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.season-now {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.season-now.is-rolling { animation: season-roll 0.45s var(--ease); }

@keyframes season-roll {
  from { opacity: 0; transform: translateY(0.45em); }
  to { opacity: 1; transform: none; }
}

.season-of {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.season-count svg {
  align-self: center;
  width: 14px;
  height: 14px;
  margin-left: 0.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.season-count:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Phones: the cards are photos, so the counter is white, or near-black where the photo behind
   it is bright (.is-on-light, set from the photo's brightness). */
@media (min-width: 861px) {
  .season-count { padding: 0.45rem 0 0.45rem 0.55rem; }
}

@media (max-width: 860px) {
  .season-count {
    color: #fff;
    text-shadow: 0 1px 8px rgba(10, 18, 28, 0.45);
  }

  .season-count svg { filter: drop-shadow(0 1px 4px rgba(10, 18, 28, 0.45)); }

  .season-count.is-on-light {
    color: #141414;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.4);
  }

  .season-count.is-on-light svg { filter: drop-shadow(0 1px 4px rgba(255, 255, 255, 0.4)); }
}

.season-rail {
  position: fixed;
  z-index: 8;
  top: 50%;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  --mark: 255, 255, 255;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.season-rail.is-shown { opacity: 1; }

.season-rail.is-on-light { --mark: 20, 20, 20; }

/* Quiet marks: thin and faint, with the current one only a little longer and clearer. */
.season-rail span {
  width: 1.5px;
  height: min(10px, calc(40vh / var(--n)));
  border-radius: 1px;
  background: rgba(var(--mark), 0.28);
  transition: background 0.4s var(--ease), height 0.4s var(--ease);
}

.season-rail span.is-on {
  height: min(18px, calc(60vh / var(--n)));
  background: rgba(var(--mark), 0.75);
}

html.is-season { overflow: hidden; }

.season {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--gutter) calc(4rem + env(safe-area-inset-bottom));
  background: var(--cream-soft);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.season.is-open { opacity: 1; }

/* While a photo flies, the tile it is heading for (or leaving) stays empty. */
.season.is-flying .season-tile.is-here .season-photo img,
.season.is-flying .season-tile.is-chosen .season-photo img { opacity: 0; }

/* Leaving for a card: everything on the grid fades, but its cream backdrop stays put. */
.season > * { transition: opacity 0.3s var(--ease); }

.season.is-leaving > * { opacity: 0; }

.season-top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 calc(-1 * var(--gutter)) 1.4rem;
  padding: max(22px, env(safe-area-inset-top)) var(--gutter) 1rem;
  background: var(--cream-soft);
}

.season-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--type-serif);
  color: var(--ink-soft);
}

.season-title {
  margin: 0;
  font-size: var(--type-section);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--terracotta);
}

.season-close {
  padding: 0.6rem 0;
  border: 0;
  background: none;
  color: var(--evening);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.season-month { margin-top: 1.6rem; }

.season-month h3 {
  margin: 0 0 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--type-kicker);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--evening);
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 13rem), 1fr));
  gap: 1.4rem 1rem;
}

.season-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.season-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-bottom: 0.35rem;
  overflow: hidden;
  border-radius: 10px;
  background: #e9e1d4;
}

.season-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.season-tile:hover .season-photo img { transform: scale(1.04); }

.season-tile.is-here .season-photo { box-shadow: 0 0 0 2px var(--cream-soft), 0 0 0 4px var(--terracotta); }

.season-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.season-name {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
}

.season-tile:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
  border-radius: 10px;
}

.season-ghost {
  position: fixed;
  z-index: 45;
  object-fit: cover;
  pointer-events: none;
}

/* The counter and grid belong to the list, not to an open experience. */
body:has(.page:not([hidden])) .season-count,
body:has(.page:not([hidden])) .season-rail { display: none; }

@media (prefers-reduced-motion: reduce) {
  .trail,
  .wheel-dot::after,
  .wheel-open { transition: none; }

  .wheel-dot.is-tick { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .season-count,
  .season-rail,
  .season,
  .season-photo img { transition: none; }
}

/* ---------- Stays ----------
   Large photographs, generous white space and short text. Each part is a few lines of
   writing followed by its pictures. Until the photographs arrive, soft clay panels hold
   their places (.stay-photo without an img); dropping an <img> inside one replaces it. */
.stays {
  padding-top: 12vh;
  background: var(--cream-soft);
}

.stay-text {
  width: min(36rem, calc(100% - 18vw));
  margin: 0 0 0 9vw;
}

.stay-text .stay-kicker {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.stays h1 {
  margin: 0;
  max-width: 11em;
  font-size: var(--type-title);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--terracotta);
}

.stays h2 {
  margin: 0;
  max-width: 13em;
  font-size: var(--type-section);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stay-text p {
  margin: 1.2rem 0 0;
  max-width: 32em;
  font-size: var(--type-body);
  line-height: var(--type-leading);
  color: var(--ink);
}

.stay-text .stay-lede { color: var(--ink-soft); }

.stay-facts {
  margin-top: 1.6rem !important;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem !important;
  line-height: 1.4 !important;
  color: var(--terracotta) !important;
}

.stay-part { margin-top: 13vh; }

.stay-photos {
  display: grid;
  gap: 14px;
  width: calc(100% - 18vw);
  margin: 5vh 0 0 9vw;
}

.stay-photos.is-pair { grid-template-columns: 1.4fr 1fr; }

.stay-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  background: color-mix(in srgb, var(--kava-clay) 14%, var(--cream));
}

.stay-photos.is-pair .stay-photo { aspect-ratio: auto; min-height: 100%; }

.stay-photos.is-pair .stay-photo:first-child { aspect-ratio: 4 / 5; }

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

/* The waiting panel names the picture that belongs there. */
.stay-photo:not(:has(img))::after {
  content: attr(data-photo);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--kava-clay) 70%, transparent);
}

/* Upright photographs keep their portrait shape. */
.stay-photo.is-upright { aspect-ratio: 4 / 5; }

.stay-hero-photo { margin-top: 6vh; }

/* Desktop: a part with an upright photograph sets the words and the picture side by side,
   alternating sides down the page (.is-flip puts the picture first). */
@media (min-width: 861px) {
  .stay-part.is-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: center;
    column-gap: 7vw;
    padding: 0 9vw;
  }

  .stay-part.is-side .stay-text,
  .stay-part.is-side .stay-photos {
    width: auto;
    margin: 0;
  }

  .stay-part.is-flip { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }

  .stay-part.is-flip .stay-photos { order: -1; }
}

.stay-hero-photo .stay-photo { aspect-ratio: 16 / 9; }

.stay-end {
  margin-top: 20vh;
  padding: 16vh 9vw 18vh;
  text-align: center;
  background: color-mix(in srgb, var(--terracotta) 10%, var(--cream-soft));
}

.stay-end h2 {
  margin: 0.9rem auto 0;
  color: var(--terracotta);
}

.stay-end p {
  margin: 0 auto;
  max-width: 24em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--type-serif);
  line-height: 1.35;
  color: var(--ink);
}

.stay-end-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.2rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--cream-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s var(--ease);
}

.stay-end-link:hover { background: color-mix(in srgb, var(--terracotta) 85%, #000); }

.stay-end-link:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
}

/* Headings arrive word by word; words and pictures rise gently into place. */
.stays .words .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--w) * 55ms);
}

.stays .words.rise { opacity: 1; transform: none; }

.stays .words.is-seen .w {
  opacity: 1;
  transform: none;
}

/* Words and pictures rise gently into place as they arrive. */
.stays .rise {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

.stays .rise.is-seen {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .stays { padding-top: 9vh; }

  .stay-text {
    width: calc(100% - 44px);
    margin-left: 22px;
  }

  .stay-part { margin-top: 9vh; }

  /* On phones the pictures run edge to edge. */
  .stay-photos {
    width: 100%;
    margin: 3.5vh 0 0;
    gap: 8px;
  }

  .stay-photos.is-pair { grid-template-columns: minmax(0, 1fr); }

  .stay-photo { border-radius: 0; }

  .stay-photos.is-pair .stay-photo,
  .stay-photos.is-pair .stay-photo:first-child { aspect-ratio: 4 / 5; min-height: 0; }

  .stay-photos.is-pair .stay-photo + .stay-photo { aspect-ratio: 3 / 2; }

  .stay-hero-photo { margin-top: 4vh; }

  .stay-photo,
  .stay-hero-photo .stay-photo { aspect-ratio: 4 / 3; }

  .stay-photo.is-upright { aspect-ratio: 4 / 5; }

  .stay-end {
    margin-top: 14vh;
    padding: 12vh 22px 14vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stays .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Experiences: "next time", previous experiences, floating Register ---------- */

/* Under Register: how payment works, then the quieter "not these dates, but next time". */
.register-pay {
  flex-basis: 100%;
  margin: 0;
  max-width: 34em;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.register-later-block {
  flex-basis: 100%;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(193, 95, 53, 0.2);
}

.register-later-block p {
  margin: 0 0 0.9rem;
  max-width: 30em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ink);
}
.register-send .register-later {
  background: transparent;
  color: var(--terracotta);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--terracotta) 70%, transparent);
  letter-spacing: 0.1em;
}

.register-send .register-later:hover {
  background: color-mix(in srgb, var(--terracotta) 8%, transparent);
}

/* Host bios: the rest of a longer story under "Read more". */
.host-more p { margin-top: 0.9rem; }

.host-more[hidden] { display: none; }

.host-more-toggle {
  margin-top: 0.7rem;
  padding: 0 0 0.1rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--terracotta);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

/* The floating Register button on an experience's page. */
.page-register {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px -14px rgba(26, 20, 15, 0.55);
  cursor: pointer;
  animation: page-register-in 0.5s var(--ease) both;
}

.page-register[hidden] { display: none; }

.page-register:hover { background: color-mix(in srgb, var(--terracotta) 86%, #000); }

.page-register:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

@keyframes page-register-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .page-register {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    animation-name: page-register-in-mid;
  }

  @keyframes page-register-in-mid {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to { opacity: 1; transform: translateX(-50%); }
  }
}

/* Previous experiences: plain cards, picture, words, button. */
.before {
  padding: 14vh 9vw 16vh;
  background: var(--cream-soft);
}

.before-title {
  margin: 0 0 6vh;
  font-size: var(--type-section);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--terracotta);
}

.before-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7vh 3vw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.before-card {
  display: flex;
  flex-direction: column;
}

.before-photo {
  position: relative;
  margin: 0 0 1.3rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: color-mix(in srgb, var(--terracotta) 10%, var(--cream));
}

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

.before-photo:not(:has(img))::after {
  content: attr(data-photo);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--terracotta) 60%, transparent);
}

.before-card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.before-tag {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--terracotta);
}

.before-about {
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.before-about a {
  color: inherit;
  text-underline-offset: 3px;
}

.before-card .later-open {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.8rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--terracotta) 70%, transparent);
  color: var(--terracotta);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

/* A little room above the button however long the words run. */
.before-about { margin-bottom: 1.4rem; }

.before-card .later-open:hover { background: color-mix(in srgb, var(--terracotta) 8%, transparent); }

.before-card .later-open:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .before-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .before { padding: 10vh 22px 12vh; }

  .before-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 7vh;
  }
}

/* "Let's do this again!": the pop-up for next time. */
.later {
  width: min(30rem, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 2.2rem 1.9rem 2rem;
  border: 0;
  border-radius: 22px;
  background: var(--cream-soft);
  color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(26, 20, 15, 0.5);
}

.later[open] { animation: later-in 0.45s var(--ease) both; }

.later::backdrop {
  background: rgba(26, 20, 15, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@keyframes later-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

html.is-later-open { overflow: hidden; }

.later-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.later-close:hover { background: color-mix(in srgb, var(--terracotta) 10%, transparent); }

.later-form { display: grid; gap: 1.1rem; }

.later-form[hidden],
.later-done[hidden] { display: none; }

.later-for {
  margin: 0;
  padding-right: 2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.later-title {
  margin: -0.4rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--type-section);
  line-height: 1.1;
  color: var(--terracotta);
}

.later-lead {
  margin: -0.3rem 0 0.2rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.later-error {
  margin: 0;
  font-size: 0.9rem;
  color: var(--terracotta);
}

.later-error:empty { display: none; }

.later-send {
  justify-self: start;
  margin-top: 0.3rem;
  padding: 0.95rem 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.later-send:hover { background: color-mix(in srgb, var(--terracotta) 86%, #000); }

.later-done { outline: none; animation: register-in 0.6s var(--ease) both; }

.later-done-title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--type-section);
  color: var(--terracotta);
}

.later-done-line {
  margin: 0.8rem 0 0;
  font-size: var(--type-body);
  line-height: var(--type-leading);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .page-register,
  .later[open],
  .later-done { animation: none; }
}

/* ---------- Contact ----------
   Built on the Host page (its letter, envelope and letterbox), in evening navy instead of
   the Host blue. Scoped to <main> so the footer's page wheel keeps its own colours. */
.contact-page main { --kava-blue: var(--evening); }

.letter-optional { color: var(--ink-soft); }

.visit {
  padding: 14vh var(--gutter);
  background: var(--cream);
}

.visit-inner {
  width: min(680px, 100%);
  margin: 0 auto;
}

.visit-title {
  margin: 0;
  max-width: 12em;
  font-size: var(--type-section);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--evening);
}

.visit-lead,
.visit-how {
  margin: 1.3rem 0 0;
  max-width: 32em;
  font-size: var(--type-body);
  line-height: var(--type-leading);
  color: var(--ink);
}

.visit-when {
  margin: 2rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--type-serif);
  line-height: 1.3;
  color: var(--evening);
}

.visit-when span {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
}

.visit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--evening);
  color: var(--cream-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s var(--ease);
}

.visit-link:hover { background: color-mix(in srgb, var(--evening) 85%, #000); }

.visit-link:focus-visible {
  outline: 2px solid var(--evening);
  outline-offset: 4px;
}

.reach {
  padding: 12vh var(--gutter) 14vh;
  background: var(--cream-soft);
}

.reach-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 4vw;
  width: min(1000px, 100%);
  margin: 0 auto;
}

.reach-part {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.reach-label {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
}

.reach-part a,
.reach-place {
  margin: 0;
  font-size: var(--type-body);
  line-height: 1.5;
  color: var(--ink);
}

.reach-part a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
  transition: color 0.3s var(--ease);
}

.reach-part a:hover { color: var(--evening); }

@media (max-width: 860px) {
  .visit { padding: 10vh 22px; }

  .reach { padding: 9vh 22px 11vh; }

  .reach-inner { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
}

/* Host portraits: small, passport-style, beside the name; the bio runs below. */
.host-one.has-photo {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1.1rem;
}

.host-photo {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 84px;
  height: 112px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--cream);
}

.host-one.has-photo h4 {
  grid-column: 2;
  align-self: end;
  margin-bottom: 0.35rem;
}

.host-one.has-photo .host-insta {
  grid-column: 2;
  align-self: start;
  margin-bottom: 0;
}

/* Without an Instagram, the name sits in the middle of the portrait's height. */
.host-one.has-photo:not(:has(.host-insta)) h4 {
  grid-row: 1 / span 2;
  align-self: center;
  margin-bottom: 0;
}

.host-one.has-photo > p,
.host-one.has-photo .host-more,
.host-one.has-photo .host-more-toggle {
  grid-column: 1 / -1;
  justify-self: start;
}

.host-one.has-photo > p { margin-top: 1.1rem; }

@media (max-width: 860px) {
  .host-one.has-photo { grid-template-columns: 72px minmax(0, 1fr); column-gap: 1rem; }

  .host-photo { width: 72px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .stays .words .w {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 860px) {
  .stay-facts { font-size: 1.02rem !important; }
}

/* Phones: a wide picture on a tall card (.is-fit) shows whole, not zoomed in. It sits a little
   above the middle, over a soft, darkened blur of itself that fills the rest of the card. */
@media (max-width: 860px) {
  .item.is-fit { background: #1a140f; }

  .item.is-fit::before {
    content: "";
    position: absolute;
    inset: -40px;
    width: auto;
    height: auto;
    transform: none;
    background: var(--fit) center / cover no-repeat;
    filter: blur(28px) brightness(0.55) saturate(1.1);
  }

  .item.is-fit .phone {
    position: relative;
    object-fit: contain;
    object-position: 50% 38%;
  }

  .item.is-fit .row { z-index: 1; }
}

/* Phones: a poster with its own line printed along the bottom (.is-poster) is shown from the
   top and a little larger, so that printed line sits just below the card instead of under its
   title. */
@media (max-width: 860px) {
  .item.is-poster .phone { height: 114%; }
}
