/* Bluehour homepage sections. Loaded on the front page only, after site.css. */

/* Hero: full-bleed photo, split-flap headline */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--deep);
  color: var(--on-deep);
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -1; }

.hero__view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease-out), transform 7s linear;
}
.hero__view.is-active { opacity: 1; transform: scale(1); }

/* Scrim so the type reads on any photo, darkest where the copy sits */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(var(--shadow) / 0.85) 0%, rgb(var(--shadow) / 0.5) 40%, rgb(var(--shadow) / 0) 72%),
    linear-gradient(to right, rgb(var(--shadow) / 0.6) 0%, rgb(var(--shadow) / 0.25) 45%, rgb(var(--shadow) / 0) 65%);
}

.hero__content {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: calc(var(--header-h) + 3rem) 9.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
}

.hero__kicker {
  font-size: clamp(1.75rem, 2.4vw + 0.75rem, 3rem);
  letter-spacing: -0.02em;
}

/* Nine positions, like a real board: shorter names leave blank tiles */
.flapboard {
  --flap-size: clamp(1.75rem, calc((100vw - 2 * var(--gutter)) / 8.4), 6rem);
  display: flex;
  gap: 0.06em;
  font-size: var(--flap-size);
}

.flap {
  position: relative;
  display: grid;
  place-items: center;
  width: 0.8em;
  height: 1.12em;
  border-radius: 0.08em;
  background: rgb(var(--shadow) / 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1em;
  line-height: 1;
  color: var(--on-deep);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.flap::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 50%;
  height: max(1px, 0.02em);
  background: rgb(0 0 0 / 0.5);
}
.flap.is-blank { background: rgb(var(--shadow) / 0.4); }
.flap.is-flipping { animation: flap 0.09s linear; }

@keyframes flap {
  0% { transform: perspective(400px) rotateX(0); }
  50% { transform: perspective(400px) rotateX(-80deg); }
  100% { transform: perspective(400px) rotateX(0); }
}

.hero__lede {
  margin-block: 1.75rem 2rem;
  max-width: 40ch;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.55;
  color: rgb(237 239 234 / 0.88);
}

/* Departure board: overlaps the bottom of the hero */

.board {
  position: relative;
  z-index: 5;
  margin-block: -6.5rem 4rem;
  margin-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  padding: 1.25rem;
  border-radius: var(--radius-card);
  background: var(--deep);
  color: var(--on-deep);
  box-shadow: 0 30px 60px -30px rgb(var(--shadow) / 0.5);
}

.board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block-end: 1rem;
}

.board__title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-deep-muted);
}

.board__all {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--on-deep);
}
.board__all svg { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease-out); }
.board__all:hover svg { transform: translateX(3px); }

.board__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.board__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "dest code"
    "name name"
    "nights price";
  align-items: center;
  gap: 0.375rem 1rem;
  padding-block: 1rem;
  padding-inline: 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.3s var(--ease-out);
}
.board__rows li + li .board__row { border-block-start: 1px solid rgb(237 239 234 / 0.08); }
.board__row:hover,
.board__row.is-active { background: rgb(237 239 234 / 0.06); }

.board__code,
.board__dest,
.board__meta {
  font-family: var(--font-mono);
  font-weight: 500;
  white-space: nowrap;
}

.board__code {
  grid-area: code;
  justify-self: end;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--on-deep-muted);
}

