/* v5 — dark variant: copper + ember */
/* ---------- Tokens ---------- */
:root {
  --bg: #0A0908;
  --bg-2: #110F0D;
  --bg-3: #181513;
  --ink: #F4EFE7;
  --ink-dim: #B5A99A;
  --ink-mute: #756A5E;
  --rule: rgba(244, 239, 231, 0.10);
  --rule-strong: rgba(244, 239, 231, 0.26);
  --accent: #D87B3F;       /* topla bakarna/terakota */
  --accent-soft: #8E4F26;
  --accent-2: #D63A2F;     /* topla crvena za "Read More" tip akcenata */
  --grain-op: 0.04;

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --maxw: 1440px;
  --pad: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100vw;
}
#root { overflow-x: clip; }
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9990;
  background-image:
    radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: var(--grain-op);
  mix-blend-mode: overlay;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

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

/* ---------- Type ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 0.98;
}
.display em { font-style: italic; font-weight: 400; color: var(--accent); }
.display-xl { font-size: clamp(56px, 11vw, 180px); }
.display-lg { font-size: clamp(44px, 7vw, 112px); }
.display-md { font-size: clamp(34px, 5vw, 72px); }
.display-sm { font-size: clamp(26px, 3.4vw, 48px); }

.body-lg { font-size: clamp(17px, 1.25vw, 20px); color: var(--ink-dim); line-height: 1.55; max-width: 58ch; }
.body-md { font-size: 15px; color: var(--ink-dim); line-height: 1.65; max-width: 60ch; }

.rule { height: 1px; background: var(--rule); width: 100%; }

/* ---------- Layout ---------- */
.shell { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(80px, 10vw, 160px) 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 2fr; align-items: end; }
}
.section-head .eyebrow-stack { display: flex; flex-direction: column; gap: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 12, 10, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--rule);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-logo img { height: 40px; width: auto; filter: brightness(1.05); }
.nav-links { display: none; gap: 36px; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-link {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  transition: color .25s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.nav-cta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.nav-cta:hover .dot { background: var(--bg); }

/* ── Nav dropdown (Main Topics) — mirrors shell.css on inner pages ── */
.ygs-nav-item { position: relative; display: inline-flex; align-items: center; }
.ygs-nav-item.has-menu > .nav-link {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.ygs-nav-chevron { transition: transform .25s var(--ease); flex: 0 0 auto; color: currentColor; }
.ygs-nav-item.has-menu:hover .ygs-nav-chevron,
.ygs-nav-item.has-menu:focus-within .ygs-nav-chevron { transform: rotate(180deg); }
.ygs-nav-item.has-menu::after {
  content: ""; position: absolute; left: -16px; right: -16px; top: 100%; height: 18px;
  pointer-events: none;
}
.ygs-nav-item.has-menu:hover::after,
.ygs-nav-item.has-menu:focus-within::after { pointer-events: auto; }
.ygs-nav-menu {
  position: absolute; top: calc(100% + 18px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 320px;
  background: rgba(17, 15, 13, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--rule-strong);
  padding: 8px;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 80px 120px -40px rgba(216,123,63,0.10);
  opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  z-index: 200;
}
.ygs-nav-item.has-menu:hover .ygs-nav-menu,
.ygs-nav-item.has-menu:focus-within .ygs-nav-menu {
  opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.ygs-nav-menu::before {
  content: ""; position: absolute; top: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: rgba(17, 15, 13, 0.96);
  border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong);
}
.ygs-nav-menu-item {
  display: grid; grid-template-columns: 28px 1fr;
  align-items: baseline; gap: 14px;
  padding: 14px 18px;
  font-family: var(--f-display);
  font-size: 18px; font-weight: 400; letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color .2s var(--ease), background .2s var(--ease), padding-left .2s var(--ease);
}
.ygs-nav-menu-item:last-child { border-bottom: 0; }
.ygs-nav-menu-item:hover {
  color: var(--accent); background: rgba(216, 123, 63, 0.06); padding-left: 22px;
}
.ygs-nav-menu-item::after { display: none; }
.ygs-nav-menu-item .num {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--accent); text-transform: none; align-self: center;
}
.ygs-nav-menu-item .label em { color: var(--accent); font-style: italic; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--pad) 80px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-video {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video video,
.hero-video iframe,
.hero-video .hero-poster,
.hero-video .hero-poster img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
  transform: scale(1.08);
  will-change: transform;
}
/* Ken-Burns subtle drift for the still poster */
.hero-video .hero-poster img {
  animation: heroKenBurns 28s ease-in-out infinite alternate;
  transform-origin: center center;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1.08) translate3d(0, 0, 0); }
  100% { transform: scale(1.18) translate3d(-1.5%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video .hero-poster img { animation: none; transform: scale(1.08); }
}
.hero-video::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,9,8,.55) 0%, rgba(10,9,8,.3) 30%, rgba(10,9,8,.55) 65%, rgba(10,9,8,.94) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(216,123,63,0.18), transparent 55%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) { .hero-content { grid-template-columns: 1.3fr 1fr; align-items: end; } }

.hero-title { color: var(--ink); }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(0);
  opacity: 0;
  animation: rise 1.2s var(--ease) .05s forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: .18s; }
