/* ============================================================
   KNXPLORE design system — Quiet Wilderness / Museum Editorial
   Phase 2 foundation: tokens, type, chrome, homepage.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --ink: #151816;
  --charcoal: #242925;
  --bone: #f3f0e8;
  --paper: #fbfaf6;
  --forest: #30483d;
  --sage: #78877d;
  --bronze: #a88a5c;
  --mist: #dfe3dd;
  --white: #ffffff;
  --line: rgba(21, 24, 22, 0.14);
  --line-light: rgba(243, 240, 232, 0.22);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 64px;
  --pad-x: 20px;
  --content-max: 1440px;
  --measure: 65ch;

  --ease: cubic-bezier(.33,.01,.2,1);
  --t-control: 220ms;
  --t-reveal: 650ms;

  /* legacy token names — keep older page styles on the new palette */
  --bg: var(--paper);
  --surface: var(--white);
  --green: var(--forest);
  --slate: var(--charcoal);
  --earth: var(--bronze);
  --gold: var(--bronze);
  --subink: var(--charcoal);
  --rule: var(--line);
  --display: var(--font-display);
  --body: var(--font-body);
  --gutter: var(--pad-x);
  --maxw: var(--content-max);
}

@media (min-width: 768px)  { :root { --header-h: 76px; --pad-x: 32px; } }
@media (min-width: 1024px) { :root { --header-h: 80px; --pad-x: 56px; } }
@media (min-width: 1440px) { :root { --pad-x: 80px; } }

/* ---------- fonts (self-hosted, OFL, latin subsets) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 17px; } }
@media (min-width: 1440px) { body { font-size: 18px; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 450; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
::selection { background: var(--forest); color: var(--paper); }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--bone); }

/* ---------- utilities ---------- */
.wrap { max-width: var(--content-max); margin: 0 auto; padding-inline: var(--pad-x); }
.label {
  font-family: var(--font-body); font-weight: 600;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--forest);
}
@media (min-width: 768px) { .label { font-size: 12px; } }
.on-dark .label { color: var(--mist); }

.section { padding-block: clamp(5.5rem, 5vw + 3.5rem, 11.25rem); }
.section-head { margin-bottom: clamp(2.25rem, 4vw, 4rem); }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 5rem); margin-top: 0.35em; max-width: 18ch; }

.skip-link {
  position: absolute; left: var(--pad-x); top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 2px;
  font-weight: 600; font-size: 14px;
  transition: top var(--t-control) var(--ease);
}
.skip-link:focus-visible { top: 12px; outline-color: var(--bone); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 24px;
  font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 2px;
  transition: background-color var(--t-control) var(--ease),
              color var(--t-control) var(--ease),
              border-color var(--t-control) var(--ease),
              transform var(--t-control) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--forest); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-solid { background: var(--paper); color: var(--ink); }
.on-dark .btn-solid:hover { background: var(--bone); }
.on-dark .btn-ghost { border-color: var(--line-light); color: var(--bone); }
.on-dark .btn-ghost:hover { border-color: var(--bone); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--forest); padding-block: 8px;
}
.text-link svg { width: 16px; height: 16px; transition: transform var(--t-control) var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.on-dark .text-link { color: var(--bone); }

/* ============================================================
   HEADER
   ============================================================ */
.knx-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color var(--t-control) var(--ease),
              color var(--t-control) var(--ease),
              box-shadow var(--t-control) var(--ease);
  color: var(--ink); background: transparent;
}
.knx-header .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.knx-header.is-over-image { color: var(--bone); }
.knx-header.scrolled {
  color: var(--ink);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.knx-wordmark {
  font-family: var(--font-body); font-weight: 700;
  font-size: 15px; letter-spacing: 0.22em;
  display: inline-flex; align-items: center; min-height: 44px;
}
.knx-wordmark .x { color: var(--bronze); }
.knx-header.is-over-image:not(.scrolled) .knx-wordmark .x { color: var(--bone); opacity: .85; }

/* desktop nav */
.knx-nav { display: none; align-items: center; gap: 6px; }
@media (min-width: 900px) { .knx-nav { display: flex; } }
.knx-nav > a, .knx-nav .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px;
  font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 2px; position: relative;
}
.knx-nav > a::after, .knx-nav .nav-drop > button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-control) var(--ease);
}
.knx-nav > a:hover::after, .knx-nav > a[aria-current="page"]::after,
.knx-nav .nav-drop > button:hover::after, .knx-nav .nav-drop.open > button::after { transform: scaleX(1); }
.knx-nav .caret { width: 12px; height: 12px; transition: transform var(--t-control) var(--ease); }
.knx-nav .nav-drop.open .caret { transform: rotate(180deg); }

