:root {
  --ink: #141311;
  --ink-soft: #3b3832;
  --cream: #f6f1e8;
  --sand: #e7dccb;
  --stone: #cbbca6;
  --sea: #1f6f78;
  --sea-deep: #143f45;
  --teal: #3db4be;
  --white: #fffcf7;
  --line: rgba(20, 19, 17, 0.12);
  --shadow: 0 24px 60px rgba(20, 19, 17, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; background: #000; color: #fff; padding: 8px 12px; z-index: 99; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  color: var(--white);
  background: rgba(24, 96, 111, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  transform: translateY(0);
  transition: transform 0.38s ease, background 0.25s ease;
  overflow: visible;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02));
}
.site-header.is-scrolled {
  background: rgba(24, 96, 111, 0.62);
}
.site-header.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}
.header-inner {
  width: 100%;
  display: flex; align-items: center; gap: 28px;
  padding: 12px 28px;
  overflow: visible;
}
.header-inner > *,
.family-header {
  position: relative;
  z-index: 1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  margin-right: 15px;
}
.nav-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}
.nav-group:hover,
.nav-group:focus-within {
  z-index: 30;
}
.nav-sub {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding-left: 12px;
  pointer-events: auto;
}
.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub,
.primary-nav.open .nav-sub {
  display: flex;
}
.nav-sub a {
  font-size: 0.92em;
  opacity: 0.9;
  pointer-events: auto;
  cursor: pointer;
}
.nav-sub a:hover { opacity: 1; }
@media (min-width: 981px) {
  .nav-group {
    flex-direction: row;
    align-items: center;
  }
  .nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    margin: 0;
    padding: 12px 0 0;
    gap: 0;
    background: transparent;
    border: 0;
    z-index: 60;
  }
  .nav-sub a {
    display: block;
    padding: 11px 14px;
    background: rgba(24, 96, 111, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 0;
    white-space: nowrap;
  }
  .nav-sub a:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
}
.primary-nav.open .nav-group {
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.primary-nav.open .nav-sub {
  position: static;
  display: flex;
  padding: 8px 0 4px 14px;
  background: transparent;
  border: 0;
  gap: 8px;
}
.primary-nav.open .nav-sub a {
  background: transparent;
  border: 0;
  padding: 4px 0;
}
.brand img { height: 46px; width: auto; max-width: 220px; object-fit: contain; }
.site-header .brand img { height: 64px; max-width: 280px; }
.primary-nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; overflow: visible; z-index: 5; }
.primary-nav a {
  text-decoration: none; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.8;
}
.primary-nav a:hover, .primary-nav a.is-active { opacity: 1; }
/* Underline: slides in on hover; the active page's line draws in on load and stays (dropdown sub-links excluded) */
.primary-nav > a, .primary-nav > .nav-group > a { position: relative; }
.primary-nav > a::after, .primary-nav > .nav-group > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform 0.35s ease;
}
.primary-nav > a:hover::after, .primary-nav > .nav-group > a:hover::after,
.primary-nav > a.is-active::after, .primary-nav > .nav-group > a.is-active::after { transform: scaleX(1); }
.primary-nav > a.is-active::after, .primary-nav > .nav-group > a.is-active::after { animation: nav-line-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both; }
@keyframes nav-line-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.primary-nav.open > a, .primary-nav.open > .nav-group > a { align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .primary-nav > a::after, .primary-nav > .nav-group > a::after { animation: none; transition: none; } }
.header-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  flex-shrink: 0;
}
.header-actions-row { display: flex; align-items: center; gap: 10px; }
.header-actions .ghost,
.header-actions .solid,
.header-actions .icon-link,
.menu-toggle {
  font: inherit; cursor: pointer; text-decoration: none;
  border: 1px solid rgba(255,252,247,0.25);
  padding: 8px 12px; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; background: transparent; color: inherit;
}
.header-actions .solid { background: var(--teal); border-color: var(--teal); color: #06262a; }
.header-actions .ghost,
.header-actions .solid,
.header-actions .icon-link,
.menu-toggle { border-radius: 999px; padding-left: 18px; padding-right: 18px; }
.menu-toggle { display: none; }

.hero {
  min-height: 92vh; position: relative; color: var(--white);
  display: grid; place-items: end start;
  background: #0c1212 center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,12,0.2), rgba(10,12,12,0.62));
}
.hero-copy { position: relative; z-index: 1; padding: 80px 8vw 90px; max-width: 860px; }
/* Pinned below the fixed header so a title at the top of the photo isn't hidden behind the menu */
/* Whole poster visible: full width, hero as tall as header + image (1632x963), so nothing is cropped at the bottom */
.hero.hero-top { background-position: center 88px; background-size: 100% auto; min-height: calc(88px + 59vw); }
/* Phones: show the whole poster at full width (1632x963) instead of cropping its sides */
@media (max-width: 640px) { .hero.hero-top { background-position: center 66px; background-size: 100% auto; min-height: calc(66px + 59vw); } .hero.hero-top .hero-copy { display: none; } }
/* Hero text stays hidden on load; main.js adds .show-copy once the mouse moves over the hero (or on tap), as on Knai Bang Chatt */
.hero::after { opacity: 0; transition: opacity 1.4s ease; }
.hero .hero-copy {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.4s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero.show-copy::after, .hero:focus-within::after { opacity: 1; }
.hero.show-copy .hero-copy, .hero:focus-within .hero-copy { opacity: 1; transform: none; }
.kicker { letter-spacing: 0.22em; text-transform: uppercase; font-size: 12px; opacity: 0.8; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 16px; color: #18606f; }
/* Headings on photos and dark bands stay light (same rule as Knai Bang Chatt, plus Art for Kep's own dark sections) */
:is(.hero, .story-stage, .quote-band, .promo, .app-band, .site-footer, footer, .founder-band, .artist-dialog, .quote-photo, .support-principle, .room-cards .card-body, [style*="color:#fff"]) :is(h1, h2, h3) { color: inherit; }
h1 { font-size: clamp(42px, 7vw, 88px); }
h2 { font-size: clamp(32px, 4.5vw, 56px); }
h3 { font-size: 28px; }
.lead { font-size: 20px; max-width: 38ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn, button.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; border: 1px solid currentColor;
  padding: 13px 20px; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 12px; background: transparent; color: inherit; cursor: pointer;
}
/* Same button system as Knai Bang Chatt: pills, filled light / outline / teal */
.btn:not(.light):not(.dark):not(.sea) {
  border: 2px solid currentColor; border-radius: 999px; padding: 14px 38px;
  font-size: 17px; letter-spacing: 0.02em; justify-content: center;
  transition: background 0.25s ease;
}
.btn:not(.light):not(.dark):not(.sea):hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.btn.light { background: var(--white); color: var(--ink); border-color: var(--white); border-radius: 999px; padding-left: 32px; padding-right: 32px; justify-content: center; }
.btn.dark {
  background: #18606f; color: #fff; border-color: #18606f; border-radius: 999px;
  padding: 14px 38px; font-size: 17px; letter-spacing: 0; text-transform: none;
  justify-content: center; transition: background 0.25s ease, border-color 0.25s ease;
}
.btn.dark:hover { background: var(--sea-deep); border-color: var(--sea-deep); }
.btn.sea { background: var(--sea); color: #fff; border-color: var(--sea); border-radius: 999px; padding-left: 32px; padding-right: 32px; justify-content: center; }

.section { padding: 88px 6vw; }
.section.tight { padding: 64px 6vw; }
.narrow { max-width: 780px; }
.wrap { max-width: 1200px; margin: 0 auto; }
.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.split img, .media img, .card img, .story-visual img { width: 100%; height: 100%; object-fit: cover; }
.media { min-height: 420px; overflow: hidden; }
.media.tall { min-height: 560px; }
.split.portrait-split {
  grid-template-columns: minmax(220px, 320px) 1fr;
  align-items: start;
}
.split.portrait-split.portrait-end {
  grid-template-columns: 1fr minmax(220px, 320px);
}
.split.portrait-split .media {
  min-height: 0;
  max-width: 320px;
  aspect-ratio: 4 / 5;
}
.split.portrait-split .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.muted { color: var(--ink-soft); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 42px; }
.value { background: #f0e9dc; padding: 28px 24px; border: 1px solid var(--line); }
.value span { display: block; font-size: 12px; letter-spacing: 0.16em; margin-bottom: 12px; color: var(--sea); }

.story-stage { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 78vh; background: #10110f; color: var(--white); }
.story-visual { position: relative; overflow: hidden; }
.story-visual img { min-height: 78vh; }
.story-copy { padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; }
.story-nav { display: flex; gap: 8px; margin-top: 28px; }
.story-nav button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: transparent; color: #fff; cursor: pointer;
}
.quote-band {
  padding: 90px 10vw; text-align: center; background: var(--sea-deep); color: var(--white);
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.3;
}
.quote-band p { margin: 0; }
.quote-band span {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #f0e9dc; padding: 24px; border-top: 3px solid var(--sea); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #f0e9dc; overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.card img { height: 230px; object-fit: cover; }
.card-body { padding: 22px; }
.tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sea); }

.promo-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; }
.promo {
  position: relative; min-height: 360px; overflow: hidden; color: #fff;
  display: flex; align-items: end; padding: 32px;
}
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.promo > * { position: relative; z-index: 1; }

.app-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: #18606f; color: var(--white); padding: 72px 6vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.muted-light { opacity: 0.75; }
.app-phone {
  justify-self: center; display: block; width: min(300px, 80vw); aspect-ratio: 390 / 844;
  padding: 10px; border-radius: 46px; background: #0d1a1d;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.app-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; }
.app-phone:hover { transform: translateY(-6px); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.42), inset 0 0 0 2px rgba(255, 255, 255, 0.12); }
.store-badges { display: flex; gap: 12px; margin-top: 18px; }
.store-badges img { height: 44px; width: auto; background: #f0e9dc; padding: 6px 10px; }

form.enquiry {
  display: grid; gap: 14px; background: #f0e9dc; padding: 32px; border: 1px solid var(--line);
}
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  font: inherit; background: var(--cream);
}
form.enquiry input[type="file"] { padding: 10px; background: var(--cream); }
form.enquiry input[type="checkbox"] { width: auto; margin-top: 4px; flex: none; }
.enquiry-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink-soft);
}
.enquiry-check a { color: var(--sea); }
.apply-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}
.apply-steps { display: grid; gap: 18px; margin: 28px 0; }
.apply-steps article { background: #f0e9dc; padding: 20px 22px; border: 1px solid var(--line); }
.apply-steps h3 { margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status { min-height: 1.4em; font-size: 14px; }

.site-footer { background: #18606f; color: #e4eef0; padding: 64px 6vw 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.footer-grid a, .footer-grid p { display: block; text-decoration: none; font-size: 14px; margin: 0 0 8px; opacity: 0.85; }
.footer-grid h4 { color: #fff; font-family: var(--sans); letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }
.brand.light { color: #fff; margin-bottom: 12px; }
.footer-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.2); margin-top: 42px; padding-top: 18px; font-size: 13px;
}

.page-hero { min-height: 58vh; }
.list { display: grid; gap: 16px; }
.list article { background: #f0e9dc; padding: 22px; border: 1px solid var(--line); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic img { height: 240px; width: 100%; object-fit: cover; }

.family-band { padding: 28px 6vw 8px; }
.family {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px;
}
.family a { text-decoration: none; opacity: 0.55; }
.family a:hover, .family a.is-here { opacity: 1; }
.hero.video-hero { overflow: hidden; }
.hero-video { position: absolute; inset: 0; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.pillar {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px;
  padding: 28px 0; border-top: 1px solid var(--line);
  text-decoration: none;
}
.pillar em { font-style: normal; letter-spacing: 0.18em; font-size: 12px; color: var(--sea); }
.family-header {
  justify-content: flex-end;
  padding: 0;
  gap: 10px 16px;
  font-size: 10px;
  white-space: nowrap;
}
.site-header .family a { color: inherit; }
.portraits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.portraits article { background: #f0e9dc; border: 1px solid var(--line); }
.portraits img { height: 260px; width: 100%; object-fit: cover; background: #efe8dc; }
.portraits div { padding: 16px 18px; }
.portraits p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.world { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.world a { text-decoration: none; background: #f0e9dc; border: 1px solid var(--line); overflow: hidden; }
.world img { height: 220px; width: 100%; object-fit: cover; }
.world div { padding: 22px; }
.quote-cite { display: block; margin-top: 18px; letter-spacing: 0.2em; text-transform: uppercase; font-size: 12px; font-family: var(--sans); opacity: 0.7; }
.founder-band {
  background: #18606f;
  color: var(--white);
}
.founder-band .muted { color: #e4eef0; opacity: 0.85; }
.founder-band .kicker { color: rgba(255, 255, 255, 0.8); opacity: 1; }
.founder-video {
  margin: 0;
  overflow: hidden;
  background: transparent;
}
.founder-video video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a0b0a;
}
.founder-video figcaption {
  margin: 12px 0 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.7;
}
.launch-video { margin-top: 36px; }
.marine-logos-band {
  background: #f0e9dc;
}
.marine-logos {
  margin-top: 36px;
  justify-items: center;
}
.partners-band { background: #f0e9dc; }
.partners {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 28px;
  align-items: center;
  margin-top: 48px;
}
.partners a,
.partners span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 8px 4px;
  text-decoration: none;
}
.partners img {
  width: auto;
  max-width: 200px;
  max-height: 88px;
  height: auto;
  object-fit: contain;
}
.partners a.partner-kepwest img {
  max-width: 240px;
  height: 110px;
}
.partners.marine-logos-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.partners.marine-logos-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}
.partners.marine-logos img {
  max-width: 260px;
  height: 180px;
  max-height: none;
}
.partners.marine-logos .partner-afk img {
  width: 150px;
  max-width: 150px;
  height: 180px;
}
.accepted-band { background: #f0e9dc; }
/* Logos and maps with their own white backgrounds: multiply turns that white into the sand panel colour */
.partners img, .venue-logos img, .sea-maps img { mix-blend-mode: multiply; }
.artist-dialog { overflow: auto; }
.artist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.artist-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: #f0e9dc;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.artist-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #efe8dc;
}
.artist-card div { padding: 16px 18px; }
.artist-card h3 { margin: 8px 0 6px; font-size: 22px; }
.artist-card p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.artist-card:hover,
.artist-card:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}
.artist-dialog {
  width: min(1120px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: #10110f;
  color: var(--white);
}
.artist-dialog::backdrop {
  background: rgba(10, 11, 10, 0.88);
}
.artist-dialog-x {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  width: 48px;
  height: 48px;
  margin: 12px 12px 0 0;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  background: rgba(16,17,15,0.72);
  color: #fff;
  cursor: pointer;
}
.artist-profile {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  padding: 36px 40px 48px;
  clear: both;
}
.artist-profile[hidden] { display: none !important; }
.artist-profile-media img {
  width: 100%;
  height: min(68vh, 640px);
  object-fit: cover;
  background: #1a1b18;
}
.artist-profile-copy .tag { color: #9ad4d8; margin: 0 0 18px; }
.artist-profile-copy p { max-width: 54ch; }
.artist-video { margin-top: 28px; }
.artist-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 10px 0 14px;
  background: #000;
}
.artist-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.sea-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 48px auto 0;
}
.sea-maps figure {
  margin: 0;
  background: #f0e9dc;
  border: 1px solid var(--line);
  padding: 14px;
}
.sea-maps img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f0e9dc;
}
.sea-maps figcaption {
  margin: 12px 4px 2px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 42px;
}
.sea-cards .card img { height: 280px; }
.path-list { display: grid; gap: 14px; margin-top: 36px; }
.path-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  background: #f0e9dc;
  padding: 22px 26px;
  border: 1px solid var(--line);
}
.path-list span {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--sea);
  line-height: 1.1;
}
.path-list h3 { margin-bottom: 8px; font-size: 24px; }
/* Photo cards with text on hover — same as Knai Bang Chatt (used by Five pillars on index.php) */
.room-cards { grid-template-columns: repeat(6, 1fr); }
.room-cards .card { position: relative; grid-column: span 2; min-height: 0; background: #0c1212; }
.room-cards .card:nth-child(-n+2) { grid-column: span 3; }
.room-cards .card img { height: 520px; transition: transform 0.8s ease; }
.room-cards .card:nth-child(-n+2) img { height: 600px; }
.room-cards .card-body {
  position: absolute; inset: auto 0 0 0; padding: 32px 28px 28px; color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(10, 12, 12, 0.82) 45%);
}
.room-cards .card-body .tag { color: rgba(255, 255, 255, 0.8); }
.room-cards .card-body p:last-child { margin-bottom: 0; }
@media (hover: hover) {
  .room-cards .card-body { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .room-cards .card:hover .card-body { opacity: 1; transform: none; }
  .room-cards .card:hover img { transform: scale(1.05); }
}
.pillar-photos .card-body h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; margin-bottom: 8px; }
@media (max-width: 980px) {
  .room-cards { grid-template-columns: 1fr; }
  .room-cards .card, .room-cards .card:nth-child(-n+2) { grid-column: auto; }
  .room-cards .card img, .room-cards .card:nth-child(-n+2) img { height: 440px; }
}
.path-list p { margin: 0; }
.quote-photo {
  position: relative;
  background: var(--sea-deep) center/cover no-repeat;
}
.quote-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 20, 0.52);
}
.quote-photo p { position: relative; z-index: 1; }
.venue-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.venue-logos figure {
  margin: 0;
  background: #f0e9dc;
  border: 1px solid var(--line);
  min-height: 188px;
  padding: 22px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.venue-logos img {
  width: 100%;
  max-width: 220px;
  height: 96px;
  object-fit: contain;
}
.venue-logos figcaption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.music-apply { margin-top: 42px; }
.agenda-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.agenda-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  background: #f0e9dc;
  border: 1px solid var(--line);
}
.agenda-item-media,
.agenda-item-swatch {
  min-height: 132px;
  background: #d9d0c2;
}
.agenda-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.agenda-item-swatch {
  background: linear-gradient(160deg, var(--agenda-color, #156275), color-mix(in srgb, var(--agenda-color, #156275) 55%, #0a1214));
}
.agenda-item-body {
  padding: 20px 22px 22px 0;
}
.agenda-when {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.agenda-item-body h3 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}
.agenda-venue {
  margin: 0 0 10px;
  color: var(--sea-deep, #156275);
  font-size: 0.95rem;
}
.agenda-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}
.agenda-link { margin: 10px 0 0; font-size: 0.95rem; }
.agenda-link a { color: var(--sea-deep, #156275); }
/* Performer photos (white studio backgrounds): wider column, whole photo shown, no cropping */
.agenda-item:has(.agenda-item-media) { grid-template-columns: 240px minmax(0, 1fr); }
.agenda-item-media { background: #fff; display: flex; align-items: center; }
.agenda-item-media img { height: auto; max-height: 100%; object-fit: contain; }
.agenda-empty {
  margin-top: 28px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}
.pillar-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.pillar-card {
  display: flex;
  flex-direction: column;
  background: #f0e9dc;
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  min-height: 100%;
}
.pillar-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #efe8dc;
}
.pillar-card div { padding: 20px 22px 24px; }
.pillar-card p {
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 0;
  color: var(--ink-soft);
}
label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
}
label.check input { margin-top: 3px; }
.pillar-card span {
  display: inline-block;
  margin-top: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--sea);
}
.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.people.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.person { background: #f0e9dc; border: 1px solid var(--line); overflow: hidden; }
.person img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  background: #efe8dc;
}
.person div { padding: 18px 20px 24px; }
.person p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.person-text {
  background: #f0e9dc;
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  align-items: flex-start;
}
.person-text h3 { margin-top: 0; }
.people-full .person img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--face, center 22%);
  background: #efe8dc;
}

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .primary-nav.open {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%; z-index: 2;
    background: rgba(24, 96, 111, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    padding: 18px 28px 22px;
  }
  .menu-toggle { display: inline-flex; }
  .header-actions .ghost, .header-actions .solid { display: none; }
  .agenda-item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .agenda-item-body { padding: 16px 16px 18px 0; }
  .agenda-item:has(.agenda-item-media) { grid-template-columns: 1fr; gap: 0; }
  .agenda-item:has(.agenda-item-media) .agenda-item-body { padding: 16px 16px 18px; }
  .agenda-item-media { min-height: 0; justify-content: center; }
  .agenda-item-media img { width: 100%; max-height: 300px; }
  .split, .story-stage, .values, .steps, .cards, .promo-grid, .app-band, .footer-grid, .form-row, .portraits, .world, .sea-maps, .mission-grid, .venue-logos, .pillar-cards, .people, .people.four, .support-tiers, .support-stats, .support-after, .support-title-grid, .support-people, .hull-card,
  .split.portrait-split,
  .split.portrait-split.portrait-end,
  .apply-layout {
    grid-template-columns: 1fr;
  }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners.marine-logos-4,
  .partners.marine-logos-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners.marine-logos > * { min-width: 0; max-width: 100%; }
  .partners.marine-logos img { max-width: 100%; height: 120px; object-fit: contain; }
  .partners.marine-logos .partner-afk img { width: 100px; max-width: 100%; height: 120px; }
  .artist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artist-profile { grid-template-columns: 1fr; padding: 20px 20px 36px; }
  .artist-profile-media img { height: 42vh; }
  .hero, .story-visual img { min-height: 70vh; }
  .story-copy { padding: 36px 24px; }
}

.reveal-media {
  overflow: hidden;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-media img,
.reveal-media video {
  transform: scale(1.05);
  transition: transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-media.is-in img,
.reveal-media.is-in video {
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-media img,
  .reveal-media video {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.support-jump {
  background: rgba(246, 241, 232, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 88px;
  z-index: 12;
}
#project, #ways, #fleet, #recognition, #afterlife, #title, #transparency, #how, #take-a-berth, #more-ways {
  scroll-margin-top: 120px;
}
form.enquiry label { display: grid; gap: 6px; font-size: 13px; letter-spacing: 0.04em; }
.support-jump .wrap {
  display: flex;
  gap: 8px 22px;
  overflow-x: auto;
  padding: 14px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.support-jump a { text-decoration: none; opacity: 0.62; }
.support-jump a:hover { opacity: 1; color: var(--sea); }
.support-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 28px;
}
.support-stats article {
  background: #f0e9dc;
  border: 1px solid var(--line);
  padding: 22px 18px;
  text-align: center;
}
.support-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1;
  color: var(--sea-deep);
}
.support-stats span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.support-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.support-tier {
  display: flex;
  flex-direction: column;
  background: #f0e9dc;
  border: 1px solid var(--line);
  padding: 26px 22px 28px;
  border-top: 4px solid var(--sea);
}
.support-tier.is-title { border-top-color: #9c3b2a; }
.support-tier.is-boat { border-top-color: var(--sea); }
.support-tier.is-booth { border-top-color: #1e3a6e; }
.support-tier.is-donate { border-top-color: #b8892d; }
.support-tier h3 { font-size: 26px; }
.support-price {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0 0 12px;
}
.support-tier .btn { margin-top: auto; align-self: flex-start; }
.support-note { margin-top: 28px; max-width: 78ch; }
.support-fleet {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}
.hull-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: #f0e9dc;
  border: 1px solid var(--line);
  overflow: hidden;
}
.hull-card.is-taken { opacity: 0.92; }
.hull-media { position: relative; min-height: 280px; }
.hull-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}
.hull-status {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  background: rgba(20, 19, 17, 0.78);
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hull-card.is-taken .hull-status { background: var(--sea-deep); }
/* Big see-through stamp across the photo of a hull that already has a sponsor */
.hull-card.is-taken .hull-media { overflow: hidden; }
.hull-card.is-taken .hull-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(16, 25, 32, 0.22); pointer-events: none;
}
.hull-card.is-taken .hull-media::after {
  content: "Sponsored";
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  font-size: clamp(34px, 5vw, 60px); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  transform: rotate(-14deg);
  pointer-events: none;
}
.hull-copy { padding: 24px 26px 28px; }
.hull-sponsor { margin: 0 0 12px; color: var(--sea); font-size: 14px; letter-spacing: 0.04em; }
.hull-meta {
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-soft);
}
.hull-meta li { margin: 0 0 4px; }
.support-principle {
  margin: 18px 0 0;
  padding: 28px 26px;
  background: var(--sea-deep);
  color: #fff;
}
.support-principle p { margin: 0 0 12px; font-family: var(--serif); font-size: 26px; line-height: 1.35; }
.support-principle cite {
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.7;
}
.support-after {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.support-after article {
  background: #f0e9dc;
  border: 1px solid var(--line);
  padding: 26px 24px 30px;
}
.support-title-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 36px 0 8px;
}
.support-title-grid article {
  background: #f0e9dc;
  border: 1px solid var(--line);
  padding: 26px 24px 8px;
}
.support-title-grid ul { padding-left: 18px; }
.support-title-grid li { margin: 0 0 12px; }
.support-budget {
  width: 100%;
  border-collapse: collapse;
  background: #f0e9dc;
  margin: 24px 0 18px;
  font-size: 15px;
}
.support-budget th, .support-budget td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.support-budget th:last-child,
.support-budget td:last-child { text-align: right; white-space: nowrap; }
.support-budget thead th { letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; color: var(--sea); }
.support-budget tfoot th { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.support-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 8px;
}
.support-people .person img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  background: #efe8dc;
}
.support-people > article:not(.person) {
  background: #f0e9dc;
  border: 1px solid var(--line);
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Residency handbook page (handbook.php) */
.hb-section { scroll-margin-top: 150px; }
.hb-section .wrap > p { max-width: 75ch; }
.hb-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.hb-list li { position: relative; padding-left: 26px; line-height: 1.55; }
.hb-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 3px; font-size: 12px; color: var(--sea);
}
.hb-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.hb-list.letters { counter-reset: hb; }
.hb-list.letters li { counter-increment: hb; }
.hb-list.letters li::before { content: counter(hb, lower-alpha) ")"; font-family: var(--sans); font-weight: 500; font-size: 14px; top: 0; }
.hb-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hb-chips span { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #f0e9dc; font-size: 14px; }
.hb-card { background: #f0e9dc; border: 1px solid var(--line); padding: 28px 28px 30px; }
.hb-card h3 { font-size: 26px; margin-bottom: 10px; }
.hb-card p { margin: 0 0 12px; }
.hb-card p:last-child { margin-bottom: 0; }
.hb-card .tag { display: block; margin-bottom: 10px; }
.hb-card.full { grid-column: 1 / -1; }
.hb-fees th:not(:first-child), .hb-fees td:not(:first-child) { text-align: right; white-space: nowrap; }
.hb-fees td small { display: block; color: var(--ink-soft); font-size: 13px; }
.mission-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Open calls: What's On cards + detail pages (open-call-ten-boats.php, cinematic-challenge-2026.php, artist-contest-2025.php) */
/* What's On open-call cards: three equal photo cards, details on hover (room-cards behaviour) */
.oc-cards.room-cards .card, .oc-cards.room-cards .card:nth-child(-n+2) { grid-column: span 2; }
/* Photos shown whole: all three share a ~1.18:1 shape, so the cards line up without cropping */
.oc-cards.room-cards .card img, .oc-cards.room-cards .card:nth-child(-n+2) img { height: auto; aspect-ratio: 567 / 480; object-fit: cover; }
@media (hover: hover) and (min-width: 981px) {
  /* The hover panel sits on the photo, so keep it to date, title, a 3-line summary and the button */
  .oc-cards.room-cards .card-body { padding: 22px 22px 20px; }
  .oc-cards.room-cards .card-body h3 { font-size: 26px; margin-bottom: 8px; }
  .oc-cards.room-cards .card-body p:not(.tag) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .oc-cards.room-cards .card-body p:not(.tag) ~ p:not(.tag) { display: none; }
  .oc-cards.room-cards .card-body .btn-row { margin-top: 6px; }
  .oc-cards.room-cards .card-body .btn { padding: 10px 24px; font-size: 15px; }
}
.oc-cards.room-cards .card-body { top: 0; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, rgba(10, 12, 12, 0.15), rgba(10, 12, 12, 0.88) 38%); }
.oc-cards.room-cards .card-body p { margin: 0 0 10px; }
.oc-cards.room-cards .card-body .btn-row { margin-top: 8px; }
.oc-cards .card-body .tag .oc-status { background: rgba(255, 255, 255, 0.18); }
@media (hover: none), (max-width: 980px) {
  .oc-cards.room-cards .card-body { position: static; top: auto; background: #0c1212; opacity: 1; transform: none; }
  .oc-cards.room-cards .card img, .oc-cards.room-cards .card:nth-child(-n+2) img { height: auto; }
}
@media (max-width: 980px) {
  .oc-cards.room-cards .card, .oc-cards.room-cards .card:nth-child(-n+2) { grid-column: auto; }
}
.oc-status { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--sea-deep); color: #fff; font-size: 10px; letter-spacing: 0.14em; }
.oc-winners { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 32px; }
.oc-winner { background: #f0e9dc; border: 1px solid var(--line); display: flex; flex-direction: column; }
.oc-winner img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #e7dccb; }
.oc-winner img.contain { object-fit: contain; }
.oc-winner > div { padding: 18px 20px 22px; }
.oc-winner h3 { font-size: 26px; margin-bottom: 6px; }
.oc-winner .tag { display: block; margin-bottom: 8px; }
.oc-winner p { margin: 0 0 8px; }
.oc-winner a { color: var(--sea); }
.oc-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.oc-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.oc-lines { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; margin-top: 22px; }
.values .value .oc-num { font-family: var(--serif); font-size: 44px; letter-spacing: 0; color: #18606f; margin-bottom: 6px; }
@media (max-width: 980px) {
  .oc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* What's On · Past Seasons: date + title, details behind a small toggle */
.past-list article { padding: 20px 24px; }
.past-list article .tag { margin: 0 0 6px; }
.past-list article h3 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); }
.past-more { margin-top: 12px; }
.past-more summary {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: -8px;
  cursor: pointer; list-style: none; color: #18606f; font-size: 16px; user-select: none; border-radius: 50%;
}
.past-more summary::-webkit-details-marker { display: none; }
.past-more summary i { transition: transform 0.25s ease; }
.past-more[open] summary i { transform: rotate(180deg); }
.past-more summary:hover { color: var(--sea-deep); }
.past-more summary:focus-visible { outline: 2px solid #18606f; outline-offset: 2px; }
.past-more > p { margin: 14px 0 0; }
.past-more > p + p { margin-top: 8px; }
/* Resident artists with filters (artist-residency.php #artists) — from artweek.artforkep.org/artists.html */
.res-filters { display: grid; gap: 10px; margin: 30px 0 34px; }
.res-filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.res-chip {
  font: inherit; font-size: 12px; letter-spacing: 0.06em; cursor: pointer;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #f6f1e8; color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.res-chip:hover { border-color: #18606f; color: #18606f; }
.res-chip.is-on { background: #18606f; border-color: #18606f; color: #fff; }
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.res-card[hidden] { display: none; }
.res-open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.res-open:focus-visible { outline: 2px solid #18606f; outline-offset: 4px; }
.res-frame { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #e7dccb; margin-bottom: 14px; }
.res-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.res-open:hover .res-frame img { transform: scale(1.04); }
.res-card .tag { display: block; margin-bottom: 6px; }
.res-name { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.15; color: #18606f; margin-bottom: 4px; }
.res-from { display: block; color: var(--ink-soft); }
.res-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #18606f; }
.res-more i { transition: transform 0.2s ease; }
.res-open:hover .res-more i { transform: translateX(4px); }
/* Full-screen artist biography */
.res-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--cream); color: var(--ink); overflow: auto; }
.res-dialog::backdrop { background: rgba(20, 19, 17, 0.6); }
.res-dialog-close {
  position: fixed; top: 20px; right: 20px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(246, 241, 232, 0.95); color: var(--ink); font-size: 22px;
  display: grid; place-items: center; cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.res-dialog-close:hover, .res-dialog-close:focus-visible { background: #18606f; color: #fff; border-color: #18606f; }
.res-dialog-body { min-height: 100%; max-width: 1180px; margin: 0 auto; padding: 88px 6vw 72px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.res-dialog-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #e7dccb; }
.res-dialog-text h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 6px; }
.res-dialog-from { color: var(--ink-soft); margin: 0 0 22px; }
.res-dialog-text p:not(.kicker):not(.res-dialog-from) { font-size: 17px; line-height: 1.7; margin: 0 0 16px; max-width: 62ch; }
@media (max-width: 860px) {
  .res-dialog-body { grid-template-columns: 1fr; gap: 28px; padding: 80px 20px 48px; align-items: start; }
  .res-dialog-photo img { max-width: 420px; }
  .res-dialog-close { top: 14px; right: 14px; width: 44px; height: 44px; }
}
@media (max-width: 980px) { .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .res-grid { grid-template-columns: 1fr; } }
/* Hero buttons kept on one line (artist-residency.php) */
@media (min-width: 981px) {
  .hero-copy.wide-actions { max-width: 1080px; }
  .hero-copy.wide-actions > :not(.btn-row) { max-width: calc(860px - 16vw); }
  .btn-row.one-line { flex-wrap: nowrap; }
  .btn-row.one-line .btn { white-space: nowrap; }
}
@media (max-width: 980px) {
  .hb-list.two-col, .mission-grid.three { grid-template-columns: 1fr; }
  .hb-card { padding: 22px 20px 24px; min-width: 0; }
  .hb-fees th, .hb-fees td, .hb-fees th:not(:first-child), .hb-fees td:not(:first-child) { white-space: normal; padding: 10px 6px; font-size: 13px; }
  .hb-fees thead th { font-size: 10px; letter-spacing: 0.08em; }
  .hull-media img { min-height: 220px; }
  /* The shared mobile rule near the top is overridden by these support grids' own column rules (declared later), so restate it here */
  .support-tiers, .support-stats, .support-after, .support-title-grid { grid-template-columns: 1fr; }
}

/* Phones: keep the Menu button on screen. The brand links (also in the footer) and, where needed, Contact give way */
@media (max-width: 640px) {
  .header-inner { padding: 10px 16px; gap: 12px; }
  .site-header .brand img { height: 46px; max-width: 170px; }
  .header-actions { margin-left: auto; }
  .header-actions .family-header { display: none; }
  .header-actions-row { gap: 8px; }
  .header-actions .solid { padding: 8px 14px; font-size: 11px; }
  .header-actions .solid ~ .icon-link { display: none; }
}