/* ==========================================================================
   CHEEYELL DESIGN SYSTEM — "Obsidian & Savanna Gold"
   One stylesheet shared by cheeyell.com and every *.cheeyell.com subdomain.
   ========================================================================== */

:root {
  /* Core palette */
  --obsidian: #0a0907;
  --obsidian-2: #12100c;
  --obsidian-3: #1b1812;
  --line: rgba(232, 214, 170, 0.14);
  --line-strong: rgba(232, 214, 170, 0.28);
  --gold: #c9a24a;
  --gold-hi: #e8c97a;
  --gold-deep: #8c6a1f;
  --ivory: #f5efe3;
  --ivory-2: #ebe3d2;
  --smoke: #a39d90;
  --smoke-2: #6f6a60;
  --ember: #d9773a;

  /* Gradients */
  --grad-gold: linear-gradient(135deg, #f1d38c 0%, #c9a24a 45%, #8c6a1f 100%);
  --grad-veil: linear-gradient(180deg, rgba(10, 9, 7, 0.15) 0%, rgba(10, 9, 7, 0.55) 55%, rgba(10, 9, 7, 0.98) 100%);

  /* Type */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;

  /* Scale */
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.6vw, 5rem);
  --step-5: clamp(3.2rem, 2rem + 6vw, 7.5rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(5rem, 3rem + 7vw, 9rem);

  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--obsidian); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

/* Subtle film grain over the whole site */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 4rem, var(--wrap)); } }
.section { padding-block: var(--space-6); position: relative; }
.section--tight { padding-block: var(--space-5); }
.section--ivory { background: var(--ivory); color: var(--obsidian); }
.section--ivory .eyebrow { color: var(--gold-deep); }
.section--ivory .lede, .section--ivory .muted { color: #5a554b; }
.section--panel { background: var(--obsidian-2); border-block: 1px solid var(--line); }

.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.25fr 1fr; } }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 0.4em; font-variation-settings: "opsz" 144, "SOFT" 30; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.15; }
h4 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 1em; }
em, .italic { font-style: italic; }
.gold-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lede { font-size: var(--step-1); color: var(--smoke); max-width: 62ch; line-height: 1.55; }
.muted { color: var(--smoke); }
.small { font-size: var(--step--1); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head { max-width: 760px; margin-bottom: var(--space-5); }
.section-head.center { margin-inline: auto; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-3); }
.section-head--row > div { max-width: 700px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95em 1.7em; border-radius: 999px;
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--b);
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--grad-gold); color: var(--obsidian); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(201, 162, 74, 0.7); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(201, 162, 74, 0.9); }
.btn--ghost { color: var(--ivory); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn--dark { background: var(--obsidian); color: var(--ivory); border-color: var(--obsidian); }
.btn--dark:hover { background: var(--obsidian-3); }
.btn--sm { padding: 0.7em 1.2em; font-size: 0.74rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.4s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ==========================================================================
   UNIVERSAL CHEEYELL HEADER
   ========================================================================== */
.uh {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.uh.is-solid, .uh.is-open { background: rgba(10, 9, 7, 0.82); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.uh__bar { height: 100%; display: flex; align-items: center; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.brand__mark { width: 38px; height: 38px; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.02em; }
.brand__sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-top: 0.3rem; }

.uh__nav { display: none; gap: 0.2rem; margin-left: 1.2rem; }
.uh__nav a { padding: 0.5rem 0.85rem; font-size: 0.82rem; font-weight: 600; color: var(--ivory-2); border-radius: 999px; transition: color 0.3s, background 0.3s; }
.uh__nav a:hover { color: var(--gold-hi); background: rgba(232, 214, 170, 0.06); }
.uh__actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.uh__eco {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}
.uh__eco:hover, .uh.is-open .uh__eco { border-color: var(--gold); color: var(--gold-hi); }
.uh__eco-dots { display: grid; grid-template-columns: repeat(3, 4px); gap: 3px; }
.uh__eco-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.uh__eco-label { display: none; }
.uh__signin { display: none; }
.uh__burger { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.uh__burger span { width: 16px; height: 1.5px; background: var(--ivory); position: relative; transition: background 0.3s; }
.uh__burger span::before, .uh__burger span::after { content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ivory); transition: transform 0.4s var(--ease); }
.uh__burger span::before { top: -5px; } .uh__burger span::after { top: 5px; }
.uh.is-menu .uh__burger span { background: transparent; }
.uh.is-menu .uh__burger span::before { transform: translateY(5px) rotate(45deg); }
.uh.is-menu .uh__burger span::after { transform: translateY(-5px) rotate(-45deg); }
.uh__user { display: none; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; }
.uh__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-gold); color: var(--obsidian); display: grid; place-items: center; font-weight: 800; }
body.is-authed .uh__user { display: inline-flex; }
body.is-authed .uh__signin, body.is-authed .uh__join { display: none !important; }

@media (min-width: 640px) { .uh__eco-label { display: inline; } .uh__signin { display: inline-flex; } }
@media (min-width: 1100px) { .uh__nav { display: flex; } .uh__burger { display: none; } }
@media (max-width: 520px) { .uh__join { display: none; } .brand__name { font-size: 1.15rem; } }

/* Ecosystem mega panel */
.eco {
  position: fixed; inset: var(--header-h) 0 auto; z-index: 99;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: rgba(10, 9, 7, 0.96); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0.35s;
}
.uh.is-open + .eco { opacity: 1; visibility: visible; transform: none; }
.eco__inner { padding-block: 2rem 2.5rem; }
.eco__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.eco__title { font-family: var(--font-display); font-size: var(--step-2); margin: 0; }
.eco__grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.eco__item {
  display: flex; gap: 0.9rem; align-items: center;
  padding: 0.85rem 1rem; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.eco__item:hover { border-color: var(--gold); background: rgba(201, 162, 74, 0.06); transform: translateY(-2px); }
.eco__item.is-current { border-color: var(--gold); background: rgba(201, 162, 74, 0.08); }
.eco__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(201, 162, 74, 0.1); color: var(--gold-hi); flex-shrink: 0; }
.eco__icon svg { width: 21px; height: 21px; }
.eco__name { font-weight: 700; font-size: 0.92rem; line-height: 1.2; }
.eco__desc { font-size: 0.76rem; color: var(--smoke); line-height: 1.35; }
.eco__host { font-size: 0.66rem; letter-spacing: 0.08em; color: var(--gold); opacity: 0.8; }

/* Mobile page menu */
.mmenu { display: none; padding: 0.5rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.mmenu a { display: block; padding: 0.7rem 0; font-family: var(--font-display); font-size: 1.5rem; border-bottom: 1px solid var(--line); }
.uh.is-menu + .eco .mmenu { display: block; }
.mmenu__actions { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
@media (min-width: 1100px) { .mmenu { display: none !important; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 clamp(3rem, 7vw, 6rem);
  isolation: isolate; overflow: hidden;
}
.hero--short { min-height: 78svh; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-veil); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 15% 85%, rgba(201, 162, 74, 0.18), transparent 55%); }
.hero__content { max-width: 980px; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--gold-hi); }
.hero .lede { color: var(--ivory-2); margin-bottom: 2.2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta strong { font-family: var(--font-display); font-size: var(--step-3); font-weight: 400; line-height: 1; color: var(--gold-hi); }
.hero__meta span { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--smoke); margin-top: 0.4rem; }
.scroll-cue { position: absolute; right: 2rem; bottom: 2rem; writing-mode: vertical-rl; font-size: 0.66rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--smoke); display: none; align-items: center; gap: 1rem; }
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 900px) { .scroll-cue { display: flex; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.4rem; background: var(--obsidian-2); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: var(--step-2); font-style: italic; color: var(--smoke); white-space: nowrap; display: inline-flex; align-items: center; gap: 3rem; }
.marquee__track span::after { content: "✦"; font-style: normal; color: var(--gold); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--obsidian-2); border: 1px solid var(--line);
  transition: transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.6s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__body h3 { font-size: var(--step-1); margin: 0; line-height: 1.2; }
.card__body p { color: var(--smoke); font-size: 0.95rem; margin: 0; }
.card__body .link-arrow { margin-top: auto; padding-top: 0.8rem; }
.card__tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(10, 9, 7, 0.7); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); color: var(--gold-hi); }
.card__meta { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.section--ivory .card { background: #fff; border-color: rgba(10, 9, 7, 0.08); }
.section--ivory .card__body p { color: #5a554b; }

/* Universe tile: big image tile with overlaid title (hub ecosystem grid) */
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem; border: 1px solid var(--line);
  transition: transform 0.7s var(--ease), border-color 0.4s;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease), filter 0.6s; filter: saturate(0.85); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 9, 7, 0) 30%, rgba(10, 9, 7, 0.92) 100%); }
