/* ---- sections ---- */
.section { padding-block: clamp(3.6rem, 7vw, 6rem); }
.section-shell { max-width: 46rem; }
.section-lede { margin-top: 1rem; font-size: 1.1rem; color: var(--ink-soft); max-width: 40rem; }
.band { background: var(--shell); border-block: 1px solid var(--line); }

/* ---- charters: an index ordered by length of day ---- */
.charter-index {
  list-style: none; margin: 2.6rem 0 0; padding: 0;
  /* Left column only, so the dolphin below keeps the right half. */
  max-width: 41rem;
  border-top: 1px solid var(--line);
}
.charter-index a {
  display: grid; grid-template-columns: 8.25rem 1fr auto;
  align-items: center; gap: 1.4rem;
  padding: 1.15rem .9rem 1.15rem .25rem;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease;
}
/* Tabular figures so 2, 3, 4, 6, 10 sit on one axis and the eye can run
   straight down the column. */
.charter-span {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .35rem;
  font-size: .82rem; font-weight: 700; color: var(--ink-soft);
}
/* "days or more" drops under the numeral whole rather than breaking apart. */
.charter-span i { font-style: normal; white-space: nowrap; }
.charter-span b {
  font-family: var(--display); font-weight: 500; font-size: 2.15rem;
  letter-spacing: -0.03em; color: var(--ink);
  font-variant-numeric: tabular-nums; font-optical-sizing: auto;
  transition: color .2s ease;
}
.charter-name {
  font-family: var(--display); font-weight: 500; font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.charter-go {
  width: 22px; height: 22px; color: var(--ink-soft);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), color .2s ease;
}
/* Hover only where there is a real pointer: on a phone a tap leaves the
   hover state stuck on the row you just left. The press is for everyone. */
