/* ==========================================================================
   Arkane Collective - Sam Hain

   Not novelty Halloween. The brief is the old turn of the year: the end of
   the harvest and the thinning of the veil. So the palette is lantern light
   and warm paper rather than black and slime green, and the page alternates
   between dusk sections and cream "broadside" sections so it never settles
   into anything a child would find frightening.

   Motifs come from the moodboard: handmade masks, lanterns, shadow play,
   dried seed heads, barley, moths, the harvest moon.
   ========================================================================== */

:root {
  /* Night: warm browns, never a true black. */
  --night:      #17120e;
  --night-2:    #1f1813;
  --night-3:    #2a211a;

  /* Paper: the cream broadside sections. */
  --paper:      #f1e8d6;
  --paper-2:    #e7dbc2;

  /* Ink for type on paper. */
  --ink:        #2b2118;
  --ink-soft:   #5e5041;

  /* Bone for type on night. */
  --bone:       #f3ecde;
  --bone-mid:   #c6b9a5;
  --bone-dim:   #978a79;

  /* Accents. */
  --ember:      #cf6f2e;   /* lantern flame */
  --ember-lit:  #eda05c;
  --harvest:    #c9a227;   /* barley gold */
  --moss:       #7f9068;
  --damson:     #47304a;

  /* Contextual: re-pointed inside .section--paper. */
  --fg:         var(--bone);
  --fg-mid:     var(--bone-mid);
  --fg-dim:     var(--bone-dim);
  --surface:    #1f1813;
  --surface-2:  #17120e;
  --line:       rgba(243, 236, 222, 0.13);
  --line-soft:  rgba(243, 236, 222, 0.07);

  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step-hero: clamp(3.4rem, 13vw, 9.5rem);
  --step-h2:   clamp(2.1rem, 5.2vw, 3.5rem);
  --step-h3:   clamp(1.2rem, 2.1vw, 1.55rem);
  --step-lead: clamp(1.04rem, 1.5vw, 1.28rem);

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 1180px;
  --section-y: clamp(5rem, 12vh, 9rem);
  --header-h: 72px;
  --radius: 14px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------- reset --- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--fg);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 90;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ember-lit);
  outline-offset: 4px;
  border-radius: 2px;
}

::selection { background: var(--ember); color: #17120e; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -160%);
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------- atmosphere --- */
/* Grain sheet plus two slow blooms of warm light, like distant lanterns.
   Decorative only, and both stop under prefers-reduced-motion. */

.grain {
  position: fixed;
  inset: -60%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: var(--grain);
  animation: grain-shift 7s steps(6) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

.haze {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.haze::before,
.haze::after {
  content: "";
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  filter: blur(90px);
}

.haze::before {
  top: -32vmax;
  left: -22vmax;
  background: radial-gradient(circle, rgba(207, 111, 46, 0.16), transparent 62%);
  animation: drift-a 46s ease-in-out infinite alternate;
}

.haze::after {
  bottom: -36vmax;
  right: -26vmax;
  background: radial-gradient(circle, rgba(71, 48, 74, 0.42), transparent 64%);
  animation: drift-b 58s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(12vw, 8vh, 0) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-10vw, -6vh, 0) scale(1); }
}

/* -------------------------------------------------------------- layout --- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { position: relative; z-index: 1; }

.section {
  position: relative;
  padding-block: var(--section-y);
  scroll-margin-top: var(--header-h);
}

.section > .wrap { position: relative; z-index: 1; }
.section + .section { border-top: 1px solid var(--line-soft); }

/* The cream "broadside" sections. Re-points the contextual tokens so every
   component inside inherits paper colours without needing its own override. */
.section--paper {
  --fg: var(--ink);
  --fg-mid: var(--ink-soft);
  --fg-dim: #7d6d5b;
  --surface: #f7f0e1;
  --surface-2: #efe4cf;
  --line: rgba(43, 33, 24, 0.18);
  --line-soft: rgba(43, 33, 24, 0.09);

  background-color: var(--paper);
  background-image: var(--grain);
  background-blend-mode: multiply;
  color: var(--ink);
  border-top: 0;
}

/* Torn top and bottom edges, so the paper reads as a sheet pasted onto the
   night rather than a flat colour block. */
.section--paper::before,
.section--paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  z-index: 0;
  pointer-events: none;
  background: var(--paper);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='9' preserveAspectRatio='none'%3E%3Cpath d='M0 9V4.2c8-1.4 14 .9 22 .2s12-2.9 20-2.6 13 2.6 21 2.4 14-2.7 22-2.1 15 2.4 23 1.7 12-2.3 12-2.3V9z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='9' preserveAspectRatio='none'%3E%3Cpath d='M0 9V4.2c8-1.4 14 .9 22 .2s12-2.9 20-2.6 13 2.6 21 2.4 14-2.7 22-2.1 15 2.4 23 1.7 12-2.3 12-2.3V9z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 120px 9px;
  mask-size: 120px 9px;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}