.tile:hover { transform: translateY(-6px); border-color: var(--gold); }
.tile:hover img { transform: scale(1.07); filter: saturate(1.05); }
.tile__num { position: absolute; top: 1.3rem; left: 1.5rem; font-family: var(--font-display); font-style: italic; color: var(--gold-hi); font-size: 1.1rem; }
.tile__host { position: absolute; top: 1.4rem; right: 1.5rem; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-2); opacity: 0.8; }
.tile h3 { font-size: var(--step-2); margin: 0 0 0.35rem; }
.tile p { color: var(--ivory-2); font-size: 0.92rem; margin: 0 0 0.9rem; max-width: 36ch; }
.tile--lg { min-height: 520px; }
@media (min-width: 1000px) {
  .tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-3); }
  .tiles .tile { grid-column: span 4; }
  .tiles .tile--lg { grid-column: span 8; }
  .tiles .tile--md { grid-column: span 6; }
}
@media (max-width: 999px) { .tiles { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); } }

/* Feature (icon) cards */
.feature { padding: 2rem 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent); transition: border-color 0.4s, transform 0.6s var(--ease); }
.feature:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(201, 162, 74, 0.1); color: var(--gold-hi); margin-bottom: 1.4rem; border: 1px solid rgba(201, 162, 74, 0.2); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.feature p { color: var(--smoke); font-size: 0.95rem; margin: 0; }
.section--ivory .feature { border-color: rgba(10, 9, 7, 0.1); background: #fff; }
.section--ivory .feature p { color: #5a554b; }
.section--ivory .feature__icon { color: var(--gold-deep); }

/* Numbered list rows */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row__n { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: var(--step-1); min-width: 2.5ch; }
.row h4 { margin: 0 0 0.3rem; }
.row p { margin: 0; color: var(--smoke); }
@media (min-width: 900px) { .row { grid-template-columns: 6rem 1fr 1.3fr; } .row p { grid-column: 3; } .row h4 { grid-column: 2; grid-row: 1; } }

/* Image frame with gold corner accents */
.frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--wide { aspect-ratio: 16 / 11; }
.frame-wrap { position: relative; }
.frame-wrap::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--gold); border-radius: calc(var(--radius) + 4px); opacity: 0.5; z-index: -1; }
.frame__badge { position: absolute; right: -10px; bottom: 2rem; background: var(--obsidian); border: 1px solid var(--line-strong); border-radius: 14px; padding: 1rem 1.2rem; max-width: 220px; box-shadow: 0 20px 40px -20px #000; }
.frame__badge strong { display: block; font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; color: var(--gold-hi); line-height: 1; }
.frame__badge span { font-size: 0.78rem; color: var(--smoke); }
@media (max-width: 700px) { .frame__badge { right: 10px; } }

/* Quote */
.quote { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.18; font-weight: 300; letter-spacing: -0.015em; max-width: 22ch; }
.quote em { color: var(--gold-hi); }
.quote-cite { margin-top: 1.5rem; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--smoke); }