.hero-title .line:nth-child(3) > span { animation-delay: .32s; }
@keyframes rise {
  0%   { transform: translateY(60%); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0);  opacity: 1; }
}
/* Safety: if animation never fires (backgrounded iframe, reduced motion), show text */
@media (prefers-reduced-motion: reduce) {
  .hero-title .line > span { animation: none; opacity: 1; transform: none; }
}
.hero-title .line > span { opacity: 1; } /* fallback — keyframe still drives the subtle rise */

.hero-meta {
  display: flex; flex-direction: column; gap: 18px;
  padding-bottom: 8px;
}
.hero-meta .body-lg { color: var(--ink); opacity: 0.86; }

.hero-foot {
  position: absolute; bottom: 32px; left: var(--pad); right: var(--pad);
  z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-foot .scroll-hint { display: flex; align-items: center; gap: 12px; }
.hero-foot .scroll-hint .line-v { width: 1px; height: 40px; background: var(--accent); animation: pulse 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes pulse { 0%, 100% { transform: scaleY(0.2); opacity: 0.3; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 18px 28px 18px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600;
  transition: transform .3s var(--ease), background .3s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent-2);
  transform: translateY(100%);
  transition: transform .45s var(--ease);
  z-index: -1;
}
.cta:hover::before { transform: translateY(0); }
.cta:hover { color: #fff; }
.cta .arrow { transition: transform .35s var(--ease); }
.cta:hover .arrow { transform: translateX(4px); }

.cta-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 17px 28px 17px 32px;
}
.cta-ghost::before { background: var(--accent); }
.cta-ghost:hover { color: #fff; border-color: var(--accent); }

/* ---------- Manifesto ---------- */
.manifesto { position: relative; }
.manifesto-big {
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(36px, 6.2vw, 96px);
  max-width: 16ch;
}
.manifesto-big .word {
  display: inline-block;
  color: var(--ink-mute);
  transition: color .6s var(--ease);
}
.manifesto-big .word.lit { color: var(--ink); }
.manifesto-big .word.accent { color: var(--accent); font-style: italic; }
.manifesto-aside {
  margin-top: clamp(60px, 8vw, 120px);
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .manifesto-aside { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* ---------- Team (horizontal scroll) ---------- */
.team { padding: 0; }
.team-head { padding: clamp(80px, 10vw, 140px) var(--pad) 40px; max-width: var(--maxw); margin: 0 auto; }
.team-quote {
  font-family: var(--f-display);
  font-weight: 300; font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 50ch;
  border-left: 1px solid var(--accent);
  padding-left: 28px;
}
.team-track {
  display: flex;
  gap: 24px;
  padding: 40px var(--pad) 120px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.team-track::-webkit-scrollbar { display: none; }
.team-card {
  flex: 0 0 clamp(260px, 28vw, 360px);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.team-card .img {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bg-2);
  overflow: hidden;
}
.team-card .img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(14,12,10,.9) 100%);
}
.team-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25) contrast(1.02); transition: transform .9s var(--ease), filter .9s var(--ease); }
.team-card:hover img { transform: scale(1.05); filter: grayscale(0) contrast(1.05); }
.team-card .meta { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; }
.team-card .num {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--accent);
  margin-bottom: 8px;
}
.team-card .name {
  font-family: var(--f-display); font-weight: 400;
  font-size: 22px; line-height: 1.1;
  letter-spacing: -0.01em;
}
.team-card .role {
  margin-top: 6px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim);
}
.team-foot {
  padding: 0 var(--pad) 40px;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-dim);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.drag-hint { display: flex; align-items: center; gap: 10px; }
