:root {
  --abyss: #102b35;
  --night: #07171d;
  --brine: #1e5361;
  --foam: #eff1e9;
  --chalk: #faf8f2;
  --sand: #e8b470;
  --clay: #bd6e57;
  --mist: #c8d9d5;
  --line: color-mix(in srgb, var(--abyss) 16%, transparent);
  --hairline: color-mix(in srgb, var(--foam) 24%, transparent);
  --rail: min(1180px, calc(100% - 3rem));
  --reading: min(760px, 100%);
  --serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  --sans: Avenir Next, Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { margin: 0; background: var(--chalk); color: var(--abyss); font-family: var(--sans); font-size: 16px; line-height: 1.75; text-rendering: optimizeLegibility; }
body::selection { background: var(--sand); color: var(--night); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sand); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--night); font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
h1 { max-width: 14ch; margin-bottom: 1.35rem; font-size: clamp(3rem, 7vw, 6.4rem); }
h2 { margin: 3.8rem 0 1.15rem; font-size: clamp(2rem, 4.5vw, 3.65rem); }
h3 { margin: 2.2rem 0 .7rem; font-size: clamp(1.36rem, 2.1vw, 1.8rem); }

.coral-hull { min-height: 100vh; overflow-x: hidden; }
.coral-gutter { width: var(--rail); margin-inline: auto; }
.coral-band { min-height: 70vh; }
.pulse-jump { position: fixed; top: .75rem; left: .75rem; z-index: 50; padding: .55rem .8rem; color: var(--foam); background: var(--night); text-decoration: none; transform: translateY(-180%); transition: transform 160ms ease; }
.pulse-jump:focus { transform: translateY(0); }
.pulse-kicker { margin-bottom: .8rem; color: var(--brine); font-size: .69rem; font-weight: 800; letter-spacing: .16em; line-height: 1.35; text-transform: uppercase; }

.beacon-crest { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid color-mix(in srgb, var(--abyss) 10%, transparent); background: color-mix(in srgb, var(--chalk) 88%, transparent); backdrop-filter: blur(18px); }
.beacon-crest__line { display: flex; min-height: 5.2rem; align-items: center; justify-content: space-between; gap: 1rem; }
.beacon-mark { display: inline-flex; align-items: center; gap: .72rem; color: var(--night); text-decoration: none; }
.beacon-mark img { width: 2.7rem; height: 2.7rem; border-radius: .7rem; object-fit: cover; }
.beacon-mark strong, .beacon-mark small { display: block; }
.beacon-mark strong { font-size: .96rem; letter-spacing: .025em; line-height: 1; }
.beacon-mark small { margin-top: .28rem; color: color-mix(in srgb, var(--abyss) 62%, transparent); font-size: .56rem; font-weight: 700; letter-spacing: .08em; line-height: 1.2; }
.beacon-fold { position: relative; }
.beacon-fold > summary { display: none; }
.beacon-menu .shoal-fleet { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.7rem); margin: 0; padding: 0; list-style: none; }
.beacon-menu a { color: color-mix(in srgb, var(--abyss) 78%, transparent); font-size: .75rem; font-weight: 800; letter-spacing: .025em; text-decoration: none; white-space: nowrap; transition: color 160ms ease; }
.beacon-menu a:hover, .beacon-menu a[aria-current="page"] { color: var(--clay); }

