/* ==========================================================================
   Positive Excellence — Mo's Wayfinding Kiosk
   Design language: highway / trailhead wayfinding signage.
   Author: prepared for handover. Single stylesheet, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   Light palette is defined on bare :root. Dark redefines tokens only.
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces & ink */
  --paper:        #F3F4F1;  /* map paper, cool-neutral with a faint green bias */
  --paper-2:      #E9EBE6;  /* recessed panels */
  --paper-3:      #DDE0D9;  /* hairlines on paper */
  --asphalt:      #22222A;  /* road black, slight blue bias */
  --asphalt-2:    #2E2E38;
  --ink:          #1A1B21;
  --ink-2:        #4A4C55;  /* secondary text */
  --ink-3:        #6E7079;  /* captions, meta */
  --rule:         #C9CCC4;

  /* Route markers — carried from the "Life is a Journey" map */
  --marker-ai:    #E02322;  /* AI Whisperer */
  --marker-fauna: #1F5FD0;  /* Animal Welfare Advocate */
  --marker-comm:  #6A15C6;  /* Community Ambassador */
  --marker-road:  #0B7A4B;  /* The Scenic Route — guide-sign green */

  /* Focus + selection */
  --focus:        #1F5FD0;
  --on-dark:      #F3F4F1;
  --on-dark-2:    #A8ABA4;

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.10rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.42rem);
  --step-2:  clamp(1.48rem, 1.32rem + 0.75vw, 1.90rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.45vw, 2.65rem);
  --step-4:  clamp(2.25rem, 1.70rem + 2.60vw, 3.90rem);

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --band:   clamp(3.25rem, 8vw, 6rem);
  --measure: 66ch;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #191920;
    --paper-2:   #22222A;
    --paper-3:   #2E2E38;
    --asphalt:   #101016;
    --asphalt-2: #1C1C24;
    --ink:       #EDEEEA;
    --ink-2:     #B6B8B2;
    --ink-3:     #8B8D88;
    --rule:      #35353F;
    --marker-ai:    #FF5F4E;
    --marker-fauna: #6D9BFF;
    --marker-comm:  #B478FF;
    --marker-road:  #34B27B;
    --focus:     #6D9BFF;
  }
}

:root[data-theme="dark"] {
  --paper:     #191920;
  --paper-2:   #22222A;
  --paper-3:   #2E2E38;
  --asphalt:   #101016;
  --asphalt-2: #1C1C24;
  --ink:       #EDEEEA;
  --ink-2:     #B6B8B2;
  --ink-3:     #8B8D88;
  --rule:      #35353F;
  --marker-ai:    #FF5F4E;
  --marker-fauna: #6D9BFF;
  --marker-comm:  #B478FF;
  --marker-road:  #34B27B;
  --focus:     #6D9BFF;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.005em; }
p  { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--marker-ai); }

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

::selection { background: var(--marker-ai); color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 780px; }

.band { padding-block: var(--band); }
.band--tight { padding-block: clamp(2rem, 5vw, 3.25rem); }
.band--dark { background: var(--asphalt); color: var(--on-dark); }
.band--panel { background: var(--paper-2); }

.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-block-start: var(--gap, 1rem); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-block-start: 1.1em; }
.prose a { text-decoration-color: var(--rule); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--asphalt);
  color: var(--on-dark);
  padding: 0.75rem 1rem;
  font-family: var(--display);
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Signage label — small caps, tracked out, like a map legend key */
.label {
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
}
.band--dark .label { color: var(--on-dark-2); }

/* --------------------------------------------------------------------------
   4. Route line — the structural motif threading the page
   -------------------------------------------------------------------------- */
.routeline {
  height: 3px;
  width: 100%;
  background-image: repeating-linear-gradient(
    to right,
    var(--rule) 0 14px,
    transparent 14px 28px
  );
  border: 0;
  margin: 0;
}
.band--dark .routeline {
  background-image: repeating-linear-gradient(
    to right,
    #4A4C55 0 14px,
    transparent 14px 28px
  );
}

/* --------------------------------------------------------------------------
   5. Masthead & navigation
   -------------------------------------------------------------------------- */