.section--paper::before { top: -9px; }
.section--paper::after { bottom: -9px; transform: scaleY(-1); }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-bottom: clamp(2rem, 5vw, 3.4rem);
}

.section__num {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--ember);
  text-transform: uppercase;
  flex: none;
  transform: translateY(-0.4em);
}

.section--paper .section__num { color: #a8541c; }

.section__title { font-size: var(--step-h2); color: var(--fg); }

.section__rule {
  flex: 1 1 2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  transform: translateY(-0.45em);
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.62;
  color: var(--fg-mid);
}

.eyebrow {
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0;
}

/* -------------------------------------------------------------- header --- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.header.is-stuck {
  background: rgba(23, 18, 14, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(243, 236, 222, 0.1);
}

.header__inner {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--bone);
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 20;
  white-space: nowrap;
}

.wordmark__mark { color: var(--harvest); flex: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.77rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-mid);
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current] { color: var(--bone); }
.nav__link:hover::after,
.nav__link[aria-current]::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1px;
  background: var(--bone);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 25px; }

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 8rem;
  text-align: center;
  overflow: hidden;
  /* Dusk: cold at the top of the sky, warm where the lanterns are. */
  background:
    linear-gradient(to bottom,
      #1a1420 0%,
      #1d1719 34%,
      #241a15 68%,
      #2a1d14 88%,
      #17120e 100%);
}

/* The veil: a soft band of light across the middle of the sky. */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 42% at 50% 62%, rgba(243, 236, 222, 0.09), transparent 70%),
    radial-gradient(90% 30% at 50% 74%, rgba(207, 111, 46, 0.16), transparent 72%);
  animation: veil-breathe 14s ease-in-out infinite;
}

@keyframes veil-breathe {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}

.hero__moon {
  position: absolute;
  top: clamp(8%, 14vh, 18%);
  right: clamp(6%, 12vw, 16%);
  width: clamp(110px, 17vw, 215px);
  aspect-ratio: 1;
  border-radius: 50%;
  /* Harvest moon: warm cream, not a cold white disc. */
  background:
    radial-gradient(circle at 34% 32%, #fbf3e0 0%, #efdfba 42%, #d8c191 72%, #b39c6f 100%);
  box-shadow:
    0 0 60px rgba(243, 236, 222, 0.16),
    0 0 180px rgba(201, 162, 39, 0.18);
  opacity: 0.85;
  z-index: 0;
  animation: moon-breathe 11s ease-in-out infinite;
}

.hero__moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 66%, rgba(120, 100, 70, 0.14) 0 3%, transparent 11%),
    radial-gradient(circle at 39% 69%, rgba(120, 100, 70, 0.1) 0 2%, transparent 8%),
    radial-gradient(circle at 71% 35%, rgba(120, 100, 70, 0.09) 0 2%, transparent 9%);
}

@keyframes moon-breathe {
  0%, 100% { box-shadow: 0 0 60px rgba(243, 236, 222, 0.16), 0 0 180px rgba(201, 162, 39, 0.14); }
  50%      { box-shadow: 0 0 78px rgba(243, 236, 222, 0.22), 0 0 210px rgba(201, 162, 39, 0.22); }
}

.hero__moth {
  position: absolute;
  top: clamp(26%, 32vh, 36%);
  right: clamp(22%, 29vw, 34%);
  width: clamp(54px, 6.5vw, 88px);
  z-index: 1;
  color: rgba(243, 236, 222, 0.4);
  animation: moth-float 9s ease-in-out infinite;
}

@keyframes moth-float {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  33%      { transform: translate(-14px, -12px) rotate(3deg); }
  66%      { transform: translate(9px, -4px) rotate(-1deg); }
}

