@import "./tokens.css";

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem); /* 17–19px */
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--cacao);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}
.display {
  font-size: clamp(3rem, 8.5vw, 7rem); /* 48–112px */
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.375rem, 4.6vw, 4.25rem); } /* 38–68px */
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.italic { font-style: italic; }
.gold-italic { font-style: italic; color: var(--clay); }
p { margin: 0 0 1rem; }
a { color: var(--choc); text-underline-offset: 3px; text-decoration-color: var(--line-gold); }
img { max-width: 100%; display: block; }

.arabic { font-family: var(--kufi); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.container-wide { max-width: var(--maxw-wide); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(4rem, 9vw, 8.5rem); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }

.section--cacao { background: var(--cacao); color: var(--parchment); }
.section--choc { background: var(--choc); color: var(--parchment); }
.section--sand { background: var(--sand); color: var(--ink); }
.section--cacao h1, .section--cacao h2, .section--cacao h3,
.section--choc h1, .section--choc h2, .section--choc h3 { color: var(--parchment); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7ch;
  font-family: var(--body);
  font-weight: 600; font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; display: inline-block; }
.section--cacao .eyebrow, .section--choc .eyebrow { color: var(--gold); }

.lead { font-size: clamp(1.15rem, 1.4vw, 1.4rem); line-height: 1.55; color: var(--ink-soft); max-width: 58ch; }
.section--cacao .lead, .section--choc .lead { color: rgba(255, 248, 236, 0.82); }
.max-prose { max-width: 62ch; }
.mx-auto { margin-inline: auto; }
.text-center { text-align: center; }

.rule-gold { width: 64px; height: 2px; background: var(--gold); border: none; margin: 1.4rem 0; }
.rule-gold.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--cacao); --fg: var(--parchment);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.9rem; border-radius: var(--r-pill);
  font-family: var(--body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; border: 1.5px solid transparent; background: var(--bg); color: var(--fg);
  cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--gold { --bg: linear-gradient(135deg, var(--gold-soft), var(--gold)); --fg: var(--cacao); }
.btn--clay { --bg: var(--clay); --fg: var(--parchment); }
.btn--ghost { --bg: transparent; --fg: var(--cacao); border-color: var(--cacao); }
.btn--ghost:hover { --bg: var(--cacao); --fg: var(--parchment); }
.btn--on-dark { --bg: transparent; --fg: var(--parchment); border-color: var(--gold); }
.btn--on-dark:hover { --bg: var(--gold); --fg: var(--cacao); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
  color: var(--parchment);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.site-header.is-solid { background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: saturate(150%) blur(12px); box-shadow: var(--shadow-sm); color: var(--cacao); }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.brand img { height: 42px; width: auto; }
.brand__word { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; line-height: 1; }
.brand__ar { font-family: var(--naskh); font-size: 1.15rem; opacity: 0.85; margin-inline-start: 0.15rem; }

.nav-desktop { display: none; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav-desktop a { text-decoration: none; color: inherit; font-weight: 500; font-size: 0.92rem; letter-spacing: 0.02em; position: relative; padding-block: 0.3rem; }
.nav-desktop a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--gold); transition: width 0.3s var(--ease); }
.nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { width: 100%; }
.nav-cta { display: none; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: transparent; border: 1.5px solid currentColor; border-radius: 50%; color: inherit; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

/* full-screen mobile panel */
.nav-panel {
  position: fixed; inset: 0; z-index: 300; background: var(--cacao); color: var(--parchment);
  display: flex; flex-direction: column; padding: 1.4rem var(--gut) 3rem;
  transform: translateY(-100%); transition: transform 0.5s var(--ease); overflow-y: auto;
}
.nav-panel.is-open { transform: translateY(0); }
.nav-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.nav-panel__mark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-family: var(--naskh); font-size: 46vw; color: rgba(198,154,66,0.06); }
.nav-panel ul { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; display: grid; gap: 0.2rem; }
.nav-panel li { opacity: 0; transform: translateY(16px); }
.nav-panel.is-open li { animation: navrise 0.5s var(--ease) forwards; }
.nav-panel li:nth-child(1) { animation-delay: 0.08s; }
.nav-panel li:nth-child(2) { animation-delay: 0.14s; }
.nav-panel li:nth-child(3) { animation-delay: 0.20s; }
.nav-panel li:nth-child(4) { animation-delay: 0.26s; }
.nav-panel li:nth-child(5) { animation-delay: 0.32s; }
.nav-panel li:nth-child(6) { animation-delay: 0.38s; }
.nav-panel a { display: block; text-decoration: none; color: var(--parchment); font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 9vw, 3rem); padding-block: 0.35rem; border-bottom: 1px solid var(--line-parchment); }
@keyframes navrise { to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .nav-desktop, .nav-cta { display: flex; }
  .nav-toggle { display: none; }
  .nav-panel { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 6rem; overflow: hidden; background: linear-gradient(160deg, var(--ivory) 0%, var(--sand) 100%); }
.hero__geo { position: absolute; inset: 0; background: url("/images/art/geo.svg"); background-size: 260px; opacity: 0.05; z-index: 0; }
.hero__mark {
  position: absolute; z-index: 0; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--naskh); font-weight: 500; font-size: clamp(16rem, 46vw, 40rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(198, 154, 66, 0.22); text-stroke: 1.5px rgba(198, 154, 66, 0.22);
  pointer-events: none; user-select: none; opacity: 0; direction: rtl;
  animation: markIn 1.1s var(--ease-out) 0.1s forwards;
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; width: 100%; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 45% 55%; } }
.hero__eyebrow { font-family: var(--kufi); }
.hero__title { font-size: clamp(3rem, 8.4vw, 7rem); font-weight: 700; line-height: 0.96; letter-spacing: -0.02em; margin: 0 0 1.3rem; }
.hero__title .l { display: block; opacity: 0; transform: translateY(24px); animation: lineIn 0.8s var(--ease-out) forwards; }
.hero__title .l1 { animation-delay: 0.25s; }
.hero__title .l2 { animation-delay: 0.4s; }
.hero__sub { opacity: 0; animation: fadeIn 0.8s ease 0.7s forwards; }
.hero__ctas { opacity: 0; animation: fadeIn 0.8s ease 0.85s forwards; margin-top: 1.6rem; }
.hero__note { margin-top: 1rem; font-family: var(--kufi); font-size: 0.85rem; letter-spacing: 0.02em; color: var(--ink-soft); opacity: 0; animation: fadeIn 0.8s ease 1s forwards; }
.hero__figure {
  position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; opacity: 0; clip-path: inset(0 0 100% 0);
  animation: maskUp 1.1s var(--ease-out) 0.35s forwards;
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__figure::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,248,236,0.18); border-radius: inherit; }
.hero__badge { position: absolute; left: -12px; bottom: 24px; background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--cacao); padding: 0.6rem 1.1rem; border-radius: var(--r-pill); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.03em; box-shadow: var(--shadow-md); font-family: var(--body); }