@media (hover: hover) {
  .charter-index a:hover { background: var(--shell); }
  .charter-index a:hover .charter-span b,
  .charter-index a:hover .charter-go { color: var(--orange-ink); }
  .charter-index a:hover .charter-go { transform: translateX(5px); }
}
/* Lists of links press like a row being picked. */
:is(.charter-index a, .booking-list a, .wildlife-month a):active { background: var(--shell); }
.charter-index a:focus-visible {
  outline: 3px solid var(--orange-ink); outline-offset: -3px; border-radius: 4px;
}
.charter-footnote {
  max-width: 41rem; margin-top: 1.6rem;
  font-size: .95rem; color: var(--ink-soft);
}
.charter-footnote .text-link {
  display: inline-block; color: var(--orange-ink); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
/* Narrow screens cannot hold "10" and "days or more" beside their numerals,
   and widening the column just to fit the longest one leaves the rest ragged.
   Stack every row the same way instead, like a date block. */
@media (max-width: 560px) {
  .charter-index a { grid-template-columns: 5.2rem minmax(0, 1fr) auto; gap: .9rem; }
  .charter-span { flex-direction: column; align-items: flex-start; gap: 0; }
  .charter-span b { font-size: 1.75rem; line-height: 1.05; }
  .charter-span i { font-size: .76rem; }
  .charter-name { font-size: 1.06rem; }
}

/* ---- a day with us: one column on a rail ----
   The rail is the section's only device. A grey track, a column of water
   that fills to the scroll position (--fill, set by the script), and a node
   at each title that fills and throws one ring when the water reaches it.
   Nothing is hidden by default: the dim-until-wet reveal only switches on
   when the script has taken charge (.spine-on). */
.day .section-shell { max-width: 40rem; }
.spine {
  --rail-x: 1rem;
  position: relative; list-style: none; margin: 3rem 0 0; padding: 0 0 0 3.6rem;
  max-width: 60rem;
}
.spine::before, .spine::after {
  content: ""; position: absolute; top: .4rem; bottom: 0;
  left: calc(var(--rail-x) - 1.5px); width: 3px; border-radius: 3px;
}
.spine::before { background: var(--line); }
.spine::after {
  bottom: auto; height: calc(var(--fill, 1) * (100% - .4rem));
  background: linear-gradient(to bottom, var(--sea-bright), var(--sea));
}
.beat { position: relative; padding-bottom: clamp(3rem, 6vw, 5rem); }
.beat:last-child { padding-bottom: 0; }
/* the node, and the ring it throws */
.beat::before, .beat::after {
  content: ""; position: absolute; top: .55em; left: calc(-3.6rem + var(--rail-x) - 9px);
  width: 18px; height: 18px; border-radius: 50%;
}
.beat::before {
  background: var(--paper); border: 3px solid var(--line);
  transition: border-color .3s ease, background-color .3s ease, transform .3s cubic-bezier(.2,.7,.2,1);
}
.beat::after { border: 2px solid var(--sea-bright); opacity: 0; pointer-events: none; }
.beat.is-wet::before { border-color: var(--sea); background: var(--sea-bright); transform: scale(1.15); }
.beat.is-wet::after { animation: splash .9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes splash {
  from { transform: scale(1); opacity: .9; }
  to   { transform: scale(3.4); opacity: 0; }
}
.beat h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; max-width: 18ch; }
.beat p { margin-top: .7rem; max-width: 36rem; color: var(--ink-soft); }
.beat-media { display: grid; gap: 1rem; margin-top: 1.6rem; }
.beat-media--pair { grid-template-columns: 1fr 1fr; }
.beat-media figure { margin: 0; }
.beat-media img { width: 100%; height: auto; border-radius: var(--radius); }
/* dim-until-wet, script only */
.spine-on .beat > * { opacity: .38; transform: translateY(8px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.spine-on .beat.is-wet > * { opacity: 1; transform: none; }
.spine-on .beat.is-wet p { transition-delay: .06s; }
.spine-on .beat.is-wet .beat-media { transition-delay: .12s; }
@media (max-width: 560px) {
  .spine { --rail-x: .5rem; padding-left: 2.3rem; }
  .beat::before, .beat::after { left: calc(-2.3rem + var(--rail-x) - 8px); width: 16px; height: 16px; }
  .beat-media--pair { gap: .6rem; }
  .beat-media img { border-radius: var(--radius); }
}
@media (prefers-reduced-motion: reduce) {
  .beat::before, .beat::after, .spine-on .beat > * { transition: none; animation: none; }
}

/* ---- two kinds of day: two equal columns, each with its own frame ---- */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); margin-top: 2.2rem; }
.two-up img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.two-up h3 { margin-top: 1.3rem; }
@media (max-width: 700px) { .two-up { grid-template-columns: 1fr; } }

/* ---- included: the trust block ---- */
.inc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.4rem 2rem; margin-top: 2.2rem;
}
.inc p { padding-top: .9rem; border-top: 2px solid var(--orange); font-weight: 600; }
.inc strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }

/* ---- split feature ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); width: 100%; height: auto; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

/* ---- quotes ---- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.2rem; margin-top: 2.2rem; }
.quote { border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); padding: 1.6rem; }
.quote p { font-size: 1.04rem; }
.quote footer { margin-top: 1rem; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }

/* ---- contact ---- */
.contact-band { background: var(--ink); color: #fff; }
.contact-band .eyebrow { color: var(--orange); }

.contact-band h2 { color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.contact-note { margin-top: 1.6rem; color: rgba(255,255,255,.75); font-size: .95rem; }

footer.site-foot { padding-block: 2.4rem; font-size: .86rem; color: var(--ink-soft); }
.home-foot-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.home-foot-grid nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem 1.25rem; font-weight: 500; }
@media (hover: hover) { .home-foot-grid a:hover { color: var(--orange-ink); } }
@media (max-width: 680px) {
  .home-foot-grid { flex-direction: column; }
  .home-foot-grid nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 88vh; }
  .hero-facts { gap: .3rem 1.1rem; font-size: .85rem; }
}

/* ---- who they work with: their own published partners ---- */
.partners { padding-block: 2.6rem; border-bottom: 1px solid var(--line); }
.partners p {
  text-align: center; font-size: .74rem; font-weight: 650;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}