.hero__inner { position: relative; z-index: 2; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-mid);
  margin: 0 0 clamp(1.4rem, 4vw, 2.4rem);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: clamp(18px, 5vw, 46px);
  height: 1px;
  background: rgba(243, 236, 222, 0.24);
}

.hero__title {
  font-size: var(--step-hero);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 46, "WONK" 1, "opsz" 144;
  margin: 0;
  color: var(--bone);
}

.hero__title em {
  display: block;
  font-style: normal;
  color: #e8933f;
  text-shadow: 0 0 52px rgba(207, 111, 46, 0.45);
}

.hero__sub {
  max-width: 38ch;
  margin: clamp(1.6rem, 4vw, 2.3rem) auto 0;
  font-size: var(--step-lead);
  color: var(--bone-mid);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  margin-top: 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero__meta span + span::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--harvest);
  margin-right: 0.85rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

/* Barley, dried seed heads and bare branches along the bottom edge. */
.hero__field {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  height: auto;
  color: rgba(243, 236, 222, 0.2);
  pointer-events: none;
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.4rem, 4vh, 2.6rem);
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.hero__cue:hover { color: var(--bone); }
.hero__cue svg { animation: bob 2.6s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
              color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
  border-color: rgba(243, 236, 222, 0.36);
  background: rgba(243, 236, 222, 0.06);
  transform: translateY(-2px);
}

.section--paper .btn:hover {
  border-color: rgba(43, 33, 24, 0.4);
  background: rgba(43, 33, 24, 0.05);
}

.btn--primary {
  background: var(--ember);
  border-color: var(--ember);
  color: #1a0f07;
  font-weight: 500;
}

.btn--primary:hover {
  background: var(--ember-lit);
  border-color: var(--ember-lit);
  color: #1a0f07;
}

.btn svg { flex: none; }

/* ------------------------------------------------------- copy + blocks --- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.pull {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.32;
  font-variation-settings: "SOFT" 34, "WONK" 1, "opsz" 60;
  color: var(--fg);
  margin: 0 0 1.4rem;
}

.pull::first-letter { color: var(--ember); }

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-top: 0.28em;
}

.facts dd {
  margin: 0;
  color: var(--fg);
  font-size: 0.97rem;
}

.facts dd small {
  display: block;
  color: var(--fg-dim);
  font-size: 0.82rem;
}

/* ----------------------------------------------------------- what's on --- */

.cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
}

.card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

/* Five items sit 3 up then 2 up on wide screens. */
.card:nth-child(4),
.card:nth-child(5) { grid-column: span 3; }

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(207, 111, 46, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.card:hover { border-color: rgba(43, 33, 24, 0.34); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }

.card__icon {
  width: 38px;
  height: 38px;
  color: #a8541c;
  margin-bottom: 0.3rem;
}

.card__title { font-size: var(--step-h3); color: var(--fg);
  font-variation-settings: "SOFT" 26, "WONK" 1, "opsz" 40; }

.card__text { margin: 0; color: var(--fg-mid); font-size: 0.94rem; }

.card__tag {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ----------------------------------------------------------------- map --- */

.where {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}

.venues { display: flex; flex-direction: column; gap: 1rem; }

.venue {
  position: relative;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.venue.is-active { border-left-color: var(--ember); background: var(--night-3); }

.venue__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-lit);
  margin-bottom: 0.5rem;
}

.venue__name {
  font-size: 1.22rem;
  color: var(--fg);
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 30;
  margin-bottom: 0.35rem;
}

.venue__addr {
  font-style: normal;
  color: var(--fg-mid);
  font-size: 0.92rem;
  line-height: 1.55;
}

.venue__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line-soft);
}

.link-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-dim);
  transition: color 0.25s var(--ease);
}

.link-mini:hover { color: var(--ember-lit); }
.link-mini svg { width: 14px; height: 14px; flex: none; }
.link-mini[aria-pressed="true"] { color: var(--ember-lit); }

.venue__note {
  font-size: 0.86rem;
  color: var(--fg-dim);
  display: flex;
  gap: 0.6rem;
  padding: 0 0.3rem;
}

.venue__note svg { flex: none; margin-top: 0.25em; color: var(--moss); }

.map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.map__frame {
  width: 100%;
  height: clamp(340px, 52vh, 520px);
  border: 0;
  /* Tints the stock map into the palette instead of a bright white slab. */
  filter: invert(0.89) hue-rotate(180deg) saturate(0.5) brightness(0.96) contrast(0.9) sepia(0.12);
}

