/* ==========================================================================
   SMUN XIV — Home page styles
   1. Loader            5. Letter + envelope     9. Lightbox
   2. Hero              6. Collage
   3. Opening image     7. Contact & map
   4. Countdown         8. Partners
   ========================================================================== */

/* ---------- 1. Loader (Scales of Justice) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: none;
  flex-direction: column;
  background: var(--paper) url(../../assets/img/grain.png);   /* same paper grain as the page */
}
html.is-loading .loader,
.loader.is-leaving { display: flex; }
.loader__top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(24px, 3.5vw, 44px) clamp(20px, 4.4vw, 64px) 0;
}
.loader__top .meta:last-child { display: none; }
@media (min-width: 600px) { .loader__top .meta:last-child { display: inline; } }
.loader__stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}
.loader__scales { width: min(440px, 80vw); height: auto; overflow: visible; }
.loader__caption {
  margin-top: clamp(20px, 3vw, 44px);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--ink);
}
.loader__pct { margin-top: 10px; letter-spacing: .3em; }
.loader__skip {
  position: absolute;
  right: clamp(20px, 4.4vw, 64px);
  bottom: clamp(24px, 3.5vw, 44px);
  padding: 8px 4px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}
.loader__skip:hover { color: var(--ink); }
.loader__line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 2px;
  background: var(--ink);
  transform-origin: 0 50%;
  opacity: 0;
  pointer-events: none;
}

/* ---------- 2. Hero — the front page ----------
   A newspaper front page "delivered" onto the desk (js/newspaper.js).
   .np-stage is the part that falls; inside it: a contact shadow, a second
   sheet peeking out underneath, and the real page (.np). */
.motion .loader__stage { opacity: 0; }       /* loader.js fades it in once the strokes are "undrawn" */
.motion [data-np-stage] { visibility: hidden; }                      /* newspaper.js shows it as it falls */
.motion-failsafe [data-np-stage] { visibility: visible !important; }

.np-desk {
  position: relative;
  z-index: 3;                    /* falls in front of the masthead and later sections */
  padding-top: clamp(24px, 3.4vw, 44px);
  padding-bottom: clamp(28px, 3.4vw, 48px);
}
.np-stage { position: relative; }
.np__shadow {                    /* the paper's shadow on the desk — layered for depth */
  position: absolute;
  inset: .5% .4% -.2%;
  box-shadow:
    0 2px 4px rgba(26, 38, 32, .08),
    0 14px 28px -6px rgba(26, 38, 32, .2),
    0 42px 80px -18px rgba(26, 38, 32, .32);
  transform-origin: 50% 0;
  pointer-events: none;
}
.np__under {                     /* the next sheet in the pile */
  position: absolute;
  inset: 0;
  background: #EFE7D6;
  border: 1px solid rgba(26, 38, 32, .12);
  box-shadow: 0 10px 24px -8px rgba(26, 38, 32, .22);
  transform: rotate(1.1deg) translate(10px, 8px);
  pointer-events: none;
}
.np {
  position: relative;
  z-index: 1;
  padding: clamp(16px, 2.8vw, 36px) clamp(16px, 3.2vw, 44px) clamp(22px, 3vw, 38px);
  background: var(--newsprint);
  border: 1px solid rgba(26, 38, 32, .14);
  color: var(--ink);
}

/* Nameplate + ears */
.np__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "earL earR" "name name";
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
}
.np__nameplate {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 10vw, 54px);
  line-height: 1.02;
  letter-spacing: -.015em;
  text-align: center;
}
.np__ear {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--rule-soft);
}
.np__ear--left { grid-area: earL; }
.np__ear--right { grid-area: earR; align-items: flex-end; text-align: right; }
.np__ear-kicker {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terra-ink);
}
.np__ear-text { font-family: var(--font-display); font-style: italic; font-size: 14px; line-height: 1.3; }
.np__ear-big { font-family: var(--font-digits); font-style: normal; font-size: 22px; font-variant-numeric: lining-nums; }
@media (min-width: 1000px) {
  .np__head {
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    grid-template-areas: "earL name earR";
    gap: 24px;
  }
  .np__nameplate { font-size: var(--np-name-size, 60px); white-space: nowrap; }   /* fitted by newspaper.js */
}

/* Folio line (between the double rule and a single rule) */
.np__folio {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 18px;
  padding: 9px 0 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
}
@media (min-width: 900px) {
  .np__folio { flex-wrap: nowrap; }
  .np__folio > span { flex: 1; text-align: center; }
  .np__folio > span:first-child { text-align: left; }
  .np__folio > span:last-child { text-align: right; }
  .np__folio > span + span { border-left: 1px solid var(--rule-soft); }
}

