/* ==========================================================================
   CHANTÉE — THE EXPERIENCE CAFÉ
   Agency Campaign Proposal — Interactive Presentation
   Design system per DESIGN.md, reconciled to the CHANTÉE brand identity
   ========================================================================== */

:root{
  /* --- Warm base system (DESIGN.md tokens) --- */
  --cream:    #F7F3EB;
  --cream-2:  #EDE8DC;
  --coffee:   #3D2A1E;
  --coffee-m: #5C4033;
  --biscuit:  #C48B57;
  --biscuit-l:#DCAA76;
  --sage:     #A3B19B;
  --blush:    #DDA7A5;
  --taupe:    #B4A396;
  --white:    #FFFFFF;

  /* --- CHANTÉE brand layer (from the logo lockup) --- */
  --forest:   #0E4430;
  --forest-d: #093022;
  --gold:     #F2C230;
  --gold-d:   #D9A81C;

  /* --- Dark grounds (brand-shifted inks) --- */
  --ink:      #0A1712;
  --ink-2:    #0E1F18;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --title-weight: 800;
  --tracking: -0.02em;

  --f-display: 'Alexandria', system-ui, sans-serif;
  --f-body:    'IBM Plex Sans Arabic', system-ui, sans-serif;
}

/* Switchable type presets */
body[data-font="alexandria-ibm"]  { --f-display:'Alexandria',sans-serif; --f-body:'IBM Plex Sans Arabic',sans-serif; --title-weight:800; --tracking:-0.02em; }
body[data-font="readex"]          { --f-display:'Readex Pro',sans-serif;  --f-body:'Readex Pro',sans-serif;           --title-weight:700; --tracking:-0.01em; }
body[data-font="tajawal-almarai"] { --f-display:'Tajawal',sans-serif;     --f-body:'Almarai',sans-serif;              --title-weight:800; --tracking:normal; }
body[data-font="elmessiri"]       { --f-display:'El Messiri',serif;       --f-body:'IBM Plex Sans Arabic',sans-serif; --title-weight:700; --tracking:normal; }
body[data-font="zain-alexandria"] { --f-display:'Zain',sans-serif;        --f-body:'Alexandria',sans-serif;           --title-weight:900; --tracking:normal; }

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; padding:0;
  background:var(--ink);
  color:var(--coffee);
  font-family:var(--f-body);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
/* An author-origin display rule outranks the UA's [hidden] rule, so restate it */
[hidden]{ display:none !important; }
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--biscuit); color:var(--cream); }
::-webkit-scrollbar{ width:5px; }
::-webkit-scrollbar-track{ background:var(--ink); }
::-webkit-scrollbar-thumb{ background:var(--coffee-m); border-radius:10px; }

/* ===================== GLOBAL OVERLAYS ===================== */
.grain{
  position:fixed; inset:0; pointer-events:none; z-index:9999; opacity:.12;
  background-image:url("https://www.transparenttextures.com/patterns/stardust.png");
}
.progress{
  position:fixed; top:0; left:0; right:0; height:3px; width:0%;
  background:linear-gradient(90deg,var(--gold),var(--biscuit));
  z-index:10001;
}
.dots{
  position:fixed; left:1.4rem; top:50%; transform:translateY(-50%);
  display:flex; flex-direction:column; gap:.8rem; z-index:9000;
}
.dots a{
  width:9px; height:9px; border-radius:50%;
  background:rgba(247,243,235,.16);
  transition:all .4s var(--ease); position:relative;
}
.dots a::after{
  content:attr(data-label);
  position:absolute; left:20px; top:50%; transform:translateY(-50%) translateX(-6px);
  font-size:.6rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase;
  white-space:nowrap; color:var(--biscuit-l); opacity:0; pointer-events:none;
  transition:all .35s var(--ease);
}
.dots a:hover::after{ opacity:1; transform:translateY(-50%) translateX(0); }
.dots a.on{ background:var(--gold); transform:scale(1.35); }
.dots.on-light a{ background:rgba(61,42,30,.18); }
.dots.on-light a::after{ color:var(--coffee-m); }
.dots.on-light a.on{ background:var(--biscuit); }