@keyframes markIn { to { opacity: 1; } }
@keyframes lineIn { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes maskUp { to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--cacao); color: var(--parchment); overflow: hidden; border-block: 1px solid rgba(198,154,66,0.25); }
.marquee__track { display: flex; width: max-content; white-space: nowrap; padding-block: 1.1rem; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track > span { display: inline-flex; align-items: center; }
.marquee__item { font-family: var(--display); font-weight: 600; font-style: italic; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: 0.02em; padding-inline: 1.8rem; }
.marquee__item.ar { font-family: var(--naskh); font-style: normal; color: var(--gold-soft); }
.marquee__sep { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Editorial split ---------- */
.split { display: grid; gap: clamp(1.8rem, 4vw, 4rem); align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 55% 45%; }
  .split--media-lg { grid-template-columns: 58% 42%; }
  .split--reverse { grid-template-columns: 45% 55%; }
  .split--reverse .split__media { order: 2; }
}
.split__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--ivory { background: var(--ivory); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-md); }
.split__media--ivory img { border-radius: var(--r-md); }

/* proof rail (compact text facts, not cards) */
.proof-rail { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 1.8rem; }
.proof-rail div { position: relative; padding-left: 1.1rem; font-weight: 600; color: var(--choc); }
.proof-rail div::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Brownie gallery (scroll-snap, drag) ---------- */
.gallery { display: flex; gap: clamp(1rem, 2vw, 1.6rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 0.5rem 1.5rem; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); cursor: grab; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__item { position: relative; flex: 0 0 min(78vw, 440px); scroll-snap-align: center; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--cacao); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.4rem 1.3rem; background: linear-gradient(transparent, rgba(25,17,14,0.9)); color: var(--parchment); }
.gallery__cap h3 { color: var(--parchment); margin: 0 0 0.3rem; position: relative; padding-left: 1rem; }
.gallery__cap h3::before { content: ""; position: absolute; left: 0; top: 0.15em; bottom: 0.15em; width: 3px; background: var(--gold); }
.gallery__cap p { margin: 0; font-size: 0.92rem; color: rgba(255,248,236,0.8); }
.gallery__tag { position: absolute; top: 1rem; left: 1rem; font-family: var(--body); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cacao); background: var(--gold-soft); padding: 0.28rem 0.6rem; border-radius: var(--r-pill); }
.gallery-hint { font-family: var(--kufi); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--ink-soft); margin-top: 0.4rem; }

