/* =========================================================
   Rev'd Gerald Gyane — editorial site system
   Tokens, primitives, nav, footer, mantra closer
   ========================================================= */

:root {
  --bg:         oklch(98% 0.005 80);
  --surface:    oklch(100% 0.002 80);
  --fg:         oklch(18% 0.015 70);
  --muted:      oklch(45% 0.015 70);
  --faint:      oklch(62% 0.012 70);
  --rule:       oklch(86% 0.010 80);
  --rule-soft:  oklch(92% 0.008 80);
  --accent:     oklch(42% 0.14 28);
  --accent-ink: oklch(36% 0.13 28);
  --accent-bg:  oklch(95% 0.025 28);
  --dark:       oklch(15% 0.012 70);
  --dark-fg:    oklch(96% 0.005 80);

  --font-display: 'Iowan Old Style', 'Charter', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', 'IBM Plex Mono', Menlo, monospace;

  --max:        1320px;
  --gutter:     clamp(20px, 4vw, 56px);
  --section-y:  clamp(64px, 9vw, 128px);

  --ease:       cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: oldstyle-nums proportional-nums;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Typography ----------------------------------------------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--fg);
  margin: 0;
}
h1 { font-size: clamp(44px, 6.4vw, 96px); }
h2 { font-size: clamp(32px, 4.4vw, 64px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; }

p { margin: 0 0 1em; max-width: 65ch; }
p:last-child { margin-bottom: 0; }

.kicker, .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.kicker--muted { color: var(--muted); }

.lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 28ch;
}

.body-prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  max-width: 62ch;
}
.body-prose p + p { margin-top: 1em; }

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
  border-top: 1px solid var(--accent);
  padding-top: 18px;
  max-width: 30ch;
}

/* Layout primitives --------------------------------------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.section--dark {
  background: var(--dark);
  color: var(--dark-fg);
}
.section--dark .kicker { color: oklch(78% 0.08 28); }
.section--dark h2, .section--dark h3, .section--dark p { color: var(--dark-fg); }

.rule { border: 0; height: 1px; background: var(--rule); margin: 0; }
.rule--soft { background: var(--rule-soft); }

/* Magazine grid: 12-col responsive ------------------------ */
.mag {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(28px, 4vw, 56px);
}
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }
.col-start-2 { grid-column-start: 2; }
.col-start-3 { grid-column-start: 3; }
.col-start-4 { grid-column-start: 4; }

/* Nav ----------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
  background: color-mix(in oklch, var(--bg) 96%, transparent);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.brand__mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  transition: color .15s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a.is-active {
  color: var(--fg);
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}

.nav__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--fg);
  padding: 10px 16px;
  background: transparent;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav__cta:hover { background: var(--fg); color: var(--bg); }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  background: transparent;
  position: relative;
  padding: 0;
}
.nav__burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1px;
  background: var(--fg);
  transition: transform .2s var(--ease), opacity .2s var(--ease), top .2s var(--ease);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 26px; }
.nav.is-open .nav__burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav__drawer {
  display: none;
}

@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__drawer {
    display: block;
    position: fixed;
    top: 65px;
    left: 0; right: 0; bottom: 0;
    background: var(--bg);
    border-top: 1px solid var(--rule);
    padding: 40px var(--gutter) 60px;
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s var(--ease);
    z-index: 49;
  }
  .nav.is-open .nav__drawer {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__drawer ol {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .nav__drawer ol a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: -0.01em;
  }
  .nav__drawer ol a span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--accent);
  }
  .nav__drawer .drawer-cta {
    display: inline-block;
    margin-top: 28px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border: 1px solid var(--fg);
    padding: 14px 22px;
  }
}

/* Hero ----------------------------------------------------- */
.hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
}
.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(36px, 5vw, 64px);
}

/* Numbered section header --------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
  padding-bottom: 28px;
  margin-bottom: clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.section-head__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--accent);
}
.section-head__kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(34px, 4.4vw, 64px); }

@media (max-width: 640px) {
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .section-head__num { color: var(--accent); }
}

/* Portrait placeholder ------------------------------------ */
.portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(180deg, oklch(88% 0.025 60), oklch(74% 0.05 50) 60%, oklch(58% 0.08 40));
  border: 1px solid var(--rule);
  overflow: hidden;
}
.portrait--wide { aspect-ratio: 16 / 9; background: linear-gradient(135deg, oklch(86% 0.02 70), oklch(64% 0.05 40)); }
.portrait--square { aspect-ratio: 1 / 1; }
.portrait__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.32);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.2);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 30% 25%, rgba(255,255,255,0.10), transparent 70%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.02) 0 2px, transparent 2px 6px);
  pointer-events: none;
  z-index: 2;
}
.portrait > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform 800ms cubic-bezier(.2,.7,.2,1), filter 600ms ease;
}
.portrait__label { z-index: 3; }

