/* ===========================================================================
   The Potter's House Christian Church · Southend-on-Sea
   Brand: black ground, amber #FFA400, the red of the badge, and a warm paper
   tone for the footer, where the black logo sits.
   Motion: native scroll-driven animations where supported, with small JS
   fallbacks that land on the same resting state. Everything respects
   prefers-reduced-motion.
   =========================================================================== */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-var.woff2') format('woff2-variations'),
       url('../fonts/montserrat-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Spoodbrush';
  src: url('../fonts/spoodbrush.woff2') format('woff2');
  /* block, not swap: never show a stand-in script face first. The file is
     preloaded in every page's <head>, so the wait is a split second. */
  font-weight: 400; font-style: normal; font-display: block;
}

:root {
  --bg: #080706;
  --bg-2: #12100e;
  --bg-3: #1b1815;
  --surface: rgba(255, 255, 255, 0.05);
  --glass: rgba(18, 16, 14, 0.56);
  --hairline: rgba(255, 255, 255, 0.14);
  --hairline-2: rgba(255, 255, 255, 0.07);

  --fg: #f7f4f0;
  --fg-dim: #b3aca5;
  --fg-faint: #776f68;

  --paper: #f3eee7;
  --paper-2: #e9e2d8;
  --ink: #12100e;
  --ink-dim: #5d554e;

  --amber: #ffa400;
  --amber-glow: rgba(255, 164, 0, 0.28);
  --red: #a71718;

  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --display: var(--sans);
  --script: 'Spoodbrush', 'Brush Script MT', cursive;

  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.12rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.50vw, 1.55rem);
  --step-2:  clamp(1.60rem, 1.35rem + 1.20vw, 2.40rem);
  --step-3:  clamp(2.10rem, 1.55rem + 2.60vw, 3.80rem);
  --step-4:  clamp(2.30rem, 1.20rem + 5.40vw, 6.20rem);
  --step-5:  clamp(3.10rem, 1.00rem + 8.80vw, 8.80rem);

  --gutter: clamp(16px, 4vw, 56px);
  --measure: 62ch;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: clamp(20px, 2.4vw, 32px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: var(--step-0); font-weight: 400;
  line-height: 1.62; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
::selection { background: var(--amber); color: #000; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 6px; }

.skip {
  position: fixed; top: 0; left: 0; z-index: 999; transform: translateY(-120%);
  background: var(--amber); color: #000; padding: 0.8rem 1.4rem;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.skip:focus { transform: none; }

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

.shell { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: 980px; }
section { position: relative; }
.pad { padding-block: clamp(5rem, 10vw, 10rem); }
.pad-sm { padding-block: clamp(3rem, 6vw, 6rem); }
.center { text-align: center; }
.center .lede, .center .body { margin-inline: auto; }

/* ---------------------------------------------------------------- type */

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
.display { font-size: var(--step-4); font-weight: 800; line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-size: var(--step-3); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.025em; }

/* The brush face: one weight only, so never let the browser fake a bold
   (that smear is what read as "fuzzy"), and give its tall strokes room. */
.script, .stack__t, .foot__mark {
  font-family: var(--script); font-weight: 400; font-synthesis: none;
  letter-spacing: 0; line-height: 1.32; padding-block: 0.06em;
}
.script { color: var(--amber); }

.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--amber);
}
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--amber-glow); }
.kicker--plain::before { display: none; }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--fg-dim); font-weight: 400; max-width: 46ch; }
.body { color: var(--fg-dim); max-width: var(--measure); }
.body p + p { margin-top: 1.1rem; }

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

.btn {
  --btn-bg: var(--amber); --btn-fg: #000;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.9rem 1.7rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.84rem; font-weight: 700; letter-spacing: 0.01em;
  border: 0; border-radius: 6px; cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), color 0.3s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn svg { position: relative; z-index: 1; width: 16px; height: 16px; transition: transform 0.45s var(--ease); }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: #fff; transform: scale(0.2); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -16px var(--amber-glow); }
