/* ==========================================================================
   The City of Refuge — v3 "film & paper" theme
   Black-and-white photography, ink + bone surfaces, one aqua accent taken
   from the COR logo. Display type: Archivo (variable width). Accent words:
   Instrument Serif italic. Body: Inter.

   Motion contract: everything below renders complete and readable with no
   JavaScript. Animation only switches on when <html> has .motion-ok, which
   the inline head script adds when JS runs AND the visitor has not asked for
   reduced motion. The pinned scroll scene additionally needs a wide screen.
   ========================================================================== */

@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-display: swap; font-weight: 400;
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
}

:root {
  /* Change the whole look from here */
  --ink: #0c0c0d;
  --ink-2: #141416;
  --ink-3: #1d1d20;
  --bone: #efe9dd;
  --bone-2: #e5ddcd;
  --accent: #6fe0d2;        /* logo aqua — on ink 12.6:1 */
  --accent-deep: #0a6470;   /* same hue for text on bone — 5.6:1 */
  --flag: #e0a43b;          /* placeholders only */

  --on-ink: #f4f0e8;
  --on-ink-mute: #aeaaa1;   /* 8.3:1 on ink */
  --on-bone: #131314;
  --on-bone-mute: #524e47;  /* 6.6:1 on bone */
  --line-ink: rgba(244, 240, 232, .16);
  --line-bone: rgba(19, 19, 20, .18);

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.15rem, 4.5vw, 3rem);
  --sec-y: clamp(4.5rem, 10vw, 9rem);
  --r: 18px;
  --r-lg: 28px;
  --hdr-h: 60px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--on-ink); background: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
.hero__media picture, .panel__frame picture, .figure picture { width: 100%; height: 100%; }
img { height: auto; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.on-bone :focus-visible { outline-color: var(--accent-deep); }
::selection { background: var(--accent); color: var(--ink); }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 200; padding: .8rem 1.1rem;
  background: var(--accent); color: var(--ink); font-weight: 700; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }

/* ---------- Type ---------- */
.d1, .d2, .d3 {
  font-family: var(--f-display); font-weight: 800; font-stretch: 66%;
  text-transform: uppercase; line-height: .9; letter-spacing: -.012em; text-wrap: balance;
}
.d1 { font-size: clamp(3.1rem, 13.2vw, 10.25rem); }
.d2 { font-size: clamp(2.5rem, 8vw, 6.25rem); }
.d3 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-stretch: 72%; line-height: .98; }
.d1 em, .d2 em, .d3 em, .serif {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: normal;
  text-transform: none; letter-spacing: -.015em; color: var(--accent);
}
.d1 em, .d2 em { font-size: 1.04em; line-height: .8; }
.on-bone .d1 em, .on-bone .d2 em, .on-bone .d3 em, .on-bone .serif { color: var(--accent-deep); }

.eyebrow {
  display: flex; align-items: center; gap: .6em;
  font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-ink-mute);
}
.eyebrow::before { content: "✦"; color: var(--accent); font-size: 1.05em; letter-spacing: 0; }
.on-bone .eyebrow { color: var(--on-bone-mute); }
.on-bone .eyebrow::before { color: var(--accent-deep); }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 38em; }
.muted { color: var(--on-ink-mute); }
.on-bone .muted { color: var(--on-bone-mute); }
.prose > * + * { margin-top: 1.15em; }
.prose { max-width: 40em; }
.prose a { color: var(--accent); text-underline-offset: .2em; }
.on-bone .prose a { color: var(--accent-deep); }

