/* Event Club — The Sovereign Cove
   The Clear Blue Air Club. Sibling of thesovereigncove.com: same typefaces and
   teal family, turned to night. */

@view-transition { navigation: auto; }

:root {
  --night: #071416;
  --night-2: #0f1d20;
  --deep: #17383e;
  --teal: #256060;
  --sea: #6bcac9;
  --sand: #f2e6d6;
  --paper: #fbfaf6;
  --ink: #162525;
  --soft: #c5d0d0;        /* body copy on night */
  --quiet: #91a2a3;       /* labels on night */
  --quiet-ink: #566768;   /* body copy on paper */
  --line: rgba(255, 255, 255, 0.13);
  --line-ink: #e0ded7;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --navh: 84px;
  --t-display: clamp(30px, 8.6vw, 104px);
  --t-heading: clamp(32px, 3.9vw, 54px);
  --t-sub: clamp(22px, 2vw, 28px);
  --t-lead: clamp(17px, 1.45vw, 19px);
  --t-body: 17px;
  --gutter: clamp(24px, 6vw, 96px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navh);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--sand);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure, table, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 1px solid var(--sea); outline-offset: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--sand); color: var(--ink); padding: 10px 16px;
}
.skip:focus { top: 16px; }

/* The Cove's small label: tracked sans capitals */
.kicker,
.site-links,
.btn,
.facts span,
.ledger th,
.tier-scale,
.day-tabs button,
.filters button,
.travel span,
.chapter .go,
.sound span,
.site-footer .row {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.kicker { color: var(--quiet); }

.nav-link { position: relative; transition: color 0.4s; }
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100%;
  transition: transform 0.5s var(--ease);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current]::after { transform: scaleX(1); transform-origin: 0; }

.btn {
  display: inline-block;
  padding: 15px 28px;
  border: 1px solid currentColor;
  white-space: nowrap;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.btn:hover { background: var(--sand); border-color: var(--sand); color: var(--night); }
.btn.solid { background: var(--sea); border-color: var(--sea); color: var(--night); }
.btn.solid:hover { background: var(--sand); border-color: var(--sand); }

/* Sections ease in as they are reached (only when the script is running) */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff;
  background: linear-gradient(rgba(7, 20, 22, 0.72), rgba(7, 20, 22, 0));
  transition: background 0.5s, box-shadow 0.5s;
}
.site-header.scrolled {
  background: rgba(7, 20, 22, 0.94);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1600px; margin: 0 auto;
  height: var(--navh);
  padding: 0 clamp(20px, 3.4vw, 48px);
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { width: 52px; height: 52px; flex: none; border-radius: 50%; }
.brand b {
  display: block;
  font-family: var(--serif); font-weight: 500;
  font-size: 18px; letter-spacing: 0.26em; text-transform: uppercase;
  line-height: 1.2; white-space: nowrap;
}
.brand small {
  display: block; margin-top: 3px;
  font-size: 9.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72); white-space: nowrap;
}
.site-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.site-links .btn { padding: 12px 20px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: rgba(7, 20, 22, 0.97); color: #fff;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--serif); font-size: 24px; letter-spacing: 0.2em; text-transform: uppercase;
}
.mobile-menu a[aria-current] { color: var(--sea); }
.mobile-menu .close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; }

@media (max-width: 1180px) {
  .site-links > a { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 560px) {
  :root { --navh: 72px; }
  .brand { gap: 12px; }
  .brand img { width: 42px; height: 42px; }
  .brand b { font-size: 14px; letter-spacing: 0.2em; }
  .brand small { font-size: 8.5px; letter-spacing: 0.28em; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  height: 100svh; min-height: 560px;
  background: var(--deep); color: #fff;
}
.hero > video,
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero .shade {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(7, 20, 22, 0.5), rgba(7, 20, 22, 0.18) 40%, rgba(7, 20, 22, 0.82));
}
.hero .inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--navh) 24px 0;
}
.hero .kicker { color: rgba(255, 255, 255, 0.9); margin-bottom: 26px; }
.hero h1 {
  font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.01em;
  max-width: 1100px;
}
.hero .tag {
  max-width: 900px; margin-top: 28px;
  font-size: var(--t-lead); line-height: 1.75; color: rgba(255, 255, 255, 0.9);
  text-wrap: balance;
}
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 44px; }