/* ===================== SECTION SHELL ===================== */
.s{
  position:relative; min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  padding:7rem 2rem; overflow:hidden;
}
.s-inner{ max-width:1160px; width:100%; margin:0 auto; }
.s.light{ background:var(--cream); color:var(--coffee); }
.s.light-2{ background:var(--cream-2); color:var(--coffee); }
.s.dark{ background:var(--ink); color:var(--cream); }
.s.dark-2{ background:var(--ink-2); color:var(--cream); }
.s.forest{ background:var(--forest-d); color:var(--cream); }
.s.deepest{ background:#050D0A; color:var(--cream); }
.s.auto-h{ min-height:auto; }

.g2{ display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; }
.g2.wide-left{ grid-template-columns:1.1fr .9fr; }

/* ===================== TYPE ===================== */
.idx{
  font-size:.75rem; font-weight:700; letter-spacing:.25em;
  color:var(--biscuit); text-transform:uppercase; margin-bottom:1.4rem;
  display:flex; align-items:center; gap:.9rem;
}
.idx::after{ content:""; height:1px; width:56px; background:currentColor; opacity:.4; }
.idx.center{ justify-content:center; }
.idx.center::before{ content:""; height:1px; width:56px; background:currentColor; opacity:.4; }
.s.light .idx,.s.light-2 .idx{ color:var(--coffee-m); }

h1,h2,h3,h4{ font-family:var(--f-display); letter-spacing:var(--tracking); margin:0; line-height:1.12; }
h2.title{ font-size:clamp(2.2rem,5.5vw,4.4rem); font-weight:var(--title-weight); }
h3.sub{ font-size:clamp(1.3rem,2.6vw,1.95rem); font-weight:var(--title-weight); }
.lead{ font-size:clamp(1rem,2vw,1.2rem); line-height:2; opacity:.82; max-width:58ch; }
.small{ font-size:.92rem; line-height:1.85; opacity:.72; }
.meta{ font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; opacity:.55; font-weight:700; }
.quote{ font-family:var(--f-display); font-size:clamp(1.6rem,3.5vw,2.4rem); line-height:1.5; font-weight:var(--title-weight); }
.ar{ direction:rtl; unicode-bidi:isolate; text-align:right; }
.ar.block{ display:block; margin-bottom:.45rem; }
.quote.ar{ text-align:left; }
.gold{ color:var(--gold); }
.bisc{ color:var(--biscuit); }
.s.light .bisc,.s.light-2 .bisc{ color:var(--coffee-m); }
.center{ text-align:center; }
.mx-auto{ margin-left:auto; margin-right:auto; }

/* ===================== BUTTONS / CHIPS ===================== */
.btn-primary{
  display:inline-flex; align-items:center; gap:.7rem;
  background:var(--biscuit); color:var(--white);
  padding:.9rem 2.2rem; border-radius:100px;
  font-weight:700; font-size:.95rem; font-family:var(--f-body);
  border:none; cursor:pointer; transition:all .45s var(--ease);
}
.btn-primary:hover{ background:var(--gold); color:var(--forest-d); transform:translateY(-2px); box-shadow:0 14px 40px -12px rgba(242,194,48,.5); }
.btn-ghost{
  display:inline-flex; align-items:center; gap:.7rem;
  border:1.5px solid rgba(247,243,235,.25); color:var(--cream);
  padding:.9rem 2.2rem; border-radius:100px; font-weight:700; font-size:.95rem;
  font-family:var(--f-body); background:transparent; cursor:pointer;
  transition:all .45s var(--ease);
}
.s.light .btn-ghost,.s.light-2 .btn-ghost,#hero .btn-ghost{ border-color:rgba(61,42,30,.25); color:var(--coffee); }
.btn-ghost:hover{ border-color:var(--biscuit); background:rgba(196,139,87,.12); }

.chip{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.7rem 1.6rem; border-radius:100px;
  border:1px solid rgba(247,243,235,.12);
  font-size:.88rem; font-weight:700; transition:all .4s var(--ease);
}
.s.light .chip,.s.light-2 .chip{ border-color:rgba(61,42,30,.14); background:rgba(255,255,255,.55); }
.chip:hover{ border-color:var(--biscuit); background:rgba(196,139,87,.15); transform:translateY(-2px); }
.chip-row{ display:flex; flex-wrap:wrap; gap:.7rem; }

.tag{
  display:inline-block; font-size:.66rem; font-weight:800; letter-spacing:.18em;
  text-transform:uppercase; padding:.4rem .85rem; border-radius:100px;
  background:rgba(242,194,48,.14); color:var(--gold); border:1px solid rgba(242,194,48,.28);
}
.s.light .tag,.s.light-2 .tag{ background:rgba(196,139,87,.14); color:var(--coffee-m); border-color:rgba(196,139,87,.3); }

/* ===================== REVEAL ===================== */
.rv{ opacity:0; transform:translateY(45px); transition:opacity .85s var(--ease), transform .85s var(--ease); }
.rv-r{ opacity:0; transform:translateX(45px); transition:opacity .85s var(--ease), transform .85s var(--ease); }
.rv-s{ opacity:0; transform:scale(.92); transition:opacity .85s var(--ease), transform .85s var(--ease); }
.rv.in,.rv-r.in,.rv-s.in{ opacity:1; transform:none; }
.stg > *{ opacity:0; transform:translateY(38px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.stg.in > *{ opacity:1; transform:none; }
.stg.in > *:nth-child(1){ transition-delay:.05s }
.stg.in > *:nth-child(2){ transition-delay:.13s }
.stg.in > *:nth-child(3){ transition-delay:.21s }
.stg.in > *:nth-child(4){ transition-delay:.29s }
.stg.in > *:nth-child(5){ transition-delay:.37s }
.stg.in > *:nth-child(6){ transition-delay:.45s }
.stg.in > *:nth-child(7){ transition-delay:.53s }
.stg.in > *:nth-child(8){ transition-delay:.6s }