/* Testimonials */
.testi { padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--obsidian-2); display: flex; flex-direction: column; gap: 1.2rem; }
.testi__stars { color: var(--gold); letter-spacing: 0.2em; font-size: 0.85rem; }
.testi blockquote { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; font-weight: 300; }
.testi__who { margin-top: auto; display: flex; gap: 0.8rem; align-items: center; }
.testi__av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-gold); display: grid; place-items: center; color: var(--obsidian); font-weight: 800; }
.testi__who strong { display: block; font-size: 0.9rem; }
.testi__who span { font-size: 0.78rem; color: var(--smoke); }

/* Membership tiers */
.tier { position: relative; padding: 2.4rem 2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--obsidian-2); display: flex; flex-direction: column; gap: 1rem; }
.tier--featured { border-color: var(--gold); background: radial-gradient(ellipse at top, rgba(201, 162, 74, 0.14), var(--obsidian-2) 70%); }
.tier__badge { position: absolute; top: -12px; left: 2rem; background: var(--grad-gold); color: var(--obsidian); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 999px; }
.tier__name { font-family: var(--font-display); font-size: var(--step-2); margin: 0; }
.tier__price { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--gold-hi); }
.tier__price small { font-family: var(--font-body); font-size: 0.85rem; color: var(--smoke); }
.tier ul { list-style: none; padding: 0; margin: 0.5rem 0 1.5rem; display: grid; gap: 0.7rem; }
.tier li { display: flex; gap: 0.7rem; font-size: 0.93rem; color: var(--ivory-2); }
.tier li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(201, 162, 74, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c97a' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.tier .btn { margin-top: auto; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 300; font-size: var(--step-4); line-height: 1; color: var(--gold-hi); }
.stat span { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--smoke); }