.board__dest {
  grid-area: dest;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board__name { grid-area: name; color: var(--on-deep); }

.board__meta {
  font-size: 0.8125rem;
  color: var(--on-deep-muted);
}
.board__meta:nth-of-type(4) { grid-area: nights; }
.board__meta:nth-of-type(5) { grid-area: price; justify-self: end; }

.board__status { display: none; }

@media (min-width: 768px) {
  .board { padding: 1.5rem 1.75rem; }

  .board__row {
    grid-template-columns: 3rem 9.5rem minmax(0, 1fr) 6.5rem 7.5rem 6.5rem;
    grid-template-areas: none;
    gap: 1.25rem;
    padding-block: 0.875rem;
  }
  .board__code, .board__dest, .board__name,
  .board__meta:nth-of-type(4), .board__meta:nth-of-type(5) { grid-area: auto; justify-self: start; }

  .board__status {
    display: block;
    justify-self: end;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
  }
  .board__row.is-active .board__status { visibility: visible; opacity: 1; }
}

/* Shared section type */

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-lede {
  margin-block: 1rem 0;
  max-width: 48ch;
  font-size: 1.0625rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Trust strip */

.proof {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 0.5rem 0;
}

.proof__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.proof__icon {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--deep);
}


.proof__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.proof__text strong {
  display: block;
  margin-block-end: 0.125rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

@media (min-width: 900px) {
  .proof__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .proof__item { padding-inline: 2rem; }
  .proof__item:first-child { padding-inline-start: 0; }
  .proof__item + .proof__item { border-inline-start: 1px solid color-mix(in oklab, var(--text) 12%, transparent); }
}

/* Destinations rail */

.destinations {
  padding-block: clamp(5rem, 8vw, 8rem);
}

.destinations__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-block-end: 2.5rem;
}

.rail-controls {
  display: none;
  gap: 0.5rem;
}

.rail-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid color-mix(in oklab, var(--text) 20%, transparent);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.rail-btn svg { width: 1.125rem; height: 1.125rem; }
.rail-btn:hover:not(:disabled) { background: var(--text); color: var(--bg); }
.rail-btn:active:not(:disabled) { transform: scale(0.96); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }

/* Phones swipe the rail; the arrows are for pointer and keyboard users */
@media (min-width: 768px) {
  .js .rail-controls { display: flex; }
}

/* The track starts on the container edge and runs off the right of the screen */
.rail {
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 22rem);
  gap: 1.25rem;
  width: max-content;
  margin: 0;
  padding-block: 0.25rem 0.5rem;
  padding-inline: var(--edge);
  list-style: none;
}

.dest { scroll-snap-align: start; }

.dest__link {
  position: relative; /* keeps the sr-only label inside the scrolling rail */
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  text-decoration: none;
  border-radius: var(--radius-card);
}

.dest__media {
  overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 5;
  background: var(--surface);
}
.dest__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.dest__link:hover .dest__media img { transform: scale(1.04); }

.dest__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.dest__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dest__best {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Best months to go: a quiet twelve-segment line, good months in Sodium */
.months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
  margin-block-start: -0.25rem;
}

.months__m {
  height: 4px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--text) 12%, transparent);
}
.months__m.is-best { background: var(--accent); }

@media (min-width: 1024px) {
  .rail__track { grid-auto-columns: 24rem; gap: 1.5rem; }
}

/* Signature journeys: bento of five */

.journeys {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 0 clamp(5rem, 8vw, 8rem);
}

.journeys__head { margin-block-end: 2.5rem; }

.journeys__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trip__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  text-decoration: none;
  isolation: isolate;
}

.trip__media { overflow: hidden; }
.trip__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.trip__link:hover .trip__media img { transform: scale(1.04); }

.trip__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.trip__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.trip--feature .trip__title { font-size: clamp(1.75rem, 1.6vw + 1.1rem, 2.75rem); }

/* The route: stops joined by short rules, like a line map */
.route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.route li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Rule after each stop, so a wrapped line ends on "continues" rather than starts on it */
.route li:not(:last-child)::after {
  content: "";
  width: 1rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.trip__meta {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
}

/* Keep the card shape when the global focus ring applies */
.trip__link:focus-visible,
.dest__link:focus-visible { border-radius: var(--radius-card); }

/* Photo tiles: picture fills the tile, copy sits on a scrim */
.trip--photo .trip__link {
  justify-content: flex-end;
  min-height: 22rem;
  color: var(--on-deep);
}
.trip--photo .trip__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.trip--photo .trip__media::before,
.trip--photo .trip__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.trip--photo .trip__media::after {
  background: linear-gradient(to top, rgb(var(--shadow) / 0.82) 0%, rgb(var(--shadow) / 0.35) 45%, rgb(var(--shadow) / 0) 70%);
}
/* Extra shade for the bottom of the tile while the details are open */
.trip--photo .trip__media::before {
  z-index: 2;
  background: linear-gradient(to top, rgb(var(--shadow) / 0.55) 0%, rgb(var(--shadow) / 0.25) 40%, rgb(var(--shadow) / 0) 65%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.trip--photo .trip__meta { color: rgb(237 239 234 / 0.85); }

/*
  Details on demand: with a mouse or trackpad the tile shows the title and
  nights; route and price slide up on hover or keyboard focus. Touch screens
  and no-JS keep everything visible. --reveal is the route's height, set by JS.
*/
@media (hover: hover) and (pointer: fine) {
  .js .trip__body {
    transform: translateY(var(--reveal, 0px));
    transition: transform 0.45s var(--ease-out);
  }
  .js .trip__price,
  .js .trip__more {
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
  }

  .js .trip__link:hover .trip__body,
  .js .trip__link:focus-visible .trip__body { transform: translateY(0); }

  .js .trip__link:hover .trip__price,
  .js .trip__link:focus-visible .trip__price,
  .js .trip__link:hover .trip__more,
  .js .trip__link:focus-visible .trip__more {
    opacity: 1;
    transition-delay: 0.08s;
  }

  .js .trip__link:hover .trip__media::before,
  .js .trip__link:focus-visible .trip__media::before { opacity: 1; }
}

@media (min-width: 768px) {
  .journeys__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trip--feature { grid-column: 1 / -1; }
  .trip--feature .trip__link { min-height: 30rem; }
}

@media (min-width: 1024px) {
  .journeys__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(17rem, auto));
    gap: 1.25rem;
  }
  .trip--feature { grid-column: 1 / span 7; grid-row: 1 / span 2; }
  .trip--slot-top { grid-column: 8 / -1; grid-row: 1; }
  .trip--slot-middle { grid-column: 8 / -1; grid-row: 2; }
  .trip--slot-left { grid-column: 1 / span 5; grid-row: 3; }
  .trip--slot-right { grid-column: 6 / -1; grid-row: 3; }

  .trip--photo .trip__link { min-height: 0; }
  .trip--feature .trip__body { padding: 2.25rem; }
}

/*
  How we plan: four moments on a timeline, in the travel designer's voice.
  Desktop with scroll-driven animations: the section pins and the track pans
  sideways as you scroll down (--pan is measured by JS). Everywhere else the
  track is a swipeable snap rail.
*/

.plan {
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  position: relative;
  margin-block-end: clamp(5rem, 8vw, 8rem);
}

.plan__head {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-block-end: 2.5rem;
}

.plan__track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: 0;
  padding: 0.25rem var(--edge) 0.5rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.plan__track::-webkit-scrollbar { display: none; }

.moment {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(85vw, 52rem);
  scroll-snap-align: start;
}

/* The timeline: a dot per moment, the rule running on into the next one */
.moment__when {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}
.moment__when::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.moment__when::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-inline-end: calc(-1 * clamp(1.5rem, 3vw, 3rem));
  background: color-mix(in oklab, var(--text) 18%, transparent);
}