.nav-drop { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 240px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px;
  box-shadow: 0 18px 44px rgba(21,24,22,.12);
  padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t-control) var(--ease), transform var(--t-control) var(--ease), visibility 0s linear var(--t-control);
}
.nav-drop.open .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 20px; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; text-transform: none;
}
.nav-menu a:hover { background: var(--bone); }
.nav-menu .menu-rule { height: 1px; background: var(--line); margin: 8px 20px; }
.nav-menu .menu-label {
  padding: 6px 20px 2px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage);
}

/* mobile toggle + sheet */
.knx-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
}
@media (min-width: 900px) { .knx-menu-btn { display: none; } }
.knx-menu-btn svg { width: 22px; height: 22px; }

.knx-sheet {
  position: fixed; inset: 0; z-index: 120;
  background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column;
  padding: 0 var(--pad-x) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 280ms var(--ease), visibility 0s linear 280ms;
  overflow-y: auto;
}
.knx-sheet.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.knx-sheet-head {
  height: var(--header-h); flex: none;
  display: flex; align-items: center; justify-content: space-between;
}
.knx-sheet nav { display: flex; flex-direction: column; padding-top: 4vh; }
.knx-sheet .sheet-link {
  font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.75rem);
  padding: 10px 0; line-height: 1.15;
}
.knx-sheet .sheet-sub {
  display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 2px 0 14px;
}
.knx-sheet .sheet-sub a { font-size: 15px; font-weight: 500; color: var(--mist); padding: 6px 0; }
.knx-sheet .sheet-foot { margin-top: auto; padding-top: 6vh; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.knx-sheet .sheet-foot a { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); padding: 8px 0; }
body.knx-lock { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.knx-hero {
  position: relative; height: 100svh; min-height: 560px; max-height: 1180px;
  color: var(--bone); overflow: hidden; background: var(--ink);
}
.knx-hero .hero-media, .knx-hero .hero-media img,
.knx-hero .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.knx-hero .hero-media img { object-fit: cover; }
.knx-hero .hero-slide {
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 800ms var(--ease);
}
.knx-hero .hero-slide.active { opacity: 1; }
.knx-hero .hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(21,24,22,.34), rgba(21,24,22,0) 24%),
    linear-gradient(to top, rgba(21,24,22,.62), rgba(21,24,22,.18) 38%, rgba(21,24,22,0) 58%);
}
.knx-hero .hero-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--pad-x) clamp(2.5rem, 6vh, 5rem);
  max-width: var(--content-max); margin: 0 auto;
}
.knx-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 420; max-width: 21ch; letter-spacing: -0.015em;
  margin: 0.5em 0 0.35em;
}
.knx-hero .hero-support {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: rgba(243,240,232,.88); max-width: 44ch; margin: 0 0 1.6em;
}
.knx-hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   SELECTED WORK
   ============================================================ */
