/* Echoes of Karbala — solemn parchment portfolio */

:root {
  --parchment: #f2ead8;
  --parchment-2: #e8dcc4;
  --sand: #d8c9a8;
  --ink: #1a1614;
  --ink-2: #2a2520;
  --ink-soft: #4a4138;
  --gold: #a8864b;
  --gold-soft: #c2a574;
  --crimson: #7a1e1e;
  --rule: rgba(26, 22, 20, 0.14);
  --rule-soft: rgba(26, 22, 20, 0.08);

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --arabic: "Amiri", "Cormorant Garamond", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --grain-opacity: 0.05;
  --bg: var(--parchment);
  --fg: var(--ink);
}

[data-theme="dark"] {
  --parchment: #15110e;
  --parchment-2: #1c1814;
  --sand: #2a2420;
  --ink: #e8dcc4;
  --ink-2: #d8c9a8;
  --ink-soft: #b3a78f;
  --gold: #c2a574;
  --gold-soft: #d8bb86;
  --rule: rgba(232, 220, 196, 0.14);
  --rule-soft: rgba(232, 220, 196, 0.07);
  --grain-opacity: 0.08;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt";
}
body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle parchment grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; }

/* Typography utilities */
.serif { font-family: var(--serif); font-weight: 400; }
.arabic { font-family: var(--arabic); font-weight: 400; direction: rtl; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

a { color: inherit; text-decoration: none; }
button { background: transparent; border: 0; color: inherit; font: inherit; cursor: none; }
img { display: block; max-width: 100%; }

/* Custom cursor (only enabled when --cursor-on) */
body.cursor-on, body.cursor-on * { cursor: none !important; }

/* Layout container */
.shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 720px) { .shell { padding: 0 24px; } }

/* ── NAV ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  mix-blend-mode: difference;
  filter: invert(1);
}
[data-theme="dark"] .nav { mix-blend-mode: normal; filter: none; color: var(--ink); }
.nav .brand { display: flex; align-items: center; gap: 14px; }
.nav .brand .mark { width: 22px; height: 22px; }
.nav .links { display: flex; gap: 28px; }
.nav .links a { position: relative; padding: 4px 0; }
.nav .links a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
}
@media (max-width: 720px) {
  .nav { padding: 16px 24px; }
  .nav .links { gap: 16px; }
  .nav .links a:not(.nav-cta) { display: none; }
}

/* ── HERO ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 120px 56px 48px;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  cursor: grab;
}
.hero-art:active { cursor: grabbing; }

/* Each slide is full-bleed; position via --slide-x */
.hero-art .slide {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 56%;
  height: 84%;
  filter: saturate(0.7) contrast(1.05);
  will-change: transform, opacity;
  pointer-events: none;
}
.hero-art .slide-current { --slide-x: 0%;     opacity: 1; z-index: 2; }
.hero-art .slide-next    { --slide-x: 110%;   opacity: 0; z-index: 1; }
.hero-art .slide-prev    { --slide-x: -110%;  opacity: 0; z-index: 1; }
.hero-art .slide-hidden  { --slide-x: 110%;   opacity: 0; z-index: 0; }

.hero-art .slide-img {
  position: absolute;
  inset: 0;
}
.hero-art .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg));
  pointer-events: none;
}

@media (max-width: 960px) {
  .hero-art .slide { width: 90%; right: -20%; opacity: 0.55; }
  .hero-art .slide-current { opacity: 0.55; }
}

/* Pager arrows */
.pager-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all 0.25s ease;
}
.pager-arrow:hover { background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 80px;
}
@media (max-width: 960px) {
  .hero { padding: 110px 24px 32px; }
  .hero-content { grid-template-columns: 1fr; gap: 32px; }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero-arabic {
  font-family: var(--arabic);
  font-size: clamp(28px, 4vw, 56px);
  color: var(--ink-soft);
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 32ch;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  margin-top: 28px;
}
.hero-meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.hero-meta dd {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 40px;
}
.scroll-cue {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue .line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--ink-soft);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-100%);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Hero pager (slideshow nav) */
.hero-pager {
  display: flex;
  gap: 28px;
  align-items: center;
}
.pager-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
}
.pager-dot.active { opacity: 1; color: var(--ink); }
.pager-dot .dot-line {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.pager-dot .dot-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.pager-dot.active .dot-fill {
  animation: pager-tick 6s linear forwards;
}
@keyframes pager-tick { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pager-dot .dot-title { display: none; }
.pager-dot.active .dot-title { display: inline; font-style: italic; font-family: var(--serif); text-transform: none; letter-spacing: 0.01em; font-size: 14px; }
@media (max-width: 720px) {
  .hero-pager { gap: 14px; }
  .pager-dot .dot-line { width: 32px; }
  .pager-dot .dot-title { display: none !important; }
}

/* Toolbar simplified (just for now-empty toolbar in legacy gallery) */
.sec {
  padding: 120px 56px;
  position: relative;
}
@media (max-width: 720px) { .sec { padding: 80px 24px; } }
.sec-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}
.sec-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(44px, 6.5vw, 96px);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sec-head h2 em { font-style: italic; color: var(--gold); }
.sec-head .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 50ch;
  margin-top: 16px;
}
@media (max-width: 720px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }

/* ── GALLERY (grid) ─────────────────────────────── */
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.modes {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
  background: var(--parchment-2);
}
.modes button {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all 0.3s ease;
}
.modes button.active {
  background: var(--ink);
  color: var(--parchment);
}
.filter-row {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.filter-row button { padding: 4px 0; position: relative; transition: color 0.2s; }
.filter-row button.active { color: var(--ink); }
.filter-row button.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px 24px;
}
.tile {
  position: relative;
  overflow: hidden;
  cursor: none;
  background: var(--parchment-2);
}
.tile .img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: saturate(0.85);
}
.tile:hover .img { transform: scale(1.04); filter: saturate(1) contrast(1.05); }
.tile .meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  color: var(--parchment);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  z-index: 2;
}
.tile:hover .meta { opacity: 1; transform: translateY(0); }
.tile .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tile:hover .scrim { opacity: 1; }
.tile .t-title { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.tile .t-title em { font-style: italic; color: var(--gold-soft); }
.tile .t-year { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; opacity: 0.8; }

/* Editorial sizing for grid (mosaic) */
.tile.s-l { grid-column: span 7; aspect-ratio: 4/5; }
.tile.s-m { grid-column: span 5; aspect-ratio: 4/5; }
.tile.s-w { grid-column: span 8; aspect-ratio: 16/10; }
.tile.s-s { grid-column: span 4; aspect-ratio: 3/4; }
.tile.s-t { grid-column: span 6; aspect-ratio: 1/1; }
.tile.s-p { grid-column: span 6; aspect-ratio: 4/5; }
@media (max-width: 960px) {
  .tile { grid-column: span 12 !important; aspect-ratio: 4/5 !important; }
}

/* ── GALLERY (story) ────────────────────────────── */
.story-series {
  margin-bottom: 100px;
}
.story-series:last-child { margin-bottom: 0; }
.series-head {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 32px;
  align-items: baseline;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.series-head .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.series-head h3 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.015em;
}
.series-head h3 em { font-style: italic; color: var(--gold); }
.series-head .desc { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 960px) { .series-head { grid-template-columns: 1fr; gap: 8px; } }

.series-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* ── LIGHTBOX ───────────────────────────────────── */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 16, 14, 0.94);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1fr 380px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.lb-overlay.open { opacity: 1; pointer-events: auto; }
@media (max-width: 960px) { .lb-overlay { grid-template-columns: 1fr; } }
.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
  overflow: hidden;
}
.lb-stage .art {
  width: auto;
  height: auto;
  max-width: min(720px, calc(100vw - 380px - 112px));
  max-height: 86vh;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,220,196,0.08);
}
.lb-stage .art img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
}
@media (max-width: 960px) {
  .lb-stage .art { max-width: calc(100vw - 80px); max-height: 60vh; }
  .lb-stage .art img { max-height: 60vh; }
}
.lb-overlay.open .lb-stage .art { transform: scale(1); }
.lb-info {
  background: var(--parchment);
  color: var(--ink);
  padding: 56px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  border-left: 1px solid var(--rule);
}
.lb-info .num { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.lb-info h3 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.015em;
}
.lb-info h3 em { font-style: italic; color: var(--gold); }
.lb-info .arabic-line {
  font-family: var(--arabic);
  font-size: 24px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 20px;
}
.lb-info .body { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--ink-2); font-style: italic; }
.lb-info .symbols { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lb-info .symbols span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
}
.lb-info dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  margin-top: auto;
}
.lb-info dl dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.lb-info dl dd { font-family: var(--serif); font-size: 16px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(232, 220, 196, 0.3);
  color: var(--parchment);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: all 0.25s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(232, 220, 196, 0.1); border-color: var(--gold-soft); }