.btn:hover::before { transform: scale(1); opacity: 1; }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --btn-bg: rgba(255,255,255,0.08); --btn-fg: var(--fg); box-shadow: inset 0 0 0 1px var(--hairline); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { --btn-fg: #000; }
.btn--sm { min-height: 40px; padding: 0.6rem 1.15rem; font-size: 0.8rem; }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.center .btns, .btns--c { justify-content: center; }

.tlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.86rem; font-weight: 700; color: var(--amber);
  padding-bottom: 0.25rem; position: relative; width: fit-content;
}
.tlink::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0.35); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink svg { width: 15px; height: 15px; transition: transform 0.45s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- header: floating glass bar */

.head {
  position: fixed; inset: 0 0 auto; z-index: 900;
  padding-top: clamp(10px, 1.4vw, 18px);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}
.head.is-hidden { transform: translateY(-130%); }
.head__bar {
  pointer-events: auto;
  width: calc(100% - 2 * var(--gutter)); max-width: 1320px; margin-inline: auto;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0.45rem 0.45rem 0.45rem 0.7rem;
  border-radius: 14px;
  background: rgba(14, 12, 10, 0.38);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.head.is-scrolled .head__bar { background: rgba(14, 12, 10, 0.78); box-shadow: 0 18px 50px -24px rgba(0,0,0,0.8); }

.brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; min-width: 0; }
.brand img { width: 42px; height: 42px; flex: none; transition: transform 0.8s var(--ease); }
.brand:hover img { transform: rotate(-12deg); }
.brand b { display: block; font-size: 0.86rem; font-weight: 800; letter-spacing: 0.01em; line-height: 1.15; white-space: nowrap; }
.brand small { display: block; font-size: 0.56rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-faint); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav a, .more__btn {
  position: relative; display: inline-flex; align-items: center;
  padding: 0.55rem 0.95rem; border-radius: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--fg-dim);
  background: none; border: 0; cursor: pointer;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav a:hover, .more__btn:hover, .more:focus-within .more__btn { color: var(--fg); background: rgba(255,255,255,0.07); }
.nav a[aria-current="page"] { color: #000; background: var(--fg); }

.more { position: relative; }
.more__btn::after {
  content: ''; display: inline-block; margin-left: 7px; width: 5px; height: 5px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.more__panel {
  position: absolute; top: calc(100% + 14px); right: 0; min-width: 240px;
  background: rgba(18,16,14,0.96); border: 1px solid var(--hairline-2); border-radius: var(--r);
  padding: 0.45rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.more__panel::before { content: ''; position: absolute; inset: -16px 0 auto; height: 16px; }
.more:hover .more__panel, .more:focus-within .more__panel { opacity: 1; visibility: visible; transform: none; }
.more__panel a { display: block; padding: 0.62rem 0.9rem; border-radius: var(--r-sm); font-size: 0.84rem; color: var(--fg-dim); transition: color 0.25s, background-color 0.25s; }
.more__panel a:hover { color: var(--fg); background: var(--surface); }

.burger { display: none; width: 46px; height: 46px; position: relative; flex: none; background: rgba(255,255,255,0.08); border: 0; border-radius: 8px; cursor: pointer; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--fg); border-radius: 2px; transition: transform 0.45s var(--ease); }
.burger i:nth-child(1) { top: 19px; }
.burger i:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 890; background: var(--bg);
  padding: 6.6rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 1.4rem; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  visibility: hidden;
  transition: clip-path 0.75s var(--ease), visibility 0s linear 0.75s;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path 0.75s var(--ease); }
.drawer__links { display: grid; }
.drawer__links a {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: clamp(1.35rem, 5.4vw, 2.2rem); letter-spacing: -0.03em;
  padding-block: 0.32rem; border-bottom: 1px solid var(--hairline-2);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), color 0.3s;
  transition-delay: calc(var(--d, 0) * 40ms + 120ms);
}
.drawer__links a[aria-current="page"] { color: var(--amber); }
.drawer.is-open .drawer__links a { opacity: 1; transform: none; }
.drawer__info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem;
  padding: 1.3rem; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--hairline-2);
  font-size: 0.9rem;
}
.drawer__info dt { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.drawer__info dd { margin: 0.2rem 0 0; font-weight: 600; }
.drawer__info .btns { grid-column: 1 / -1; }

@media (max-width: 1080px) {
  .nav, .head__bar > .btn { display: none; }
  .burger { display: block; }
}
@media (min-width: 1081px) { .drawer { display: none; } }

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 950;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--amber), var(--red)); pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root block); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---------------------------------------------------------------- hero: video, centred */