.sel-grid { display: grid; gap: clamp(28px, 4vw, 48px) clamp(18px, 2.2vw, 32px); }
.sel-item { display: block; }
.sel-item .frame {
  position: relative; overflow: hidden; background: var(--mist);
  border-radius: 2px;
}
.sel-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease), opacity 500ms var(--ease);
  opacity: 0;
}
.sel-item img.loaded { opacity: 1; }
.sel-item:hover img { transform: scale(1.025); }
.sel-cap { margin-top: 14px; }
.sel-cap .t { font-family: var(--font-display); font-size: 1.3rem; font-weight: 470; line-height: 1.25; }
.sel-cap .c { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
@media (min-width: 768px) {
  .sel-grid { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .sel-item:nth-child(1) { grid-column: 1 / span 8; }
  .sel-item:nth-child(2) { grid-column: 9 / span 4; }
  .sel-item:nth-child(3) { grid-column: 1 / span 4; }
  .sel-item:nth-child(4) { grid-column: 5 / span 8; }
  .sel-item:nth-child(5) { grid-column: 1 / span 7; }
  .sel-item:nth-child(6) { grid-column: 8 / span 5; }
}
.sel-more { margin-top: clamp(2rem, 4vw, 3rem); }

/* ============================================================
   FEATURED STORY
   ============================================================ */
.knx-story { background: var(--bone); }
.story-split { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) {
  .story-split { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .story-split .story-img { grid-column: 1 / span 7; }
  .story-split .story-txt { grid-column: 8 / span 5; }
}
.story-img { overflow: hidden; border-radius: 2px; background: var(--mist); }
.story-img img { width: 100%; height: auto; }
.story-txt h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); margin: .45em 0 .5em; max-width: 16ch; }
.story-txt .excerpt { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.65; color: var(--charcoal); }
.story-txt .meta { font-size: 13px; font-weight: 500; color: var(--charcoal); opacity: .75; margin: 0 0 1.6em; }

/* ============================================================
   ABOUT TEASER
   ============================================================ */
.about-split { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) {
  .about-split { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .about-split .about-img { grid-column: 2 / span 4; }
  .about-split .about-txt { grid-column: 7 / span 5; }
}
.about-img { overflow: hidden; border-radius: 2px; background: var(--mist); }
.about-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.about-txt .quote {
  font-family: var(--font-display); font-style: italic; font-weight: 420;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.4;
  color: var(--charcoal); margin: .6em 0 .8em; max-width: 26ch;
}
.about-txt .bio { color: var(--charcoal); }

/* ============================================================
   ARCHIVE BAND
   ============================================================ */
.knx-archive { background: var(--ink); color: var(--bone); }
.knx-archive h2 { font-size: clamp(2.4rem, 5vw, 5rem); margin: .3em 0 .35em; }
.knx-archive .arch-line { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--mist); max-width: 52ch; }
.knx-archive .num { font-family: var(--font-display); color: var(--bronze); font-weight: 470; }
.arch-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(1.8rem, 3vw, 2.6rem) 0; }
.arch-cats a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-light); border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .05em;
  transition: border-color var(--t-control) var(--ease), background-color var(--t-control) var(--ease);
}
.arch-cats a:hover { border-color: var(--bone); background: rgba(243,240,232,.06); }

/* ============================================================
   FOOTER
   ============================================================ */
.knx-footer { background: var(--paper); border-top: 1px solid var(--line); }
.knx-footer .foot-top {
  display: grid; gap: 40px;
  padding-block: clamp(3.5rem, 6vw, 6rem) clamp(2.5rem, 4vw, 4rem);
}
@media (min-width: 900px) { .knx-footer .foot-top { grid-template-columns: 1.3fr 2fr; } }
.foot-brand .knx-wordmark { font-size: 16px; }
.foot-brand p { margin-top: 14px; color: var(--charcoal); max-width: 34ch; font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 640px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.foot-col h4 {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--forest);
  margin: 0 0 14px;
}
.foot-col a { display: block; padding: 6px 0; font-size: 15px; color: var(--charcoal); }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-block: 22px; font-size: 13px; color: var(--charcoal);
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .sel-item:hover img { transform: none; }
}

/* ============================================================
   PARENT THEME — interior pages
   Restyles the shared page components used across the site.
   ============================================================ */

/* page header block */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.page-head .label { display: block; margin-bottom: .9em; }
.page-head h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); max-width: 20ch; }
.page-head .intro, .page-head p {
  margin-top: 1.1em; font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6; color: var(--charcoal); max-width: 56ch;
}
.page-rule { height: 1px; background: var(--line); margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- generic photo grid (archive + galleries) ---------- */
.grid, #gallery {
  display: grid; gap: clamp(14px, 1.6vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
@media (min-width: 640px) { .grid, #gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (min-width: 1100px) { .grid, #gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }

.card {
  position: relative; display: block; text-align: left;
  background: var(--mist); border: 0; padding: 0; border-radius: 2px;
  overflow: hidden;
}
.card > img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  opacity: 0; transition: opacity 450ms var(--ease), transform 700ms var(--ease);
}
.card > img.loaded { opacity: 1; }
.card:hover > img { transform: scale(1.03); }
.card.broken { display: none; }
.card-cap {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px;
  background: linear-gradient(to top, rgba(21,24,22,.78), rgba(21,24,22,0));
  color: var(--bone);
  opacity: 0; transition: opacity var(--t-control) var(--ease);
}
.card:hover .card-cap, .card:focus-visible .card-cap { opacity: 1; }
.card-cap .nm { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25; }
.card-cap .lc { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); margin-top: 3px; }
.card .flag, .card .star {
  position: absolute; top: 10px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.card .flag { left: 10px; background: var(--paper); color: var(--charcoal); padding: 4px 8px; border-radius: 2px; }
.card .star { right: 10px; color: var(--bronze); display: inline-flex; }

.empty {
  grid-column: 1 / -1; text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 20px; border: 1px solid var(--line); border-radius: 2px;
}
.empty h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .4em; }
.empty p { color: var(--charcoal); margin: 0 auto; }

/* ---------- archive toolbar ---------- */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(251,250,246,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
  padding-block: 12px; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.toolbar .bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar .count { font-size: 13px; font-weight: 600; color: var(--charcoal); margin-right: auto; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  transition: border-color var(--t-control) var(--ease), background-color var(--t-control) var(--ease);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn svg { width: 16px; height: 16px; }
.search-field {
  flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 44px;
  background: var(--white);
}
.search-field input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 14px; padding: 0; }
.search-field input:focus { outline: none; }
.search-field:focus-within { border-color: var(--forest); }

.applied { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 6px; }
.applied:empty { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--forest); color: var(--paper);
  border-radius: 999px; padding: 7px 8px 7px 14px; font-size: 12px; font-weight: 600;
}
.pill button {
  width: 22px; height: 22px; border-radius: 50%; color: inherit;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
  background: rgba(255,255,255,.16);
}
.clear-all { font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--charcoal); padding: 7px 4px; }