.lb-close { top: 24px; left: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { left: auto; right: calc(380px + 24px); top: 50%; transform: translateY(-50%); }
@media (max-width: 960px) { .lb-next { right: 24px; } }

/* ── ABOUT ──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-portrait {
  aspect-ratio: 4/5;
  position: relative;
}
.about-text { font-family: var(--serif); font-size: 22px; line-height: 1.55; color: var(--ink-2); }
.about-text p + p { margin-top: 1em; }
.about-text p:first-letter {
  font-size: 1.6em;
  line-height: 0.9;
  float: left;
  padding: 4px 8px 0 0;
  color: var(--gold);
  font-weight: 500;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.about-stats .n { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold); font-weight: 400; }
.about-stats .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }

/* ── CONCEPT (philosophy) ───────────────────────── */
.concept {
  background: var(--parchment-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 56px;
}
@media (max-width: 960px) { .concept-grid { grid-template-columns: 1fr; gap: 32px; } }
.concept-card .glyph {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--gold);
}
.concept-card h4 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.concept-card h4 em { font-style: italic; color: var(--gold); }
.concept-card p { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 28ch;
  margin: 96px auto 0;
  color: var(--ink);
  position: relative;
}
.pull-quote::before, .pull-quote::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: var(--gold);
  margin: 0 auto;
}
.pull-quote::before { margin-bottom: 32px; }
.pull-quote::after { margin-top: 32px; }
.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 24px;
}

/* ── JOURNEY MODE ───────────────────────────────── */
.journey {
  background: #0e0a08;
  color: #e8dcc4;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .journey { background: #0a0806; }
.journey-track {
  height: 360vh;
  position: relative;
}
.journey-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.j-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(168, 134, 75, 0.18), transparent 60%);
  transition: opacity 1.2s ease;
}
.j-frames {
  position: absolute;
  inset: 0;
}
.j-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.j-frame.active { opacity: 1; pointer-events: auto; }
.j-art {
  width: clamp(280px, 38vw, 540px);
  aspect-ratio: 4/5;
  position: relative;
  transform: translateY(20px);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.j-frame.active .j-art { transform: translateY(0); }
.j-caption {
  position: absolute;
  left: 56px;
  bottom: 80px;
  max-width: 460px;
  z-index: 2;
}
.j-caption .step { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); }
.j-caption h3 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 14px;
  color: #f2ead8;
}
.j-caption h3 em { font-style: italic; color: var(--gold-soft); }
.j-caption .arabic { font-family: var(--arabic); font-size: 28px; color: rgba(232, 220, 196, 0.6); margin-top: 12px; }
.j-caption p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(232, 220, 196, 0.78);
  margin-top: 20px;
}
.j-caption .year {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 24px;
}
@media (max-width: 720px) {
  .j-caption { left: 24px; right: 24px; bottom: 40px; }
}

.j-progress {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 5;
}
.j-progress button {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 220, 196, 0.4);
  transition: color 0.3s;
}
.j-progress button.active { color: #f2ead8; }
.j-progress button .dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(232, 220, 196, 0.4);
  transition: all 0.3s;
}
.j-progress button.active .dot { background: var(--gold); border-color: var(--gold); }
@media (max-width: 720px) { .j-progress { display: none; } }

.j-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: rgba(232, 220, 196, 0.1);
  z-index: 5;
}
.j-bar .fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.2s linear;
}

/* ── FOOTER / CONTACT ───────────────────────────── */
.foot {
  padding: 100px 56px 48px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 720px) { .foot { padding: 60px 24px 32px; } }
.foot-cta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  align-items: end;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.foot-cta h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}
.foot-cta h2 em { font-style: italic; color: var(--gold); }
.foot-cta a.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.foot-cta a.btn:hover { background: var(--ink); color: var(--parchment); }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.foot-grid h5 { color: var(--ink); margin-bottom: 14px; font-weight: 500; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-grid ul a:hover { color: var(--ink); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-cta { grid-template-columns: 1fr; gap: 24px; } }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
}

/* ── CUSTOM CURSOR ──────────────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease, height 0.3s ease;
}
.cursor .ring {
  width: 32px; height: 32px;
  border: 1px solid #f2ead8;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f2ead8;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}
.cursor.expand .ring { width: 88px; height: 88px; background: rgba(242, 234, 216, 0.08); }
.cursor .dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  background: #f2ead8;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor.expand .dot { opacity: 0; }
.cursor .label { position: absolute; opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
.cursor.expand .label { opacity: 1; }

/* ── ENTRY ANIMATIONS ───────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.35s; }
.fade-up.d4 { transition-delay: 0.5s; }

/* Selection */
::selection { background: var(--gold); color: var(--parchment); }