/* ---------- Surfaces ---------- */
.sec { padding-block: var(--sec-y); position: relative; }
.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink-2 { background: var(--ink-2); color: var(--on-ink); }
.on-bone { background: var(--bone); color: var(--on-bone); }
.on-bone-2 { background: var(--bone-2); color: var(--on-bone); }
.sec__head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.2rem, 5vw, 4rem); }
.sec__head .lede { margin-top: .4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 650; font-size: 1rem; line-height: 1.1; text-decoration: none; text-align: center;
  border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #fff; border-color: #fff; }
.on-bone .btn--accent, .on-bone-2 .btn--accent { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.on-bone .btn--accent:hover, .on-bone-2 .btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.on-bone .btn--ghost:hover, .on-bone-2 .btn--ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: .55rem 1.15rem; font-size: .92rem; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.tlink {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px; font-weight: 650;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .32em;
}
.tlink svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }

/* ---------- Placeholder marker (unfinished church details) ---------- */
.todo {
  display: inline; background: rgba(224, 164, 59, .16); color: inherit;
  outline: 1.5px dashed var(--flag); outline-offset: 2px; border-radius: 4px; padding: 0 .3em;
  font-family: var(--f-body); font-style: normal; font-weight: 600; font-size: .92em;
  text-transform: none; letter-spacing: 0;
}

/* ==========================================================================
   Header — floating pill
   ========================================================================== */
.hdr {
  position: relative; z-index: 100; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: .7rem var(--gutter); background: var(--ink); color: var(--on-ink);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand__name {
  font-family: var(--f-display); font-weight: 800; font-stretch: 70%; text-transform: uppercase;
  font-size: 1.12rem; line-height: 1; letter-spacing: .01em; display: grid; gap: .22em;
}
.brand__name small { font-family: var(--f-body); font-weight: 600; font-size: .7rem; letter-spacing: .14em; color: var(--on-ink-mute); }
.nav ul { display: flex; flex-wrap: wrap; gap: .1rem .2rem; list-style: none; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .8rem; border-radius: 999px;
  text-decoration: none; font-size: .95rem; font-weight: 550; color: var(--on-ink);
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(244, 240, 232, .12); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav__extra { display: none; }
.menu-btn { display: none; }

/* With JS: fixed floating pill */
.js .hdr {
  position: fixed; top: 12px; left: 50%; translate: -50% 0;
  width: min(100% - 24px, 1180px); flex-wrap: nowrap;
  padding: .45rem .5rem .45rem .7rem; border-radius: 999px;
  background: rgba(12, 12, 13, .72); border: 1px solid var(--line-ink);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  transition: translate .35s var(--ease), background-color .3s;
}
.js .hdr.is-hidden { translate: -50% -140%; }
.js body { padding-top: 0; }

@media (max-width: 959px) {
  .hdr__cta { display: none; }
  .js .menu-btn {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; padding: 0 1.05rem; margin-left: auto;
    border-radius: 999px; border: 1.5px solid var(--line-ink); background: transparent; cursor: pointer;
    font-weight: 650; font-size: .92rem; position: relative; z-index: 3;
  }
  .menu-btn__bars { width: 18px; height: 10px; position: relative; }
  .menu-btn__bars::before, .menu-btn__bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .3s var(--ease), top .3s var(--ease);
  }
  .menu-btn__bars::before { top: 0; } .menu-btn__bars::after { top: 8px; }
  .menu-open .menu-btn__bars::before { top: 4px; transform: rotate(45deg); }
  .menu-open .menu-btn__bars::after { top: 4px; transform: rotate(-45deg); }
  .js .brand { position: relative; z-index: 3; }

  .js .nav {
    position: fixed; inset: -12px 0 auto 50%; translate: -50% 0; width: 100vw; height: 100dvh;
    padding: 104px var(--gutter) 2rem; background: var(--ink); overflow-y: auto;
    display: flex; flex-direction: column; gap: 2rem;
    visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s;
  }
  .js.menu-open .nav { visibility: visible; opacity: 1; transition: opacity .25s; }
  .js.menu-open .hdr { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js.menu-open body { overflow: hidden; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav li + li { border-top: 1px solid var(--line-ink); }
  .js .nav a {
    width: 100%; min-height: 0; padding: .32em 0; border-radius: 0;
    font-family: var(--f-display); font-weight: 800; font-stretch: 66%; text-transform: uppercase;
    font-size: clamp(2.6rem, 13vw, 4.4rem); line-height: 1;
  }
  .js .nav a:hover { background: none; color: var(--accent); }
  .js .nav__extra { display: grid; gap: 1rem; margin-top: auto; color: var(--on-ink-mute); font-size: .98rem; }
  .js .nav__extra strong { color: var(--on-ink); font-weight: 650; }
  .js .nav__extra .btn { color: var(--ink); font-family: var(--f-body); font-size: 1rem; text-transform: none; font-weight: 650; font-stretch: normal; padding: .85rem 1.6rem; min-height: 54px; width: auto; border-radius: 999px; }
}
@media (min-width: 960px) {
  .hdr { flex-wrap: nowrap; }
  .brand { margin-right: 0; }
  .nav { margin-inline: auto; }
  .hdr__cta { min-height: 46px; padding: .5rem 1.25rem; font-size: .95rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; isolation: isolate; background: var(--ink); overflow: clip; display: flex; min-height: 100vh; min-height: 100svh; }
.hero--page { min-height: min(86svh, 780px); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: brightness(.6) contrast(1.12); }
.hero::before { /* legibility gradient */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,12,13,.72) 0%, rgba(12,12,13,.28) 26%, rgba(12,12,13,.62) 52%, rgba(12,12,13,.96) 84%, var(--ink) 100%);
}
.grain::after { /* film grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 1.1rem;
  padding-top: 104px; padding-bottom: clamp(1.5rem, 4vh, 3rem);
}
.hero__title span { display: block; }
.hero__lede { order: 3; color: #d9d5cc; max-width: 34em; font-size: 1.02rem; line-height: 1.55; }
.rail { order: 2; display: grid; gap: .6rem; margin-top: .2rem; }
.fact {
  display: grid; gap: .1rem; padding: .7rem 1rem; border-radius: 14px; text-decoration: none;
  background: rgba(12, 12, 13, .55); border: 1px solid var(--line-ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
a.fact:hover { border-color: var(--accent); }
.fact__k { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.fact__v { font-weight: 650; font-size: 1.02rem; line-height: 1.3; }
.fact__sub { font-size: .8rem; line-height: 1.35; color: #cfcbc2; }
.rail .btn { width: 100%; }
.rail__facts { display: grid; grid-template-columns: 1fr; gap: .6rem; }

@media (min-width: 520px) {
  .rail__facts { grid-template-columns: auto 1fr; }
  .rail .btn { width: auto; justify-self: start; }
}
@media (min-width: 960px) {
  .hero__media { inset: 0 0 0 auto; width: min(58vw, 108svh); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
  .hero__media img { filter: brightness(.74) contrast(1.1); }
  .hero::before { background: linear-gradient(180deg, rgba(12,12,13,.55) 0%, rgba(12,12,13,0) 22%, rgba(12,12,13,0) 55%, rgba(12,12,13,.9) 100%), linear-gradient(90deg, var(--ink) 0%, rgba(12,12,13,.5) 46%, rgba(12,12,13,0) 70%); }
  .hero__inner { gap: 1.5rem; padding-bottom: clamp(2rem, 5vh, 3.5rem); }
  .hero__lede { order: 0; font-size: 1.2rem; }
  .rail { order: 0; grid-template-columns: auto auto; justify-content: start; align-items: stretch; gap: .75rem; margin-top: .4rem; }
  .rail__facts { grid-template-columns: auto auto; gap: .75rem; }
  .rail .btn { min-height: 100%; padding-inline: 2rem; }
  .fact { padding: .8rem 1.25rem; }
  .hero--home .d1 { font-size: clamp(5rem, 10.6vw, 10.25rem); }
}
.hero--page .d1 { font-size: clamp(3rem, 11.5vw, 8.5rem); }
.hero--plain { min-height: 0; }
.hero--plain .hero__inner { padding-top: clamp(140px, 22vh, 220px); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero--plain::before { display: none; }

/* Slow settle on the hero photo (enhancement only) */
@keyframes settle { from { scale: 1.09; } to { scale: 1; } }
.motion-ok .hero__media img { animation: settle 2.6s var(--ease) both; }

/* ==========================================================================
   Moving type band — position is tied to scroll, so it is still when you are
   ========================================================================== */
.band { overflow: clip; padding-block: clamp(1.1rem, 2.6vw, 2rem); border-block: 1px solid var(--line-ink); background: var(--ink); }
.band__track {
  display: flex; gap: .55em; width: max-content; white-space: nowrap; will-change: transform;
  font-family: var(--f-display); font-weight: 800; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(3rem, 11vw, 8.5rem); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--on-ink-mute);
  transform: translate3d(calc(var(--band, 0) * -1px), 0, 0);
}
.band__track b { font-weight: 800; color: var(--on-ink); -webkit-text-stroke: 0; }
.band__track i { font-style: normal; color: var(--accent); -webkit-text-stroke: 0; font-size: .5em; align-self: center; }

/* ==========================================================================
   First visit steps
   ========================================================================== */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .split--wide-r { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split__sticky { position: sticky; top: 120px; }
}
.steps { display: grid; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.4rem; padding-block: 1.6rem; border-top: 1px solid var(--line-bone); }
.on-ink .steps > li, .on-ink-2 .steps > li { border-color: var(--line-ink); }
.steps > li:last-child { border-bottom: 1px solid var(--line-bone); }
.on-ink .steps > li:last-child, .on-ink-2 .steps > li:last-child { border-color: var(--line-ink); }
.steps > li::before {
  content: counter(step, decimal-leading-zero); grid-row: span 2;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: .9; color: var(--accent-deep); min-width: 1.6em;
}
.on-ink .steps > li::before, .on-ink-2 .steps > li::before { color: var(--accent); }
.steps h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1; }
.steps p { grid-column: 2; }

/* ==========================================================================
   SIGNATURE: "Walk through the word"
   Baseline (no JS / phones / reduced motion): three stacked editorial panels.
   Enhanced (.motion-ok + wide screen): the stage pins, each word travels
   across the screen stretching from condensed to wide, passing BEHIND the
   photograph as solid type and IN FRONT of it as an outline, while the photo
   opens from an arched doorway to a full frame.
   ========================================================================== */
.scene { background: var(--ink); color: var(--on-ink); position: relative; }
.scene__intro { padding-top: var(--sec-y); display: grid; gap: 1rem; }
.panel { position: relative; padding-block: clamp(2.5rem, 8vw, 4.5rem); border-top: 1px solid var(--line-ink); margin-top: clamp(2.5rem, 8vw, 4.5rem); }
.panel__in { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; display: grid; gap: 1.5rem; }
.panel__word {
  font-family: var(--f-display); font-weight: 800; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(5.5rem, 31vw, 13rem); line-height: .8; letter-spacing: -.02em;
}
.panel__word--front { display: none; }
.panel__frame { border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; max-width: 460px; background: var(--ink-3); }
.panel__frame img { width: 100%; height: 100%; object-fit: cover; }
.panel__copy { display: grid; gap: .9rem; max-width: 30em; }
.panel__n { font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; color: var(--accent); }
.panel__copy h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; }
.scene__dots { display: none; }

@media (min-width: 700px) { /* static layout; the pinned version below overrides it when motion is on */
  .panel__in { grid-template-columns: 1fr 1fr; align-items: end; }
  .panel__word { grid-column: 1 / -1; }
}

/* Pinned version. site.js adds .scene-on to <html> when motion is allowed and the
   screen suits it: wide screens, and phones/tablets held upright. Both share one
   choreography; only the sizes set on .panel differ. Landscape phones, very short
   screens and older browsers keep the static layout above. */
.scene-on .scene__track { height: 420vh; position: relative; }
.scene-on .scene__stage { position: sticky; top: 0; height: 100vh; overflow: clip; }
.scene-on .panel {
  --word-size: min(38vh, calc(92vw / (var(--len, 6) * .84))); /* still fits the screen when fully stretched */
  --stretch: 63%; --travel: 26vw; --word-y: 50%;
  --frame-h: 78vh; --frame-y: 50%;
  position: absolute; inset: 0; margin: 0; padding: 0; border: 0;
  opacity: var(--o, 0); /* opacity only: the text stays available to screen readers */
}
.scene-on .panel__in { position: absolute; inset: 0; width: 100%; display: block; }
.scene-on .panel__word {
  position: absolute; top: var(--word-y); left: 50%; white-space: nowrap; margin: 0;
  font-size: var(--word-size); line-height: .8;
  font-stretch: calc(62% + var(--stretch) * var(--t, 0));
  transform: translate3d(calc(-50% + (1 - var(--t, 0)) * var(--travel)), -54%, 0);
  will-change: transform;
}
.scene-on .panel__word--back { color: var(--on-ink); z-index: 1; }
.scene-on .panel__word--front { display: block; z-index: 3; color: transparent; -webkit-text-stroke: 2px var(--accent); }
.scene-on .panel__frame {
  position: absolute; z-index: 2; top: var(--frame-y); left: 50%; height: var(--frame-h); aspect-ratio: 4 / 5; max-width: none;
  translate: -50% -50%; border-radius: 0;
  clip-path: inset(calc((1 - var(--e, 0)) * 17%) calc((1 - var(--e, 0)) * 20%) calc((1 - var(--e, 0)) * 6%) round calc(var(--frame-h) * .5 * (1 - var(--e, 0)) + 20px) calc(var(--frame-h) * .5 * (1 - var(--e, 0)) + 20px) 20px 20px);
}
.scene-on .panel__frame img { scale: calc(1.22 - .22 * var(--e, 0)); }
.scene-on .panel__copy {
  position: absolute; z-index: 4; left: var(--gutter); bottom: clamp(1.5rem, 5vh, 3rem); width: min(26vw, 340px);
  opacity: var(--c, 0); translate: 0 calc((1 - var(--c, 0)) * 18px);
}
.scene-on .scene__dots {
  display: flex; flex-direction: column; gap: .7rem; position: absolute; z-index: 5; right: var(--gutter); bottom: clamp(1.5rem, 5vh, 3rem);
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-ink-mute); text-align: right;
}
.scene-on .scene__dots span.is-on { color: var(--accent); }
.scene-on .scene__intro { padding-bottom: 2rem; }