.masthead {
  background: var(--asphalt);
  color: var(--on-dark);
  position: relative;
  z-index: 20;
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand__pin { flex: none; width: 22px; height: 28px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand__sub {
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  line-height: 1.5;
}

.navtoggle {
  display: none;
  background: none;
  border: 1.5px solid #4A4C55;
  color: var(--on-dark);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.nav { display: flex; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark);
  padding: 0.5rem 0.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  background: none;
  border-inline: 0;
  border-top: 0;
  cursor: pointer;
}
.nav__link:hover { border-bottom-color: #4A4C55; }
.nav__link[aria-current="page"] { border-bottom-color: var(--marker-ai); }
.nav__link--cta {
  background: var(--paper);
  color: var(--ink);
  padding: 0.55rem 0.95rem;
  border-bottom: 0;
}
.nav__link--cta:hover { background: #fff; border-bottom: 0; }

.nav__caret { width: 9px; height: 9px; flex: none; transition: transform 0.18s ease; }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__group { position: relative; }
.nav__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: -0.75rem;
  min-width: 250px;
  background: var(--asphalt-2);
  border: 1px solid #3A3A46;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  display: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.nav__group[data-open="true"] .nav__menu { display: block; }
.nav__menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  text-decoration: none;
  color: var(--on-dark);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav__menu a:hover { background: #34343F; }
.nav__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

@media (max-width: 900px) {
  .navtoggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--asphalt);
    border-top: 1px solid #35353F;
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .masthead[data-nav="open"] .nav { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid #2E2E38; }
  .nav__link { width: 100%; padding: 0.95rem 0; justify-content: space-between; }
  .nav__link--cta { justify-content: center; margin-block-start: 1rem; }
  .nav__menu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0 0 0.6rem 0.25rem;
    min-width: 0;
  }
  .nav__caret { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero — set as a guide sign
   -------------------------------------------------------------------------- */
.hero {
  background: var(--asphalt);
  color: var(--on-dark);
  overflow: hidden;
  position: relative;
}

/* Optional banner artwork behind the hero. Add the image to
   .hero__art and it sits under a scrim so the type stays readable.
   With no image, the hero is simply the flat asphalt ground. */
.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--asphalt) 0%,
    rgba(34, 34, 42, 0.86) 46%,
    rgba(34, 34, 42, 0.55) 100%
  );
}
.hero > .wrap { position: relative; z-index: 1; }

/* ---- Site banner — the existing Wayfinding Kiosk artwork ------------------
   Full-bleed under the masthead. The image carries the site name and its
   three panels (Travel / Animal Life / AI), so no text lockup repeats it.
   The dashed rule below ties it into the route motif running down the page. */
/* The banner's three photographs, rebuilt as a full-bleed strip. The script
   title band is cropped away — the site sets its own name in Archivo — and
   each panel becomes a way into the road it belongs to, marked by that
   road's colour. */
.bannerband {
  background: var(--asphalt);
  border-bottom: 3px solid transparent;
  border-image: repeating-linear-gradient(
      to right, #4A4C55 0 14px, transparent 14px 28px
    ) 1;
}
.bannerstrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.bpanel {
  position: relative;
  display: block;
  text-decoration: none;
  border-top: 4px solid var(--bp, var(--marker-ai));
  overflow: hidden;
  background: var(--asphalt-2);
}
.bpanel img,
.bpanel__figure {
  display: block;
  width: 100%;
  aspect-ratio: 350 / 342;
  object-fit: cover;
  object-position: center 38%;
  max-height: clamp(240px, 27vw, 380px);
  transition: transform 0.4s ease;
}
/* The drawn panel scales with the strip rather than cropping like a photo. */
.bpanel__figure { height: auto; }
.bpanel__road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.9rem 0.6rem;
  background: linear-gradient(to top, rgba(16, 16, 22, 0.9), transparent);
  color: #fff;
  font-family: var(--display);
  font-size: clamp(0.62rem, 1.2vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.bpanel__road::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--bp, var(--marker-ai));
}
.bpanel:hover img, .bpanel:hover .bpanel__figure { transform: scale(1.035); }
.bpanel:hover .bpanel__road { text-decoration: underline; text-underline-offset: 0.2em; }
@media (prefers-reduced-motion: reduce) {
  .bpanel img, .bpanel__figure { transition: none; }
  .bpanel:hover img { transform: none; }
}

/* Below 700px three columns would make the panel labels unreadable, so the
   strip becomes a swipeable rail instead of shrinking. */
@media (max-width: 700px) {
  .bannerstrip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .bpanel {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
  .bpanel img { max-height: none; }
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero h1 {
  color: var(--on-dark);
  margin-block-start: 1.1rem;
  max-width: 15ch;
}
.hero__lede {
  color: var(--on-dark-2);
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 46ch;
  margin-block-start: 1.4rem;
}
.hero__lede strong { color: var(--on-dark); font-weight: 600; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-block-start: 2rem;
}

/* Portrait slot */
.portrait {
  position: relative;
  background: var(--asphalt-2);
  border: 1px solid #3A3A46;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__note {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--marker-ai); color: #fff; }
.btn--primary:hover { background: #B71C1B; }
.btn--ghost { border-color: currentColor; color: inherit; background: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); }
.band:not(.band--dark) .btn--ghost:hover { background: rgba(0, 0, 0, 0.05); }
.btn--dark { background: var(--asphalt); color: var(--on-dark); }
.btn--dark:hover { background: var(--asphalt-2); }

/* --------------------------------------------------------------------------
   8. The Journey — route markers on a line (replaces the raster graphic)
   -------------------------------------------------------------------------- */
.journey__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-block-end: 2.5rem;
}
.journey__head p { color: var(--ink-2); max-width: 44ch; }

.route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
@media (max-width: 980px) { .route { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .route { grid-template-columns: 1fr; } }

.stop {
  position: relative;
  padding: 0 clamp(0.9rem, 2vw, 1.6rem) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}
.stop + .stop { padding-left: clamp(0.9rem, 2vw, 1.6rem); border-left: 1px solid var(--rule); }
@media (max-width: 980px) {
  .stop:nth-child(3) { border-left: 0; padding-left: 0; }
  .stop:nth-child(n+3) { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .stop + .stop {
    border-left: 0;
    padding-left: 0;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--rule);
  }
}

.stop__marker { width: 34px; height: 44px; flex: none; }
.stop__name {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
  /* Two lines' worth, so the commitment lists below start on the same
     baseline whether the pillar name wraps or not. */
  min-height: 2.24em;
}
@media (max-width: 560px) { .stop__name { min-height: 0; } }
.stop:hover .stop__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.stop__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.stop__list li {
  font-size: var(--step--1);
  color: var(--ink-2);
  padding-left: 1.05rem;
  position: relative;
  line-height: 1.5;
}
.stop__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 2px;
  background: var(--stop-color, var(--ink-3));
}
.stop__count {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   9. Mission / two-column feature rows
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 1.5rem; } }
.feature h2 { max-width: 14ch; }

.creed {
  border-left: 3px solid var(--marker-ai);
  padding-left: clamp(1rem, 3vw, 1.75rem);
  font-size: var(--step-2);
  line-height: 1.35;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.creed cite {
  display: block;
  font-family: var(--display);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 1rem;
}
.band--dark .creed cite { color: var(--on-dark-2); }

/* Numbered commitments — a real sequence is not implied, so these are keyed, not numbered */
.keys { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.key__term {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-0);
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.key__term::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--key-color, var(--marker-ai));
  transform: translateY(-1px);
}
.key p { color: var(--ink-2); font-size: var(--step--1); margin-top: 0.5rem; line-height: 1.6; }
.band--dark .key p { color: var(--on-dark-2); }

/* --------------------------------------------------------------------------
   10. Mile markers — the post list reads as stops along a route
   -------------------------------------------------------------------------- */
.miles { list-style: none; margin: 0; padding: 0; }
.mile {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  gap: clamp(0.75rem, 2.5vw, 2rem);
  align-items: baseline;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--rule);
}
.miles > .mile:first-child { border-top: 1px solid var(--rule); }
@media (max-width: 760px) {
  .mile { grid-template-columns: 1fr; gap: 0.45rem; align-items: start; }
}
.mile__date {
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mile__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.mile__title a { text-decoration: none; }
.mile__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.pill {
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border: 1.5px solid var(--pill-color, var(--rule));
  color: var(--pill-color, var(--ink-3));
  white-space: nowrap;
  justify-self: start;
}

/* Filter bar */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-end: 2rem;
}
.filter {
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--rule);
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.filter:hover { border-color: var(--ink-3); }
.filter[aria-pressed="true"] { background: var(--asphalt); border-color: var(--asphalt); color: var(--on-dark); }

/* --------------------------------------------------------------------------
   11. "The road ahead" — honest empty state for thin pillars
   -------------------------------------------------------------------------- */
.ahead {
  border: 2px dashed var(--rule);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.ahead h3 { margin-bottom: 0.75rem; }
.ahead p { color: var(--ink-2); max-width: var(--measure); }

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */
.reasons { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.reason { background: var(--paper); padding: clamp(1.1rem, 3vw, 1.75rem); }
.reason h3 { font-size: var(--step-0); }
.reason p { color: var(--ink-2); font-size: var(--step--1); margin-top: 0.45rem; }
@media (min-width: 700px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
/* Three-card variant (contact page): 3 across on wide screens; on mid widths the odd last card spans the row so no empty cell */
.reasons--three .reason:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .reasons--three { grid-template-columns: repeat(3, 1fr); }
  .reasons--three .reason:last-child:nth-child(odd) { grid-column: auto; }
}

.form { display: grid; gap: 1.25rem; max-width: 620px; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--focus); }
.field textarea { min-height: 9rem; resize: vertical; }
.field__hint { font-size: var(--step--1); color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border-left: 3px solid var(--marker-road);
  background: var(--paper-2);
  padding: 1rem 1.25rem;
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--asphalt); color: var(--on-dark); padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h2 { font-size: var(--step-1); color: var(--on-dark); }
.footer p { color: var(--on-dark-2); font-size: var(--step--1); margin-top: 0.75rem; max-width: 40ch; }
.footer ul { list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer a { color: var(--on-dark); font-size: var(--step--1); text-decoration-color: #4A4C55; }
.footer__base {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid #35353F;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--on-dark-2);
}

/* --------------------------------------------------------------------------
   14. Page header (interior pages)
   -------------------------------------------------------------------------- */
.pagehead { background: var(--asphalt); color: var(--on-dark); padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.pagehead h1 { color: var(--on-dark); max-width: 18ch; margin-block-start: 0.9rem; font-size: var(--step-3); }
.pagehead p { color: var(--on-dark-2); max-width: 56ch; margin-block-start: 1.1rem; font-size: var(--step-1); line-height: 1.5; }
.pagehead__marker { display: flex; align-items: center; gap: 0.75rem; }
.pagehead__marker svg { width: 26px; height: 34px; flex: none; }

/* Utility */
.is-hidden { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   16. Post pages
   -------------------------------------------------------------------------- */
/* The dark post header sits flush under the masthead. */
.post { padding-block: 0 clamp(2rem, 5vw, 3.5rem); }
.post__wrap { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }

.post__back {
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.post__back:hover { color: var(--on-dark); }

.posthead { background: var(--asphalt); color: var(--on-dark); padding-block: clamp(2rem, 5vw, 3.25rem); }
.posthead h1 {
  color: var(--on-dark);
  font-size: clamp(1.65rem, 1.3rem + 1.9vw, 2.6rem);
  margin-block-start: 1.1rem;
}
.posthead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-block-start: 1.25rem;
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  font-variant-numeric: tabular-nums;
}
.posthead__meta .pill { border-color: var(--pill-color); }

.post__body { font-size: 1.06rem; line-height: 1.72; }
.post__body > * + * { margin-block-start: 1.35em; }
.post__body p { color: var(--ink); }
.post__body em.lead { color: var(--ink-2); font-size: 1.15rem; display: block; }
.post__body h2 {
  font-size: var(--step-1);
  margin-block-start: 2em;
  padding-block-end: 0.4rem;
  border-bottom: 2px solid var(--rule);
}
.post__body ul { margin: 0; padding-left: 1.15rem; }
.post__body li + li { margin-block-start: 0.5rem; }
.post__body a { text-decoration-color: var(--rule); }

.post__figs {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-block-start: 2.5rem;
}
.post__figs figure { margin: 0; }
.post__figs img {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.post__figs figcaption {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-block-start: 0.5rem;
}
.post__video {
  position: relative;
  padding-block-end: 56.25%;
  height: 0;
  margin-block-start: 2.5rem;
  background: var(--asphalt);
}
.post__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.postnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: clamp(2.5rem, 6vw, 4rem);
  padding-block-start: 1.5rem;
  border-top: 1px solid var(--rule);
}
.postnav a {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  max-width: 20rem;
}
.postnav a:hover { text-decoration: underline; text-underline-offset: 0.16em; }
.postnav span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-block-end: 0.3rem;
}
.postnav .next { text-align: right; margin-left: auto; }

/* --------------------------------------------------------------------------
   17. Hero reel card + About photograph
   -------------------------------------------------------------------------- */
.reel {
  display: block;
  text-decoration: none;
  color: var(--on-dark);
  aspect-ratio: 4 / 5;
  background: var(--asphalt-2);
  border: 1px solid #3A3A46;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.reel::before {
  /* A faint film-frame rhythm down each edge, so the card reads as video. */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 14px;
  background-image: repeating-linear-gradient(
    to bottom, #3A3A46 0 10px, transparent 10px 22px);
  opacity: 0.8;
}
.reel::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 14px;
  background-image: repeating-linear-gradient(
    to bottom, #3A3A46 0 10px, transparent 10px 22px);
  opacity: 0.8;
}
.reel__frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  padding: 2rem 2.5rem;
}
.reel__play { color: var(--marker-ai); transition: transform 0.25s ease; }
.reel__play svg { width: 60px; height: 60px; }
.reel__label {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.reel__sub {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  line-height: 1.6;
}
.reel:hover { border-color: var(--marker-ai); }
.reel:hover .reel__play { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .reel__play { transition: none; }
  .reel:hover .reel__play { transform: none; }
}

.aboutshot { margin: 0; max-width: 340px; }
.aboutshot img { width: 100%; border: 1px solid var(--rule); background: var(--paper-2); }
.aboutshot figcaption {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  line-height: 1.55;
  margin-block-start: 0.6rem;
}

/* ==========================================================================
   WordPress additions
   ========================================================================== */
/* Spacing that the static pages set inline, as reusable classes (used by the page content). */
.pe-u1 { margin-block-start:2rem; }
.pe-u2 { margin-block-start:1.5rem; }
.pe-u3 { max-width:30ch; }
.pe-u4 { margin-block-start:0; }
.pe-u5 { margin-block-start:2.5rem; }
.pe-u6 { margin-block:0.9rem 2.5rem; }
.pe-u7 { --key-color:var(--marker-ai); }
.pe-u8 { margin-block:0.9rem 1rem; }
.pe-u9 { margin-block-end:2.5rem; }
.pe-u10 { margin-block:0.9rem 2rem; }
.pe-u11 { margin-block-start:1.25rem;grid-template-columns:1fr; }
.pe-u12 { --key-color:var(--marker-fauna); }
.pe-u13 { --key-color:var(--marker-comm); }
.pe-u14 { --key-color:var(--marker-road); }
.pe-u15 { margin-block-end:1.5rem; }
.pe-u16 { margin-block-end:2rem; }

/* Block wrappers must not add their own spacing to the design. */
.post__body .wp-block-image,
.post__figs .wp-block-image { margin: 0; }
.aboutshot.wp-block-image { margin: 0; }
.post__figs .wp-block-image img { width: 100%; }
.post__body .wp-block-image img { height: auto; }
.post__body .wp-block-image figcaption,
.post__figs .wp-block-image figcaption {
  font-family: var(--display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--ink-3); margin-block-start: 0.5rem; text-align: left;
}
.post__body .post__figs { margin-block-start: 2.5rem; }
.post__body img { max-width: 100%; height: auto; }
.post__body .wp-block-embed iframe,
.post__body iframe { max-width: 100%; }

/* Admin bar offset so the masthead is never hidden behind it. */
.admin-bar .skip-link:focus { top: 32px; }

/* Screen-reader text (WordPress convention). */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
  width: 1px; word-wrap: normal !important;
}

/* Default page layout (pages created later without the Design template). */
.band .prose > .wp-block-heading { margin-block-start: 1.6em; }
.prose img { max-width: 100%; height: auto; }

/* Pagination on archives. */
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-block-start: 2rem;
  font-family: var(--display); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; }
.pager a { text-decoration: none; }

/* Section labels are paragraphs in the editor; keep them looking like labels. */
.pagehead p.label,
.journey__head p.label,
.feature p.label { font-size: var(--step--1); line-height: inherit; margin-block-start: 0; max-width: none; color: var(--ink-3); }
.band--dark p.label { color: var(--on-dark-2); }
.footer__base a { font-size: inherit; color: inherit; }
.aboutshot .wp-element-caption,
.post__body .wp-block-image .wp-element-caption { margin-bottom: 0; }