.moment__media {
  overflow: hidden;
  border-radius: var(--radius-card);
  height: clamp(13rem, 36dvh, 26rem);
  background: var(--surface);
}
.moment__media img { width: 100%; height: 100%; object-fit: cover; }

.moment__quote { margin: 0.5rem 0 0; }
.moment__quote p {
  margin: 0;
  max-width: 30ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.moment__fact {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Sign-off: the person behind the words */
/* Same rhythm as the moments: label, picture at the same height, words, then the CTA */
.moment--sign {
  width: auto;
  align-items: flex-start;
}
.moment--sign .moment__when::after { display: none; }

.signoff { margin: 0; display: grid; gap: 1.5rem; }
.signoff__portrait {
  height: clamp(13rem, 36dvh, 26rem);
  width: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.signoff__caption { display: grid; gap: 0.25rem; }
.signoff__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.signoff__role { font-size: 0.9375rem; color: var(--text-muted); }

@supports (animation-timeline: view()) {
  @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .js .plan {
      height: calc(100dvh + var(--pan, 150vw));
      view-timeline: --pan block;
    }
    .js .plan__pin {
      position: sticky;
      inset-block-start: 0;
      height: 100dvh;
      overflow: clip;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-block-start: var(--header-h);
    }
    .js .plan__head { width: 100%; margin-block-end: 2rem; } /* flex child: keep it on the container edge */
    .js .plan__track {
      width: max-content;
      overflow: visible;
      scroll-snap-type: none;
      animation: plan-pan linear both;
      animation-timeline: --pan;
      animation-range: contain 0% contain 100%;
    }
  }
}

@keyframes plan-pan {
  to { transform: translateX(calc(var(--pan, 0px) * -1)); }
}

/*
  Travel by mood: six moods as one block of giant type, on every screen.
  The words are links. With a mouse, pointing at a word fades the others
  back and its photo appears beside it (positioned by JS).
*/

.moods {
  position: relative;
  padding-block: 0 clamp(5rem, 8vw, 8rem);
}

.moods__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.moods__head { margin-block-end: 2.5rem; }

.moods__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.32em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(3rem, 12vw, 7.75rem);
}

.mood { line-height: 1.04; }

.mood__link {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
  transition: opacity 0.35s var(--ease-out), transform 0.2s var(--ease-out);
}
.mood__link:active { transform: scale(0.98); opacity: 0.6; }

.mood__word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.mood__dot { color: var(--accent); }

/* Read out by screen readers with the word; shown visually in the readout line */
.mood__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.moods__readout {
  margin-block: 1.75rem 0;
  min-height: 1.5em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.moods__float { display: none; }

@media (min-width: 768px) {
  .moods__list { font-size: clamp(3.5rem, 7.4vw, 7.75rem); }
}

@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .moods__list:hover .mood__link,
  .moods__list:focus-within .mood__link { opacity: 0.2; }
  .moods__list .mood__link:hover,
  .moods__list .mood__link:focus-visible { opacity: 1; }

  .moods__float {
    display: block;
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    z-index: 3;
    width: clamp(14rem, 18vw, 20rem);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: 0 30px 60px -24px rgb(var(--shadow) / 0.45);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
    will-change: transform;
  }
  .moods.is-showing .moods__float { opacity: 1; }

  .moods__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.4s var(--ease-out), transform 0.8s var(--ease-out);
  }
  .moods__photo.is-active { opacity: 1; transform: scale(1); }
}