/* The film's sound switch */
.sound {
  position: absolute; left: clamp(20px, 3.4vw, 48px); bottom: 28px; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px;
  background: rgba(7, 20, 22, 0.45); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background 0.4s, border-color 0.4s;
}
.sound[hidden] { display: none; }
.sound:hover { background: rgba(7, 20, 22, 0.78); border-color: #fff; }
.sound .on { display: none; }
.sound[aria-pressed="true"] .on { display: inline; }
.sound[aria-pressed="true"] .off { display: none; }

/* Inner pages: the photograph fills the screen and holds still, so as much of it as possible
   is in view (a shorter band cropped it hard). Title set low and left. */
.hero.tall { height: 100svh; min-height: 480px; }
@media (max-aspect-ratio: 1/1) { .hero.tall { height: 62svh; min-height: 440px; } }
.hero.tall .shade {
  background: linear-gradient(rgba(7, 20, 22, 0.45), rgba(7, 20, 22, 0.1) 35%, rgba(7, 20, 22, 0.9));
}
.hero.tall .inner {
  align-items: flex-start; justify-content: flex-end; text-align: left;
  padding: 0 var(--gutter) clamp(48px, 7vw, 96px);
}
.hero.tall h1 { font-size: clamp(34px, 5.4vw, 84px); max-width: none; }
.hero.tall .tag { margin-top: 20px; max-width: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero .inner > * { animation: rise 1.4s var(--ease) both; }
  .hero .inner > :nth-child(2) { animation-delay: 0.12s; }
  .hero .inner > :nth-child(3) { animation-delay: 0.24s; }
  .hero .inner > :nth-child(4) { animation-delay: 0.36s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* ---------- Facts ---------- */

.facts { border-bottom: 1px solid var(--line); padding: 58px 24px; }
.facts .row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  max-width: 1300px; margin: 0 auto; text-align: center;
}
.facts b {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 5vw, 68px); line-height: 1; color: var(--sand);
  font-variant-numeric: lining-nums tabular-nums;
}
.facts span { display: block; margin-top: 14px; color: var(--quiet); line-height: 1.9; }
@media (max-width: 800px) { .facts .row { grid-template-columns: repeat(2, 1fr); gap: 44px 20px; } }

/* ---------- Statement ---------- */

.statement { text-align: center; padding: clamp(96px, 13vw, 176px) 24px; }
.statement.snug { padding-bottom: clamp(48px, 6vw, 80px); }
.statement .wrap { max-width: 1320px; margin: 0 auto; }
.statement .kicker { margin-bottom: 36px; }
.statement h2 { font-size: var(--t-heading); line-height: 1.18; letter-spacing: -0.005em; }
.statement .sub {
  max-width: 960px; margin: 32px auto 0;
  font-size: var(--t-lead); line-height: 1.75; color: var(--soft);
  text-wrap: balance;
}

/* ---------- Home: five doors that open as you move across them ---------- */

.chapters { display: flex; gap: 2px; height: min(76vh, 720px); min-height: 460px; }
.chapter {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: #fff;
  transition: flex-grow 0.8s var(--ease);
}
.chapter:focus-visible { outline-offset: -6px; }
.chapter img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.7) brightness(0.78);
  transition: transform 1.6s var(--ease), filter 0.8s;
}
.chapter .shade {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(7, 20, 22, 0.05) 30%, rgba(7, 20, 22, 0.9));
}
.chapter .txt {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 clamp(18px, 2vw, 32px) clamp(28px, 3vw, 44px);
}
.chapter b {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1;
}
.chapter em,
.chapter .go {
  display: block; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.8s var(--ease), opacity 0.6s, margin 0.8s var(--ease);
}
.chapter em {
  font-style: normal; font-size: 16px; line-height: 1.65; max-width: 23em;
  color: rgba(255, 255, 255, 0.92);
}
.chapter .go { color: var(--sea); }
.chapter:hover,
.chapter:focus-visible { flex-grow: 2.6; }
.chapter:hover img,
.chapter:focus-visible img { transform: scale(1.05); filter: none; }
.chapter:hover em,
.chapter:focus-visible em { max-height: 9em; opacity: 1; margin-top: 14px; }
.chapter:hover .go,
.chapter:focus-visible .go { max-height: 3em; opacity: 1; margin-top: 18px; }
@media (max-width: 900px), (hover: none) {
  .chapters { flex-direction: column; height: auto; min-height: 0; }
  .chapter { flex: none; height: 46vh; min-height: 280px; }
  .chapter img { filter: none; }
  .chapter em { max-height: none; opacity: 1; margin-top: 12px; }
  .chapter .go { max-height: none; opacity: 1; margin-top: 16px; }
}