/* Products (shop / wear / travel gear) */
.product { border-radius: var(--radius); overflow: hidden; background: var(--obsidian-2); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.6s var(--ease), border-color 0.4s; }
.product:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.product__media { aspect-ratio: 1; overflow: hidden; background: var(--obsidian-3); position: relative; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product:hover .product__media img { transform: scale(1.06); }
.product__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product__cat { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.product__name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; }
.product__note { font-size: 0.86rem; color: var(--smoke); }
.product__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.9rem; gap: 0.5rem; }
.product__price { font-weight: 700; color: var(--gold-hi); }
.affiliate-note { font-size: 0.74rem; color: var(--smoke-2); margin-top: 2rem; }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip { padding: 0.55rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.78rem; font-weight: 600; transition: all 0.3s; }
.chip:hover { border-color: var(--gold); color: var(--gold-hi); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--obsidian); }
.section--ivory .chip { border-color: rgba(10, 9, 7, 0.2); }
.section--ivory .chip.is-active { background: var(--obsidian); border-color: var(--obsidian); color: var(--ivory); }

/* Blog article list (editorial) */
.post-feature { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .post-feature { grid-template-columns: 1.3fr 1fr; } }
.post-feature .frame { aspect-ratio: 16 / 10; }
.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); align-items: center; transition: padding 0.4s var(--ease); }
.post-row:hover { padding-left: 0.6rem; }
.post-row img { width: 110px; height: 80px; object-fit: cover; border-radius: 10px; }
.post-row h4 { font-size: 1.15rem; margin: 0.2rem 0 0; }

/* CTA band */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: calc(var(--radius) + 8px); padding: clamp(2.5rem, 6vw, 5.5rem);
  border: 1px solid var(--line-strong);
  background: radial-gradient(ellipse at 85% 20%, rgba(201, 162, 74, 0.28), transparent 50%), var(--obsidian-2);
}
.cta h2 { font-size: var(--step-4); max-width: 18ch; }
.cta .lede { margin-bottom: 2rem; }
.cta__mark { position: absolute; right: -60px; bottom: -60px; width: 340px; opacity: 0.08; z-index: -1; }
.cta--img img.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.35; }