.reef-trail { display: flex; gap: .65rem; padding-top: 2rem; color: color-mix(in srgb, var(--abyss) 58%, transparent); font-size: .74rem; }
.reef-trail a { color: var(--brine); font-weight: 800; }
.reef-trail span:last-child { overflow: hidden; max-width: 32ch; text-overflow: ellipsis; white-space: nowrap; }
.reef-brief { position: relative; padding: clamp(3.25rem, 8vw, 7.75rem) 0 clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--line); }
.reef-brief.-onHome { overflow: hidden; color: var(--foam); background: var(--night); }
.reef-horizon { position: absolute; inset: 0; z-index: 0; margin: 0; }
.reef-horizon::after { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--night) 96%, transparent) 0%, color-mix(in srgb, var(--night) 76%, transparent) 51%, color-mix(in srgb, var(--night) 42%, transparent) 100%); content: ""; }
.reef-horizon img { width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: .9; }
.reef-brief.-onHome .reef-script { position: relative; z-index: 1; }
.reef-script { width: var(--reading); }
.reef-script > :first-child { margin-top: 0; }
.reef-script > p { max-width: 62ch; color: color-mix(in srgb, var(--abyss) 88%, transparent); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.reef-script > ul, .reef-script > ol { margin: 1.2rem 0; padding-left: 1.35rem; }
.reef-script li + li { margin-top: .55rem; }
.reef-script a { color: var(--brine); font-weight: 750; }
.reef-script blockquote { margin: 1.8rem 0; padding: 1.1rem 1.35rem; border-left: 3px solid var(--sand); background: color-mix(in srgb, var(--sand) 12%, transparent); font-family: var(--serif); font-size: 1.1rem; }
.reef-script.-onHome h1, .reef-script.-onHome h2, .reef-script.-onHome h3, .reef-brief.-onHome h1, .reef-brief.-onHome h2, .reef-brief.-onHome h3 { color: var(--foam); }
.reef-brief.-onHome .reef-script > p, .reef-brief.-onHome .reef-script li { color: color-mix(in srgb, var(--foam) 90%, transparent); }
.reef-brief.-onHome .reef-script a { color: var(--sand); }
.reef-brief.-onHome .reef-script h2 { margin-top: 4.8rem; }
.reef-brief.-onHome .reef-script blockquote { background: color-mix(in srgb, var(--foam) 12%, transparent); }

.reef-current { padding: clamp(4rem, 9vw, 8.5rem) 0; }
.reef-current h2 { max-width: 12ch; margin-top: 0; }
.shoal-current { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2rem, 5vw, 4.2rem); border: 1px solid var(--line); }
.shoal-chip { position: relative; display: flex; min-height: 21rem; flex-direction: column; padding: clamp(1.45rem, 2.5vw, 2rem); border-right: 1px solid var(--line); color: var(--abyss); background: var(--chalk); text-decoration: none; transition: transform 250ms cubic-bezier(.2,.8,.2,1), box-shadow 250ms ease, background 250ms ease; }
.shoal-chip:last-child { border-right: 0; }
.shoal-chip:hover { z-index: 1; background: #fffefb; box-shadow: 0 1.25rem 2.5rem color-mix(in srgb, var(--night) 15%, transparent); transform: translateY(-.65rem) rotate(-.2deg); }
.shoal-chip__index { color: var(--clay); font-family: var(--serif); font-size: 1.08rem; }
.shoal-chip__title { margin-top: auto; margin-bottom: .75rem; font-size: clamp(1.65rem, 2.6vw, 2.25rem); }
.shoal-chip__note { margin: 0; color: color-mix(in srgb, var(--abyss) 72%, transparent); font-size: .91rem; line-height: 1.7; }
.shoal-chip__go { margin-top: 1.55rem; color: var(--brine); font-size: .75rem; font-weight: 800; letter-spacing: .04em; }

.reef-reel { padding: clamp(4rem, 9vw, 8rem) 0; color: var(--foam); background: var(--abyss); }
.reef-reel__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .55fr); align-items: end; gap: 2rem; }
.reef-reel h2, .reef-vouch h2 { margin-top: 0; }
.reef-reel h2 { max-width: 12ch; color: var(--foam); }
.reef-reel .pulse-kicker { color: var(--sand); }
.reef-reel__head > p { max-width: 30ch; margin: 0; color: color-mix(in srgb, var(--foam) 74%, transparent); font-size: .9rem; }
.shoal-reel { display: grid; grid-auto-columns: minmax(15rem, 25rem); grid-auto-flow: column; gap: 1rem; overflow-x: auto; margin: clamp(2rem, 5vw, 3.8rem) max(0px, calc((100vw - var(--rail)) / -2)) 0; padding: 0 max(1.5rem, calc((100vw - var(--rail)) / 2)) 1rem; scroll-snap-type: x mandatory; scrollbar-color: var(--sand) transparent; }
.shoal-reel__frame { position: relative; margin: 0; overflow: hidden; scroll-snap-align: start; background: var(--night); }
.shoal-reel__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; opacity: .86; filter: saturate(.78); transition: opacity 350ms ease, filter 350ms ease, transform 700ms cubic-bezier(.2,.8,.2,1); }
.shoal-reel__frame:hover img { opacity: 1; filter: saturate(1.1); transform: scale(1.07); }
.shoal-reel__frame figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 2.7rem 1.15rem 1.1rem; color: var(--foam); background: linear-gradient(transparent, color-mix(in srgb, var(--night) 88%, transparent)); font-family: var(--serif); font-size: 1.1rem; }