.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  overflow: clip; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: #000; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 50%, rgba(8,7,6,0.7) 0%, rgba(8,7,6,0.38) 70%, rgba(8,7,6,0.1) 100%),
    linear-gradient(to bottom, rgba(8,7,6,0.55) 0%, rgba(8,7,6,0.10) 30%, rgba(8,7,6,0.25) 70%, var(--bg) 100%);
}
.hero__inner { padding-block: 8.5rem 6.5rem; display: grid; justify-items: center; }
.hero__title {
  font-size: var(--step-5); font-weight: 900; letter-spacing: -0.045em; line-height: 0.95;
  margin-top: 1.4rem; text-shadow: 0 6px 40px rgba(0,0,0,0.35);
}
.hero__title .script { display: inline-block; line-height: 1.3; font-size: 0.92em; margin-top: 0.04em; }
.hero__lede { margin-top: 1.6rem; max-width: 40ch; color: rgba(247,244,240,0.86); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; margin-top: 2rem; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 1rem; border-radius: 6px;
  background: var(--glass); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 0.84rem; font-weight: 600;
}
.chip b { color: var(--amber); font-weight: 700; }
a.chip { transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
a.chip:hover { background: rgba(255,164,0,0.18); border-color: rgba(255,164,0,0.5); }
.hero .btns { margin-top: 1.6rem; }

.scrollcue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.4);
}
.scrollcue::after {
  content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--amber); animation: cue 1.9s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }
@media (max-height: 700px) { .scrollcue { display: none; } }

/* Hero parallax: the film eases back and dims, the words drift up and away. */
@supports (animation-timeline: scroll()) {
  .hero__media { animation: heroFilm linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
  @keyframes heroFilm { to { transform: scale(1.12) translateY(8%); filter: brightness(0.55); } }
  .hero__inner { animation: heroText linear both; animation-timeline: scroll(root block); animation-range: 0 90vh; }
  @keyframes heroText { to { transform: translateY(-14vh); opacity: 0; } }
}

/* ---------------------------------------------------------------- reveals */

.reveal-lines .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0.26em 0.16em 0.34em; margin: -0.26em -0.16em -0.34em;
}
.reveal-lines .w > span {
  display: inline-block; transform: translateY(115%);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--l, 0) * 85ms);
}
.reveal-lines.is-in .w > span { transform: none; }
.reveal-lines.is-done .w { overflow: visible; }
.reveal-lines.is-done .w > span { transform: none; will-change: auto; }

[data-rise] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-rise].is-in { opacity: 1; transform: none; }

/* Words that light up as you read down the page. */
.highlight .hw { color: rgba(247,244,240,0.18); transition: color 0.45s var(--ease); }
.highlight .hw.is-lit { color: var(--fg); }
.highlight b .hw.is-lit { color: var(--amber); }

/* ---------------------------------------------------------------- photos */