/* ---------- Desert / meaning section ---------- */
.desert { position: relative; background: linear-gradient(180deg, var(--choc) 0%, var(--cacao) 100%); color: var(--parchment); overflow: hidden; text-align: center; }
.desert__geo { position: absolute; inset: 0; background: url("/images/art/geo.svg"); background-size: 300px; opacity: 0.06; }
.desert__arch { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(760px, 90%); height: 62%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; border: 1px solid rgba(198,154,66,0.25); border-bottom: none; }
.desert__mark { font-family: var(--naskh); font-size: clamp(6rem, 22vw, 15rem); line-height: 1; color: var(--gold); margin: 0; }
.desert__inner { position: relative; z-index: 1; }

/* ---------- Sando anatomy ---------- */
.anatomy { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); }
@media (min-width: 780px) { .anatomy { grid-template-columns: repeat(3, 1fr); } }
.anatomy__item { background: rgba(255,248,236,0.05); border: 1px solid rgba(198,154,66,0.2); border-radius: var(--r-lg); padding: 1.8rem 1.5rem; }
.anatomy__num { font-family: var(--display); font-weight: 700; font-size: 2.2rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 0.6rem; }

/* framed concept image (light frame on dark bg for white-bg renders) */
.framed { background: var(--ivory); border-radius: var(--r-lg); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow-lg); }
.framed img { border-radius: var(--r-md); width: 100%; }
.framed figcaption { margin-top: 0.9rem; text-align: center; }