/* Buttons + links ----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--fg);
  color: var(--fg);
  background: transparent;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn--accent {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--accent:hover { background: var(--accent); color: var(--bg); }
.btn--filled {
  background: var(--fg);
  color: var(--bg);
}
.btn--filled:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Cards / feature rows ----------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.feature__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  padding-top: 4px;
}
.feature__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.01em;
}
.feature__sub {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
  max-width: 56ch;
}
.feature__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature:hover { background: color-mix(in oklch, var(--accent-bg) 50%, transparent); }
@media (max-width: 720px) {
  .feature { grid-template-columns: 60px 1fr; }
  .feature__link { grid-column: 2; padding-top: 10px; }
}

/* Sermon / item list -------------------------------------- */
.itemlist { list-style: none; margin: 0; padding: 0; }
.item {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 130px;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.item__date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.item__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.7vw, 24px);
  letter-spacing: -0.01em;
  color: var(--fg);
}
.item__series {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.item__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fg);
  text-transform: uppercase;
  justify-self: end;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
}
@media (max-width: 820px) {
  .item { grid-template-columns: 90px 1fr; }
  .item__series { grid-column: 2; }
  .item__cta { grid-column: 2; justify-self: start; }
}

/* Mantra closer ------------------------------------------- */
.mantra {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(60% 80% at 50% 30%, color-mix(in oklch, var(--accent-bg) 70%, transparent), transparent 70%);
}
.mantra__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.mantra__line {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 96px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.mantra__line span {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 10px;
}
.mantra__cta {
  display: inline-flex;
  margin-top: 36px;
  gap: 18px;
}

/* Forms --------------------------------------------------- */
.form {
  display: grid;
  gap: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
}
.field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__label .req { color: var(--accent); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--fg);
  background: transparent;
  border: 0;
  padding: 4px 0 6px;
  width: 100%;
  outline: none;
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder, .field select { color: var(--faint); }
.field select { font-family: var(--font-body); appearance: none; background: transparent; }
.field.is-focused { border-bottom-color: var(--accent); }
.field.is-error { border-bottom-color: var(--accent); }
.field__error {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: none;
  margin-top: 4px;
}
.field.is-error .field__error { display: block; }

.form__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.form__status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 16px;
}
.form__status.is-success { color: var(--accent); }
.form__status.is-error { color: var(--accent); }

/* Footer -------------------------------------------------- */
.footer {
  background: var(--bg);
  padding: clamp(48px, 7vw, 88px) 0 28px;
  border-top: 1px solid var(--rule);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: flex-start;
}
.footer__mark {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
}
.footer__mark .mono {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer__meta {
  display: grid;
  gap: 22px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  min-width: 220px;
}
.footer__meta h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 6px;
  font-weight: 500;
}
.footer__meta a:hover { color: var(--fg); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__meta { text-align: left; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Responsive grid collapse -------------------------------- */
@media (max-width: 960px) {
  .col-md-12 { grid-column: span 12 !important; grid-column-start: auto !important; }
  .col-md-6 { grid-column: span 6 !important; grid-column-start: auto !important; }
  .col-md-4 { grid-column: span 4 !important; grid-column-start: auto !important; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .col-sm-12 { grid-column: span 12 !important; grid-column-start: auto !important; }
  .item { grid-template-columns: 1fr; }
  .item__date { grid-column: 1; }
}

/* =========================================================
   Motion system — reveals, parallax, marquee, drift
   ========================================================= */

/* Scroll-reveal: hidden until JS opts an element into .is-in.
   Variants change the entry transform. Stagger via --d. */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms var(--ease),
    transform 1000ms var(--ease),
    filter 900ms var(--ease);
  transition-delay: var(--d, 0ms);
  filter: blur(2px);
  will-change: transform, opacity;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal="rise"] { transform: translateY(40px); }
[data-reveal].is-in[data-reveal] { transform: none; }

/* Parallax: JS writes --p (range roughly -1 .. 1) to drift y on portrait */
[data-parallax] {
  --p: 0;
  transform: translate3d(0, calc(var(--p) * 24px), 0);
  transition: transform 120ms linear;
  will-change: transform;
}

/* Continuous drift for accent portraits ------------------ */
@keyframes drift-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes accent-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes kicker-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes mantra-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 32px color-mix(in oklch, var(--accent) 30%, transparent); }
}