/* Partner / embed panel (for external live apps like world, teefati, wmbb) */
.portal {
  display: grid; gap: 2rem; align-items: center;
  border-radius: calc(var(--radius) + 6px); padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--gold); background: linear-gradient(135deg, rgba(201, 162, 74, 0.12), rgba(201, 162, 74, 0.02));
}
@media (min-width: 900px) { .portal { grid-template-columns: 1.2fr 1fr; } }
.portal__status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #8fd19e; margin-bottom: 1rem; }
.portal__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5cc274; box-shadow: 0 0 0 4px rgba(92, 194, 116, 0.18); animation: pulse 2s infinite; }
.portal__status--soon { color: var(--gold-hi); }
.portal__status--soon::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(92, 194, 116, 0); } }
.portal__url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; color: var(--gold-hi); }
.portal__screen { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--obsidian); box-shadow: 0 30px 60px -30px #000; }
.portal__chrome { display: flex; align-items: center; gap: 6px; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--obsidian-3); }
.portal__chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--smoke-2); }
.portal__chrome span { margin-left: 0.6rem; font-size: 0.72rem; color: var(--smoke); font-family: ui-monospace, monospace; }
.portal__screen img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--smoke); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.95rem 1.1rem; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); color: var(--ivory);
  transition: border-color 0.3s, background 0.3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select option { background: var(--obsidian-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(201, 162, 74, 0.05); }
.form-note { font-size: 0.82rem; color: var(--smoke); }
.form-success { display: none; padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid rgba(92, 194, 116, 0.4); background: rgba(92, 194, 116, 0.08); color: #b9e7c3; font-size: 0.92rem; }
.form.is-sent .form-success { display: block; }

/* Newsletter inline */
.inline-form { display: flex; gap: 0.5rem; flex-wrap: wrap; max-width: 520px; }
.inline-form input { flex: 1 1 220px; padding: 0.95rem 1.2rem; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--ivory); }
.inline-form input:focus { outline: none; border-color: var(--gold); }

/* Audio / track list (music, soul) */
.tracks { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.track { display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center; padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--line); transition: background 0.3s; }
.track:last-child { border-bottom: 0; }
.track:hover, .track.is-playing { background: rgba(201, 162, 74, 0.06); }
.track__play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--gold-hi); transition: all 0.3s; }
.track__play svg { width: 14px; height: 14px; }
.track.is-playing .track__play, .track__play:hover { background: var(--gold); color: var(--obsidian); border-color: var(--gold); }
.track__title { font-weight: 700; font-size: 0.95rem; }
.track__by { font-size: 0.8rem; color: var(--smoke); }
.track__len { font-size: 0.8rem; color: var(--smoke); font-variant-numeric: tabular-nums; }
.eq { display: none; gap: 2px; align-items: end; height: 14px; }
.track.is-playing .eq { display: inline-flex; }
.eq i { width: 3px; background: var(--gold); animation: eq 0.9s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: 0.2s; } .eq i:nth-child(3) { animation-delay: 0.4s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

/* Course cards */
.course__level { display: inline-flex; gap: 0.4rem; font-size: 0.72rem; color: var(--smoke); }
.course__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 0.9rem; margin-top: auto; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--smoke); }

