/* ===========================================================
   John & Melody Rental — design tokens
   =========================================================== */

:root {
  /* palette */
  --ink:        #16211c;
  --ink-2:      #3f4d47;
  --ink-3:      #6d7a74;
  --paper:      #fcfaf6;
  --paper-2:    #f4efe6;
  --white:      #ffffff;
  --line:       #e5ded1;
  --line-2:     #d8cfbe;
  --green:      #2d6a52;
  --green-dark: #235342;
  --green-soft: #e7f0eb;
  --brass:      #ab7f3d;
  --brass-soft: #f6edde;

  /* fluid type — scales smoothly from 320px to 1600px */
  --fs-xs:   clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --fs-sm:   clamp(0.84rem, 0.81rem + 0.14vw, 0.92rem);
  --fs-base: clamp(0.98rem, 0.94rem + 0.20vw, 1.09rem);
  --fs-md:   clamp(1.06rem, 0.99rem + 0.34vw, 1.28rem);
  --fs-lg:   clamp(1.25rem, 1.12rem + 0.62vw, 1.70rem);
  --fs-xl:   clamp(1.75rem, 1.42rem + 1.60vw, 2.85rem);
  --fs-2xl:  clamp(2.30rem, 1.62rem + 3.30vw, 4.40rem);

  /* fluid space */
  --sp-1: clamp(0.25rem, 0.24rem + 0.06vw, 0.31rem);
  --sp-2: clamp(0.5rem, 0.47rem + 0.14vw, 0.63rem);
  --sp-3: clamp(0.75rem, 0.71rem + 0.20vw, 0.94rem);
  --sp-4: clamp(1rem, 0.94rem + 0.28vw, 1.25rem);
  --sp-6: clamp(1.5rem, 1.41rem + 0.42vw, 1.88rem);
  --sp-8: clamp(2rem, 1.79rem + 1.05vw, 2.75rem);
  --sp-12: clamp(2.75rem, 2.23rem + 2.63vw, 4.50rem);
  --sp-16: clamp(3.5rem, 2.45rem + 5.26vw, 7.00rem);

  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --maxw: 1240px;

  --radius:    clamp(10px, 0.9vw, 16px);
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 33, 28, .05);
  --shadow:    0 1px 2px rgba(22, 33, 28, .05), 0 10px 28px -8px rgba(22, 33, 28, .10);
  --shadow-lg: 0 2px 4px rgba(22, 33, 28, .06), 0 24px 48px -12px rgba(22, 33, 28, .16);

  --header-h: clamp(60px, 5.5vw, 76px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (min-width: 1800px) { :root { --maxw: 1420px; } }

* { box-sizing: border-box; }

/* Every `display` set by a class below outranks the browser's own
   [hidden] rule, so hiding anything from JS needs this. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  /* `clip`, not `hidden`: `overflow-x: hidden` forces overflow-y to `auto`,
     which turns <body> into a scroll container and breaks the sticky header. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* barely-there paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.018em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); letter-spacing: -.01em; }
p  { margin: 0 0 var(--sp-4); }
a  { color: inherit; }
img, svg { max-width: 100%; }

::selection { background: var(--green-soft); color: var(--green-dark); }

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

.wrap {
  position: relative;
  z-index: 2;
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.narrow { --maxw: 800px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6em;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: clamp(18px, 2vw, 30px);
  height: 1px;
  background: currentColor;
  flex: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }

/* ===========================================================
   Header
   =========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px -8px rgba(22, 33, 28, .18);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  text-decoration: none;
  flex: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: clamp(34px, 3vw, 42px);
  aspect-ratio: 1;
  border-radius: 30% 30% 30% 30% / 34% 34% 30% 30%;
  background: linear-gradient(150deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 2px 8px -2px rgba(35, 83, 66, .5);
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(.82rem, 1.05vw, 1rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  padding-bottom: .06em;
}
.brand-text {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.3vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.brand-text em { font-style: normal; color: var(--green); }

.nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-cta-mobile { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .5em .8em;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--ink); background: var(--paper-2); }

.caret {
  width: 6px;
  height: 6px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.menu-toggle[aria-expanded="true"] { color: var(--ink); background: var(--paper-2); }
.menu-toggle[aria-expanded="true"] .caret { transform: translateY(1px) rotate(225deg); }

.has-menu { position: relative; }
.menu {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  min-width: 210px;
  list-style: none;
  margin: 0;
  padding: .4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top left;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-menu.open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a {
  display: block;
  padding: .55rem .7rem;
  border-radius: 9px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.menu a:hover { background: var(--green-soft); color: var(--green-dark); }

.header-cta { flex: none; }

.hamburger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.1px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.1px) rotate(-45deg); }

/* ===========================================================
   Buttons & chips
   =========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8em 1.6em;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .16s, box-shadow .18s;
}
.btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(35, 83, 66, .8);
}
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55em 1.1em; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--ink-3);
  box-shadow: var(--shadow);
}
/* On the cards this button sits on flat white and a hairline border is enough.
   Over the hero photo that border vanishes, so it gets a fill of its own. */
.hero .btn-ghost {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(22, 33, 28, .16);
}
.hero .btn-ghost:hover { background: var(--white); border-color: var(--ink-3); }
.btn-full { width: 100%; }

.chip {
  padding: .5em 1.05em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
  transition: all .18s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin: 0 0 var(--sp-6);
  padding: .4em 1em .4em .75em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.pill::before {
  content: "";
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

/* ===========================================================
   Hero
   =========================================================== */

.hero {
  position: relative;
  padding: var(--sp-16) 0 var(--sp-16);
  overflow: hidden;
  /* One of the houses, blurred at build time (see build-media.js). No
     background-attachment: fixed — it forces a repaint of the whole hero on
     every scroll frame. */
  background: var(--paper-2) url("assets/hero-bg.jpg") center / cover no-repeat;
}
/* Paper-toned scrim: enough to keep the headline legible, sheer enough that
   the house still reads through it. Stronger at the top, where the text sits. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 82% -10%, rgba(231, 240, 235, .55) 0%, transparent 62%),
    radial-gradient(48% 45% at 4% 108%, rgba(246, 237, 222, .55) 0%, transparent 68%),
    linear-gradient(180deg,
      rgba(252, 250, 246, .70) 0%,
      rgba(252, 250, 246, .62) 52%,
      rgba(252, 250, 246, .86) 100%);
  pointer-events: none;
}
/* A child of .wrap, not .wrap itself. Putting both on one element let .wrap's
   `margin-inline: auto` centre this narrowed block, so on a wide screen the
   headline drifted hundreds of pixels right of every section below it. */
.hero-inner { max-width: 62ch; }
.lede {
  font-size: var(--fs-md);
  color: var(--ink-2);
  max-width: 54ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

.scroll-hint {
  position: absolute;
  bottom: clamp(1rem, 2.5vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-hint span {
  display: block;
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  position: relative;
}
.scroll-hint span::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--ink-3);
  animation: dropdot 1.9s ease-in-out infinite;
}
@keyframes dropdot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(9px); opacity: .2; }
}

/* ===========================================================
   Sections
   =========================================================== */

.section {
  position: relative;
  padding: var(--sp-16) 0;
  scroll-margin-top: var(--header-h);
}
.section-alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.section-sub { color: var(--ink-2); margin: 0; max-width: 52ch; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
}
.section-head-text { flex: 1 1 22rem; }
.section-head h2 { margin-bottom: .3em; }

.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ===========================================================
   Listings
   =========================================================== */

.listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
  gap: clamp(1rem, 1.8vw, 1.75rem);
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
}

.photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  cursor: zoom-in;
  overflow: hidden;
  font: inherit;
  color: inherit;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.card:hover .photo img { transform: scale(1.045); }
.photo:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }

/* Photo / video tally, bottom-right of the cover shot */
.count {
  position: absolute;
  right: .7rem;
  bottom: .7rem;
  display: inline-flex;
  align-items: center;
  gap: .3em;
  padding: .3em .7em;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  /* Solid tint rather than backdrop-filter: one of these sits on every card,
     and a blurred backdrop has to be re-snapshotted on each scroll frame. */
  background: rgba(22, 33, 28, .72);
}
.count svg { width: 1.05em; height: 1.05em; margin-left: -.15em; }

.badge {
  position: absolute;
  top: .85rem;
  left: .85rem;
  padding: .35em .8em;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  box-shadow: 0 3px 10px -3px rgba(35, 83, 66, .7);
}
.badge.soon { background: var(--brass); box-shadow: 0 3px 10px -3px rgba(171, 127, 61, .7); }
.badge.rented {
  background: var(--white);
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}

/* The badge already says "Rented" — no need to wash the photo out too. */

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-6) var(--sp-6) var(--sp-6);
}
.price {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1;
  margin: 0;
}
.price small {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-3);
}
/* Shown when the rent isn't recorded yet — better than inventing one. */
.price-ask {
  font-family: var(--sans);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink-2);
}
.address { margin: .5em 0 .1em; font-size: var(--fs-base); font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.city { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); }

.specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35em .85em;
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: var(--sp-4) 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.specs li { display: flex; align-items: center; gap: .85em; }
.specs li:not(:last-child)::after {
  content: "";
  width: 3px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--line-2);
}

.blurb {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  margin: var(--sp-3) 0 var(--sp-6);
  text-wrap: pretty;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: auto;
}
.avail { font-size: var(--fs-sm); color: var(--ink-3); }
.card-foot .btn { padding: .55em 1.15em; }
.specs-unknown { color: var(--ink-3); font-style: italic; }
.btn-gallery { font-size: var(--fs-sm); cursor: pointer; }

.empty {
  text-align: center;
  color: var(--ink-3);
  padding: var(--sp-12) 0;
}

/* ===========================================================
   Gallery lightbox
   =========================================================== */

body.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  /* Fully opaque on purpose: a blurred or translucent full-viewport backdrop
     has to be recomposited against the page beneath on every frame, and at
     this darkness nobody can tell the difference anyway. */
  background: #0e1411;
  animation: lbIn .22s ease;
}
@keyframes lbIn { from { opacity: 0; } }

.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--gutter);
  color: #fff;
}
.lb-heading { min-width: 0; }
.lb-title {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-md);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-count {
  margin: .15em 0 0;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .62);
  font-variant-numeric: tabular-nums;
}

.lb-close {
  flex: none;
  display: grid;
  place-content: center;
  width: 2.6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lb-close:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); }
.lb-close svg { width: 1.15rem; height: 1.15rem; }

.lb-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  min-height: 0;
  padding: 0 clamp(.5rem, 2vw, var(--gutter));
}
.lb-stage {
  position: relative;
  height: 100%;
  min-height: 0;
  touch-action: pan-y;
}
/* Absolutely positioned with `margin: auto` so the percentage caps resolve
   against a definite box — a plain `max-height: 100%` on an auto-height flow
   item lets tall portrait photos overrun the stage. */
.lb-layer,
.lb-video video {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
}

/* The two photo layers cross-fade; only the front one is visible. Opacity is
   compositor-only, so the swap costs nothing on the main thread. */
.lb-layer {
  opacity: 0;
  transition: opacity .18s linear;
  pointer-events: none;
}
.lb-layer.is-front { opacity: 1; }
.lb-video:empty { display: none; }

/* Only appears if a photo genuinely takes a moment — the delay keeps it from
   flickering on every fast navigation. */
.lb-stage.is-loading::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 30px;
  aspect-ratio: 1;
  margin: -15px 0 0 -15px;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: rgba(255, 255, 255, .9);
  border-radius: 50%;
  opacity: 0;
  animation: lbSpin .7s linear infinite, lbShow .15s linear .25s forwards;
}
@keyframes lbSpin { to { transform: rotate(360deg); } }
@keyframes lbShow { to { opacity: 1; } }

.lb-nav {
  display: grid;
  place-content: center;
  width: clamp(2.4rem, 5vw, 3.2rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.lb-nav:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .4); }
.lb-nav:active { transform: scale(.94); }
.lb-nav svg { width: 1.3rem; height: 1.3rem; }

.lb-caption {
  margin: 0;
  min-height: 1.2em;
  padding: var(--sp-2) var(--gutter) 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .6);
}

.lb-strip {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .28) transparent;
  padding: var(--sp-3) var(--gutter) var(--sp-4);
}
.lb-strip::-webkit-scrollbar { height: 6px; }
.lb-strip::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .28); border-radius: 3px; }