/* Banner headline */
.np__banner {
  padding: clamp(18px, 2.4vw, 30px) 0 clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.np__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6.6vw, 92px);
  line-height: .95;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.np__standfirst {
  max-width: 62ch;
  margin: 14px auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
  color: var(--muted);
}

/* Columns: one (phone) → two (tablet) → three with column rules (desktop) */
.np__cols { display: grid; gap: 26px; padding-top: 22px; }
.np__col { min-width: 0; }
.np__col--photo { order: -1; }
@media (min-width: 768px) {
  .np__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
  .np__col--photo { order: 0; }
  .np__col--story { padding-right: 22px; }
  .np__col--photo { padding-left: 22px; border-left: 1px solid var(--rule-soft); }
  .np__col--side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 44px;
    align-items: start;
    padding-top: 22px;
    border-top: 1px solid var(--rule-soft);
  }
}
@media (min-width: 1100px) {
  .np__cols { grid-template-columns: minmax(0, 3.7fr) minmax(0, 4.4fr) minmax(0, 3.7fr); }
  .np__col--story { padding-right: 24px; }
  .np__col--photo { padding: 0 24px; }
  .np__col--side {
    grid-column: auto;
    display: block;
    padding: 0 0 0 24px;
    border-top: 0;
    border-left: 1px solid var(--rule-soft);
  }
}

/* Lead story */
.np__byline { margin-bottom: 10px; }
.np__story p {
  margin-bottom: .8em;
  font-family: var(--font-read);
  font-size: 15px;
  line-height: 1.62;
  -webkit-hyphens: auto;
  hyphens: auto;
}
@media (min-width: 768px) { .np__story p { text-align: justify; } }   /* narrow phone columns stay ragged */
.np__story p:first-child::first-letter {
  float: left;
  padding: 6px 8px 0 0;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: .8;
  color: var(--green);
}
.np__jump {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
}
.np__jump-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Front-page "photo": the emblem on a faint halftone screen */
.np__photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(26, 38, 32, .18);
  background:
    radial-gradient(rgba(26, 38, 32, .12) 1px, transparent 1.3px) 0 0 / 5px 5px,
    var(--cream);
}
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(242, 140, 40, .34), transparent 58%);
  pointer-events: none;
}
.hero__emblem { position: relative; width: 52%; height: auto; aspect-ratio: 1; }
.np__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}
.np__caption .caption { font-size: 13px; }
.np__caption .meta { flex: none; font-size: 9.5px; }

/* At a glance */
.np__glance { margin-top: 20px; padding: 14px 16px 4px; border: 1px solid var(--rule); }
.np__glance .kicker { margin-bottom: 6px; }
.np__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.np__facts > div { padding: 8px 0 10px; border-top: 1px solid var(--rule-soft); }
.np__facts > div:nth-child(-n+2) { border-top: 0; }
.np__facts > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule-soft); }
.np__facts dt {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terra-ink);
}
.np__facts dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 18px; line-height: 1.25; }