.figure { position: relative; overflow: hidden; background: var(--bg-3); border-radius: var(--r-lg); isolation: isolate; }
.figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.figure.is-in img { transform: scale(1); }
/* Shown whole, never cropped: the frame takes the photo's own shape. */
.figure--native img { height: auto; }
@supports (animation-timeline: view()) {
  .figure--drift img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  /* app.js allows for exactly this zoom (1.08, ±2%) when it aims at faces */
  @keyframes drift { from { transform: scale(1.08) translateY(-2%); } to { transform: scale(1.08) translateY(2%); } }
}

/* Parallax: the whole frame moves against the text — nothing inside is
   cropped any further, so faces stay put. */
@supports (animation-timeline: view()) {
  .para { animation: para linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  @keyframes para { from { transform: translateY(var(--para, 60px)); } to { transform: translateY(calc(var(--para, 60px) * -1)); } }
}

/* Frames that open up as they arrive. */
@supports (animation-timeline: view()) {
  .unfold { animation: unfold linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes unfold { from { clip-path: inset(9% 7% round var(--r-lg)); } to { clip-path: inset(0 0 round var(--r-lg)); } }
}

/* ---------------------------------------------------------------- section heads */

.sec-head { display: grid; gap: 1.2rem; justify-items: center; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head .lede { margin-inline: auto; }
.sec-head--l { justify-items: start; text-align: left; }

/* ---------------------------------------------------------------- statement */

.statement { font-weight: 600; font-size: var(--step-3); line-height: 1.16; letter-spacing: -0.03em; max-width: 26ch; margin-inline: auto; text-align: center; text-wrap: pretty; }
.statement b { font-weight: 800; color: var(--amber); }

/* ---------------------------------------------------------------- stacking cards */

.stack { display: grid; gap: clamp(1.2rem, 3vw, 2rem); padding-bottom: 4vh; }
.stack__card {
  position: sticky; top: calc(6.5rem + var(--i, 0) * 1.4rem);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #1d1915 0%, #110f0d 100%);
  border: 1px solid var(--hairline-2);
  box-shadow: 0 -20px 60px -30px rgba(0,0,0,0.85);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--cover, 0) * 0.06));
  filter: brightness(calc(1 - var(--cover, 0) * 0.45));
  will-change: transform;
}
.stack__body { padding: clamp(0.6rem, 2vw, 1.6rem); display: grid; gap: 1rem; align-content: center; }
.stack__n { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hairline); font-weight: 700; font-size: 0.88rem; color: var(--amber); }
.stack__t { font-size: clamp(2.6rem, 5.4vw, 4.6rem); color: var(--fg); }
.stack__card .figure { aspect-ratio: 4 / 3; border-radius: calc(var(--r-lg) - 8px); }
@media (max-width: 860px) {
  .stack__card { grid-template-columns: 1fr; top: calc(5.4rem + var(--i, 0) * 0.9rem); min-height: 0; }
  .stack__card .figure { order: -1; }
}
@media (max-height: 620px) { .stack__card { position: relative; top: 0; transform: none; filter: none; } }

/* ---------------------------------------------------------------- pinned horizontal gallery */

.hpin { position: relative; }
.hpin__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 100%); align-content: center; gap: 2rem; overflow: clip; }
.hpin__track { display: flex; gap: clamp(0.8rem, 1.6vw, 1.4rem); width: max-content; padding-inline: var(--gutter); will-change: transform; }
.hpin__item { position: relative; flex: none; height: min(62vh, 580px); }
.hpin__item .figure { height: 100%; }
.hpin__item .figure img { height: 100%; width: auto; }
.hpin__cap {
  position: absolute; left: 0.8rem; bottom: 0.8rem; z-index: 2;
  padding: 0.35rem 0.8rem; border-radius: 6px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 0.74rem; font-weight: 600;
}
.hpin__bar { width: min(240px, 50vw); height: 3px; border-radius: 3px; background: var(--hairline-2); margin-inline: auto; overflow: hidden; }
.hpin__bar i { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(var(--p, 0)); }
/* Phones: a plain swipeable row is easier than a pinned scroll. */
@media (max-width: 860px), (max-height: 560px) {
  .hpin { height: auto !important; }
  .hpin__sticky { position: static; height: auto; overflow: visible; }
  .hpin__track {
    width: auto; transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); padding-bottom: 0.6rem; scrollbar-width: none;
  }
  .hpin__track::-webkit-scrollbar { display: none; }
  .hpin__item { height: min(72vw, 420px); scroll-snap-align: start; }
  .hpin__bar { display: none; }
}