.map__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}

.map__caption strong { font-weight: 400; color: var(--fg); }

/* ------------------------------------------------------------- contact --- */

.contact { text-align: center; }

.contact__title { font-size: var(--step-h2); margin-bottom: 1.2rem; color: var(--fg); }
.contact__lead { max-width: 48ch; margin-inline: auto; }

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 30;
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact__link:hover { color: var(--ember-lit); border-bottom-color: var(--ember); }
.contact__link svg { flex: none; color: var(--ember); }

/* -------------------------------------------------------------- footer --- */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-soft);
  padding-block: 2.4rem;
  font-size: 0.78rem;
  color: var(--bone-dim);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer a { text-decoration: none; transition: color 0.25s var(--ease); }
.footer a:hover { color: var(--bone); }

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* ------------------------------------------------- about page + people --- */

.page-head {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(4rem, 12vh, 7rem));
  padding-bottom: clamp(2.5rem, 7vh, 4.5rem);
  background: linear-gradient(to bottom, #1d1719, #17120e);
}

.page-head__title {
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 0.95;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 120;
  margin-top: 0.6rem;
  color: var(--bone);
}

.page-head__sub {
  max-width: 54ch;
  margin-top: 1.6rem;
  font-size: var(--step-lead);
  color: var(--bone-mid);
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.person {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}

.person:hover {
  border-color: rgba(43, 33, 24, 0.34);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -26px rgba(43, 33, 24, 0.7);
}

.person__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-2);
}

.person__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.person:hover .person__media img { transform: scale(1.045); }

.person__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(29, 22, 16, 0.9), transparent);
  pointer-events: none;
}

.person__role {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  z-index: 1;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0b478;
}

.person__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem;
}

.person__name {
  font-size: 1.28rem;
  color: var(--fg);
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 30;
}

.person__line { margin: 0; font-size: 0.9rem; color: var(--fg-mid); }

.person__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.person__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--fg-dim);
  transition: color 0.25s var(--ease);
}

.person__link:hover { color: #a8541c; }
.person__link svg { width: 15px; height: 15px; flex: none; }

.join {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.join h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 0.9rem; color: var(--fg); }
.join p { max-width: 48ch; margin-inline: auto; color: var(--fg-mid); }
.join .btn { margin-top: 1.8rem; }

/* ------------------------------------------------------- demo switcher --- */
/* PREVIEW ONLY. This is the only thing on the page that is not part of the
   real site. Delete the .demo-switch element from each page and this block
   to remove it entirely. */

.demo-switch {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(23, 18, 14, 0.7);
  border: 1px solid rgba(243, 236, 222, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0.32;
  transition: opacity 0.35s var(--ease);
}

.demo-switch:hover,
.demo-switch:focus-within { opacity: 1; }

.demo-switch a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-mid);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.demo-switch a:hover { color: var(--bone); background: rgba(243, 236, 222, 0.08); }
.demo-switch a[aria-current] { color: #1a0f07; background: var(--harvest); }

/* ---------------------------------------------------- reveal on scroll --- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .where { grid-template-columns: minmax(0, 1fr); }
  .card,
  .card:nth-child(4),
  .card:nth-child(5) { grid-column: span 3; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .nav__toggle { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(23, 18, 14, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  }

  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 1.9rem; text-align: center; }
  .nav__link { font-size: 1.05rem; letter-spacing: 0.22em; }

  .card,
  .card:nth-child(4),
  .card:nth-child(5) { grid-column: span 6; }

  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .hero__moon { opacity: 0.72; }
  .hero__moth { display: none; }
  .map__frame { height: 320px; }
  .footer__inner { padding-bottom: 2.6rem; }
}

@media (max-width: 420px) {
  .people { grid-template-columns: minmax(0, 1fr); }
  .hero__meta { flex-direction: column; gap: 0.35rem; }
  .hero__meta span + span::before { display: none; }
  .demo-switch a { padding: 0.3rem 0.55rem; letter-spacing: 0.1em; }
}

/* ------------------------------------------------------- reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .grain, .haze::before, .haze::after,
  .hero__veil, .hero__moth, .hero__moon { animation: none; }

  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- print --- */

@media print {
  .grain, .haze, .header, .hero__cue, .map, .demo-switch { display: none; }
  body { background: #fff; color: #000; }
}
