/* Little Lichen Sound
   ------------------------------------------------------------------
   Palette built around the moss/olive #6B8055 from the speaker accents.
   Contrast ratios are against --bg unless noted. */
:root {
  color-scheme: dark;

  --bg: #1a2016;         /* deep moss-black: page background */
  --surface: #242c1f;    /* cards, panels */
  --moss: #6b8055;       /* brand: fills, borders, large text only (3.8:1) */
  --moss-deep: #4a5a3b;  /* moss for small text on --bone (5.9:1) */
  --lichen: #b7c49b;     /* light sage: eyebrows, links, buttons (9.0:1) */
  --bone: #e8e4d3;       /* body text (13:1), light band background */
  --ochre: #d4b870;      /* earthy accent: dates, spec values, focus (8.6:1) */
  --bark: #a37f58;       /* earthy accent: rules, icons (4.5:1) */

  --muted: rgb(232 228 211 / 0.72);
  --line: rgb(183 196 155 / 0.18);

  /* Fonts are still TBD. Swap these once chosen (and add the font link in base.njk). */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-body);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --section-pad: clamp(80px, 12vw, 150px);
}

/* Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--lichen); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* Type ------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 650; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 5vw, 3.75rem); letter-spacing: -0.01em; margin-bottom: 0.5em; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
h4 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--lichen); margin-bottom: 1.1rem;
}
.prose > * + * { margin-top: 1em; }
.prose { color: var(--muted); max-width: 62ch; }
.prose a { color: var(--lichen); }

/* Layout ----------------------------------------------------------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-pad); position: relative; }
.split { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 0.9fr; } }

.section-heading { display: grid; gap: 8px 48px; margin-bottom: clamp(40px, 6vw, 64px); align-items: end; }
.section-heading h2 { margin-bottom: 0; }
@media (min-width: 900px) { .section-heading { grid-template-columns: 1.2fr 1fr; } }

.section-actions { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 40px; }

/* Buttons & links -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.7em; border-radius: 999px;
  background: var(--lichen); color: var(--bg);
  font-weight: 650; letter-spacing: 0.02em; text-decoration: none;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.btn:hover { background: var(--bone); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--lichen); box-shadow: inset 0 0 0 1.5px var(--lichen); }
.btn-outline:hover { background: var(--lichen); color: var(--bg); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  color: var(--lichen); font-weight: 600; text-decoration: none;
  padding-block: 4px; border-bottom: 1.5px solid rgb(183 196 155 / 0.4);
  transition: border-color 0.25s, gap 0.25s var(--ease);
}
.text-link::after { content: "→"; }
.text-link:hover { border-color: var(--lichen); gap: 0.8em; }

/* Header ----------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgb(26 32 22 / 0.7), rgb(26 32 22 / 0));
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgb(26 32 22 / 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
/* Logo: mark + wordmark. Row in the header, stacked in the hero and footer. */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-wordmark { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }
.site-logo { text-decoration: none; }
.site-logo .logo-wordmark { font-size: 1.1rem; }

.site-nav { display: flex; gap: 32px; }
.site-nav a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); transition: color 0.2s;
}
.site-nav a:hover { color: var(--lichen); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--bone);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 12px; right: 12px;
    flex-direction: column; gap: 0; padding: 8px;
    background: rgb(36 44 31 / 0.97); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: var(--radius);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 14px 16px; border-radius: 10px; }
  .site-nav a:hover { background: rgb(183 196 155 / 0.08); }
}

/* Hero ------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  padding: 120px 0 100px;
}
.hero-bg {
  position: absolute; inset: -12% 0; z-index: -2;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgb(26 32 22 / 0.35), rgb(26 32 22 / 0.85) 70%),
    linear-gradient(to bottom, rgb(26 32 22 / 0) 60%, var(--bg));
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-title { margin-bottom: 28px; }
.hero-title .logo { flex-direction: column; gap: 20px; }
.hero-title .logo-mark { width: clamp(140px, 24vh, 240px); height: auto; filter: drop-shadow(0 12px 32px rgb(0 0 0 / 0.35)); }
.hero-title .logo-wordmark {
  font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--lichen); font-weight: 600;
}
.hero-headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 6rem); line-height: 1; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-intro { max-width: 36rem; margin: 28px auto 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 32px; margin-top: 40px; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; text-decoration: none; color: var(--lichen);
  animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* Ethos ------------------------------------------------------------ */
.split-figure { border-radius: var(--radius); overflow: hidden; }
.split-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-figure.is-mark { border-radius: 0; overflow: visible; max-width: 420px; justify-self: center; }
.split-figure.is-mark img { aspect-ratio: 1; object-fit: contain; }

