/* ============================================================
   Iron Lotus Guitar — style.css
   Palette: jet black / charcoal / dark walnut / aged brass /
   flame red-orange / bone. Warm amber light, industrial modern.
   ============================================================ */

:root {
  --black: #0a0908;
  --charcoal: #14110e;
  --iron: #1e1a15;
  --walnut: #3a2a1e;
  --brass: #b08d57;
  --brass-dim: #8a6d42;
  --flame: #c8391f;
  --flame-bright: #e05a2b;
  --bone: #e8e2d6;
  --bone-dim: #a89e8c;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Archivo", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Vines intentionally overhang the viewport edges; clip sideways so they
     never produce a horizontal scrollbar. `clip` (unlike `hidden`) doesn't
     turn this into a scroll container, so position:sticky keeps working. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--bone);
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

em { font-style: italic; color: var(--brass); }

p { color: var(--bone-dim); }

.overline {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--flame-bright);
  margin-bottom: 1.2rem;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 6vw; }
.container--narrow { max-width: 780px; }

.section { padding: clamp(5rem, 12vh, 9rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05em 2.4em;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
}

.btn--flame {
  background: var(--flame);
  color: var(--bone);
}
.btn--flame:hover {
  background: var(--flame-bright);
  box-shadow: 0 0 34px rgba(224, 90, 43, 0.35);
}

/* Black fill, flame border and flame text. */
.btn--flameline {
  background: var(--black);
  border-color: var(--flame);
  color: var(--flame-bright);
}
.btn--flameline:hover {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--bone);
  box-shadow: 0 0 34px rgba(224, 90, 43, 0.3);
}

.btn--ghost {
  background: transparent; /* <button> would otherwise use the UA light default */
  border-color: rgba(232, 226, 214, 0.45);
  color: var(--bone);
}
.btn--ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
  background: rgba(176, 141, 87, 0.08);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 4vw;
  /* Keeps nav text legible where the hero vines drape behind it, and makes
     the vines read as hanging from above/behind the header. */
  background: linear-gradient(to bottom,
    rgba(10, 9, 8, 0.94) 0%,
    rgba(10, 9, 8, 0.72) 55%,
    rgba(10, 9, 8, 0) 100%);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 9, 8, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(176, 141, 87, 0.18);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav__brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 0;
}
.nav__brand img {
  height: 84px;
  width: auto;
  transition: height 0.4s var(--ease);
}
.nav.is-scrolled .nav__brand img { height: 62px; }
/* Between the mobile menu and full desktop the bigger logo crowds the links,
   so ease the logo and spacing back before anything wraps. */
@media (max-width: 1250px) {
  .nav { padding-inline: 2.5vw; }
  .nav__brand img { height: 64px; }
  .nav.is-scrolled .nav__brand img { height: 52px; }
  .nav__links { gap: 1.2rem; }
  .nav__links a { font-size: 0.72rem; letter-spacing: 0.12em; }
  .nav__links a.nav__cta { padding: 0.6em 1em; }
}

@media (max-width: 900px) {
  .nav__brand img { height: 58px; }
  .nav.is-scrolled .nav__brand img { height: 48px; }
  .nav__links a { font-size: 1rem; letter-spacing: 0.18em; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap; /* never let a nav label break across two lines */
  color: var(--bone-dim);
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--bone); }
.nav__links a.nav__cta {
  color: var(--flame-bright);
  border: 1px solid rgba(224, 90, 43, 0.5);
  padding: 0.6em 1.3em;
  transition: all 0.3s;
}
.nav__links a.nav__cta:hover { background: var(--flame); color: var(--bone); }

/* Language selector */
.lang { display: flex; align-items: center; gap: 0.5rem; }
.lang__btn {
  background: none;
  border: 1px solid transparent;
  padding: 3px;
  cursor: pointer;
  line-height: 0;
  opacity: 0.45;
  transition: opacity 0.3s, border-color 0.3s;
}
.lang__btn svg { width: 22px; height: auto; display: block; }
.lang__btn:hover { opacity: 0.85; }
.lang__btn.is-active {
  opacity: 1;
  border-color: rgba(176, 141, 87, 0.55);
}

.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__media,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Own stacking context, so the crossfade layers' z-indexes stay contained
   here and don't paint over the scrim / vines / hero copy. */
.hero__media { z-index: 0; }
/* Two stacked layers. The incoming clip always sits fully opaque BENEATH;
   only the top layer animates (fades out to reveal it), so nothing can
   flash or dip mid-transition. Clips are only ever (re)loaded on the
   covered bottom layer. */