.partner-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.8rem, 5vw, 3.6rem); margin-top: 1.6rem;
}
.partner-row img {
  height: 42px; width: auto;
  filter: grayscale(100%); opacity: .62;
  transition: filter .2s ease, opacity .2s ease;
}
@media (hover: hover) { .partner-row img:hover { filter: none; opacity: 1; } }
.partner-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.2rem; margin-top: 1.5rem; font-size: .9rem; color: var(--ink-soft); }
@media (hover: hover) { .partner-links a:hover { color: var(--orange-ink); } }
@media (max-width: 640px) { .partner-row img { height: 32px; } }

/* ---- gallery: give the photography room ---- */
.gallery {
  display: grid; gap: 14px; margin-top: 2.4rem;
  grid-template-columns: repeat(4, 1fr);
}
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
.gallery .full { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
@media (max-width: 780px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .wide, .gallery .full { grid-column: 1 / -1; }
  .gallery .tall { grid-row: auto; }
}

/* ---- the wildlife shot: their own claim, with the evidence under it ---- */
.wildlife-shot { margin: 2.6rem 0 0; }
.wildlife-shot img { width: 100%; height: auto; border-radius: var(--radius); }
.wildlife-shot figcaption {
  margin-top: 1.1rem; font-size: 1.15rem; font-weight: 600;
  padding-left: 1.1rem; border-left: 1px solid var(--orange);
}

/* ============================================================
   CORNISH SURF — the pass that takes the corporate out.
   Warm paper instead of clinical white, a coral accent doing the
   shouting, chunkier shapes, and a wave where the photo stops.
   The restraint stays in the layout; the fun lives in colour,
   shape and type. A £1,275 charter still has to look worth it.
   ============================================================ */
.band { background: var(--shell); }
.partners { background: var(--paper); }

/* The hero ends on a wave rather than a ruled edge. Drawn in CSS-embedded
   SVG so there's still no second request to make. */
.hero::after {
  content: ""; position: absolute; z-index: 3;
  left: 0; right: 0; bottom: -1px; height: clamp(38px, 5vw, 72px);
  background: var(--paper);
  -webkit-mask: var(--wave) bottom/100% 100% no-repeat;
  mask: var(--wave) bottom/100% 100% no-repeat;
}
:root {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,54 C170,96 330,10 540,32 C760,55 880,104 1080,74 C1230,52 1350,20 1440,34 L1440,90 L0,90 Z' fill='%23000'/%3E%3C/svg%3E");
}

/* The badge is a sticker now — knocked a degree off true so it reads
   as something stuck on rather than something laid out. */
.hero-badge {
  transform: rotate(-1.4deg);
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.18);
}
.hero-badge::before { background: var(--orange); width: 8px; height: 8px; }

/* A dolphin in the empty half of the price grid. Painted through a mask
   rather than shipped as a coloured image, so the tint comes from the brand
   token — and so it can never be dark enough to fight the prices. */
#experiences { position: relative; overflow: hidden; }
#experiences > .shell { position: relative; z-index: 1; }
#experiences::before {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  right: 4%; bottom: 18%;
  width: min(26%, 320px); aspect-ratio: 620 / 563;
  background-color: var(--orange);
  -webkit-mask: url("assets/dolphin-mask.webp") no-repeat center / contain;
  mask: url("assets/dolphin-mask.webp") no-repeat center / contain;
  opacity: .1;
}
/* On a phone the cards fill the width, so there is no empty half to fill —
   it would sit under the text instead of beside it. */
@media (max-width: 900px) { #experiences::before { display: none; } }
@media (max-width: 900px) { .charter-index, .charter-footnote { max-width: none; } }

/* Rules alternate between the two brand colours. One flat colour across all
   six was the corporate tell; inventing a third would be off-brand. */
.inc p { border-top-width: 4px; }
.inc:nth-child(odd) p  { border-top-color: var(--orange); }
.inc:nth-child(even) p { border-top-color: var(--ink); }

.wildlife { border-left-color: var(--orange); border-radius: var(--radius); }
.wildlife-shot figcaption { border-left-color: var(--orange); }
.gallery figure, .split img, .quote { border-radius: var(--radius); }


/* Deep water rather than boardroom charcoal. */
.contact-band { background: linear-gradient(160deg, #0a6b72 0%, #113238 78%); }
.contact-band .eyebrow { color: var(--orange); }