/* About ------------------------------------------------------------ */
.about { padding-top: 0; }
.about-grid { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(240px, 340px) 1fr; } }
.about-photo { width: min(260px, 70vw); justify-self: center; }
@media (min-width: 900px) { .about-photo { width: 100%; } }
.about-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--line), 0 24px 60px rgb(0 0 0 / 0.35);
}
.about-role { color: var(--lichen); font-weight: 600; margin: -0.3em 0 1.2em; }
.about-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }

/* System ----------------------------------------------------------- */
.system { padding-top: 0; }
.band-light {
  background: var(--bone); color: var(--bg);
  padding-block: var(--section-pad);
  margin-bottom: clamp(56px, 8vw, 96px);
}
.band-light .eyebrow { color: var(--moss-deep); }
.band-light .prose { color: rgb(26 32 22 / 0.8); }
.band-light h3 { font-size: 1rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss-deep); margin-bottom: 20px; }
.system-overview { align-items: start; }
.system-goals {
  background: rgb(107 128 85 / 0.12); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
}

/* Lists with irregular, lichen-lobe bullets. */
.blob-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.blob-list li { position: relative; padding-left: 30px; }
.blob-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 14px; height: 14px; background: var(--moss);
  border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%;
}
.blob-list li:nth-child(3n + 2)::before { background: var(--bark); border-radius: 45% 55% 38% 62% / 60% 42% 58% 40%; }
.blob-list li:nth-child(3n + 3)::before { background: var(--ochre); border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%; }
.blob-list.small { gap: 8px; font-size: 0.95rem; color: var(--muted); }
.blob-list.small li::before { width: 10px; height: 10px; top: 0.55em; }

.signal-chain {
  list-style: none; padding: 0; counter-reset: step;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.signal-chain li {
  counter-increment: step;
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--moss);
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; color: var(--lichen);
}
.signal-chain li:not(:last-child)::after { content: "→"; margin-left: 20px; margin-right: -8px; color: var(--bark); }
@media (max-width: 600px) {
  .signal-chain { flex-direction: column; }
  .signal-chain li:not(:last-child)::after { content: none; }
  .signal-chain li + li { position: relative; margin-top: 18px; }
  .signal-chain li + li::before { content: "↓"; position: absolute; top: -28px; left: 50%; translate: -50% 0; color: var(--bark); }
}

.component-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .component-grid { grid-template-columns: repeat(2, 1fr); } }
.component-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px;
}
.component-role { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bark); margin-bottom: 8px; }
.component-image { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; }
.specs { display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: minmax(8rem, 40%) 1fr; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.specs div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { font-size: 0.85rem; color: var(--muted); }
.specs dd { color: var(--ochre); font-weight: 500; }
.component-card h4 { margin-bottom: -8px; }
.component-card .prose { font-size: 0.97rem; }

/* Tech rider ------------------------------------------------------- */
.rider { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.rider-groups { display: grid; gap: 16px; }
@media (min-width: 720px) { .rider-groups { grid-template-columns: 1fr 1fr; } }
/* Line the coverage note up with the right-hand card below it */
@media (min-width: 900px) { .rider .section-heading { grid-template-columns: 1fr 1fr; column-gap: 16px; } }
.rider-group { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.rider-group h3 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lichen); margin-bottom: 16px; }
.rider-group ul { display: grid; gap: 10px; font-size: 0.95rem; }
.rider-group li { position: relative; padding-left: 26px; }
.rider-group li::before { content: "✓"; position: absolute; left: 0; color: var(--moss); font-weight: 700; }
.rider-group.is-organizer { border: 1.5px dashed rgb(163 127 88 / 0.6); background: rgb(163 127 88 / 0.06); }
.rider-group.is-organizer h3 { color: var(--bark); }
.rider-group.is-organizer li::before { content: "→"; color: var(--bark); }

/* Gallery ---------------------------------------------------------- */
.gallery-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gallery-grid li:first-child { grid-column: span 2; grid-row: span 2; }
}
.gallery-item { display: block; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; background: var(--surface); }
.gallery-item img {
  width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s;
}
.gallery-item:hover img { transform: scale(1.04); filter: brightness(1.08); }

/* Events ----------------------------------------------------------- */
.event-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.event {
  display: grid; grid-template-columns: 76px 1fr; gap: 8px 28px; align-items: center;
  padding-block: 28px; border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .event { grid-template-columns: 96px 1fr auto; } }
.event-date { display: grid; justify-items: center; text-align: center; line-height: 1.1; }
.event-month, .event-weekday { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.event-month { color: var(--ochre); }
.event-weekday { color: var(--muted); }
.event-day { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 2.8rem); color: var(--bone); }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
@media (max-width: 719px) { .event-meta { flex-direction: column; } }
@media (min-width: 720px) { .event-meta span + span::before { content: "·"; margin-right: 20px; color: var(--bark); } }
.event-description { color: var(--muted); font-size: 0.95rem; margin-top: 10px; max-width: 60ch; }
.event-tickets { grid-column: 2; justify-self: start; margin-top: 8px; }
@media (min-width: 720px) { .event-tickets { grid-column: 3; margin-top: 0; } }
.events-empty {
  border: 1px dashed var(--moss); border-radius: var(--radius); padding: 40px;
  display: grid; gap: 16px; justify-items: start; color: var(--muted);
}