/* Steps / timeline */
.steps { counter-reset: s; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step { counter-increment: s; padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); position: relative; }
.step::before { content: "0" counter(s); display: block; font-family: var(--font-display); font-style: italic; font-size: 2.2rem; color: var(--gold); margin-bottom: 1rem; line-height: 1; }
.step h4 { margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--smoke); font-size: 0.93rem; }
.section--ivory .step { border-color: rgba(10, 9, 7, 0.12); }
.section--ivory .step p { color: #5a554b; }

/* Accordion / FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--font-body); font-size: 1.4rem; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.9rem 0 0; color: var(--smoke); max-width: 70ch; }

/* ==========================================================================
   MEMOIR VAULT
   ========================================================================== */
.vault-lock { position: relative; }
.vault-gate {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, rgba(10, 9, 7, 0.5), rgba(10, 9, 7, 0.95) 40%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: var(--radius); padding: 2rem;
}
.vault-gate__icon { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold-hi); }
.vault-gate__icon svg { width: 26px; height: 26px; }
body.is-authed .vault-gate { display: none; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; gap: 2px; }
.lang-toggle button { padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--smoke); transition: all 0.3s; }
.lang-toggle button.is-active { background: var(--gold); color: var(--obsidian); }
[data-lang="hi"] .t-en { display: none; }
[data-lang="en"] .t-hi, html:not([data-lang]) .t-hi { display: none; }
.t-hi { font-family: var(--font-deva); }
h1 .t-hi, h2 .t-hi, h3 .t-hi { line-height: 1.3; }
.chapter { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--obsidian-2); display: flex; gap: 1.2rem; align-items: flex-start; }
.chapter__n { font-family: var(--font-display); font-style: italic; font-size: 2rem; color: var(--gold); line-height: 1; min-width: 2.2ch; }
.chapter h4 { margin: 0 0 0.3rem; }
.chapter p { margin: 0; font-size: 0.9rem; color: var(--smoke); }
.tree { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; padding: 2rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--obsidian-2); }
.tree__gen { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; position: relative; }
.tree__person { text-align: center; padding: 0.8rem 1rem; border: 1px solid var(--line-strong); border-radius: 12px; min-width: 120px; background: var(--obsidian); }
.tree__person strong { display: block; font-size: 0.9rem; }
.tree__person span { font-size: 0.72rem; color: var(--smoke); }
.tree__person--root { border-color: var(--gold); }
.tree__link { width: 1px; height: 22px; background: var(--gold); opacity: 0.6; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.uf { border-top: 1px solid var(--line); background: var(--obsidian); padding-top: var(--space-5); margin-top: 0; }
.uf__top { display: grid; gap: 3rem; padding-bottom: var(--space-5); }
@media (min-width: 960px) { .uf__top { grid-template-columns: 1.3fr 2fr; } }
.uf__brand p { color: var(--smoke); max-width: 38ch; margin-top: 1.2rem; }
.uf__cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.uf__col h5 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.1rem; }
.uf__col a, .uf__col p { display: block; font-size: 0.9rem; color: var(--ivory-2); padding: 0.28rem 0; margin: 0; transition: color 0.3s; }
.uf__col a:hover { color: var(--gold-hi); }
.uf__big { font-family: var(--font-display); font-size: clamp(3.5rem, 15vw, 15rem); line-height: 0.8; letter-spacing: -0.04em; text-align: center; padding-block: 2rem 0; margin: 0; background: linear-gradient(180deg, rgba(232, 201, 122, 0.35), rgba(232, 201, 122, 0.02)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.uf__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--smoke); }
.uf__bottom nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.uf__bottom a:hover { color: var(--gold-hi); }
.socials { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ivory-2); transition: all 0.3s; }
.socials a:hover { border-color: var(--gold); color: var(--gold-hi); }
.socials svg { width: 17px; height: 17px; }