.hero__media video { opacity: 1; z-index: 1; }
.hero__media video.is-top {
  z-index: 2;
  transition: opacity 0.9s linear;
}
.hero__media video.is-fading { opacity: 0; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(10, 9, 8, 0.1) 0%, rgba(10, 9, 8, 0.72) 78%),
    linear-gradient(to bottom, rgba(10, 9, 8, 0.55), rgba(10, 9, 8, 0.15) 30%, rgba(10, 9, 8, 0.92) 96%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 6vw;
  max-width: 900px;
}
.hero__sub {
  max-width: 620px;
  margin: 1.6rem auto 2.6rem;
  font-size: 1.05rem;
  color: rgba(232, 226, 214, 0.82);
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* (The old drip scroll-hint lived here; the vine divider below the hero is
   the scroll cue now, and the hint collided with its foliage.) */

/* ---------- News ---------- */
.news { background: var(--black); }
.news__meta {
  margin-top: 2.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}
.news__trending {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 2.6rem;
}
.chip {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  background: none;
  border: 1px solid rgba(176, 141, 87, 0.3);
  border-radius: 999px;
  padding: 0.45em 1.2em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--brass); color: var(--bone); }
.chip.is-active {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--bone);
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.story {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  background: var(--iron);
  border: 1px solid rgba(176, 141, 87, 0.16);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.story:hover { transform: translateY(-5px); border-color: rgba(176, 141, 87, 0.45); }
.story__img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.story__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.story:hover .story__img img { transform: scale(1.05); }
.story__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
}
.story__title {
  color: var(--bone);
  font-size: 0.95rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story:hover .story__title { color: var(--flame-bright); }
.story--lead { grid-column: span 2; grid-row: span 2; }
.story--lead .story__img { aspect-ratio: auto; flex: 1; min-height: 260px; }
.story--lead .story__title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.25;
  -webkit-line-clamp: 4;
}
.story__meta {
  margin-top: auto;
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 0.76rem;
  color: var(--bone-dim);
}
.story__meta b { font-weight: 600; color: var(--brass); }
.news__loading { padding: 2rem 0; }
.news__foot {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  color: rgba(168, 158, 140, 0.6);
}

/* ---------- Picks ---------- */
.picks {
  background: linear-gradient(to bottom, var(--black), var(--charcoal) 25%, var(--charcoal) 75%, var(--black));
}
.picks__lede { max-width: 620px; margin-top: 1.4rem; }
.picks__grid {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.pick {
  display: flex;
  flex-direction: column;
  background: var(--iron);
  border: 1px solid rgba(176, 141, 87, 0.16);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.pick:hover { transform: translateY(-5px); border-color: rgba(224, 90, 43, 0.5); }
.pick__img {
  display: block;
  aspect-ratio: 1 / 1;
  max-height: 240px;
  overflow: hidden;
  background: #0e0c0a;
}
.pick__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.pick:hover .pick__img img { transform: scale(1.05); }
.pick__body {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.4rem 1.5rem 1.5rem;
  flex: 1;
}
.pick__listing {
  font-size: 0.8rem;
  color: rgba(168, 158, 140, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pick__price {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.pick__price b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--bone);
}
.pick__price i {
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}
.pick__cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}
.pick__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--bone);
  line-height: 1.3;
}
.pick__why { font-size: 0.92rem; color: var(--bone-dim); }
.pick__cta {
  margin-top: 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flame-bright);
}
.picks__disclosure {
  margin-top: 2.2rem;
  font-size: 0.8rem;
  color: rgba(168, 158, 140, 0.6);
}

/* ---------- Bohm Atelier ---------- */
.atelier__lede { max-width: 680px; margin-top: 1.4rem; }
.atelier__grid {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.piece {
  background: var(--iron);
  border: 1px solid rgba(176, 141, 87, 0.16);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.piece:hover { transform: translateY(-6px); border-color: rgba(176, 141, 87, 0.45); }
.piece img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}
.piece__body { padding: 1.6rem 1.7rem 1.8rem; }
.piece__body h3 { font-size: 1.3rem; margin-bottom: 0.55rem; }
.piece__spec {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--brass);
  margin-bottom: 0.7rem;
}
.piece__verdict {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--bone-dim);
}
.atelier__shelter {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(176, 141, 87, 0.18);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass);
}