/* filter panel / sheet */
.fp-scrim {
  position: fixed; inset: 0; z-index: 130; background: rgba(21,24,22,.45);
  opacity: 0; visibility: hidden; transition: opacity 280ms var(--ease), visibility 0s linear 280ms;
}
.filter-panel.open ~ .fp-scrim, .fp-scrim.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.filter-panel {
  position: fixed; z-index: 140; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  inset: auto 0 0 0; max-height: 86vh; border-radius: 14px 14px 0 0;
  transform: translateY(101%); transition: transform 320ms var(--ease);
  box-shadow: 0 -20px 60px rgba(21,24,22,.22);
}
.filter-panel.open { transform: none; }
@media (min-width: 900px) {
  .filter-panel {
    inset: 0 0 0 auto; width: 420px; max-height: none; border-radius: 0;
    transform: translateX(101%);
  }
  .filter-panel.open { transform: none; }
}
.fp-head { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad-x); border-bottom: 1px solid var(--line); }
.fp-head h2 { font-size: 1.4rem; }
.fp-body { overflow-y: auto; padding: 20px var(--pad-x) 28px; flex: 1; }
.fp-foot { display: flex; gap: 12px; padding: 16px var(--pad-x); border-top: 1px solid var(--line); }
.fp-foot .btn { flex: 1; }
.fp-group { margin-bottom: 26px; }
.fp-group > .label { display: block; margin-bottom: 12px; }
.fp-item {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding: 0 12px; border-radius: 2px; font-size: 15px; font-weight: 500;
  transition: background-color var(--t-control) var(--ease);
}
.fp-item:hover { background: var(--bone); }
.fp-item.active { background: var(--forest); color: var(--paper); }
.fp-item .n { font-size: 12px; opacity: .7; }
.chip, .fp-opt {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 999px; margin: 0 8px 8px 0;
  font-size: 13px; font-weight: 500;
  transition: border-color var(--t-control) var(--ease), background-color var(--t-control) var(--ease), color var(--t-control) var(--ease);
}
.chip:hover, .fp-opt:hover { border-color: var(--ink); }
.chip.active, .fp-opt.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; letter-spacing: .05em;
  box-shadow: 0 12px 30px rgba(21,24,22,.28);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t-control) var(--ease), transform var(--t-control) var(--ease), visibility 0s linear var(--t-control);
}
.fab.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.fab svg { width: 16px; height: 16px; }