/*
  Reviews: two rows of cards drifting in opposite directions, forever.
  Each row holds its cards twice and slides by exactly one set, so the loop
  is seamless. It never pauses; reduced motion turns the rows into still,
  swipeable rails.
*/

.reviews {
  padding-block: 0 clamp(5rem, 8vw, 8rem);
  overflow: hidden;
}

.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-block-end: 2.5rem;
}

.marquee {
  display: grid;
  gap: 1.25rem;
  /* Soft edges so cards drift in and out rather than being cut */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.marquee__row {
  display: flex;
  width: max-content;
}

.marquee__track {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0 1.25rem 0 0;
  list-style: none;
}

.marquee__row--left .marquee__track { animation: marquee-left 70s linear infinite; }
.marquee__row--right .marquee__track { animation: marquee-right 80s linear infinite; }

@keyframes marquee-left {
  to { transform: translateX(-100%); }
}
@keyframes marquee-right {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.review {
  flex: none;
  width: min(80vw, 24rem);
}

.review__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
  margin: 0;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.review__quote { margin: 0; }
.review__quote p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text);
}

.review__by {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.review__thumb {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  object-fit: cover;
}

.review__who { display: grid; gap: 0.125rem; }
.review__name { font-weight: 600; font-size: 0.9375rem; }
.review__trip {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* Phones: quote, photo and name only, so cards stay short */
@media (max-width: 599px) {
  .review { width: 78vw; }
  .review__inner { gap: 1rem; padding: 1.25rem; }
  .review__quote p { font-size: 1rem; }
  .review__thumb { width: 2.25rem; height: 2.25rem; border-radius: 8px; }
  .review__trip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__row {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
    scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
    scrollbar-width: none;
  }
  .marquee__track { animation: none !important; padding: 0; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .review { scroll-snap-align: start; }
}

/*
  Stories: a magazine opening. One cover story set as a spread (photo,
  title, standfirst, byline), then a text-only contents list.
*/

.stories {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 0 clamp(5rem, 8vw, 8rem);
}

.stories__head { margin-block-end: 2.5rem; }

.cover {
  display: grid;
  gap: 1.75rem;
  margin-block-end: clamp(3rem, 5vw, 4.5rem);
}

.cover__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.cover__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.cover:hover .cover__media img { transform: scale(1.03); }

.cover__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cover__label {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.cover__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 2.8vw + 1rem, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.cover__title a {
  text-decoration: none;
  border-radius: 6px;
}
.cover__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }

.cover__standfirst {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.cover__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0.25rem 0 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text);
}

/* Contents: one rule above each entry, nothing else */
.contents__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contents__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title arrow"
    "meta arrow";
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem;
  border-block-start: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
  text-decoration: none;
  color: var(--text);
}

.contents__title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.375rem, 1.4vw + 0.9rem, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: transform 0.4s var(--ease-out);
}

.contents__meta {
  grid-area: meta;
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.contents__arrow {
  grid-area: arrow;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in oklab, var(--text) 18%, transparent);
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}
.contents__arrow svg { width: 1rem; height: 1rem; }

.contents__row:hover .contents__title { transform: translateX(0.5rem); }
.contents__row:hover .contents__arrow,
.contents__row:focus-visible .contents__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: translateX(0.25rem);
}