/* Past events ------------------------------------------------------ */
.past-events { padding-top: 0; }
.past-events > .container { border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 96px); }
.past-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .past-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .past-grid { grid-template-columns: repeat(3, 1fr); } }
.past-grid > li { display: grid; }
.past-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.past-cover { position: relative; display: block; width: 100%; overflow: hidden; }
.past-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.4s; }
.past-cover:hover img { transform: scale(1.04); filter: brightness(1.08); }
.past-photo-count {
  position: absolute; left: 14px; bottom: 14px;
  padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: rgb(26 32 22 / 0.78); color: var(--bone); backdrop-filter: blur(6px);
}
.past-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 30px); flex: 1; }
.past-body h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.past-body .prose { font-size: 0.97rem; }
.past-body .text-link { align-self: flex-start; margin-top: auto; }
.past-meta { display: grid; gap: 2px; font-size: 0.85rem; color: var(--muted); }
.past-meta time { color: var(--ochre); font-weight: 600; }
.past-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.past-thumbs button { position: relative; display: block; width: 100%; border-radius: 8px; overflow: hidden; }
.past-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: filter 0.3s; }
.past-thumbs button:hover img { filter: brightness(1.12); }
.past-more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgb(26 32 22 / 0.62); color: var(--bone); font-weight: 700; font-size: 1.05rem;
}

/* Contact & form --------------------------------------------------- */
.contact {
  background:
    radial-gradient(ellipse at 10% 0%, rgb(107 128 85 / 0.22), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgb(163 127 88 / 0.14), transparent 55%);
}
.contact-grid { align-items: start; }
.contact-details { display: grid; gap: 6px; margin-top: 32px; }
.contact-details a { color: var(--lichen); font-weight: 600; }
.contact-details span { color: var(--muted); }
.contact-details + .text-link { margin-top: 20px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }

.booking-form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: rgb(26 32 22 / 0.6); border: 1px solid rgb(183 196 155 / 0.25); border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lichen) 50%), linear-gradient(-45deg, transparent 50%, var(--lichen) 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ochre); background: rgb(26 32 22 / 0.9); }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.85); }
.booking-form .btn { justify-self: start; margin-top: 4px; }
.booking-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 10px; background: rgb(183 196 155 / 0.1); color: var(--lichen); }
.form-status.is-error { background: rgb(212 184 112 / 0.12); color: var(--ochre); }
.form-status a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer ----------------------------------------------------------- */
.site-footer {
  display: grid; justify-items: center; gap: 28px; text-align: center;
  padding: 72px var(--gutter) 40px; border-top: 1px solid var(--line);
}
.footer-logo { text-decoration: none; }
.footer-logo .logo { flex-direction: column; }
.footer-logo .logo-mark { width: 72px; height: 72px; }
.footer-logo .logo-wordmark { font-size: 1.4rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--lichen); }
.social { display: flex; gap: 12px; list-style: none; padding: 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--lichen); transition: background 0.2s, color 0.2s;
}
.social a:hover { background: var(--lichen); color: var(--bg); }
.social .icon { width: 20px; height: 20px; }
.social .icon-mixcloud { width: 28px; height: auto; } /* wide wordmark-style logo */
.social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.footer-meta { font-size: 0.85rem; color: var(--muted); }

/* Modals ----------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-overlay { position: absolute; inset: 0; background: rgb(18 22 15 / 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; width: min(680px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
}
.modal-panel h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
  color: var(--bone); background: rgb(26 32 22 / 0.5);
}
.modal-close:hover { background: var(--lichen); color: var(--bg); }
.modal.is-open .modal-panel, .modal.is-open .lightbox-figure { animation: pop 0.35s var(--ease); }
.modal.is-open .modal-overlay { animation: fade 0.3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .modal.is-open .modal-panel, .modal.is-open .lightbox-figure, .modal.is-open .modal-overlay { animation: none; }
}

.lightbox-figure { position: relative; display: grid; justify-items: center; gap: 12px; pointer-events: none; }
.lightbox-figure img { max-width: min(92vw, 1600px); max-height: 84dvh; width: auto; border-radius: 8px; pointer-events: auto; }
.lightbox-count { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.1em; }
.lightbox-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1;
  background: rgb(26 32 22 / 0.6); color: var(--bone);
}
.lightbox-nav:hover { background: var(--lichen); color: var(--bg); }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }

/* Scroll animations (only when JS confirms motion is OK) ------------ */
.motion [data-animate] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.motion [data-animate].is-visible { opacity: 1; transform: none; }