/* ---------- viewer / lightbox ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--bone);
  display: grid; grid-template-rows: 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity 280ms var(--ease), visibility 0s linear 280ms;
}
.viewer.open { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (min-width: 1000px) { .viewer { grid-template-rows: 1fr; grid-template-columns: 1fr 400px; } }
.v-stage { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; }
.v-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.v-stage img.zoomed { cursor: zoom-out; transform: scale(1.7); transition: transform 400ms var(--ease); }
.v-plate {
  padding: 22px var(--pad-x) 30px; overflow-y: auto;
  border-top: 1px solid var(--line-light); max-height: 42vh;
}
@media (min-width: 1000px) { .v-plate { border-top: 0; border-left: 1px solid var(--line-light); max-height: none; padding-top: calc(var(--header-h) + 10px); } }
.v-plate .cat-line { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.v-plate h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .35em 0 .2em; }
.v-plate .sci { font-family: var(--font-display); font-style: italic; color: var(--mist); font-size: 1.05rem; }
.v-plate .pl-rule { height: 1px; background: var(--line-light); margin: 18px 0; }
.v-plate .behaviour, .v-plate .loc { font-size: 14px; color: var(--mist); margin-bottom: 6px; }
.v-plate .story { font-size: 15px; line-height: 1.65; color: rgba(243,240,232,.9); margin-top: 14px; }
.v-plate .fact { border-left: 2px solid var(--bronze); padding-left: 14px; margin-top: 18px; }
.v-plate .fact .k, .v-plate .exif .k { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin-bottom: 6px; }
.v-plate .fact p { font-size: 14px; line-height: 1.6; color: var(--mist); margin: 0; }
.v-plate .exif { margin-top: 22px; border-top: 1px solid var(--line-light); padding-top: 16px; }
.v-plate .exif dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; margin: 0; font-size: 13px; }
.v-plate .exif dt { color: var(--sage); }
.v-plate .exif dd { margin: 0; color: var(--mist); }
.v-plate .review-note { margin-top: 18px; font-size: 12px; color: var(--sage); }
.v-btn {
  position: absolute; z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(21,24,22,.55); color: var(--bone); backdrop-filter: blur(6px);
  transition: background-color var(--t-control) var(--ease);
}
.v-btn:hover { background: rgba(21,24,22,.8); }
.v-btn svg { width: 22px; height: 22px; }
.v-close { top: 16px; right: 16px; }
.v-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.v-next { right: 14px; top: 50%; transform: translateY(-50%); }
.v-count { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; font-size: 12px; letter-spacing: .1em; color: var(--mist); background: rgba(21,24,22,.5); padding: 6px 14px; border-radius: 999px; }

/* ---------- story cards (Stories index) ---------- */
.story-grid { display: grid; gap: clamp(26px, 3.5vw, 44px); padding-bottom: clamp(4rem, 8vw, 7rem); }
@media (min-width: 700px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .story-grid { grid-template-columns: repeat(3, 1fr); } }
.story-card { display: block; background: none; }
.story-cover { position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center; border-radius: 2px; overflow: hidden; }
.story-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--paper); color: var(--charcoal);
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 2px;
}
.story-body { padding-top: 16px; }
.story-meta { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); }
.story-body h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); margin: .35em 0 .4em; }
.story-body p { font-size: 15px; color: var(--charcoal); line-height: 1.6; }
.story-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--forest);
  padding-top: 6px;
}
.story-cta svg { width: 15px; height: 15px; transition: transform var(--t-control) var(--ease); }
.story-card:hover .story-cta svg { transform: translateX(4px); }
.story-cta.soon { color: var(--sage); }

/* ---------- long-form article ---------- */
.article-hero {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  color: var(--bone); background: var(--ink); overflow: hidden;
}
.article-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(21,24,22,.8), rgba(21,24,22,.15) 60%, rgba(21,24,22,.4)); }
.article-hero .inner { position: relative; padding: calc(var(--header-h) + 3rem) var(--pad-x) clamp(2.5rem, 5vw, 4rem); max-width: var(--content-max); margin: 0 auto; width: 100%; }
.article-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); max-width: 18ch; margin: .35em 0 .4em; }
.article-hero .dek { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(243,240,232,.9); max-width: 54ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 1.4em; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }

.prose { max-width: 68ch; margin: 0 auto; padding-block: clamp(3rem, 6vw, 5rem); }
.prose > * { margin-inline: auto; }
.prose p { font-size: clamp(1.02rem, 1.35vw, 1.14rem); line-height: 1.72; color: var(--charcoal); margin-bottom: 1.3em; }
.prose p.lead { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.6; color: var(--ink); }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 2.2em 0 .6em; }
.prose h3 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); margin: 1.8em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose .day-label {
  display: inline-block; margin-top: 2.4em;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--bronze);
}
.prose .day-label + h3 { margin-top: .25em; }
.prose blockquote {
  margin: 2em 0; padding-left: 22px; border-left: 2px solid var(--bronze);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.45; color: var(--ink);
}
.prose blockquote p { font-size: inherit; font-family: inherit; color: inherit; margin: 0; }