/* ---------------------------------------------------------------- split */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--wide-r { grid-template-columns: 1fr 1.2fr; }
.split .figure { aspect-ratio: 4 / 5; }
.split .figure--wide { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .split, .split--wide-r { grid-template-columns: 1fr; gap: 2.2rem; } .split .figure { aspect-ratio: 4 / 3; } }

/* ---------------------------------------------------------------- bento: find your way */

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: clamp(0.7rem, 1.4vw, 1.1rem); }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.4rem;
  padding: clamp(1.2rem, 2.2vw, 1.8rem);
  border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--hairline-2);
  transition: transform 0.6s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.tile:hover { transform: translateY(-4px); border-color: rgba(255,164,0,0.45); }
.tile h3 { font-size: var(--step-1); font-weight: 800; letter-spacing: -0.02em; }
.tile p { font-size: 0.9rem; color: var(--fg-dim); max-width: 34ch; }
.tile__go {
  position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 8px;
  display: grid; place-items: center; background: rgba(255,255,255,0.08);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.6s var(--ease);
}
.tile__go svg { width: 16px; height: 16px; transform: rotate(-45deg); }
.tile:hover .tile__go { background: var(--amber); color: #000; transform: rotate(45deg); }
.tile--photo { min-height: 340px; border: 0; }
.tile--photo .figure { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.tile--photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,7,6,0.92) 0%, rgba(8,7,6,0.35) 50%, rgba(8,7,6,0.05) 100%); }
.tile--photo p { color: rgba(247,244,240,0.82); }
.tile--photo:hover .figure img { transform: scale(1.05); }
.tile--amber { background: var(--amber); color: #000; border: 0; }
.tile--amber p { color: rgba(0,0,0,0.72); }
.tile--amber .tile__go { background: rgba(0,0,0,0.1); }
.tile--amber:hover .tile__go { background: #000; color: var(--amber); }
.span-2 { grid-column: span 2; }
.row-2 { grid-row: span 2; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } .row-2 { grid-row: auto; } .tile--photo { min-height: 300px; } }

/* ---------------------------------------------------------------- visit card */

.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(0.7rem, 1.4vw, 1.1rem); }
.visit__main, .visit__side { border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 3.2rem); }
.visit__main { background: var(--paper); color: var(--ink); display: grid; gap: 1.4rem; align-content: start; }
.visit__main .kicker { color: #b56f00; }
.visit__main .kicker::before { box-shadow: 0 0 0 4px rgba(181,111,0,0.15); }
.visit__main .body { color: var(--ink-dim); }
.visit__main .btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.2); }
.visit__main .btn--ghost::before { background: var(--ink); }
.visit__main .btn--ghost:hover { --btn-fg: var(--paper); }
.visit__side { background: var(--bg-2); border: 1px solid var(--hairline-2); }
.times { display: grid; gap: 0; margin: 0; }
.times > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 1.05rem; border-bottom: 1px solid var(--hairline-2); }
.times > div:first-child { padding-top: 0; }
.times dt { font-weight: 700; }
.times dd { margin: 0; color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.times small { display: block; color: var(--fg-faint); font-weight: 500; font-size: 0.8rem; }
.pc { font-weight: 900; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 0.95; letter-spacing: -0.045em; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- CTA band */

.cta { position: relative; padding-block: 0; }
.cta__frame { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: min(86vh, 760px); display: grid; place-items: center; isolation: isolate; }
.cta__frame .figure { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.cta__frame::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 80% at 50% 50%, rgba(8,7,6,0.62) 0%, rgba(8,7,6,0.82) 70%); }
.cta__inner { text-align: center; padding: 4rem var(--gutter); }

/* ---------------------------------------------------------------- page head (inner pages) */

.phead { padding-top: clamp(8.5rem, 18vh, 12rem); padding-bottom: clamp(2.2rem, 5vw, 4rem); }
.phead__t { font-size: var(--step-4); margin-top: 1.4rem; }
.phead .lede { margin-top: 1.6rem; }
.phead__media { margin-top: clamp(2.5rem, 5vw, 4rem); }
.phead__media .figure { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .phead__media .figure { aspect-ratio: 4 / 3; } }

/* ---------------------------------------------------------------- cards / lists */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.7rem, 1.4vw, 1.1rem); }
.card {
  position: relative; display: grid; gap: 0.9rem; align-content: start;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--hairline-2);
  transition: transform 0.6s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,164,0,0.4); }