/* ---------- Split: picture beside copy ---------- */

.splits {
  display: grid; gap: clamp(96px, 11vw, 168px);
  max-width: 1448px; margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) 24px;
}
.split {
  display: grid; grid-template-columns: 7fr 5fr; align-items: center;
  gap: clamp(36px, 4.5vw, 72px);
}
.split.rev { grid-template-columns: 5fr 7fr; }
.split.rev .pic { order: 2; }
.split .pic { height: min(78vh, 720px); overflow: hidden; }
.split .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.split .pic:hover img { transform: scale(1.04); }
.split .kicker { margin-bottom: 22px; }
.split h2 { font-size: var(--t-heading); line-height: 1.18; margin-bottom: 30px; }
.split .rule { width: 64px; height: 1px; background: var(--sea); opacity: 0.6; margin-bottom: 30px; }
.split .copy p { color: var(--soft); max-width: 34em; }
.split .copy p + p { margin-top: 18px; }
.split .copy .note { color: var(--quiet); font-size: 15px; }
@media (max-width: 860px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .pic { order: 0; }
  .split .pic { height: 58vh; min-height: 300px; }
}

/* Two ways in, drawn to scale */
.travel { display: grid; gap: 24px; margin-top: 36px; max-width: 30em; }
.travel span { display: block; color: var(--quiet); }
.travel i { display: block; height: 1px; width: var(--w); margin: 14px 0 10px; background: var(--sea); }
.js .travel i { width: 0; transition: width 1.8s var(--ease) 0.3s; }
.js .travel.in i { width: var(--w); }
.travel b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }

/* ---------- Membership ledger (the one light room) ---------- */

.ledger-room { background: var(--paper); color: var(--ink); padding: clamp(96px, 12vw, 168px) 24px; }
.ledger-room .wrap {
  display: grid; grid-template-columns: 4fr 7fr; gap: clamp(48px, 7vw, 120px);
  max-width: 1320px; margin: 0 auto; align-items: start;
}
.ledger-room .kicker { color: var(--quiet-ink); margin-bottom: 26px; }
.ledger-room h2 { font-size: var(--t-heading); line-height: 1.15; color: var(--deep); }
.dues { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line-ink); }
.dues .figure {
  font-family: var(--serif); font-size: clamp(60px, 7vw, 96px); line-height: 1;
  color: var(--deep); letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
}
.dues p { margin-top: 18px; color: var(--quiet-ink); max-width: 24em; }

.tiers .lede { font-size: var(--t-lead); line-height: 1.7; color: var(--quiet-ink); }
.tier-bar { display: flex; gap: 3px; height: 56px; margin-top: 26px; }
.seg {
  flex: var(--n) 1 0; min-width: 0;
  background: var(--deep); opacity: 0.5;
  transition: opacity 0.4s, background 0.4s;
}
.tiers.picked .seg { opacity: 0.18; }
.tiers .seg.on { opacity: 1; background: var(--teal); }
.tier-scale {
  display: flex; justify-content: space-between;
  margin: 12px 0 44px; color: var(--quiet-ink);
}

.ledger { width: 100%; border-collapse: collapse; }
.ledger th {
  text-align: left; font-weight: 400; color: var(--quiet-ink);
  padding: 0 0 16px; border-bottom: 1px solid var(--ink);
}
.ledger th.num, .ledger td.num { text-align: right; }
.ledger td {
  padding: 22px 0; border-bottom: 1px solid var(--line-ink);
  font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; color: var(--deep);
  font-variant-numeric: lining-nums tabular-nums;
  transition: background 0.4s, padding 0.5s var(--ease);
}
.ledger td.firms { color: var(--quiet-ink); }
.ledger tbody tr { cursor: pointer; }
.ledger tbody tr.on td { background: rgba(107, 202, 201, 0.16); }
.ledger tbody tr.on td:first-child { padding-left: 16px; box-shadow: inset 3px 0 0 var(--teal); }
.ledger tbody tr.on td:last-child { padding-right: 16px; }
.ledger tfoot td {
  border-bottom: 0; padding-top: 26px;
  font-family: var(--sans); font-size: var(--t-body); line-height: 1.7; color: var(--quiet-ink);
}
.ledger tfoot b { font-weight: 500; color: var(--ink); }
@media (max-width: 900px) { .ledger-room .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .ledger th { letter-spacing: 0.18em; font-size: 10px; }
  .ledger td { font-size: 24px; padding: 18px 0; }
}