figure.fig { margin: clamp(2.2rem, 4vw, 3.2rem) 0; }
figure.fig img { width: 100%; border-radius: 2px; background: var(--mist); }
figure.fig figcaption { margin-top: 10px; font-size: 13px; color: var(--sage); text-align: center; }
figure.fig.wide { max-width: min(1180px, 100%); }
@media (min-width: 1100px) { figure.fig.wide { width: 118%; margin-inline: -9%; } }

.article-foot { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ---------- forms ---------- */
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); margin-bottom: 8px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  padding: 13px 15px; min-height: 46px;
  transition: border-color var(--t-control) var(--ease);
}
.form-row textarea { min-height: 150px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(48,72,61,.12); }
.form-note { font-size: 13px; color: var(--sage); margin-top: -8px; }
.contact-line { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-line .k { flex: 0 0 110px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); padding-top: 3px; }

/* ---------- about page ---------- */
.about-portrait { max-width: 420px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.about-portrait img { width: 100%; border-radius: 2px; }
.about-portrait::after { content: none; }
.gear-list { list-style: none; padding: 0; margin: 0; }
.gear-list li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.gear-list li span { font-weight: 400; color: var(--charcoal); text-align: right; }
.closing { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; color: var(--ink); }

/* ---------- video / films ---------- */
.film-grid { display: grid; gap: clamp(30px, 4vw, 52px); padding-bottom: clamp(4rem, 8vw, 7rem); }
@media (min-width: 860px) { .film-grid { grid-template-columns: repeat(2, 1fr); } }
.film { background: none; }
.film-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 2px; overflow: hidden;
  background: var(--ink); display: block; width: 100%; padding: 0; border: 0;
}
.film-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease), opacity 400ms var(--ease); }
.film-frame:hover img { transform: scale(1.03); opacity: .82; }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.film-play span {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(251,250,246,.92); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(21,24,22,.3);
  transition: transform var(--t-control) var(--ease);
}
.film-frame:hover .film-play span { transform: scale(1.07); }
.film-play svg { width: 26px; height: 26px; margin-left: 3px; }
.film-body { padding-top: 18px; }
.film-body h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: .3em 0 .45em; }
.film-body p { font-size: 15px; line-height: 1.65; color: var(--charcoal); white-space: pre-line; }
.film-note { font-size: 13px; color: var(--sage); border-left: 2px solid var(--bronze); padding-left: 12px; margin-top: 14px; }
.film-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }

/* ============================================================
   Class-name bridge — matches the actual markup of the
   archive, gallery and viewer pages to the parent theme.
   ============================================================ */