.card h3 { font-size: var(--step-1); font-weight: 800; letter-spacing: -0.02em; }
.card p { color: var(--fg-dim); font-size: 0.94rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.list { display: grid; gap: 0.7rem; }
.list__item {
  display: grid; grid-template-columns: 64px 1fr; gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--hairline-2);
}
.list__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,164,0,0.12); color: var(--amber); font-weight: 800; font-size: 0.9rem; }
.list__item h3 { font-size: var(--step-1); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 0.6rem; }
.list__item p { color: var(--fg-dim); font-size: 0.96rem; max-width: 66ch; }
.list__item p + p { margin-top: 0.8rem; }
@media (max-width: 680px) { .list__item { grid-template-columns: 1fr; gap: 0.9rem; } }

/* Q&A that opens and closes (Baptism) */
.faq { display: grid; gap: 0.7rem; }
.faq details { border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--hairline-2); transition: border-color 0.4s var(--ease); }
.faq details[open] { border-color: rgba(255,164,0,0.4); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 1.5rem) clamp(1.2rem, 2.6vw, 1.8rem);
  font-weight: 800; font-size: var(--step-1); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; margin-left: auto; flex: none; width: 38px; height: 38px; border-radius: 8px;
  display: grid; place-items: center; background: rgba(255,255,255,0.07); color: var(--amber);
  font-size: 1.3rem; font-weight: 500; transition: transform 0.45s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 clamp(1.2rem, 2.6vw, 1.8rem) clamp(1.2rem, 2.6vw, 1.8rem); color: var(--fg-dim); max-width: 70ch; }
.faq .faq__a p + p { margin-top: 0.8rem; }

/* sticky index for long lists */
.index { position: sticky; top: 22vh; display: grid; gap: 0.15rem; align-content: start; }
.index a { font-size: 0.82rem; color: var(--fg-faint); padding: 0.38rem 0.9rem; border-radius: 6px; transition: color 0.3s, background-color 0.3s; }
.index a:hover { color: var(--fg-dim); }
.index a.is-active { color: #000; background: var(--amber); }
.withindex { display: grid; grid-template-columns: 210px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .withindex { grid-template-columns: 1fr; } .index { display: none; } }

/* ---------------------------------------------------------------- forms */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: clamp(1.4rem, 3.5vw, 2.6rem); border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--hairline-2); }
.field { display: grid; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 600; color: var(--fg-dim); }
.field input, .field textarea {
  font: inherit; font-size: 0.98rem; color: var(--fg);
  background: rgba(255,255,255,0.04); border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: 0.85rem 1rem; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: rgba(255,255,255,0.06); }