/* Inside this edition (real links to the other pages) */
.np__index .kicker { padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.np__index-list { list-style: none; margin: 0; padding: 0; }
.np__index-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
  text-decoration: none;
}
.np__index-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.25;
  transition: color .25s var(--ease-out);
}
.np__index-name::after {         /* dotted leader to the page number */
  content: "";
  flex: 1;
  border-bottom: 1px dotted rgba(26, 38, 32, .4);
  transform: translateY(-4px);
}
.np__index-folio {
  align-self: baseline;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--terra-ink);
}
.np__index-blurb {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.np__index-list a:hover .np__index-name,
.np__index-list a:focus-visible .np__index-name { color: var(--green); }

/* "Classified" registration notice */
.np__ad {
  position: relative;
  margin-top: 22px;
  padding: 22px 20px 20px;
  border: 2px solid var(--ink);
  text-align: center;
}
.np__ad::before {                /* the inner hairline of the double border */
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(26, 38, 32, .5);
  pointer-events: none;
}
.np__col--side .np__ad { margin-top: 22px; }
/* International Press notice: sits at the foot of the story column,
   level with the delegate notice on the right. */
.np__col--story { display: flex; flex-direction: column; }
.np__ad--press { margin-top: 26px; }
@media (min-width: 768px) { .np__ad--press { margin-top: auto; } .np__jump { margin-bottom: 26px; } }
@media (min-width: 768px) and (max-width: 1099px) { .np__col--side .np__ad { margin-top: 0; } }
.np__ad-title { margin: 6px 0 8px; font-family: var(--font-display); font-size: clamp(30px, 2.6vw, 38px); line-height: 1; letter-spacing: .02em; }
.np__ad-text { margin-bottom: 16px; font-family: var(--font-read); font-style: italic; font-size: 14px; line-height: 1.5; color: var(--muted); }
.np__ad .btn { position: relative; }
.np__stamp {
  position: absolute;
  top: -14px;
  right: -10px;
  margin: 0;
  padding: 7px 10px 6px 13px;
  font-size: 12px;
  background: var(--newsprint);
}

/* The fold — only visible while the paper unfolds (no decorative creases at rest). */
.np__crease {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 16px;
  margin-top: -8px;
  background: linear-gradient(to bottom, transparent, rgba(26, 38, 32, .07) 46%, rgba(255, 255, 255, .55) 54%, transparent);
  opacity: 0;
  pointer-events: none;
}

/* The folding flap that js/newspaper.js builds during the delivery. */
.np__flap { position: absolute; z-index: 2; overflow: hidden; pointer-events: none; }
.np__flap > .np { position: absolute; left: 0; margin: 0; }
.np__flap-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(26, 38, 32, .32), rgba(26, 38, 32, .1));
  pointer-events: none;
}

/* ---------- 3. Opening image ---------- */
.opening { padding-top: clamp(40px, 4vw, 57px); }
.opening__frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sage);
  padding: 0;
  text-align: left;
}
@media (min-width: 768px) { .opening__frame { aspect-ratio: 1248 / 560; } }
.opening__media { display: block; width: 100%; height: 100%; }
.opening__media > .ph, .opening__media > img { width: 100%; height: 100%; }
.opening__media .ph svg { position: absolute; inset: 0; }
.opening__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 24px;
  margin-top: 14px;
}

/* ---------- 4. Countdown ---------- */
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px 20px;
}
.countdown__cell:nth-child(even) { border-left: 1px solid var(--rule-soft); }
.countdown__cell:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
@media (min-width: 768px) {
  .countdown__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .countdown__cell { padding: 8px 8px 4px; }
  .countdown__cell + .countdown__cell { border-left: 1px solid var(--rule-soft); }
  .countdown__cell:nth-child(n+3) { border-top: 0; }
}
.countdown__digits {
  display: flex;
  justify-content: center;
  font-family: var(--font-digits);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
  padding-block: .06em;
}
/* Odometer: each digit is a 1em-tall window over a strip 0–9 + 0. */
.odo { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo__strip { display: flex; flex-direction: column; }
.odo__strip span { display: block; height: 1em; text-align: center; }
.countdown__label {
  margin-top: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}
.countdown__caption { margin-top: clamp(28px, 3vw, 44px); font-size: 16px; }

/* ---------- 5. Letter + envelope ---------- */
.letter-stage {
  position: relative;
  isolation: isolate;               /* envelope parts and letter share this stacking context */
  --env-w: min(720px, 100%);
  padding-bottom: calc(min(720px, 100vw - 2 * var(--gutter)) * .56 - 70px);
}
.letter {
  position: relative;
  z-index: 6;                       /* static layout: letter in front of the envelope */
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 48px) clamp(22px, 4.5vw, 56px);
  background: var(--card);
  border: 1px solid rgba(26, 38, 32, .08);
  box-shadow: 0 10px 30px rgba(26, 38, 32, .12);
}
.letter__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.letter__emblem { width: 46px; height: 46px; }
.letter__date { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--muted); }
.letter__salutation { font-family: var(--font-display); font-style: italic; font-size: clamp(21px, 2vw, 24px); margin-bottom: 18px; }
.letter__body p {
  font-family: var(--font-read);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 1em;
}
@media (min-width: 768px) { .letter__body p { font-size: 16px; } }
.letter__body p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: .82;
  padding: 6px 10px 0 0;
  color: var(--green);
}
.letter__closing { font-family: var(--font-read); font-style: italic; color: var(--muted); margin-top: 8px; }
.letter__signature { position: relative; display: inline-block; margin: 10px 0 12px; }
.letter__sign-text {
  display: inline-block;
  font-family: var(--font-sign);
  font-size: clamp(38px, 4vw, 44px);
  line-height: 1.3;
  color: var(--ink);
  padding-right: 6px;
}
.letter__sign-svg { width: min(280px, 100%); height: auto; }
.letter__nib {
  position: absolute;
  left: 0;
  bottom: .38em;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
}
.letter__signoff { margin-top: 4px; }