/* ---------- On Our Radar ---------- */
.radar {
  background: linear-gradient(to bottom, var(--black), var(--charcoal) 30%, var(--charcoal) 70%, var(--black));
}
.radar__lede { max-width: 560px; margin-top: 1.4rem; }
.radar__grid {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}
.player {
  background: var(--iron);
  border: 1px solid rgba(176, 141, 87, 0.16);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.player:hover { transform: translateY(-6px); border-color: rgba(176, 141, 87, 0.45); }
.player__video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: none;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.player__video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.4s, transform 1s var(--ease);
}
.player__video:hover img { opacity: 1; transform: scale(1.04); }
.player__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 9, 8, 0.72);
  border: 1px solid rgba(232, 226, 214, 0.4);
  transition: background 0.3s, border-color 0.3s;
}
.player__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--bone);
}
.player__video:hover .player__play {
  background: var(--flame);
  border-color: var(--flame);
}
.player__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}
.radar__archive {
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(176, 141, 87, 0.18);
  font-size: 0.85rem;
  color: var(--bone-dim);
}
.radar__archive:empty { display: none; }
.radar__archive-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}
.radar__archive a {
  color: var(--bone-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.radar__archive a:hover { color: var(--flame-bright); border-color: var(--flame-bright); }
.player__body { padding: 1.5rem 1.6rem 1.7rem; }
.player__body h3 { font-size: 1.3rem; margin-bottom: 0.15rem; }
.player__from {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.8rem;
}
.player__blurb { font-size: 0.95rem; }
.player__via {
  margin-top: 0.9rem;
  font-size: 0.74rem;
  color: rgba(168, 158, 140, 0.55);
}

/* ---------- Follow ---------- */
.follow { text-align: center; }
.follow p { max-width: 560px; margin-left: auto; margin-right: auto; }
.follow__socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.6rem 0;
}
.follow__socials a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-dim);
  border: 1px solid rgba(232, 226, 214, 0.2);
  padding: 0.85em 1.6em;
  transition: all 0.3s;
}
.follow__socials a:hover {
  color: var(--flame-bright);
  border-color: var(--flame-bright);
}

/* ---------- Bar teaser ---------- */
.bar {
  position: relative;
  background: var(--charcoal);
  text-align: center;
  border-top: 1px solid rgba(176, 141, 87, 0.14);
  overflow: hidden;
  padding-block: clamp(6rem, 15vh, 11rem);
}
.bar__media,
.bar__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bar__media { z-index: 0; }
/* Layered scrim: a broad darkening pass for overall legibility, plus a
   centred pool that sits directly behind the mark and copy so they read
   cleanly without flattening the room to black. */
.bar__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 58% 62% at 50% 48%,
      rgba(10, 9, 8, 0.88) 0%, rgba(10, 9, 8, 0.6) 48%, rgba(10, 9, 8, 0) 100%),
    linear-gradient(to bottom,
      rgba(10, 9, 8, 0.82) 0%, rgba(10, 9, 8, 0.26) 32%,
      rgba(10, 9, 8, 0.3) 68%, rgba(10, 9, 8, 0.82) 100%),
    radial-gradient(ellipse at 50% 130%, rgba(200, 57, 31, 0.18), transparent 62%);
}
.bar .container { position: relative; z-index: 2; }
.bar__mark {
  width: clamp(180px, 22vw, 260px);
  height: auto;
  margin: 0 auto 2.2rem;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.95));
}
.bar h2 { text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9); }
.bar p {
  max-width: 520px;
  margin: 1.4rem auto 0;
  color: rgba(232, 226, 214, 0.9);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(176, 141, 87, 0.18);
  text-align: center;
  padding: 3rem 6vw;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}
.footer__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
}
.footer__legal { font-size: 0.8rem; color: rgba(168, 158, 140, 0.6); }
.footer__links {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.8rem;
}
.footer__links a {
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--flame-bright); }
.footer__links span { color: rgba(168, 158, 140, 0.4); }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 640px;
  margin: 0 auto;
  background: rgba(20, 17, 14, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(176, 141, 87, 0.3);
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.consent[hidden] { display: none; }
.consent p {
  flex: 1 1 280px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--bone-dim);
  margin: 0;
}
.consent p a {
  color: var(--flame-bright);
  text-decoration: none;
  white-space: nowrap;
}
.consent p a:hover { text-decoration: underline; }
.consent__actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.consent .btn { padding: 0.7em 1.4em; font-size: 0.72rem; }

/* ---------- Lotus berthelotii vine accents ---------- */
/* Alpha-keyed from a pure-black studio shot, so the fine foliage has soft
   real edges and composites over dark sections AND bright imagery.
   The section is positioned but keeps z-index:auto, so it never traps the
   vine in a stacking context — the vine then cascades freely past the
   section boundary instead of being clipped by it. Body already has
   overflow-x:hidden, so nothing spills sideways. */