.field textarea { min-height: 150px; resize: vertical; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; font-size: 0.86rem; color: var(--fg-dim); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0.1rem 0 0; border-radius: 6px; border: 1.5px solid var(--hairline); background: rgba(255,255,255,0.04); display: grid; place-items: center; cursor: pointer; transition: background-color 0.25s, border-color 0.25s; }
.consent input::after { content: ''; width: 6px; height: 11px; border: solid #000; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg) scale(0); transition: transform 0.25s var(--ease); }
.consent input:checked { background: var(--amber); border-color: var(--amber); }
.consent input:checked::after { transform: translateY(-1px) rotate(45deg) scale(1); }
.consent a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.form__note { grid-column: 1 / -1; font-size: 0.8rem; color: var(--fg-faint); }
.form__note a { color: var(--fg-dim); text-decoration: underline; text-underline-offset: 3px; }
.sent { grid-column: 1 / -1; display: none; border-radius: var(--r-sm); padding: 0.9rem 1.2rem; background: rgba(255,164,0,0.12); border: 1px solid rgba(255,164,0,0.35); font-size: 0.92rem; }
.sent.is-shown { display: block; }
@media (max-width: 680px) { .form { grid-template-columns: 1fr; } }

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

.rows { display: grid; gap: 0; margin: 0; }
.rows > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-block: 0.95rem; border-bottom: 1px solid var(--hairline-2); }
.rows dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); padding-top: 0.25rem; }
.rows dd { margin: 0; font-weight: 600; }
.rows a:hover { color: var(--amber); }
@media (max-width: 480px) { .rows > div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------------------------------------------------------------- link grid */

.linkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.linkgrid a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--hairline-2);
  font-size: 0.94rem; font-weight: 600; color: var(--fg-dim);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.linkgrid a svg { width: 15px; height: 15px; color: var(--amber); transition: transform 0.35s var(--ease); }
.linkgrid a:hover { color: var(--fg); border-color: rgba(255,164,0,0.4); }
.linkgrid a:hover svg { transform: translateX(4px); }
@media (max-width: 900px) { .linkgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .linkgrid { grid-template-columns: 1fr; } }

.photo-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.7rem, 1.4vw, 1.1rem); align-items: start; }
.photo-trio .figure { aspect-ratio: 4 / 5; }
.photo-trio > :nth-child(2) { margin-top: clamp(0px, 4vw, 4rem); }
@media (max-width: 760px) { .photo-trio { grid-template-columns: 1fr; } .photo-trio > :nth-child(2) { margin-top: 0; } }

/* ---------------------------------------------------------------- prose / policy pages */

.toc { padding: 1.4rem 1.6rem; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--hairline-2); margin-bottom: clamp(2rem, 4vw, 3rem); }
.toc h2 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.9rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.toc li { color: var(--fg-faint); font-size: 0.92rem; }
.toc a { color: var(--fg-dim); transition: color 0.3s; }
.toc a:hover { color: var(--amber); }

.prose { color: var(--fg-dim); }
.prose h2 { font-weight: 800; font-size: var(--step-2); letter-spacing: -0.025em; color: var(--fg); margin: clamp(2.4rem, 5vw, 3.4rem) 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1rem; font-weight: 700; color: var(--fg); margin: 1.8rem 0 0.6rem; }
.prose p { margin-bottom: 1.05rem; font-size: 0.98rem; }
.prose ul, .prose ol { margin: 0 0 1.4rem; padding-left: 0; list-style: none; display: grid; gap: 0.7rem; }
.prose li { position: relative; padding-left: 1.6rem; font-size: 0.98rem; }
.prose ul > li::before { content: ''; position: absolute; left: 0.2rem; top: 0.66em; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: 0; color: var(--amber); font-size: 0.86rem; font-weight: 700; }
.prose a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--fg); }
.prose .sig { margin-top: 2.4rem; color: var(--fg); font-weight: 600; }
.prose .sig span { display: block; color: var(--fg-faint); font-weight: 400; font-size: 0.9rem; margin-top: 0.2rem; }
.prose .updated { font-size: 0.84rem; color: var(--fg-faint); }
.prose, .toc { max-width: 76ch; }

/* ---------------------------------------------------------------- footer (paper, black logo) */