/* ---------- Leadership ---------- */

.lead-room { background: var(--deep); text-align: center; padding: clamp(96px, 12vw, 160px) 24px; }
.lead-room .kicker { color: rgba(255, 255, 255, 0.7); margin-bottom: 34px; }
.lead-room p.say {
  max-width: 900px; margin: 0 auto;
  font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.4; color: #fff;
}

/* ---------- Feature: full-bleed picture with a caption ---------- */

.feature {
  position: relative; overflow: hidden;
  height: min(56.25vw, 92vh); min-height: 440px;
  background: var(--deep); color: #fff;
}
.feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature .shade {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(7, 20, 22, 0), rgba(7, 20, 22, 0.2) 40%, rgba(7, 20, 22, 0.86));
}
.feature .txt {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 6vw, 84px);
}
.feature .kicker { color: rgba(255, 255, 255, 0.9); margin-bottom: 18px; }
.feature h2 { font-size: var(--t-heading); line-height: 1.12; }
.feature .line { margin-top: 16px; font-size: var(--t-lead); line-height: 1.7; color: rgba(255, 255, 255, 0.92); text-wrap: balance; }

.venue {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px);
  max-width: 1320px; margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) 24px 0;
}
.venue p { color: var(--soft); }
.venue .calendar { border-top: 1px solid var(--line); }
.venue .calendar div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.venue .calendar dt { color: var(--soft); }
.venue .calendar dd {
  font-family: var(--serif); font-size: clamp(34px, 3.4vw, 48px); line-height: 1; color: var(--sand);
  font-variant-numeric: lining-nums tabular-nums;
}
.venue .calendar + p { margin-top: 26px; }
@media (max-width: 860px) { .venue { grid-template-columns: 1fr; } }

/* The calendar, one dot a day: lit dots are event days run at full membership */
.dots { display: grid; grid-template-columns: repeat(25, 1fr); gap: 5px; margin-top: 30px; }
.dots i {
  aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.13);
  transition: background 0.5s var(--d, 0ms);
}
.dots.in i.run { background: var(--sea); }

/* ---------- The event day: three parts, one at a time ---------- */

.day-panel { position: relative; overflow: hidden; background: var(--deep); color: #fff; }
.day-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.day-panel .shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 20, 22, 0.92), rgba(7, 20, 22, 0.62) 38%, rgba(7, 20, 22, 0) 70%);
}
.day-panel .panel {
  position: relative; max-width: calc(520px + var(--gutter));
  padding: clamp(88px, 12vw, 168px) 24px clamp(88px, 12vw, 168px) var(--gutter);
}
.day-panel .kicker { color: rgba(255, 255, 255, 0.82); }
.day-panel h3 { font-size: var(--t-heading); line-height: 1.12; margin-top: 18px; }
.day-panel .rule { width: 64px; height: 1px; background: #fff; opacity: 0.5; margin: 26px 0; }
.day-panel .lead { font-family: var(--serif); font-size: var(--t-sub); line-height: 1.4; }
.day-tabs { display: none; }

.js .day { position: relative; }
.js .day-stage {
  position: relative; overflow: hidden;
  height: min(60vw, calc(100svh - var(--navh))); min-height: 560px;
}
.js .day-panel {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 0s 1.1s;
}
.js .day-panel.on { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease); }
.js .day-panel .panel { padding-top: 0; padding-bottom: 96px; }
.js .day-tabs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 32px);
  padding: 48px var(--gutter) 0;
  background: linear-gradient(rgba(7, 20, 22, 0), rgba(7, 20, 22, 0.86));
}
.day-tabs button {
  position: relative; text-align: left; line-height: 1.7;
  padding: 20px 0 28px; color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  transition: color 0.4s;
}
.day-tabs button:hover { color: #fff; }
.day-tabs button[aria-selected="true"] { color: #fff; }
.day-tabs button::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--sea);
}
.day-tabs button[aria-selected="true"]::before { width: 100%; }
.day.auto .day-tabs button[aria-selected="true"]::before { animation: fill 7s linear both; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: no-preference) {
  .js .day-panel.on > img { animation: drift 9s ease-out both; }
}
@media (max-width: 700px) {
  .day-panel .shade { background: linear-gradient(rgba(7, 20, 22, 0.5), rgba(7, 20, 22, 0.88)); }
  .day-tabs button { font-size: 10px; letter-spacing: 0.16em; }
  .js .day-panel .panel { padding-bottom: 130px; }
}