/* Envelope (absolutely placed under/around the letter; js/envelope.js moves it). */
.envelope {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--env-w);
  aspect-ratio: 100 / 56;
  margin-left: calc(var(--env-w) / -2);
  /* NB: no transform/opacity/z-index here — the parts must share the stage's
     stacking context so the letter can slide between them. */
}
.envelope__back, .envelope__pocket, .envelope__flap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.envelope__back {
  z-index: 1;
  background: #E2D3B6;
  border: 1px solid rgba(26, 38, 32, .15);
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(26, 38, 32, .12);
}
.envelope__pocket { z-index: 3; overflow: visible; }
.envelope__flap { z-index: 4; overflow: visible; transform-origin: 50% 0; }
.envelope__seal {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: calc(32 / 56 * 100%);
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #A63A24, var(--wax) 62%, #6E2415);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25), inset 0 0 0 4px rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
}
.envelope__seal svg { width: 32px; height: 32px; }
.envelope__shard {                /* two little wax fragments that fall when the seal cracks */
  position: absolute;
  z-index: 5;
  top: calc(32 / 56 * 100%);
  left: 50%;
  width: 18px;
  height: 14px;
  background: var(--wax);
  border-radius: 40% 60% 50% 40%;
  opacity: 0;
}
.envelope__shard--a { margin: 2px 0 0 -26px; }
.envelope__shard--b { margin: -4px 0 0 10px; border-radius: 60% 40% 40% 60%; }

/* Animated mode (js/envelope.js): letter slides between the envelope's back and pocket. */
.letter-stage.is-animated { padding-bottom: 0; }
.letter-stage.is-animated .letter { z-index: 2; }
.letter-stage.is-animated .envelope { bottom: auto; }