/* archive toolbar (explore.html uses .explore-top / .explore-actions) */
.explore-top {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(251,250,246,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: 12px; padding-bottom: 12px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
body > #main > .explore-top:first-of-type,
#main > .wrap.explore-top { margin-top: 0; }
.explore-top { margin-top: calc(var(--header-h) + 8px); }
.explore-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-count { font-size: 13px; font-weight: 600; color: var(--charcoal); margin-right: auto; }

/* gallery grid */
.gallery {
  display: grid; gap: clamp(14px, 1.6vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }

/* fab */
.filter-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; letter-spacing: .05em;
  box-shadow: 0 12px 30px rgba(21,24,22,.28);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t-control) var(--ease), transform var(--t-control) var(--ease), visibility 0s linear var(--t-control);
}
.filter-fab.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.filter-fab svg { width: 16px; height: 16px; }

/* filter panel: outer .filter-panel is the layer, .fp-sheet is the surface */
.filter-panel {
  position: fixed; inset: 0; z-index: 130;
  visibility: hidden; transform: none; box-shadow: none; background: none;
  display: block; max-height: none; border-radius: 0;
  transition: visibility 0s linear 320ms;
}
.filter-panel.open { visibility: visible; transition-delay: 0s; }
.filter-panel .fp-scrim {
  position: absolute; inset: 0; background: rgba(21,24,22,.45);
  opacity: 0; transition: opacity 300ms var(--ease);
}
.filter-panel.open .fp-scrim { opacity: 1; }
.fp-sheet {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  max-height: 86vh; border-radius: 14px 14px 0 0;
  transform: translateY(101%); transition: transform 320ms var(--ease);
  box-shadow: 0 -20px 60px rgba(21,24,22,.22);
}
.filter-panel.open .fp-sheet { transform: none; }
@media (min-width: 900px) {
  .fp-sheet { inset: 0 0 0 auto; width: 420px; max-height: none; border-radius: 0; transform: translateX(101%); }
  .filter-panel.open .fp-sheet { transform: none; }
}
.fp-label {
  display: block; margin-bottom: 12px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--forest);
}
.fp-list { display: block; }
.fp-options, .chips { display: flex; flex-wrap: wrap; }
.fp-close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  margin-right: -10px; border-radius: 50%;
}
.fp-close svg { width: 22px; height: 22px; }
.fp-clear {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.fp-clear:hover { border-color: var(--ink); }
.fp-apply {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border-radius: 2px;
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.fp-apply:hover { background: var(--forest); }

/* viewer */
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.viewer-stage img.zoomed { cursor: zoom-out; transform: scale(1.7); transition: transform 400ms var(--ease); }
.plate {
  padding: 22px var(--pad-x) 30px; overflow-y: auto;
  border-top: 1px solid var(--line-light); max-height: 42vh;
}
@media (min-width: 1000px) { .plate { border-top: 0; border-left: 1px solid var(--line-light); max-height: none; padding-top: 40px; } }
.plate .cat-line { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.plate h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .35em 0 .2em; }
.plate .sci { font-family: var(--font-display); font-style: italic; color: var(--mist); font-size: 1.05rem; }
.plate .pl-rule { height: 1px; background: var(--line-light); margin: 18px 0; }
.plate .behaviour, .plate .loc { font-size: 14px; color: var(--mist); margin-bottom: 6px; }
.plate .story { font-size: 15px; line-height: 1.65; color: rgba(243,240,232,.9); margin-top: 14px; }
.plate .fact { border-left: 2px solid var(--bronze); padding-left: 14px; margin-top: 18px; }
.plate .fact .k, .plate .exif .k { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin-bottom: 6px; }
.plate .fact p { font-size: 14px; line-height: 1.6; color: var(--mist); margin: 0; }
.plate .exif { margin-top: 22px; border-top: 1px solid var(--line-light); padding-top: 16px; }
.plate .exif dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; margin: 0; font-size: 13px; }
.plate .exif dt { color: var(--sage); }
.plate .exif dd { margin: 0; color: var(--mist); }
.plate .review-note { margin-top: 18px; font-size: 12px; color: var(--sage); }
.v-nav, .v-close {
  position: absolute; z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(21,24,22,.55); color: var(--bone); backdrop-filter: blur(6px);
  transition: background-color var(--t-control) var(--ease);
}
.v-nav:hover, .v-close:hover { background: rgba(21,24,22,.8); }
.v-nav svg, .v-close svg { width: 22px; height: 22px; }

/* gallery pages (Yuvan / Birding) count line */
#galleryCount { font-size: 13px; font-weight: 600; color: var(--charcoal); }

/* ============================================================
   Interior page components (real markup names)
   ============================================================ */

/* page hero used by about / contact / stories / galleries / 404 */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(2.2rem, 4.5vw, 3.75rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-hero .eyebrow, .eyebrow {
  display: block; margin-bottom: .9em;
  font-family: var(--font-body); font-weight: 600;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--forest);
}
@media (min-width: 768px) { .eyebrow { font-size: 12px; } }
.page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); max-width: 20ch; }
.page-hero p, .page-hero .intro {
  margin-top: 1.1em; font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6; color: var(--charcoal); max-width: 56ch;
}
.muted { color: var(--sage); }

/* about page */
.collections { padding-bottom: clamp(4rem, 8vw, 7rem); }
#aboutIntro { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--charcoal); }
#aboutPortrait { width: 100%; border-radius: 2px; }
#aboutSections { max-width: 68ch; }
#aboutSections p { font-size: clamp(1.02rem, 1.35vw, 1.14rem); line-height: 1.72; color: var(--charcoal); margin-bottom: 1.3em; }
#aboutSections p.lead { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.6; color: var(--ink); }
#aboutSections p.closing {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; color: var(--ink);
  border-left: 2px solid var(--bronze); padding-left: 22px; margin-top: 2em;
}
.gearlist, #gearList { list-style: none; padding: 0; margin: 0; }
.gearlist li, #gearList li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 600; letter-spacing: .03em;
}
.gearlist li span, #gearList li span { font-weight: 400; color: var(--charcoal); text-align: right; }