/* Phones and upright tablets: photo up top, word across it, words underneath */
@media (max-width: 1023px) {
  .scene-on .scene__stage { height: 100svh; }
  .scene-on .panel {
    --word-size: min(22svh, calc(92vw / (var(--len, 6) * .69)));
    --stretch: 38%; --travel: 30vw; --word-y: 38svh;
    --frame-h: 52svh; --frame-y: 37svh;
  }
  .scene-on .panel__frame { max-width: 86vw; }
  .scene-on .panel__word--front { -webkit-text-stroke-width: 1.5px; }
  .scene-on .panel__copy { right: var(--gutter); width: auto; bottom: 1.1rem; gap: .45rem; max-width: 34em; }
  .scene-on .panel__copy h3 { font-size: clamp(1.35rem, 5.4vw, 2rem); }
  .scene-on .panel__copy p:last-child { font-size: .96rem; line-height: 1.5; }
  .scene-on .panel__n { font-size: 1.25rem; }
  .scene-on .scene__dots { display: none; }
}

/* ==========================================================================
   Cards, rows, lists
   ========================================================================== */
.cards { display: grid; gap: 1rem; }
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  display: grid; align-content: start; gap: .8rem; padding: clamp(1.4rem, 2.6vw, 2rem); border-radius: var(--r);
  border: 1px solid var(--line-bone); background: rgba(255, 255, 255, .34);
}
.on-ink .card, .on-ink-2 .card { border-color: var(--line-ink); background: rgba(244, 240, 232, .04); }
.card h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: 1.55rem; line-height: 1; }
.card__k { font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; line-height: 1; color: var(--accent-deep); }
.on-ink .card__k, .on-ink-2 .card__k { color: var(--accent); }
.card .tlink { justify-self: start; font-size: .95rem; }