/* The wax seal is the "open" button (js/envelope.js). A soft ripple invites a click. */
.envelope__seal { border: 0; padding: 0; transition: filter .25s var(--ease-out); }
.letter-stage:not(.is-animated) .envelope__seal { pointer-events: none; }
.letter-stage.is-animated .envelope__seal { cursor: pointer; }
.letter-stage.is-animated .envelope__seal:hover { filter: brightness(1.15); }
.envelope__seal:focus-visible { outline-offset: 5px; border-radius: 50%; }
.letter-stage.is-animated:not(.is-opening) .envelope__seal::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(142, 47, 29, .5);
  border-radius: 50%;
  pointer-events: none;
  animation: seal-ripple 2.4s ease-out infinite;
}
@keyframes seal-ripple {
  0% { transform: scale(.88); opacity: .9; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}
.envelope__hint {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

/* Sealed mode (letter.released = false in data/site.json): the envelope sits
   on its own, still sealed, with a "To be released" stamp. Nothing opens. */
.letter-stage.is-sealed { padding: clamp(12px, 2vw, 24px) 0 0; }
.letter-stage.is-sealed .envelope { position: relative; left: auto; bottom: auto; margin: 0 auto; }
.letter-stage.is-sealed .letter[hidden] { display: none; }
.envelope__stamp {
  position: absolute;
  z-index: 6;
  right: 6%;
  bottom: 12%;
  margin: 0;
  background: rgba(251, 248, 241, .55);
}
@media (max-width: 767px) { .envelope__stamp { font-size: 11px; padding: 7px 9px 6px 12px; } }
.envelope__note {
  margin: 22px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
}

/* ---------- 6. Collage ---------- */
.collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
  list-style: none;
  margin: 0;
  padding: 12px 0 8px;
}
.print { position: relative; }
.print__btn {
  --rot: 0deg;
  display: block;
  width: 100%;
  padding: 8px 8px 0;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
  text-align: left;
  transform: rotate(var(--rot));
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.print__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.print--portrait .print__photo { aspect-ratio: 4 / 5; }
.print__photo > .ph, .print__photo > img { width: 100%; height: 100%; }
.print__caption {
  display: block;
  height: 38px;
  padding: 10px 4px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.print__btn:hover, .print__btn:focus-visible {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .2);
  position: relative;
  z-index: 3;
}
.print:hover, .print:focus-within { z-index: 3; }
.collage__note { margin-top: clamp(28px, 3vw, 40px); }

/* Desktop: a hand-placed pinboard on a 12-column grid, prints overlapping a little. */
@media (min-width: 768px) {
  .collage {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 0;
    padding: 28px 0 0;
  }
  .print__btn { padding: 10px 10px 0; }
  .print__caption { height: 46px; padding-top: 14px; }
  .print--1 { grid-column: 1 / span 4;  grid-row: 1; margin: 44px -6px 0 0; }
  .print--2 { grid-column: 4 / span 3;  grid-row: 1 / span 2; margin: 0 0 0 36px; z-index: 1; }
  .print--3 { grid-column: 7 / span 3;  grid-row: 1; margin: 56px -28px 0 -8px; }
  .print--4 { grid-column: 10 / span 3; grid-row: 1; margin: 8px 0 0 28px; }
  .print--5 { grid-column: 2 / span 3;  grid-row: 2 / span 2; margin: -60px 10px 0 -40px; z-index: 1; }
  .print--6 { grid-column: 5 / span 3;  grid-row: 3; margin: -80px -30px 0 -20px; z-index: 2; }
  .print--7 { grid-column: 8 / span 2;  grid-row: 2 / span 2; margin: -48px 0 0 20px; z-index: 1; }
  .print--8 { grid-column: 10 / span 3; grid-row: 2 / span 2; margin: -36px 0 0 12px; z-index: 2; }
}

/* ---------- 7. Contact & map ---------- */
.contact__grid { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 56px; align-items: start; }
}
.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.contact__row:first-child { padding-top: 0; }
.contact__row .kicker { margin-bottom: 8px; }
.contact__value {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.contact__value:hover { color: var(--green); }
.contact__sub { margin-top: 4px; font-family: var(--font-ui); font-size: 13px; color: var(--muted); }
.contact__row .pill { flex: none; }

.map__frame {
  position: relative;
  aspect-ratio: 632 / 440;
  border: 1px solid rgba(26, 38, 32, .2);
  overflow: hidden;
  background: #E4DCC8;
}
@media (max-width: 599px) { .map__frame { aspect-ratio: 4 / 5; } }
.map__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.35) sepia(.2) contrast(.95);
}
/* Transparent layer so page scrolling never gets "stuck" in the map. */
.map__shield {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  z-index: 2;
}
.map__shield-pill {
  padding: 8px 16px;
  background: rgba(251, 248, 241, .92);
  border: 1px solid rgba(26, 38, 32, .2);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(26, 38, 32, .12);
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.map__shield:hover .map__shield-pill, .map__shield:focus-visible .map__shield-pill { opacity: 1; }
@media (hover: none) { .map__shield-pill { opacity: 1; } }
.map.is-live .map__shield { display: none; }
.map__label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 12px 16px 12px 12px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(26, 38, 32, .16);
  pointer-events: none;
}
.map__pin {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
}
.map__pin svg { width: 20px; height: 20px; }
.map__label-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.25; }
.map__label-sub { display: block; margin-top: 2px; font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
.map__directions { position: absolute; left: 20px; bottom: 20px; z-index: 3; }

/* ---------- 8. Partners ---------- */
.partners .notice { margin-top: 4px; }

/* ---------- 9. Lightbox (js/lightbox.js) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: grid;
  place-items: center;
}
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(18, 38, 29, .94); }
.lightbox__figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 86vw;
  margin: 0;
  pointer-events: none;
}
.lightbox__frame {
  background: #fff;
  padding: 10px;
  pointer-events: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.lightbox__frame > .ph, .lightbox__frame > img {
  display: block;
  width: min(86vw - 20px, (80vh - 20px) * 4 / 3);
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
}
.lightbox__frame--portrait > .ph, .lightbox__frame--portrait > img {
  width: min(86vw - 20px, (80vh - 20px) * 4 / 5);
  aspect-ratio: 4 / 5;
}
.lightbox__caption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--cream);
  text-align: center;
}
.lightbox__chrome { position: absolute; inset: 0; pointer-events: none; }
.lightbox__chrome > * { pointer-events: auto; }
.lightbox__count {
  position: absolute;
  top: 24px;
  left: clamp(16px, 3vw, 32px);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--cream);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: clamp(12px, 3vw, 28px);
  display: inline-flex;
  gap: 8px;
  padding: 8px 10px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  color: var(--cream);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 1px solid rgba(240, 226, 200, .4);
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 18px;
  color: var(--cream);
  transition: background-color .25s var(--ease-out);
}
.lightbox__nav:hover { background: rgba(240, 226, 200, .12); }
.lightbox__nav--prev { left: clamp(8px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 28px); }
@media (max-width: 599px) {
  .lightbox__nav { top: auto; bottom: 20px; margin-top: 0; }
}