/* ---------- YouTube facade ---------- */
.videos { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); }
@media (min-width: 720px) { .videos { grid-template-columns: repeat(2, 1fr); } }
.videos--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .videos--3 { grid-template-columns: repeat(3, 1fr); } }
.yt {
  position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9; border: 0; padding: 0; width: 100%; cursor: pointer; color: var(--parchment);
  background: radial-gradient(120% 120% at 30% 20%, var(--clay) 0%, var(--choc) 55%, var(--cacao) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; text-align: left;
  font-family: var(--body);
}
.yt__geo { position: absolute; inset: 0; background: url("/images/art/geo.svg"); background-size: 160px; opacity: 0.08; }
.yt__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 66px; height: 66px; border-radius: 50%; background: rgba(255,248,236,0.92); display: grid; place-items: center; transition: transform 0.3s var(--ease); }
.yt:hover .yt__play { transform: translate(-50%, -50%) scale(1.08); }
.yt__play svg { width: 24px; height: 24px; margin-left: 3px; fill: var(--cacao); }
.yt__meta { position: relative; z-index: 1; padding: 1.1rem 1.2rem; background: linear-gradient(transparent, rgba(25,17,14,0.85)); }
.yt__label { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }
.yt__title { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0.2rem 0 0.1rem; color: var(--parchment); }
.yt__by { font-size: 0.82rem; color: rgba(255,248,236,0.72); }
.yt.is-live { cursor: default; background: var(--cacao); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Process ---------- */
.process { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.6rem; }
.process__step { flex: 1 1 140px; background: rgba(255,248,236,0.05); border: 1px solid rgba(198,154,66,0.22); border-radius: var(--r-md); padding: 1.3rem 1.1rem; position: relative; }
.section--sand .process__step { background: rgba(25,17,14,0.04); border-color: var(--line-gold); }
.process__step h4 { font-family: var(--body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0; }
.section--sand .process__step h4 { color: var(--clay); }
.process__arrow { align-self: center; color: var(--gold); font-size: 1.2rem; }

/* ---------- Response (editorial quote over photo) ---------- */
.response { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.response img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 0; }
.response__scrim { position: relative; z-index: 1; background: linear-gradient(120deg, rgba(25,17,14,0.86), rgba(25,17,14,0.5)); padding: clamp(2.5rem, 6vw, 5rem); color: var(--parchment); }
.response__quote { font-family: var(--display); font-weight: 600; font-style: italic; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; color: var(--parchment); max-width: 20ch; margin: 0 0 0.8rem; }
.response__by { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }
.response__points { margin-top: 2rem; display: grid; gap: 0.8rem; max-width: 46ch; }
.response__points div { padding-left: 1.2rem; position: relative; color: rgba(255,248,236,0.9); }
.response__points div::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- Stats / opportunity grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tile { background: rgba(255,248,236,0.05); border: 1px solid rgba(198,154,66,0.2); border-radius: var(--r-md); padding: 1.6rem 1.5rem; }
.section--sand .tile, body .tile.on-light { background: var(--parchment); border-color: var(--line); }
.tile h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.tile p { margin: 0; color: var(--ink-soft); }
.section--cacao .tile p, .section--choc .tile p { color: rgba(255,248,236,0.78); }

.text-grid { display: grid; gap: 0.7rem 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.text-grid div { padding: 0.7rem 0; border-bottom: 1px solid var(--line-gold); font-weight: 500; }

.stat-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { text-align: center; padding: 1.6rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--parchment); }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--choc); line-height: 1; }
.stat__label { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.4rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 620px; }
.form label { font-weight: 600; font-size: 0.9rem; display: grid; gap: 0.4rem; }
.form input, .form select, .form textarea {
  font-family: var(--body); font-size: 1rem; padding: 0.85rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); background: var(--parchment); color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,154,66,0.2); }