.rows { border-top: 1px solid var(--line-bone); }
.on-ink .rows, .on-ink-2 .rows { border-color: var(--line-ink); }
.row { display: grid; gap: .3rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line-bone); }
.on-ink .row, .on-ink-2 .row { border-color: var(--line-ink); }
.row__when { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-bone-mute); }
.on-ink .row__when, .on-ink-2 .row__when { color: var(--on-ink-mute); }
.row__name { font-family: var(--f-display); font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1; }
.row__time { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; color: var(--accent-deep); }
.on-ink .row__time, .on-ink-2 .row__time { color: var(--accent); }
.row p { max-width: 36em; }
@media (max-width: 819px) { .row--sched .row__time { display: none; } } /* the schedule already says it */
.sched { display: grid; gap: .3rem; margin-top: .35rem; font-weight: 600; }
.sched li { display: flex; gap: .9rem; }
.sched span { min-width: 5.2rem; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.15rem; line-height: 1.2; color: var(--accent-deep); }
.on-ink .sched span, .on-ink-2 .sched span { color: var(--accent); }
@media (min-width: 820px) {
  .row { grid-template-columns: 13rem 1fr auto; align-items: baseline; }
  .row__when { grid-row: 1; }
  .row__body { display: grid; gap: .5rem; }
  .row__time { text-align: right; white-space: nowrap; }
}