.drift { animation: drift-soft 6s ease-in-out infinite; }
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  animation: kicker-blink 1.6s ease-in-out infinite;
  vertical-align: middle;
}

/* Headline letter reveal --------------------------------- */
.split-line { display: inline-block; overflow: hidden; vertical-align: top; }
.split-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 900ms var(--ease), opacity 700ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.split.is-in .split-word { transform: translateY(0); opacity: 1; }

/* Image components --------------------------------------- */

/* Tall narrow portrait variant */
.portrait--tall { aspect-ratio: 3 / 5; }
.portrait--story { aspect-ratio: 5 / 7; }
.portrait--banner { aspect-ratio: 21 / 9; }

/* Decorative gradient variants so the placeholder rooms feel
   distinct rather than identical. */
.portrait.ph-1 { background: linear-gradient(180deg, oklch(88% 0.025 60), oklch(74% 0.05 50) 60%, oklch(56% 0.08 38)); }
.portrait.ph-2 { background: linear-gradient(135deg, oklch(86% 0.02 70), oklch(64% 0.05 40)); }
.portrait.ph-3 { background: linear-gradient(160deg, oklch(82% 0.03 50), oklch(48% 0.10 30)); }
.portrait.ph-4 { background: linear-gradient(200deg, oklch(78% 0.04 65), oklch(38% 0.10 28)); }
.portrait.ph-5 { background: linear-gradient(220deg, oklch(72% 0.06 50), oklch(28% 0.06 30)); }
.portrait.ph-6 { background: linear-gradient(180deg, oklch(90% 0.02 80), oklch(60% 0.07 35)); }
.portrait.ph-dark { background: linear-gradient(180deg, oklch(28% 0.02 40), oklch(14% 0.012 40)); }

/* Hoverable image card with zoom + caption rise */
.imgcard {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.imgcard .portrait {
  transition: transform 900ms var(--ease), filter 700ms var(--ease);
}
.imgcard:hover .portrait { transform: scale(1.04); filter: saturate(115%); }
.imgcard .imgcard__cap {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.imgcard:hover .imgcard__cap { opacity: 1; transform: translateY(0); }

/* Full-bleed photo strip */
.photostrip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
}
.photostrip__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
}
.photostrip__cell { position: relative; overflow: hidden; }
.photostrip__cell .portrait {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  border: 0;
  transition: transform 1200ms var(--ease);
}
.photostrip__cell .portrait img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.photostrip__cell--portrait-23 .portrait { aspect-ratio: 2 / 3; }
.photostrip__cell--portrait-45 .portrait { aspect-ratio: 4 / 5; }
.photostrip__cell--landscape-32 .portrait { aspect-ratio: 3 / 2; }
.photostrip__cell:hover .portrait { transform: scale(1.05); }
.photostrip__cell + .photostrip__cell { border-left: 1px solid var(--rule); }
@media (max-width: 880px) {
  .photostrip__row { grid-template-columns: 1fr 1fr; }
  .photostrip__cell + .photostrip__cell { border-left: 0; }
  .photostrip__cell:nth-child(odd) { border-right: 1px solid var(--rule); }
  .photostrip__cell:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* Image mosaic — magazine-style asymmetric grid */
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(140px, 12vw, 180px);
  gap: clamp(12px, 1.4vw, 20px);
}
.mosaic > * { position: relative; overflow: hidden; }
.mosaic > * .portrait { aspect-ratio: auto; position: absolute; inset: 0; }
.mosaic .m-a { grid-column: span 4; grid-row: span 3; }
.mosaic .m-b { grid-column: span 2; grid-row: span 2; }
.mosaic .m-c { grid-column: span 2; grid-row: span 1; }
.mosaic .m-d { grid-column: span 3; grid-row: span 2; }
.mosaic .m-e { grid-column: span 3; grid-row: span 2; }
@media (max-width: 880px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .mosaic .m-a { grid-column: span 2; grid-row: span 2; }
  .mosaic .m-b, .mosaic .m-c, .mosaic .m-d, .mosaic .m-e { grid-column: span 1; grid-row: span 1; }
}