.drag-hint .dash { width: 30px; height: 1px; background: var(--accent); }

/* ---------- Author (single-card replacement for Team) ---------- */
.author-wrap {
  padding: 40px var(--pad) clamp(80px, 10vw, 140px);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .author-wrap { grid-template-columns: minmax(280px, 360px) 1fr; gap: 64px; }
}
.author-card {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-2);
  transform-style: preserve-3d;
  transition: transform .2s var(--ease);
}
.author-card .img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.author-card .img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14,12,10,.78) 100%);
}
.author-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.2) contrast(1.04);
  transition: transform .9s var(--ease), filter .9s var(--ease);
}
.author-card:hover img { transform: scale(1.04); filter: grayscale(0) contrast(1.05); }
.author-card .meta { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; }
.author-card .num {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--accent);
  margin-bottom: 8px;
}
.author-card .name {
  font-family: var(--f-display); font-weight: 400;
  font-size: 26px; line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.author-card .role {
  margin-top: 6px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim);
}
.author-body { display: flex; flex-direction: column; gap: 28px; }
.author-body .body-lg { max-width: 56ch; }

/* ---------- Training feature ---------- */
.training {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
@media (min-width: 900px) { .training { grid-template-columns: 1.1fr 1fr; } }
.training-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg-2);
}
.training-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.72) contrast(1.05) saturate(.9);
  transition: transform 1.4s var(--ease);
}
.training-media:hover img { transform: scale(1.04); }
.training-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,12,10,.1), rgba(14,12,10,.55));
}
.training-media .stamp {
  position: absolute; top: 28px; left: 28px;
  z-index: 2;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.training-media .stamp::before { content: "●"; }
.training-body {
  padding: clamp(48px, 6vw, 88px);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg-2);
  position: relative;
}
.training-body h2 { margin: 24px 0 28px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: 48px;
}
.stats .stat {
  padding: 28px 20px 0 0;
  border-right: 1px solid var(--rule);
}
.stats .stat:last-child { border-right: 0; padding-right: 0; }
.stats .num {
  font-family: var(--f-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stats .label {
  margin-top: 8px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- Journal grid ---------- */
.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 700px) { .journal-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .journal-grid { grid-template-columns: repeat(3, 1fr); } }
.journal-card {
  position: relative;
  padding: 32px 28px 36px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 22px;
  transition: background .4s var(--ease);
  min-height: 420px;
}
.journal-card:hover { background: var(--bg-2); }
.journal-card .img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--bg-3);
}
.journal-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.journal-card:hover .img img { transform: scale(1.06); }
.journal-card .cat {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.journal-card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.journal-card p {
  font-size: 14px; line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
}
.journal-card .more {
  margin-top: auto;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.journal-card .more::after {
  content: "→";
  transition: transform .3s var(--ease);
}
.journal-card:hover .more::after { transform: translateX(6px); }

/* ---------- Join banner ---------- */
.join {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 14vw, 200px) var(--pad);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(201,161,74,0.18), transparent 60%),
    var(--bg-2);
}
.join .eyebrow { margin: 0 auto 24px; justify-content: center; }
.join h2 { margin: 0 auto 32px; max-width: 18ch; }
.join .ctas { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  padding: 64px var(--pad) 40px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: var(--maxw); margin: 0 auto;
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--ink-dim); font-size: 14px; transition: color .25s var(--ease); }
.footer a:hover { color: var(--accent); }
.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--ink-dim); max-width: 36ch; }
.footer-bottom {
  max-width: var(--maxw); margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Custom cursor (dual) ---------- */
.cursor-ring, .cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  will-change: transform, width, height;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  mix-blend-mode: difference;
}
.cursor-ring.hover { width: 72px; height: 72px; background: rgba(201,161,74,0.08); }
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  transition: width .2s var(--ease), height .2s var(--ease), opacity .2s var(--ease);
}
.cursor-dot.hover { width: 0; height: 0; opacity: 0; }
@media (pointer: coarse) { .cursor-ring, .cursor-dot { display: none; } }