/* ==========================================================================
   AUTH MODAL
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(5, 4, 3, 0.78); backdrop-filter: blur(8px); }
.modal__card { position: relative; width: min(100%, 460px); max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--obsidian-2); border: 1px solid var(--line-strong); border-radius: 22px; padding: 2.4rem 2rem 2rem; transform: translateY(16px) scale(0.98); transition: transform 0.5s var(--ease); box-shadow: 0 40px 80px -30px #000; }
.modal.is-open .modal__card { transform: none; }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--smoke); }
.modal__close:hover { color: var(--ivory); border-color: var(--line-strong); }
.modal__mark { width: 48px; margin-bottom: 1.2rem; }
.modal h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.modal__tabs { display: flex; gap: 0.3rem; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin: 1.4rem 0; }
.modal__tabs button { flex: 1; padding: 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--smoke); }
.modal__tabs button.is-active { background: var(--ivory); color: var(--obsidian); }
.oauth { display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }
.oauth button { display: flex; align-items: center; justify-content: center; gap: 0.7rem; padding: 0.85rem; border-radius: 12px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.9rem; transition: border-color 0.3s, background 0.3s; }
.oauth button:hover { border-color: var(--gold); background: rgba(201, 162, 74, 0.05); }
.oauth svg { width: 18px; height: 18px; }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--smoke-2); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 1.2rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.modal__msg { display: none; margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 12px; font-size: 0.86rem; background: rgba(201, 162, 74, 0.08); border: 1px solid rgba(201, 162, 74, 0.3); color: var(--gold-hi); }
.modal__msg.is-shown { display: block; }
.sso-note { display: flex; gap: 0.6rem; align-items: center; margin-top: 1.4rem; font-size: 0.76rem; color: var(--smoke); }
.sso-note svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* ==========================================================================
   MOTION
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; } .reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Utilities */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.mb-0 { margin-bottom: 0; }
.hide-sm { display: none; } @media (min-width: 720px) { .hide-sm { display: initial; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pill { display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(201, 162, 74, 0.12); color: var(--gold-hi); border: 1px solid rgba(201, 162, 74, 0.25); }
.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.5; border: 0; margin: 0; }

/* Narrow-phone header tuning */
@media (max-width: 520px) {
  .uh__bar { gap: 0.6rem; }
  .brand { gap: 0.55rem; min-width: 0; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__sub { font-size: 0.5rem; letter-spacing: 0.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
  .uh__eco { padding: 0.5rem 0.7rem; }
  .uh__burger { width: 38px; height: 38px; }
  .hero__meta { gap: 1.5rem 2rem; }
}
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 9, 7, 0.72) 0%, rgba(10, 9, 7, 0.25) 55%, transparent 80%); }