.section--vined { position: relative; }
/* A wrought-iron planter on a chain: the chain runs up past the section
   edge, so the composition resolves into a real object instead of needing
   a fade. The blackened iron is keyed to partial alpha, so it ghosts into
   the page while the brass highlights and foliage stay solid. */
.vine {
  position: absolute;
  top: -5rem;
  width: clamp(170px, 22vw, 345px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 3;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.6));
}
.vine--right { right: 0.5vw; }
.vine--left { left: 0.5vw; transform: scaleX(-1); }
/* Section copy sits above the planter, so text is never obscured. */
.section--vined .container { position: relative; z-index: 4; }

/* Horizontal divider: sits on the seam between two sections. Zero height so
   it never affects layout — the rail lands on the boundary and the strands
   cascade down into the section below. */
/* Each artwork is anchored by its RAIL, and the rail sits at a different
   height in each image, so --rail is measured from the actual pixels and
   lands the rail exactly on the section seam. */
.divider {
  --rail: 33.6%;
  position: relative;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.divider--beam { --rail: 23%; }

.divider img {
  position: absolute;
  left: 50%;
  transform: translate(-50%, calc(-1 * var(--rail)));
  /* Full width at every size so the iron rail always runs off both edges —
     a capped width would show the rail cut off mid-screen. */
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.6));
}
.divider--flip img {
  transform: translate(-50%, calc(-1 * var(--rail))) scaleX(-1);
}

/* Clearance for the sections a divider overhangs. Measured from the artwork:
   paint reaches 0.254x (rail art) / 0.309x (beam art) of the image WIDTH
   below the rail, and ~0.095x above it. These MUST keep scaling with vw with
   no upper clamp — the artwork is width:100%, so a fixed cap lets the plants
   creep back over the content on wide screens. */
.section--under-divider { padding-top: calc(27vw + 3rem); }
.section--under-divider.is-beam { padding-top: calc(32vw + 3rem); }
.section--above-divider { padding-bottom: calc(11vw + 3rem); }

/* ---------- Modal (privacy policy) ---------- */
body.is-modal-open { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vh, 3rem) 1rem;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 3, 0.82);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--charcoal);
  border: 1px solid rgba(176, 141, 87, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.modal__panel:focus { outline: none; }
.modal__close {
  position: sticky;
  top: 0;
  float: right;
  margin: -0.5rem -0.5rem 0 1rem;
  width: 40px;
  height: 40px;
  font-size: 1.7rem;
  line-height: 1;
  background: rgba(10, 9, 8, 0.85);
  color: var(--bone);
  border: 1px solid rgba(232, 226, 214, 0.28);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 2;
}
.modal__close:hover { border-color: var(--flame-bright); color: var(--flame-bright); }
.modal__body { padding: 0; }
.modal__body h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.modal__body h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  margin: 2rem 0 0.8rem;
  color: var(--bone);
}
/* Address shown as text, not a mailto link, to avoid address harvesting. */
.legal__email { color: var(--flame-bright); }

/* ---------- Legal pages ---------- */
.legal { padding: 8rem 0 5rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.6rem; }
.legal__updated {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 2.4rem;
}
.legal h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 2.6rem 0 0.9rem;
  color: var(--bone);
}
.legal p, .legal li { color: var(--bone-dim); }
.legal p { margin-bottom: 1rem; }
.legal strong { color: var(--bone); font-weight: 600; }
.legal a { color: var(--flame-bright); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal ul { margin: 0 0 1rem 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.86em;
  background: rgba(176, 141, 87, 0.12);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: var(--bone);
}
.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.4rem;
  font-size: 0.92rem;
}
.legal__table th, .legal__table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(176, 141, 87, 0.2);
}
.legal__table th { color: var(--brass); font-weight: 600; }
.legal__table td { color: var(--bone-dim); }
.legal__back { margin-top: 2.6rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav__toggle {
    display: grid;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 102;
  }
  .nav__toggle span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--bone);
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(10, 9, 8, 0.97);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__links a { font-size: 1rem; }

  .news__grid { grid-template-columns: 1fr 1fr; }
  .story--lead { grid-column: span 2; grid-row: span 1; }
  .story--lead .story__img { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
}

@media (max-width: 560px) {
  .news__grid { grid-template-columns: 1fr; }
  .story--lead { grid-column: span 1; }
}