/* Progress */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 200;
  transition: transform .15s linear;
}

/* Sheen on tilt cards */
.team-card .img .sheen {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18), transparent 40%);
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.team-card:hover .img .sheen { opacity: 1; }
.team-card { transition: transform .2s var(--ease); transform-style: preserve-3d; }

/* Manifesto scrubbed */
.manifesto-big {
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(36px, 6.2vw, 96px);
  max-width: 16ch;
  margin-top: 32px;
}
.manifesto-big .w { transition: color .5s var(--ease), opacity .5s var(--ease); }

/* Ambient toggle */
.ambient-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.ambient-toggle:hover { color: var(--ink); border-color: var(--accent); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.eq span { width: 2px; height: 4px; background: var(--accent); opacity: .4; }
.eq.on span { animation: eq 1.2s ease-in-out infinite; opacity: 1; }
.eq.on span:nth-child(2) { animation-delay: .15s; }
.eq.on span:nth-child(3) { animation-delay: .3s; }
.eq.on span:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }

/* Pillars pinned horizontal */
.pillars {
  position: relative;
  height: 320vh;
  background: var(--bg-2);
}
.pillars-sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding-top: 120px;
}
.pillars-head { padding-bottom: 40px; }
.pillars-track {
  display: flex;
  gap: 24px;
  padding: 0 var(--pad);
  will-change: transform;
  align-items: stretch;
  flex: 1;
  padding-bottom: 60px;
  min-height: 0;
}
.pillar-card {
  flex: 0 0 clamp(280px, 36vw, 440px);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  padding: 40px 32px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.pillar-img {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.pillar-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.55) contrast(1.05);
  transition: transform 1.4s var(--ease), filter .8s var(--ease);
}
.pillar-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,12,10,0.4) 0%, rgba(14,12,10,0.1) 35%, rgba(14,12,10,0.85) 75%, rgba(14,12,10,0.97) 100%);
}
.pillar-card:hover .pillar-img img { transform: scale(1.06); filter: grayscale(0.1) brightness(0.7) contrast(1.05); }
.pillar-card > .pillar-no,
.pillar-card > .pillar-title,
.pillar-card > .pillar-copy { position: relative; z-index: 2; }
.pillar-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 120%, color-mix(in oklab, var(--accent) 40%, transparent), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.pillar-card:hover::before { opacity: 1; }
.pillar-no {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: auto;
}
.pillar-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 3.6vw, 64px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 32px 0 20px;
}
.pillar-copy {
  font-size: 15px; color: var(--ink-dim); line-height: 1.55;
  max-width: 32ch;
}
.pillar-end {
  flex: 0 0 clamp(420px, 48vw, 560px);
  display: flex; align-items: center;
  padding: 40px;
  border: 1px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, var(--bg-2));
}
.pillar-end-inner { width: 100%; }

/* Fallback: if JS horizontal scroll isn't engaging (coarse pointer / touch),
   convert to a native horizontal scroll region. */
@media (pointer: coarse), (hover: none) {
  .pillars { height: auto; min-height: 100vh; }
  .pillars-sticky { position: static; height: auto; overflow: visible; padding-top: 80px; padding-bottom: 40px; }
  .pillars-track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 40px; -webkit-overflow-scrolling: touch; }
  .pillar-card { scroll-snap-align: start; min-height: 400px; }
  .pillar-end { min-height: 400px; }
}