/* contact page */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); padding-bottom: clamp(4rem, 8vw, 7rem); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
#contactIntro { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--charcoal); }
#contactLines { margin-top: 1.5em; }
.field { margin-bottom: 20px; }
.field label, .field > span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); margin-bottom: 8px; }
.field input, .field textarea, .field select,
#cn, #ce, #cm, #bn, #be, #bi, #bl, #bd, #bs, #bp {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  padding: 13px 15px; min-height: 46px;
  transition: border-color var(--t-control) var(--ease), box-shadow var(--t-control) var(--ease);
}
.field textarea, #cm, #bn { resize: vertical; }
.field textarea, #cm { min-height: 150px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(48,72,61,.12);
}
.field input[type="file"] { padding: 10px 12px; background: var(--bone); }

/* buttons rendered as .submit / .btn-line in legacy markup */
.submit, button.submit, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 26px; border-radius: 2px;
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color var(--t-control) var(--ease);
}
.submit:hover, .btn-line:hover { background: var(--forest); }
a.btn-line { background: none; color: var(--ink); border: 1px solid var(--line); }
a.btn-line:hover { background: none; border-color: var(--ink); color: var(--ink); }

/* birding submission card */
.submit-card {
  background: var(--bone); border: 1px solid var(--line); border-radius: 2px;
  padding: clamp(22px, 3.5vw, 40px); margin-bottom: clamp(3rem, 6vw, 5rem);
}
.submit-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .5em; }
.form-grid { display: grid; gap: 0 22px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .field.full, .form-grid .field:last-of-type { grid-column: 1 / -1; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--charcoal); margin-bottom: 18px; }
.consent input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; flex: none; }
.bnote, #bnote { font-size: 13px; color: var(--sage); margin-top: 14px; }
.submit-ok, #submitOk {
  background: var(--forest); color: var(--paper);
  padding: 16px 20px; border-radius: 2px; font-size: 15px; margin-top: 16px;
}

/* yuvan intro portrait */
.intro-portrait { max-width: 340px; }
.intro-portrait img { width: 100%; border-radius: 2px; }
.intro-portrait .tag {
  display: inline-block; margin-top: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--forest);
}

/* ---------- flameback / long-form article markup ---------- */
.article-lead {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.6; color: var(--ink);
  max-width: 68ch; margin: 0 auto 2em;
}
.article-body { max-width: 68ch; margin: 0 auto; padding-bottom: clamp(3rem, 6vw, 5rem); }
.article-body p, .article-section p {
  font-size: clamp(1.02rem, 1.35vw, 1.14rem); line-height: 1.72; color: var(--charcoal); margin-bottom: 1.3em;
}
.article-section { margin-top: clamp(2.5rem, 5vw, 4rem); }
.article-section h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .6em; }
.article-section h3 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); margin-bottom: .5em; }
.chapter-num, .chapter {
  display: block;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin-bottom: .6em;
}
.byline { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--forest); }
.pullquote {
  margin: 2.2em 0; padding-left: 22px; border-left: 2px solid var(--bronze);
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; color: var(--ink);
}
.pullquote p { font: inherit; color: inherit; margin: 0; }
.article-spacer { height: clamp(2rem, 4vw, 3.5rem); }
.article-end { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem); margin-top: clamp(2rem, 4vw, 3rem); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--forest); }
.fig-pair { display: grid; gap: clamp(14px, 2vw, 24px); margin: clamp(2rem, 4vw, 3rem) 0; }
@media (min-width: 700px) { .fig-pair { grid-template-columns: 1fr 1fr; align-items: start; } }
.fig-pair img, .tall img { width: 100%; border-radius: 2px; background: var(--mist); }
.field-card {
  background: var(--bone); border: 1px solid var(--line); border-radius: 2px;
  padding: clamp(20px, 3vw, 32px); margin: clamp(2rem, 4vw, 3rem) auto;
  max-width: 68ch;
}
.fc-row { display: flex; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fc-row:last-child { border-bottom: 0; }
.fc-k { flex: 0 0 132px; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--forest); padding-top: 2px; }
.fc-v { color: var(--charcoal); }
.behaviour-wrap { overflow-x: auto; margin: clamp(2rem, 4vw, 3rem) 0; }
.behaviour-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.behaviour-table th, .behaviour-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.behaviour-table th { font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--forest); }
.behaviour-table td { color: var(--charcoal); }
.video-figure { margin: clamp(2rem, 4vw, 3rem) 0; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 2px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* misc legacy helpers */
.wrap-chips { display: flex; flex-wrap: wrap; }