/* ---------- Programme: filter and cards ---------- */

.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 0 24px clamp(48px, 6vw, 72px);
}
.filters button {
  padding: 13px 22px; color: var(--soft);
  border: 1px solid var(--line);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.filters button:hover { border-color: var(--sand); color: var(--sand); }
.filters button[aria-pressed="true"] { background: var(--sand); border-color: var(--sand); color: var(--night); }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(44px, 5vw, 72px) clamp(20px, 2.4vw, 36px);
  max-width: 1448px; margin: 0 auto;
  padding: 0 24px clamp(96px, 12vw, 160px);
}
.cards li[hidden] { display: none; }
.cards .pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-2); margin-bottom: 24px; }
.cards img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
/* Where there is no photograph of the thing itself yet, a lettered plate stands in */
.cards .plate {
  display: flex; align-items: center; justify-content: center; text-align: center;
  box-shadow: inset 0 0 0 12px var(--night-2), inset 0 0 0 13px rgba(107, 202, 201, 0.4);
}
.cards .plate span {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; color: var(--sand);
}
.cards li:hover img { transform: scale(1.06); }
.cards h3 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.2; margin-bottom: 10px; }
.cards p { color: var(--soft); font-size: 16px; line-height: 1.75; max-width: 30em; }
.cards li.pop { animation: rise 0.8s var(--ease) both; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Member services (light) ---------- */

.services { background: var(--paper); color: var(--ink); padding: clamp(96px, 12vw, 160px) 24px; }
.services .wrap { max-width: 1320px; margin: 0 auto; }
.services .kicker { color: var(--quiet-ink); margin-bottom: 26px; }
.services h2 { font-size: var(--t-heading); line-height: 1.15; color: var(--deep); max-width: 16em; }
.services ul {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(32px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 80px);
}
.services li { position: relative; border-top: 1px solid var(--line-ink); padding: 26px 0 44px; }
.services li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--ink); transform-origin: 0; transition: transform 1.4s var(--ease) var(--d, 0s);
}
.js .services li.reveal::before { transform: scaleX(0); }
.js .services li.reveal.in::before { transform: scaleX(1); }
.services h3 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.2; color: var(--deep); margin-bottom: 14px; }
.services li p { color: var(--quiet-ink); font-size: 16px; line-height: 1.75; }
@media (max-width: 980px) { .services ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services ul { grid-template-columns: 1fr; } }

/* ---------- Onward link at the foot of each page ---------- */

.next {
  display: block; text-align: center;
  padding: clamp(72px, 9vw, 120px) 24px;
  border-top: 1px solid var(--line);
  transition: background 0.6s;
}
.next:hover { background: var(--night-2); }
.next b {
  display: block; margin-top: 18px;
  font-family: var(--serif); font-weight: 400; font-size: var(--t-heading); line-height: 1.2;
}
.next b span {
  padding-bottom: 6px;
  background: linear-gradient(var(--sea), var(--sea)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.7s var(--ease);
}
.next:hover b span,
.next:focus-visible b span { background-size: 100% 1px; }

/* ---------- Closing ---------- */

.closing {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(120px, 17vw, 220px) 24px;
  background: var(--deep); color: #fff;
}
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing .shade { position: absolute; inset: 0; background: rgba(7, 20, 22, 0.62); }
.closing .wrap { position: relative; max-width: 1240px; margin: 0 auto; }
.closing .kicker { color: rgba(255, 255, 255, 0.85); }
.closing h2 { font-size: var(--t-heading); line-height: 1.15; margin: 26px 0 44px; }
.closing .or { margin-top: 30px; font-size: 15px; color: rgba(255, 255, 255, 0.88); }
.closing .or a { display: block; margin-top: 4px; font-family: var(--serif); font-size: 24px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 40px 24px; }
.site-footer .row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1600px; margin: 0 auto; color: var(--quiet); line-height: 2;
}
@media (max-width: 760px) { .site-footer .row { flex-direction: column; text-align: center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