/* ---------- Topic frame (Yes,God,Said-style outlined card) ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}
@media (min-width: 700px) { .topic-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (min-width: 1100px) { .topic-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  text-decoration: none;
  color: inherit;
}
.topic-card .topic-frame {
  position: absolute;
  inset: 18px 18px 0 18px;
  border: 1px solid var(--accent);
  pointer-events: none;
  z-index: 2;
  transition: inset .5s var(--ease), border-color .5s var(--ease);
}
.topic-card:hover .topic-frame { inset: 8px 8px 0 8px; border-color: var(--accent-2); }
.topic-card .topic-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-3);
}
.topic-card .topic-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.78) contrast(1.05);
  transition: transform 1.2s var(--ease), filter .8s var(--ease);
}
.topic-card:hover .topic-img img { transform: scale(1.06); filter: brightness(.92) contrast(1.05); }
.topic-card .topic-foot {
  background: #F4EFE7;
  color: #1a1310;
  padding: 36px 24px 32px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  position: relative;
}
.topic-card .topic-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 2vw, 34px);
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin: 0;
  color: #1a1310;
}
.topic-card .topic-blurb {
  margin: 0;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.55;
  color: #4a3a30;
  max-width: 38ch;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.topic-card .topic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 30px;
  background: var(--accent-2);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 4px;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.topic-card:hover .topic-btn { background: var(--accent); transform: translateY(-2px); }

/* ---------- Verse pull-quote ---------- */
.verse-section {
  padding: clamp(100px, 12vw, 180px) var(--pad);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(216,123,63,0.10), transparent 65%),
    var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.verse-section .verse {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  max-width: 38ch;
  margin: 28px auto 32px;
  color: var(--ink);
}
.verse-section .verse-ref {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.burger {
  width: 44px; height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 3px; flex-direction: column;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  cursor: pointer;
  margin-left: 12px;
}
.burger span {
  display: block; width: 16px; height: 1px; background: var(--ink);
  transition: transform .4s var(--ease), background .3s var(--ease);
}
.burger:hover { border-color: var(--accent); }
.burger:hover span { background: var(--accent); }

/* ---------- Menu overlay ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 500;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.menu-overlay.open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity .4s var(--ease), visibility 0s linear;
}
.menu-bg {
  position: absolute; inset: 0;
  background: rgba(14, 12, 10, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0; transition: opacity .6s var(--ease);
}
.menu-overlay.open .menu-bg { opacity: 1; }
.menu-inner {
  position: relative; z-index: 2;
  padding: 32px var(--pad);
  height: 100%;
  display: flex; flex-direction: column;
  max-width: var(--maxw); margin: 0 auto;
}
.menu-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  opacity: 0; transform: translateY(-20px);
  transition: opacity .6s var(--ease) .1s, transform .6s var(--ease) .1s;
}
.menu-overlay.open .menu-head { opacity: 1; transform: none; }
.menu-close {
  width: 44px; height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: border-color .3s var(--ease);
}
.menu-close span {
  position: absolute; top: 50%; left: 50%;
  width: 16px; height: 1px; background: var(--ink);
  transform-origin: center;
}
.menu-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.menu-close:hover { border-color: var(--accent); }
.menu-close:hover span { background: var(--accent); }

.menu-grid {
  flex: 1;
  padding: clamp(40px, 8vh, 80px) 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
}
@media (min-width: 900px) {
  .menu-grid { grid-template-columns: repeat(5, 1fr); }
}
.menu-col {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.menu-overlay.open .menu-col { opacity: 1; transform: none; }
.menu-col h4 {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 500;
}
.menu-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.menu-col li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  font-family: var(--f-display);
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 400;
  color: var(--ink-dim);
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.menu-col li a .arr { opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease); color: var(--accent); font-family: var(--f-mono); font-size: 14px; }
.menu-col li a:hover { color: var(--ink); border-color: var(--rule); }
.menu-col li a:hover .arr { opacity: 1; transform: none; }

.menu-foot {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0;
  transition: opacity .6s var(--ease) .5s;
}
.menu-overlay.open .menu-foot { opacity: 1; }

/* ---------- Video modal ---------- */
.v-modal {
  position: fixed; inset: 0;
  z-index: 700;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  animation: fadeIn .35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.v-modal-inner {
  position: relative;
  width: 100%; max-width: 1200px;
  animation: riseIn .5s var(--ease);
}
@keyframes riseIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.v-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border: 1px solid var(--rule-strong);
  overflow: hidden;
}
.v-close {
  position: absolute; top: -48px; right: 0;
  width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--rule-strong);
  color: var(--ink); font-size: 24px; line-height: 1;
  background: transparent;
  cursor: pointer;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.v-close:hover { border-color: var(--accent); color: var(--accent); }
.v-caption {
  margin-top: 16px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
}

/* ---------- Hero play button ---------- */
.hero-play {
  position: absolute;
  bottom: 160px;
  right: var(--pad);
  z-index: 3;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: rgba(14,12,10,0.35);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.hero-play:hover { background: var(--accent); color: var(--bg); transform: scale(1.05); }
.hero-play::before {
  content: ""; position: absolute; inset: -10px;
  border-radius: 50%; border: 1px solid var(--accent);
  opacity: .4;
  animation: pulse-ring 2.5s var(--ease) infinite;
}
@keyframes pulse-ring { 0% { transform: scale(.9); opacity: .5; } 100% { transform: scale(1.3); opacity: 0; } }
.hero-play .tri {
  width: 0; height: 0;
  border-left: 14px solid currentColor;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.hero-play-label {
  position: absolute;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  bottom: -22px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; color: var(--ink-dim);
}
@media (max-width: 900px) {
  .hero-play { bottom: 120px; width: 72px; height: 72px; }
}

/* ---------- Range / Featured sections ---------- */
.range {
  background: var(--bg-2);
}
.range-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  margin-top: 60px;
}
@media (min-width: 800px) { .range-grid { grid-template-columns: repeat(3, 1fr); } }
.range-item {
  background: var(--bg-2);
  padding: 48px 36px;
  display: flex; flex-direction: column;
  position: relative;
  min-height: 320px;
}
.range-item .no {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--accent);
}
.range-item h3 {
  font-family: var(--f-display);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 24px 0 16px;
  color: var(--ink);
}
.range-item p {
  font-size: 15px; line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 0 auto;
  max-width: 38ch;
}
.range-item .stat {
  margin-top: 32px;
  font-family: var(--f-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---------- Supervisory feature ---------- */
.supervisory {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
}
@media (min-width: 900px) { .supervisory { grid-template-columns: 1fr 1.1fr; } }
.supervisory-body {
  padding: clamp(64px, 9vw, 120px);
  display: flex; flex-direction: column; justify-content: center;
}
.supervisory-media {
  min-height: 500px;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.supervisory-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}
.supervisory-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 30%);
}
@media (max-width: 900px) { .supervisory-media::after { background: linear-gradient(180deg, transparent 60%, var(--bg) 100%); } }

/* ---------- Community teaser ---------- */
.community-section {
  padding: clamp(80px, 10vw, 140px) var(--pad);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
}
.community-head {
  max-width: var(--maxw); margin: 0 auto 48px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 900px) { .community-head { grid-template-columns: 1fr 2fr; align-items: end; } }
.members-strip {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.member-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-dim);
  flex: 0 0 auto;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.members-count {
  margin-left: 12px;
  font-family: var(--f-display); font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  color: var(--accent);
}
.members-count-sub {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-left: 8px;
}

/* ---------- Hero meta wrap fix ---------- */
.hero-title { max-width: 100%; }
.hero-title .k { max-width: 100%; }
.display-xl { max-width: 100%; word-break: break-word; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

/* Safety net: if reveal never triggered (observer missed, off-screen at mount), show after 2s */
@keyframes revealFallback { to { opacity: 1; transform: none; } }
.reveal:not(.in) { animation: revealFallback .9s var(--ease) 2s forwards; }

/* ---------- Side marker ---------- */
.side-mark {
  position: fixed;
  left: 20px; top: 50%; transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
  pointer-events: none; z-index: 50;
  display: none;
}
@media (min-width: 1200px) { .side-mark { display: block; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll-left 40s linear infinite;
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