/* WriteMyBook app mockup (pure CSS, no screenshot needed) */
.app-mock { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; font-size: 0.78rem; }
.app-mock__side { border-right: 1px solid var(--line); padding: 1rem 0.8rem; display: flex; flex-direction: column; gap: 0.35rem; background: rgba(255, 255, 255, 0.015); }
.app-mock__side b { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0.2rem 0 0.4rem; }
.app-mock__side span { padding: 0.4rem 0.55rem; border-radius: 7px; color: var(--smoke); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-mock__side span.on { background: rgba(201, 162, 74, 0.12); color: var(--ivory); }
.app-mock__doc { padding: 1.4rem 1.6rem; position: relative; }
.app-mock__doc h5 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin: 0 0 0.8rem; }
.app-mock__doc p { color: var(--ivory-2); font-family: var(--font-display); font-weight: 300; font-size: 0.92rem; line-height: 1.7; margin: 0 0 0.7rem; }
.app-mock__caret { display: inline-block; width: 1.5px; height: 1em; background: var(--gold-hi); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.app-mock__ai { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; padding: 0.7rem 0.9rem; border-radius: 10px; border: 1px solid rgba(201, 162, 74, 0.35); background: rgba(10, 9, 7, 0.9); display: flex; gap: 0.6rem; align-items: center; color: var(--ivory-2); }
.app-mock__ai svg { width: 16px; height: 16px; color: var(--gold-hi); flex-shrink: 0; }
.app-mock__bar { display: flex; justify-content: space-between; font-size: 0.66rem; color: var(--smoke); padding: 0.5rem 1rem; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .app-mock { grid-template-columns: 1fr; } .app-mock__side { display: none; } }

/* Book covers */
.cover { aspect-ratio: 2 / 3; border-radius: 4px 12px 12px 4px; position: relative; overflow: hidden; box-shadow: -6px 10px 30px -10px rgba(0, 0, 0, 0.9), inset 6px 0 10px -6px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; justify-content: space-between; padding: 1.4rem 1.2rem; transition: transform 0.6s var(--ease); }
.cover:hover { transform: translateY(-8px) rotate(-1deg); }
.cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent); }
.cover__imprint { font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.8; }
.cover__title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; }
.cover__author { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.cover--a { background: linear-gradient(160deg, #1b1812, #0a0907); color: var(--gold-hi); border: 1px solid rgba(201, 162, 74, 0.35); }
.cover--b { background: linear-gradient(160deg, #e8c97a, #8c6a1f); color: #1b1408; }
.cover--c { background: linear-gradient(160deg, #f5efe3, #d9ccb0); color: #1b1812; }
.cover--d { background: linear-gradient(160deg, #3a1f12, #120a06); color: #f1d38c; }
.covers { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.vault-gate { place-items: start center; padding-top: 3rem; }
.vault-gate > div { position: sticky; top: calc(var(--header-h) + 2rem); max-width: 440px; }
.section--ivory .field label { color: #6b655a; }
.section--ivory .field input, .section--ivory .field select, .section--ivory .field textarea { background: #fff; color: var(--obsidian); border-color: rgba(10, 9, 7, 0.18); }
.section--ivory .field select option { background: #fff; }
.section--ivory .form-success { color: #1d5a2b; background: rgba(46, 140, 70, 0.08); }
.section--ivory h3, .section--ivory h2 { color: var(--obsidian); }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 300; transform: translate(-50%, 20px); opacity: 0; padding: 0.85rem 1.3rem; border-radius: 999px; background: var(--obsidian-3); border: 1px solid var(--line-strong); color: var(--ivory); font-size: 0.86rem; box-shadow: 0 20px 40px -20px #000; transition: opacity 0.35s, transform 0.45s var(--ease); max-width: calc(100% - 2rem); text-align: center; pointer-events: none; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
#artGrid { transition: opacity 0.5s; }
.kids-mark { width: 58%; height: auto; filter: drop-shadow(0 10px 20px rgba(140, 106, 31, 0.35)); }
.hero__media { overflow: hidden; }
html { overflow-x: clip; }
/* Signed-in header on phones: avatar only; sign-out lives in the menu */
.mm-signout { display: none; }
body.is-authed .mm-signout { display: inline-flex; }
body.is-authed .mmenu__actions [data-auth="signin"], body.is-authed .mmenu__actions [data-auth="signup"] { display: none; }
@media (max-width: 640px) { .uh__user button { display: none; } }

/* Per-world accent (set on <html> by build.py) */
.brand__sub { color: var(--accent, var(--gold)); }
.eco__icon { background: rgba(255, 255, 255, 0.03); }
.eco__mark { width: 34px; height: 34px; }
.brand__mark { width: 42px; height: 42px; }

/* Brand page */
.logo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.logo-card { margin: 0; padding: 2rem 1.5rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--obsidian-2); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2rem; }
.logo-card__mark { width: 96px; height: 96px; }
.logo-card figcaption { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--smoke); }
.logo-card strong { color: var(--ivory); font-size: 1rem; }
.logo-card__swatch { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font-family: ui-monospace, monospace; font-size: 0.75rem; }
.logo-card__swatch i { width: 12px; height: 12px; border-radius: 50%; }
.logo-card__links { display: flex; gap: 0.8rem; justify-content: center; margin-top: 0.4rem; }
.logo-card__links a { color: var(--gold); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.palette { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.palette div { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; font-size: 0.8rem; }
.palette i { display: block; height: 80px; }
.palette span { display: block; padding: 0.7rem 0.9rem; color: var(--smoke); }
.palette b { display: block; color: var(--ivory); font-weight: 700; }

/* Shared contact card + floating WhatsApp (one number across Cheeyell) */
.contact-cta { padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: var(--radius); border: 1px solid var(--gold); background: radial-gradient(ellipse at top right, rgba(201, 162, 74, 0.14), transparent 60%), var(--obsidian-2); color: var(--ivory); }
.contact-cta h3 { margin-bottom: 0.5rem; }
.contact-cta .muted { color: var(--smoke); }
.section--ivory .contact-cta h3 { color: var(--ivory); }
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 150; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6); transition: transform 0.3s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