.lb-strip button {
  position: relative;
  flex: none;
  width: clamp(52px, 7vw, 76px);
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: .5;
  transition: opacity .2s, border-color .2s;
}
.lb-strip button:hover { opacity: .85; }
.lb-strip button.is-active { opacity: 1; border-color: #fff; }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

.strip-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: #fff;
  background: rgba(0, 0, 0, .35);
}
.strip-play svg { width: 1.5rem; height: 1.5rem; }

@media (max-width: 640px) {
  /* Arrows would crowd the photo — swipe and the strip handle it here. */
  .lb-nav { display: none; }
  .lb-main { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lb-stage img, .lb-stage video { animation: none; }
  .card:hover .photo img { transform: none; }
}

/* ===========================================================
   About / steps
   =========================================================== */

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
  gap: var(--sp-12);
  align-items: start;
}
.two-col p { color: var(--ink-2); text-wrap: pretty; }

.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.value-list li {
  padding: var(--sp-4) var(--sp-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.value-list strong {
  display: block;
  margin-bottom: .15em;
  font-size: var(--fs-base);
  color: var(--ink);
}

.steps {
  list-style: none;
  margin: var(--sp-12) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: var(--sp-8);
}
.steps li { padding-top: var(--sp-4); border-top: 2px solid var(--ink); }
.step-n {
  font-family: var(--serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brass);
}
.steps h3 { margin: .3em 0 .35em; }
.steps p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }

/* ===========================================================
   FAQ
   =========================================================== */

.faq { margin-top: var(--sp-8); border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  list-style: none;
  padding: var(--sp-4) 0;
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: color .18s;
}
.faq summary:hover { color: var(--green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .22s;
}
.faq details[open] summary { color: var(--green); }
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq details p {
  margin: 0;
  padding: 0 clamp(1.5rem, 4vw, 3rem) var(--sp-6) 0;
  color: var(--ink-2);
  font-size: var(--fs-sm);
}

/* ===========================================================
   Contact
   =========================================================== */

.contact-list {
  list-style: none;
  margin: var(--sp-8) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: .5em var(--sp-4);
  align-items: baseline;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.contact-list li > span:first-child {
  min-width: 5rem;
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-list a {
  font-weight: 600;
  text-decoration: none;
  transition: color .18s;
  word-break: break-word;
}
.contact-list a:hover { color: var(--green); }

.contact-form {
  padding: var(--sp-8);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  margin-bottom: .4em;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .72em .9em;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  resize: vertical;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.form-status:empty { display: none; }
.form-status {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--green);
  text-align: center;
}
.form-status.is-error { color: #a8392a; }
.form-note {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  text-align: center;
}

/* ===========================================================
   Footer
   =========================================================== */

.site-footer {
  position: relative;
  z-index: 2;
  padding: var(--sp-12) 0 var(--sp-6);
  background: var(--ink);
  color: #c3cdc8;
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
}
.footer-brand .brand-mark { margin-bottom: var(--sp-3); }
.footer-name {
  margin: 0 0 .35em;
  font-family: var(--serif);
  font-size: var(--fs-md);
  font-weight: 600;
  color: #fff;
}
.footer-blurb { margin: 0; max-width: 32ch; opacity: .75; }

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: .55em; }
.footer-col h4 {
  margin: 0 0 .4em;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col a, .footer-col span { color: inherit; text-decoration: none; opacity: .78; transition: opacity .18s, color .18s; }
.footer-col a:hover { opacity: 1; color: #fff; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--fs-xs);
  opacity: .7;
}
.footer-base a { text-decoration: none; }
.footer-base a:hover { opacity: 1; color: #fff; }

/* ===========================================================
   Scroll reveal
   =========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 940px) {
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .nav-cta-mobile { display: block; margin-top: var(--sp-3); }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: var(--sp-3) var(--gutter) var(--sp-6);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: .8em .2em;
    font-size: var(--fs-base);
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-link:hover { background: none; }
  .menu-toggle[aria-expanded="true"] { background: none; }

  .has-menu { position: static; }
  .menu {
    position: static;
    display: none;
    min-width: 0;
    padding: var(--sp-2) 0 var(--sp-3) var(--sp-4);
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }
  .has-menu.open .menu { display: block; }
  .menu a { padding: .5em .6em; }
}

@media (max-width: 560px) {
  .section-head { align-items: flex-start; }
  .contact-form { padding: var(--sp-6); }
  .card-foot { justify-content: flex-start; }
  .card-foot .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