.form textarea { min-height: 140px; resize: vertical; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

/* ---------- Notice ---------- */
.notice { background: color-mix(in srgb, var(--sand) 55%, transparent); border: 1px solid var(--line-gold); border-radius: var(--r-md); padding: 1rem 1.25rem; font-size: 0.94rem; color: var(--choc); }
.status-label { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: var(--r-pill); padding: 0.35rem 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--cacao); color: rgba(255,248,236,0.78); padding-block: clamp(3.5rem, 7vw, 6rem) 1.6rem; overflow: hidden; }
.site-footer__mark { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-family: var(--naskh); font-size: clamp(14rem, 40vw, 34rem); color: transparent; -webkit-text-stroke: 1px rgba(198,154,66,0.12); line-height: 1; pointer-events: none; direction: rtl; }
.footer-grid { position: relative; z-index: 1; display: grid; gap: 2.4rem; grid-template-columns: 1fr; margin-bottom: 2.6rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand__name { font-family: var(--display); font-weight: 700; font-size: 1.8rem; color: var(--parchment); }
.footer-brand__name .ar { font-family: var(--naskh); color: var(--gold-soft); }
.footer-col h4 { color: var(--gold); font-family: var(--body); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: var(--parchment); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid var(--line-parchment); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; font-size: 0.8rem; }
.footer-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: sweep 6s linear infinite; }
@keyframes sweep { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--cacao); color: var(--parchment); padding: 0.75rem 1.25rem; z-index: 1000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Ethos: portrait ---------- */
.portrait { margin: 0; }
.portrait__svg { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: block; }
.portrait__cap { margin-top: 0.9rem; font-family: var(--body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* ---------- Ethos: community-stall scene ---------- */
.stall-scene { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 12 / 6.2; }
.stall-scene__svg { width: 100%; height: 100%; display: block; }
.stall-scene .canopy { transform-box: fill-box; transform-origin: center top; animation: sway 6s var(--ease) infinite; }
@keyframes sway { 0%,100% { transform: rotate(-0.6deg); } 50% { transform: rotate(0.6deg); } }
.stall-scene .lights circle { animation: twinkle 3s ease-in-out infinite; }
.stall-scene .lights circle:nth-child(2n) { animation-delay: 0.6s; }
.stall-scene .lights circle:nth-child(3n) { animation-delay: 1.2s; }
@keyframes twinkle { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
.stall-scene .steam path { animation: rise 4s ease-in-out infinite; }
.stall-scene .steam .s2 { animation-delay: 0.8s; }
.stall-scene .steam .s3 { animation-delay: 1.5s; }
@keyframes rise { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 0.6; } 100% { opacity: 0; transform: translateY(-18px); } }
.stall-scene .walk { transform: translateX(-80px); }
.stall-scene .walk-1 { animation: cross 14s linear infinite; }
.stall-scene .walk-2 { animation: cross 18s linear infinite 3s; }
.stall-scene .walk-3 { animation: cross 22s linear infinite 7s; }
@keyframes cross { from { transform: translateX(-80px); } to { transform: translateX(1300px); } }
.stall-scene .geo-band { animation: shimmer 8s linear infinite; }
@keyframes shimmer { 0%,100% { opacity: 0.08; } 50% { opacity: 0.18; } }

@media (prefers-reduced-motion: reduce) {
  .stall-scene .canopy, .stall-scene .lights circle, .stall-scene .steam path,
  .stall-scene .walk, .stall-scene .geo-band { animation: none !important; }
  .stall-scene .walk { transform: none; }
  .stall-scene .steam path { opacity: 0.4; }
}

/* ---------- Values list (ethos) ---------- */
.values { display: grid; gap: 1rem; }
@media (min-width: 720px) { .values { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.value { display: grid; grid-template-columns: auto 1fr; gap: 0 1.1rem; align-items: start; padding: 1.4rem 0; border-top: 1px solid var(--line-gold); }
.value__num { font-family: var(--display); font-weight: 700; font-size: 1.8rem; color: var(--gold); line-height: 1; }
.value__name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--cacao); margin: 0 0 0.2rem; }
.section--cacao .value__name, .section--choc .value__name { color: var(--parchment); }
.value p { margin: 0; color: var(--ink-soft); }
.section--cacao .value p, .section--choc .value p { color: rgba(255,248,236,0.78); }
.section--cacao .value, .section--choc .value { border-color: rgba(198,154,66,0.25); }

/* teaser strip on home */
.teaser { position: relative; overflow: hidden; }
.teaser__geo { position: absolute; inset: 0; background: url("/images/art/geo.svg"); background-size: 220px; opacity: 0.06; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .l, .hero__sub, .hero__ctas, .hero__note, .hero__mark, .hero__figure { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
  .marquee__track, .footer-line { animation: none !important; }
  [data-parallax] { transform: none !important; }
}