@media (min-width: 1024px) {
  .cover {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .contents__row {
    grid-template-columns: minmax(0, 1fr) 16rem auto;
    grid-template-areas: "title meta arrow";
    padding-block: 1.75rem;
  }
  .contents__meta { justify-content: space-between; }
}

/*
  Enquiry: the form is one sentence with blanks. Each blank has a small
  visible label above it and its error below it, both positioned so they
  don't disturb the line. Inès and the reply promise sit beside it.
*/

.enquiry {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 0 clamp(5rem, 8vw, 8rem);
}

.enquiry__panel {
  display: grid;
  gap: 2.5rem;
  padding: clamp(1.5rem, 4vw, 4rem);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.sentence { margin-block-start: 2.5rem; }

.sentence__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1vw + 1rem, 2.25rem);
  line-height: 2.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

.blank {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  line-height: 1.25;  /* the box hugs the input, so the label sits just above the typed text */
}

.blank__label {
  position: absolute;
  inset-block-end: 100%;
  inset-inline-start: 0;
  margin-block-end: -0.3rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
}

.blank__input {
  width: var(--w, 12ch);
  max-width: 100%;
  padding: 0 0.1em;
  border: 0;
  border-block-end: 2px solid color-mix(in oklab, var(--text) 30%, transparent);
  border-radius: 0;
  background: transparent;
  font: inherit;
  line-height: 1.25;
  letter-spacing: inherit;
  color: var(--accent-ink);
  transition: border-color 0.2s;
}
/* Grow with what's typed, where the browser can */
@supports (field-sizing: content) {
  .blank__input { field-sizing: content; width: auto; min-width: 4ch; }
}
.blank__input::placeholder { color: var(--text-muted); opacity: 1; font-weight: 500; }
.blank__input:hover { border-block-end-color: color-mix(in oklab, var(--text) 55%, transparent); }
.blank__input:focus { outline: none; border-block-end-color: var(--accent); }
/* Focus is a heavier, darker underline: a ring would cut through the label above */
.blank__input:focus-visible { outline: none; border-block-end: 3px solid var(--accent-ink); margin-block-end: -1px; }
.blank__input[aria-invalid="true"] { border-block-end-color: var(--accent-ink); }

/* Errors take the label's place above the blank, so they never collide with the next line */
.blank__error {
  position: absolute;
  inset-block-end: 100%;
  inset-inline-start: 0;
  margin-block-end: -0.3rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent-ink);
}
.blank__error:empty { display: none; }
/* Hidden visually only; the label still names the field for screen readers */
.blank:has(.blank__error:not(:empty)) .blank__label { opacity: 0; }

/* The optional notes, styled like the blanks: mono label, underline, typed text in accent-ink */
.sentence__notes {
  display: grid;
  gap: 0.375rem;
  max-width: 44rem;
  margin-block-start: 1.75rem;
}
.sentence__notes-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sentence__notes textarea {
  min-height: 0;
  padding: 0 0.1em 0.25rem;
  border: 0;
  border-block-end: 2px solid color-mix(in oklab, var(--text) 30%, transparent);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.125rem, 0.6vw + 0.9rem, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
  resize: none;
  transition: border-color 0.2s;
}
@supports (field-sizing: content) {
  .sentence__notes textarea { field-sizing: content; }
}
.sentence__notes textarea::placeholder { color: var(--text-muted); opacity: 1; font-weight: 500; }
.sentence__notes textarea:hover { border-block-end-color: color-mix(in oklab, var(--text) 55%, transparent); }
.sentence__notes textarea:focus { outline: none; border-block-end-color: var(--accent); }
.sentence__notes textarea:focus-visible { outline: none; border-block-end: 3px solid var(--accent-ink); margin-block-end: -1px; }

.sentence__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-block-start: 2rem;
}
.sentence__submit[disabled] { opacity: 0.7; cursor: progress; }
.sentence__status {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.sentence__status.is-error { color: var(--accent-ink); font-weight: 500; }

.sent { margin-block-start: 2.5rem; }
.sent:focus { outline: none; }
.sent__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 2vw + 1rem, 3rem);
  letter-spacing: -0.02em;
}
.sent__text { margin: 0.75rem 0 0; max-width: 44ch; font-size: 1.0625rem; color: var(--text-muted); }

/* Who replies: a small contact card for Inès */
.host {
  display: grid;
  gap: 1.5rem;
  align-self: start;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--bg);
}

.host__who {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.host__portrait {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
}
.host__name {
  margin: 0;
  display: grid;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}
.host__name span { font-weight: 400; font-size: 0.875rem; color: var(--text-muted); }

.host__promise {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.host__call {
  display: grid;
  gap: 0.375rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
}
.host__call-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.host__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--text);
  text-decoration: none;
}
.host__phone svg { width: 1.125rem; height: 1.125rem; color: var(--accent); }
.host__phone:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.host__hours { font-size: 0.875rem; color: var(--text-muted); }

@media (min-width: 1024px) {
  .enquiry__panel {
    grid-template-columns: minmax(0, 8fr) minmax(0, 3.5fr);
    gap: clamp(3rem, 5vw, 5rem);
  }
}