.reef-vouch { padding: clamp(4rem, 9vw, 8rem) 0; }
.reef-vouch__line { display: grid; grid-template-columns: minmax(0, .8fr) minmax(19rem, 1.2fr); gap: clamp(2.5rem, 9vw, 10rem); }
.reef-vouch h2 { max-width: 11ch; }
.reef-slate { border-top: 1px solid var(--line); }
.reef-slate a { display: grid; grid-template-columns: 2rem 1fr auto; gap: .75rem; align-items: center; padding: 1.15rem .15rem; border-bottom: 1px solid var(--line); color: var(--abyss); text-decoration: none; transition: padding 180ms ease, color 180ms ease; }
.reef-slate a:hover { padding-inline: .7rem; color: var(--brine); }
.reef-slate span { color: var(--clay); font-family: var(--serif); }
.reef-slate i { font-style: normal; }
.reef-vouch--outbound { border-top: 1px solid var(--line); color: var(--foam); background: var(--night); }
.reef-vouch--outbound h2 { color: var(--foam); }
.reef-vouch--outbound .pulse-kicker { color: var(--sand); }
.beacon-hail { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.4rem; align-self: center; min-width: min(100%, 18rem); padding: 1rem 1.25rem; border: 1px solid color-mix(in srgb, var(--sand) 75%, transparent); color: var(--sand); font-size: .8rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.beacon-hail:hover { color: var(--night); background: var(--sand); transform: translateY(-.2rem); }
.beacon-hail span { font-size: 1.2rem; }

.coral-hull__foot { color: var(--foam); background: var(--abyss); }
.coral-hull__footline { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(13rem, .6fr); gap: clamp(2rem, 10vw, 12rem); padding: 4rem 0 2.75rem; }
.coral-hull__foot .pulse-kicker { color: var(--sand); }
.coral-hull__note { max-width: 47ch; margin: 0; color: color-mix(in srgb, var(--foam) 72%, transparent); font-size: .88rem; }
.reef-ledge { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.reef-ledge a { color: color-mix(in srgb, var(--foam) 82%, transparent); font-size: .8rem; text-decoration: none; }
.reef-ledge a:hover { color: var(--sand); }
.coral-hull__legal { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--hairline); color: color-mix(in srgb, var(--foam) 58%, transparent); font-size: .68rem; }

@media (max-width: 760px) {
  :root { --rail: min(100% - 2rem, 1180px); }
  .beacon-crest__line { min-height: 4.6rem; }
  .beacon-mark img { width: 2.35rem; height: 2.35rem; }
  .beacon-mark small { display: none; }
  .beacon-fold > summary { display: inline-flex; align-items: center; gap: .65rem; color: var(--night); cursor: pointer; font-size: .74rem; font-weight: 800; list-style: none; }
  .beacon-fold > summary::-webkit-details-marker { display: none; }
  .beacon-fold > summary i, .beacon-fold > summary i::before { display: block; width: 1.2rem; height: 1px; background: currentColor; content: ""; }
  .beacon-fold > summary i::before { transform: translateY(-.33rem); }
  .beacon-fold[open] > summary i::before { transform: translateY(.33rem); }
  .beacon-menu { position: absolute; top: calc(100% + 1.1rem); right: 0; width: min(18rem, calc(100vw - 2rem)); padding: 1rem; border: 1px solid var(--line); background: var(--chalk); box-shadow: 0 1.5rem 3rem color-mix(in srgb, var(--night) 18%, transparent); }
  .beacon-menu .shoal-fleet { display: grid; gap: .15rem; }
  .beacon-menu a { display: block; padding: .75rem; }
  .reef-brief { padding: 3.4rem 0 4.5rem; }
  .reef-horizon::after { background: linear-gradient(180deg, color-mix(in srgb, var(--night) 89%, transparent), color-mix(in srgb, var(--night) 97%, transparent)); }
  .reef-horizon img { object-position: center; }
  h1 { font-size: clamp(2.7rem, 15vw, 4.2rem); }
  .shoal-current, .reef-reel__head, .reef-vouch__line, .coral-hull__footline { grid-template-columns: 1fr; }
  .shoal-chip { min-height: 15rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .shoal-chip:last-child { border-bottom: 0; }
  .reef-reel__head > p { max-width: 47ch; }
  .shoal-reel { grid-auto-columns: minmax(76vw, 20rem); }
  .reef-vouch__line { gap: 2rem; }
  .beacon-hail { width: 100%; }
  .coral-hull__legal { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