/* Portrait quartet — four equal columns, per-card aspect ratios match source photos so nothing crops */
.portrait-quartet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1vw, 18px);
  align-items: start;
}
.portrait-quartet .imgcard {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.portrait-quartet .imgcard--portrait-23 { aspect-ratio: 2 / 3; }
.portrait-quartet .imgcard--portrait-45 { aspect-ratio: 4 / 5; }
.portrait-quartet .imgcard--landscape-32 { aspect-ratio: 3 / 2; }
.portrait-quartet .imgcard .portrait {
  position: absolute; inset: 0; aspect-ratio: auto; border: 0;
  filter: grayscale(85%) brightness(0.78) contrast(0.95);
  opacity: 0.62;
  transform: scale(1.02);
  transition: filter 700ms var(--ease), opacity 700ms var(--ease), transform 1200ms var(--ease);
}
.portrait-quartet .imgcard .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-quartet .imgcard:hover .portrait,
.portrait-quartet .imgcard:focus-visible .portrait {
  filter: grayscale(0%) brightness(1) contrast(1);
  opacity: 1;
  transform: scale(1.05);
}
.portrait-quartet .imgcard__cap {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--bg);
  opacity: 0; transform: translateY(10px);
  transition: opacity 400ms var(--ease) 80ms, transform 400ms var(--ease) 80ms;
  z-index: 3;
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.portrait-quartet .imgcard:hover .imgcard__cap,
.portrait-quartet .imgcard:focus-visible .imgcard__cap { opacity: 1; transform: translateY(0); }
.portrait-quartet .imgcard::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 45%);
  opacity: 0; transition: opacity 500ms var(--ease);
}
.portrait-quartet .imgcard:hover::after,
.portrait-quartet .imgcard:focus-visible::after { opacity: 1; }
@media (max-width: 880px) {
  .portrait-quartet { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-quartet .imgcard .portrait { transition: filter 200ms linear, opacity 200ms linear; transform: none !important; }
}

/* Marquee venue ribbon */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 22px 0;
  background: var(--surface);
}
.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-slide 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 0 36px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: -0.015em;
  color: var(--fg);
  white-space: nowrap;
}
.marquee__item::after {
  content: "✦";
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  transform: translateY(-4px);
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Feature row hover lift -------------------------------- */
.feature {
  transition: background .25s var(--ease), padding-left .25s var(--ease);
  position: relative;
}
.feature::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.feature:hover { padding-left: 16px; }
.feature:hover::before { width: 12px; }
.feature__link {
  transition: color .2s var(--ease), letter-spacing .2s var(--ease);
}
.feature:hover .feature__link { color: var(--fg); letter-spacing: 0.26em; }

/* Button arrow micro-motion ----------------------------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "→";
  display: inline-block;
  margin-left: 4px;
  transform: translateX(-2px);
  opacity: 0.6;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.btn:hover::after { transform: translateX(4px); opacity: 1; }

/* Nav link underline grow ------------------------------- */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: auto; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__links a.is-active::after { width: 100%; }

/* Mantra continuous glow --------------------------------- */
.mantra__line span {
  animation: mantra-glow 4s ease-in-out infinite;
  display: inline-block;
}

/* Accent ruler that draws on reveal --------------------- */
.accent-rule {
  display: block;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1100ms var(--ease);
  transition-delay: var(--d, 200ms);
}
.is-in .accent-rule,
.accent-rule.is-in { transform: scaleX(1); }

/* Magazine pull-quote with shaded backdrop -------------- */
.spread {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: stretch;
}
.spread__media { position: relative; overflow: hidden; min-height: 420px; }
.spread__media .portrait { position: absolute; inset: 0; aspect-ratio: auto; }
.spread__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 56px) 0;
}
@media (max-width: 880px) {
  .spread { grid-template-columns: 1fr; }
  .spread__media { aspect-ratio: 4 / 5; min-height: 0; }
}

/* Reduce motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .split-word { transform: none; opacity: 1; }
  .accent-rule { transform: scaleX(1); }
  .marquee__track { animation: none; }
  .drift, .pulse-dot, .mantra__line span { animation: none; }
  html { scroll-behavior: auto; }
}

/* Focus visible ------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Selection ------------------------------------------------ */
::selection { background: var(--accent); color: var(--bg); }