.quote { display: grid; gap: 1.2rem; }
.quote p { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.7rem, 3.8vw, 3rem); line-height: 1.14; letter-spacing: -.01em; text-wrap: balance; }
.quote cite { font-style: normal; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-bone-mute); }
.on-ink .quote cite, .on-ink-2 .quote cite { color: var(--on-ink-mute); }

.figure { border-radius: var(--r-lg); overflow: hidden; background: var(--ink-3); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--arch { border-radius: 999px 999px var(--r-lg) var(--r-lg); aspect-ratio: 4 / 5; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--portrait { aspect-ratio: 5 / 6; max-width: 340px; }

.deflist { display: grid; gap: 0; border-top: 1px solid var(--line-bone); }
.on-ink .deflist, .on-ink-2 .deflist { border-color: var(--line-ink); }
.deflist > div { display: grid; gap: .25rem 2rem; padding-block: 1.15rem; border-bottom: 1px solid var(--line-bone); }
.on-ink .deflist > div, .on-ink-2 .deflist > div { border-color: var(--line-ink); }
.deflist dt { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-bone-mute); }
.on-ink .deflist dt, .on-ink-2 .deflist dt { color: var(--on-ink-mute); }
.deflist dd { font-weight: 550; font-size: 1.08rem; }
.deflist dd a { text-underline-offset: .2em; }
@media (min-width: 640px) { .deflist > div { grid-template-columns: 11rem 1fr; align-items: baseline; } }

/* FAQ — native details, keyboard friendly without JS */
.faq { border-top: 1px solid var(--line-bone); }
.faq details { border-bottom: 1px solid var(--line-bone); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; cursor: pointer; list-style: none;
  padding-block: 1.25rem; font-weight: 650; font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--f-serif); font-style: italic; font-size: 2rem; line-height: .6; color: var(--accent-deep); transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > p { padding-bottom: 1.4rem; max-width: 42em; color: var(--on-bone-mute); }

/* Map */
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-bone); background: var(--bone-2); aspect-ratio: 4 / 3; }
.on-ink .map, .on-ink-2 .map { border-color: var(--line-ink); background: var(--ink-3); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
@media (min-width: 900px) { .map { aspect-ratio: 16 / 11; } }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; font: inherit; color: inherit; padding: .9rem 1rem; min-height: 54px; border-radius: 12px;
  border: 1.5px solid var(--line-bone); background: rgba(255, 255, 255, .5);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--accent-deep); }
.form__note { font-size: .92rem; color: var(--on-bone-mute); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam trap, hidden from people */
.form__2 { display: grid; gap: 1.1rem; }
.form__2[hidden] { display: none; }
@media (min-width: 640px) { .form__2 { grid-template-columns: 1fr 1fr; } }

/* Giving */
.give { display: grid; gap: 1rem; }
@media (min-width: 760px) { .give { grid-template-columns: repeat(3, 1fr); } }
.give a {
  display: grid; gap: .5rem; padding: 1.8rem; border-radius: var(--r); text-decoration: none;
  border: 1px solid var(--line-ink); background: rgba(244, 240, 232, .04); transition: background-color .2s, color .2s, border-color .2s;
}
.give a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.give__name { font-family: var(--f-display); font-weight: 800; font-stretch: 68%; text-transform: uppercase; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: .95; }
.give__handle { color: var(--on-ink-mute); font-weight: 550; overflow-wrap: anywhere; }
.give a:hover .give__handle { color: inherit; }
.give__go { display: inline-flex; align-items: center; gap: .45em; margin-top: 1.2rem; font-weight: 650; }
.give__go svg { width: 1em; height: 1em; }

/* Closing call to action */
.cta { text-align: left; }
.cta__grid { display: grid; gap: 2rem; }
.cta .d1 { font-size: clamp(3rem, 11.5vw, 9rem); }
.cta__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; font-weight: 600; }
.cta__meta span { display: inline-flex; align-items: center; gap: .5em; }
.cta__meta span::before { content: "✦"; color: var(--accent); }

/* ==========================================================================
   Events calendar
   Without JavaScript this is a plain month-by-month list. With it: a month
   grid, category filters and a list/month switch.
   ========================================================================== */
.next {
  display: grid; gap: 1.1rem; align-items: center; margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 4.5vw, 3rem); border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink);
}
.next__date { display: flex; align-items: baseline; gap: .6rem; color: var(--accent); }
.next__day { font-family: var(--f-display); font-weight: 800; font-stretch: 62%; font-size: clamp(4.5rem, 20vw, 9.5rem); line-height: .78; letter-spacing: -.02em; }
.next__mon { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1; }
.next__body { display: grid; gap: .7rem; }
.next .d2 { font-size: clamp(2.1rem, 6.4vw, 4.4rem); }
.next__when { font-weight: 600; color: var(--on-ink-mute); }
.on-bone .next .eyebrow { color: var(--on-ink-mute); }
.on-bone .next .eyebrow::before { color: var(--accent); }
.next [data-next-count]:not(:empty)::before { content: "·"; margin-right: .6em; }
.next [data-next-count] { color: var(--accent); }
.on-bone .next .btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.on-bone .next .btn--accent:hover { background: #fff; border-color: #fff; }
.on-bone .next :focus-visible { outline-color: var(--accent); }
@media (min-width: 860px) { .next { grid-template-columns: auto 1fr auto; gap: clamp(1.5rem, 4vw, 3.5rem); } .next__date { flex-direction: column; align-items: flex-start; gap: .2rem; } }

.cal__bar { display: none; }
.js .cal__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.5rem; margin-bottom: 1.4rem; }
.cal__filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  min-height: 44px; padding: .45rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line-bone); background: transparent;
  font-weight: 600; font-size: .92rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1.5px solid var(--ink); }