.foot { background: var(--paper); color: var(--ink); border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: clamp(3rem, 6vw, 6rem); }
.foot__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid rgba(0,0,0,0.1); }
.foot__mark { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--ink); line-height: 1.2; }
.foot__brand { display: flex; align-items: center; gap: 1rem; }
.foot__brand img { width: 64px; height: 64px; }
.foot__top { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: clamp(1.6rem, 4vw, 3rem); padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.foot h4 { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #9a5d00; margin-bottom: 1.1rem; }
.foot a, .foot p { display: block; font-size: 0.9rem; color: var(--ink-dim); margin-bottom: 0.6rem; transition: color 0.3s; }
.foot a:hover { color: var(--ink); }
.foot .btn { display: inline-flex; margin: 0; color: #000; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.2rem; padding-block: 1.4rem 1.8rem; border-top: 1px solid rgba(0,0,0,0.1); font-size: 0.76rem; color: var(--ink-dim); }
.foot__bottom a { display: inline; margin: 0; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.foot__legal a { text-decoration: none; }
.foot__legal a:hover { text-decoration: underline; }
.foot__by a { color: var(--ink); font-weight: 700; }
@media (max-width: 1100px) { .foot__top { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px)  { .foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px)  { .foot__top { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- cookie notice */

.notice {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 880;
  width: min(420px, calc(100% - 2 * var(--gutter)));
  display: grid; gap: 0.9rem; padding: 1.1rem 1.2rem;
  border-radius: var(--r); background: rgba(18,16,14,0.94); border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 0.84rem; color: var(--fg-dim);
  transform: translateY(140%); transition: transform 0.7s var(--ease);
}
.notice.is-shown { transform: none; }
.notice b { color: var(--fg); }
.notice a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.notice .btns { gap: 0.5rem; }

/* ---------------------------------------------------------------- motion off */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; }
  .reveal-lines .w > span, [data-rise] { opacity: 1 !important; transform: none !important; }
  .figure img { transform: none !important; }
  .stack__card { transform: none !important; filter: none !important; }
  .highlight .hw { color: var(--fg) !important; }
  .highlight b .hw { color: var(--amber) !important; }
  .hpin { height: auto !important; }
  .hpin__sticky { position: static; height: auto; }
  .hpin__track { transform: none !important; width: auto; overflow-x: auto; }
}
.prose code { font-size: 0.88em; padding: 0.1em 0.4em; border-radius: 6px; background: rgba(255,255,255,0.07); color: var(--fg); }
.notice[hidden] { display: none; }
@media (max-width: 560px) { .bento { grid-auto-rows: auto; } .tile:not(.tile--photo) { min-height: 150px; } }
.split > *, .form > * { min-width: 0; }
.field input, .field textarea { width: 100%; min-width: 0; }

/* Small yellow labels removed at the client's request: the ones that remain
   as labels are quiet, and yellow is kept for things you can act on. */
.chip b { color: var(--fg-dim); font-weight: 600; }
.drawer__info dt { color: var(--fg-faint); }
.toc h2 { color: var(--fg); }
.foot h4 { color: var(--ink); }
.card p b { color: var(--fg); font-weight: 700; }

/* Spam protection: a field people never see, so only bots fill it in. */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__err { grid-column: 1 / -1; border-radius: var(--r-sm); padding: 0.9rem 1.2rem; background: rgba(167,23,24,0.16); border: 1px solid rgba(167,23,24,0.5); font-size: 0.92rem; }
.form__err[hidden] { display: none; }
.tile--photo .tile__go { background: rgba(8,7,6,0.55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* The brush lettering fades in once its font has arrived, rather than
   popping in (or showing a stand-in face first). */
.script, .stack__t, .foot__mark { transition: opacity 0.6s var(--ease); }
.js-fonts:not(.script-ready) .script,
.js-fonts:not(.script-ready) .stack__t,
.js-fonts:not(.script-ready) .foot__mark { opacity: 0; }