.seg button { min-height: 40px; padding: 0 1.15rem; border: 0; border-radius: 999px; background: none; font-weight: 650; font-size: .92rem; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }

.cal__grid { margin-bottom: 1.25rem; padding: clamp(.85rem, 2.6vw, 1.75rem); border-radius: var(--r-lg); border: 1px solid var(--line-bone); background: rgba(255, 255, 255, .42); }
.cal__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(.9rem, 2.4vw, 1.5rem); }
.cal__title { font-family: var(--f-display); font-weight: 800; font-stretch: 66%; text-transform: uppercase; font-size: clamp(1.9rem, 6vw, 3.4rem); line-height: .95; }
.cal__title span, .cal__month span { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: normal; text-transform: none; color: var(--accent-deep); }
.cal__navs { display: flex; gap: .5rem; }
.cal__navbtn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); background: none; cursor: pointer; transition: background-color .2s, color .2s; }
.cal__navbtn:hover:not([disabled]) { background: var(--ink); color: var(--bone); }
.cal__navbtn[disabled] { opacity: .28; cursor: default; }
.cal__navbtn svg { width: 20px; height: 20px; }
.cal__dow, .cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow { padding-bottom: .5rem; text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-bone-mute); }
.cal__day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 0; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 12px; background: none;
  font-family: var(--f-display); font-weight: 700; font-stretch: 80%; font-size: 1.08rem; color: var(--on-bone-mute);
}
button.cal__day { cursor: pointer; color: var(--on-bone); background: rgba(19, 19, 20, .07); transition: background-color .2s, color .2s; }
button.cal__day:hover { background: rgba(19, 19, 20, .14); }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--accent-deep); }
button.cal__day.is-sel { background: var(--ink); color: var(--bone); }
.cal__dots { display: flex; gap: 3px; height: 6px; }
.cal__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-deep); }
.is-sel .cal__dots i { background: var(--accent); }
.cal__chip { display: none; }
@media (min-width: 820px) {
  .cal__dow, .cal__days { gap: 6px; }
  .cal__day { aspect-ratio: auto; min-height: 104px; align-items: stretch; justify-content: flex-start; padding: .55rem; font-size: 1.15rem; text-align: left; }
  .cal__dots { display: none; }
  .cal__chip {
    display: block; padding: .28rem .5rem; border-radius: 7px; background: var(--ink); color: var(--bone);
    font-family: var(--f-body); font-weight: 600; font-stretch: normal; font-size: .76rem; line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .is-sel .cal__chip { background: var(--accent); color: var(--ink); }
}
.cal__hint { margin-top: .9rem; font-size: .9rem; color: var(--on-bone-mute); }

.cal__month { margin-top: clamp(2rem, 5vw, 3rem); padding-bottom: .7rem; border-bottom: 1.5px solid var(--ink); font-family: var(--f-display); font-weight: 800; font-stretch: 68%; text-transform: uppercase; font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1; }
.cal__group:first-child .cal__month { margin-top: 0; }
.cal.is-month .cal__month { display: none; }
.cal__empty { padding: 1.5rem 0; font-size: 1.1rem; color: var(--on-bone-mute); }
.cal__sub { margin-top: 1.75rem; }
.is-out { display: none !important; }

.ev { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1.15rem; align-items: start; padding: 1.35rem 0; border-bottom: 1px solid var(--line-bone); scroll-margin-top: 110px; }
.ev__date { display: grid; gap: .12rem; width: 4.75rem; padding: .55rem .25rem .6rem; text-align: center; border: 1.5px solid var(--ink); border-radius: 14px; }
.ev__dow, .ev__mon { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ev__day { font-family: var(--f-display); font-weight: 800; font-stretch: 68%; font-size: 2.05rem; line-height: 1; }
.ev__date--wide .ev__day { font-size: 1.25rem; line-height: 1.5; }
.ev__date--wide .ev__dow { letter-spacing: .02em; font-size: .66rem; }
.ev__body { display: grid; gap: .3rem; min-width: 0; }
.ev__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { padding: .16rem .6rem; border-radius: 999px; border: 1px solid currentColor; font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.tag--warn { color: #7a4d00; background: rgba(224, 164, 59, .2); border-color: rgba(122, 77, 0, .45); }
.ev__title { font-family: var(--f-display); font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: clamp(1.45rem, 3.4vw, 2.15rem); line-height: 1; overflow-wrap: anywhere; }
.ev__meta { font-weight: 600; }
.ev__sum { color: var(--on-bone-mute); }
.ev__act { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .35rem; }
.ev.is-hit { background: rgba(10, 100, 112, .09); box-shadow: -12px 0 0 rgba(10, 100, 112, .09), 12px 0 0 rgba(10, 100, 112, .09); }
@media (min-width: 860px) {
  .ev { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem 1.75rem; }
  .ev__act { grid-column: 3; margin: 0; }
}
.evlist { margin-bottom: 2.75rem; border-top: 1.5px solid var(--ink); }
.evlist__more { padding-top: 1.25rem; }

/* ==========================================================================
   Staff page (add events)
   ========================================================================== */
.staff .form { margin-bottom: 1.25rem; }
.staff [hidden] { display: none !important; }
.field select {
  width: 100%; min-height: 54px; padding: .8rem 2.6rem .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line-bone);
  background: rgba(255, 255, 255, .5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23131314' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .9rem center / 18px;
  font: inherit; color: inherit; -webkit-appearance: none; appearance: none;
}
.field input[type="date"], .field input[type="time"] { -webkit-appearance: none; appearance: none; }
.field .opt { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--on-bone-mute); }
.check { display: flex; align-items: flex-start; gap: .7rem; min-height: 44px; padding: .5rem 0; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--accent-deep); }
.form__msg { min-height: 1.6em; font-weight: 600; color: var(--accent-deep); }
.form__msg.is-bad { color: #a12b1b; }
.notice { padding: 1rem 1.2rem; border-radius: var(--r); background: rgba(224, 164, 59, .2); border: 1px solid rgba(122, 77, 0, .35); font-weight: 550; }
.staff__who { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-bottom: 1.75rem; padding-bottom: 1.1rem; border-bottom: 1.5px solid var(--ink); }
.staff__who .tlink { background: none; border: 0; cursor: pointer; padding: 0; font: inherit; font-weight: 650; color: inherit; }
.staff__tabs { margin-bottom: 2rem; }
.staff__h { margin: 2.75rem 0 .5rem; padding-bottom: .7rem; border-bottom: 1.5px solid var(--ink); }
.srow { display: grid; gap: .8rem 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-bone); }
.srow__body { display: grid; gap: .25rem; min-width: 0; }
.srow__title { font-family: var(--f-display); font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: 1.4rem; line-height: 1.05; overflow-wrap: anywhere; }
.srow__when { font-weight: 600; color: var(--on-bone-mute); }
.srow__act { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (min-width: 720px) { .srow { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.ftr { background: var(--ink); color: var(--on-ink); border-top: 1px solid var(--line-ink); padding-top: clamp(3rem, 7vw, 5.5rem); overflow: clip; }
.ftr__grid { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .ftr__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.ftr h2 { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-ink-mute); margin-bottom: .9rem; }
.ftr ul { list-style: none; padding: 0; display: grid; gap: .1rem; }
.ftr a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.ftr a:hover { color: var(--accent); }
.ftr address { font-style: normal; display: grid; gap: .25rem; }
.ftr__tag { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; max-width: 12em; }
.ftr__word {
  margin-top: clamp(2.5rem, 6vw, 4.5rem); font-family: var(--f-display); font-weight: 800; font-stretch: 62%; text-transform: uppercase;
  font-size: 17.6vw; line-height: .78; letter-spacing: -.02em; white-space: nowrap; text-align: center; color: var(--ink-3); user-select: none;
}
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.4rem; font-size: .86rem; color: var(--on-ink-mute); border-top: 1px solid var(--line-ink); }

/* ==========================================================================
   Gentle reveals (enhancement only — content is visible without them)
   ========================================================================== */
.motion-ok .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s var(--ease); transition-delay: var(--d, 0s); }
.motion-ok .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
@media print {
  .hdr, .band, .skip, .ftr__word { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Photos — albums as photo books (src/gallery.js)
   Without the 3D scene (.is-plain, or no JavaScript) this is an ordinary page:
   a heading, a card per album, and every album's photos in a grid.
   ========================================================================== */
.gal__stage {
  position: relative; isolation: isolate; overflow-x: clip;
  background: radial-gradient(120% 85% at 50% 40%, #2a2a30 0%, #17171a 45%, var(--ink) 100%);
}
.gal__mast {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; display: grid; gap: 1.1rem;
  padding-top: clamp(140px, 22vh, 220px); padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.gal__h { font-size: clamp(3rem, 11.5vw, 8.5rem); }
.gal__lede { color: #d9d5cc; max-width: 34em; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.55; }
.gal__canvas, .gal__reader, .gal__bar, .gal__close, .gal__loading { display: none; }
.gal.is-empty .gal__some, .gal:not(.is-empty) .gal__none { display: none; }

/* the stage, once JavaScript is running and there are albums to show */
.js .gal:not(.is-empty):not(.is-plain) .gal__stage { height: 100vh; height: 100svh; min-height: 540px; max-height: 1200px; }
.js .gal:not(.is-empty):not(.is-plain) .gal__mast {
  position: absolute; z-index: 3; top: 88px; left: var(--gutter); right: var(--gutter); width: auto; margin: 0; padding: 0; gap: .45rem;
  pointer-events: none; transition: opacity .35s;
}
.js .gal:not(.is-empty):not(.is-plain) .gal__h { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-stretch: 72%; line-height: .98; }
.js .gal:not(.is-empty):not(.is-plain) .gal__lede { display: none; }
.js .gal:not(.is-empty):not(.is-plain) .gal__loading {
  display: block; position: absolute; inset: 0; margin: auto; height: 1.6em; text-align: center; z-index: 1;
  font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; color: var(--on-ink-mute); transition: opacity .4s;
}
.gal.is-3d .gal__loading { opacity: 0; }
.gal.is-3d .gal__canvas {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  animation: gal-in .7s var(--ease) both;
}
@keyframes gal-in { from { opacity: 0; } }
.gal__stage.is-dragging .gal__canvas { cursor: grabbing !important; }
.gal.is-3d .gal__reader {
  display: block; position: absolute; z-index: 2; opacity: 0; pointer-events: none; transition: opacity .22s;
}
.gal.is-3d .gal__reader.is-on { opacity: 1; pointer-events: auto; }
.gal__reader [data-leafthrough]:focus-visible { outline: none; }
.gal__stage.is-open .gal__mast { opacity: 0; }

.gal.is-3d .gal__bar {
  position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: max(clamp(.9rem, 3vh, 2rem), env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem;
}
.gal__arrow, .gal.is-3d .gal__close {
  display: inline-grid; place-items: center; min-width: 52px; height: 52px; border-radius: 999px; cursor: pointer;
  background: rgba(12, 12, 13, .55); border: 1.5px solid var(--line-ink); color: var(--on-ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.gal__arrow svg { width: 20px; height: 20px; }
.gal__arrow--prev svg { transform: scaleX(-1); }
.gal__arrow:hover:not(:disabled), .gal.is-3d .gal__close:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.gal__arrow:disabled { opacity: .28; cursor: default; }
.gal.is-3d .gal__close { position: absolute; z-index: 4; top: 84px; left: var(--gutter); padding: 0 1.3rem; font-weight: 650; font-size: .95rem; }
.gal.is-3d .gal__close[hidden] { display: none; }
.gal__cap {
  display: grid; justify-items: center; gap: .15rem; padding: .35rem .5rem; min-width: 0; text-align: center;
  background: none; border: 0; border-radius: 14px; cursor: pointer; color: var(--on-ink);
}
.gal__cap:disabled { cursor: default; color: var(--on-ink); }
.gal__when { font-family: var(--f-serif); font-style: italic; font-size: 1.1rem; line-height: 1.1; color: var(--accent); }
.gal__title {
  font-family: var(--f-display); font-weight: 800; font-stretch: 68%; text-transform: uppercase;
  font-size: clamp(1.55rem, 4.4vw, 2.7rem); line-height: .98; max-width: 100%; overflow-wrap: anywhere;
}
.gal__hint { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-mute); margin-top: .2rem; }
.gal__cap:not(:disabled):hover .gal__hint { color: var(--accent); }

/* album cards */
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; }
.pcard { display: grid; gap: .15rem; text-decoration: none; }
.pcard__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--bone-2); margin-bottom: .6rem; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__when { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; line-height: 1.2; color: var(--accent-deep); }
.pcard__title { font-family: var(--f-display); font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1; overflow-wrap: anywhere; }
.pcard__n { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-bone-mute); margin-top: .25rem; }

/* every album's photos, plainly — hidden while the 3D albums are running */
.gal.is-3d .palbums { display: none; }
.palbum { margin-top: clamp(3rem, 7vw, 5rem); padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1.5px solid var(--ink); scroll-margin-top: 96px; }
.palbum__head { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.pgrid { columns: 2; column-gap: .6rem; }
.pgrid li { break-inside: avoid; margin-bottom: .6rem; }
.pgrid a { display: block; border-radius: 10px; overflow: hidden; background: var(--bone-2); }
.pgrid img { width: 100%; }

@media (min-width: 700px) {
  .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
  .pgrid { columns: 3; column-gap: .9rem; }
  .pgrid li { margin-bottom: .9rem; }
}
@media (min-width: 1100px) {
  .pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pgrid { columns: 4; }
}
@media (max-width: 699px) {
  .gal.is-3d .gal__bar { gap: .35rem; left: 12px; right: 12px; }
  .gal__arrow { min-width: 46px; height: 46px; }
  .gal.is-3d .gal__close { top: 78px; left: 12px; height: 46px; }
}

/* Staff page → Photos */
.pthumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: 1rem; }
.pthumb { display: grid; gap: .45rem; align-content: start; padding: .5rem; border-radius: 14px; border: 1px solid var(--line-bone); background: rgba(255, 255, 255, .35); }
.pthumb.is-cover { border-color: var(--accent-deep); box-shadow: 0 0 0 1.5px var(--accent-deep); }
.pthumb__img { display: block; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--bone-2); }
.pthumb__img img { width: 100%; height: 100%; object-fit: cover; }
.pthumb input[type="text"] { width: 100%; min-height: 40px; padding: .35rem .55rem; border-radius: 8px; border: 1px solid var(--line-bone); background: #fff; font: inherit; font-size: .88rem; color: var(--on-bone); }
.pthumb__act { display: flex; flex-wrap: wrap; gap: .3rem; }
.pthumb__act button { min-height: 36px; padding: 0 .6rem; border-radius: 999px; border: 1px solid var(--line-bone); background: none; font-size: .8rem; font-weight: 650; cursor: pointer; }
.pthumb__act button:hover:not(:disabled) { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.pthumb__act button:disabled { opacity: .35; cursor: default; }
.pthumb__flag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.pdrop input[type="file"] { padding: .9rem; border: 1.5px dashed var(--line-bone); border-radius: var(--r); background: rgba(255, 255, 255, .35); width: 100%; min-height: 60px; font: inherit; }
