/* ==========================================================
   Dahab Coffee — "Du grain à la tasse"
   ========================================================== */
:root {
  --espresso: #110E0C;
  --espresso-2: #1A1512;
  --night: #0B0908;
  --cream: #F1EAE0;
  --paper: #F5EFE6;
  --ink: #182124;
  --gold: #A9926A;
  --gold-l: #CDB585;
  --gold-xl: #E6D6AE;
  --muted-d: rgba(241, 234, 224, .62);
  --muted-l: #6f6a61;

  --f-display: "Noto Serif Display", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-logo: "Cinzel", "Trajan Pro", Georgia, serif;

  --gutter: clamp(18px, 4.2vw, 64px);
  --nav-h: 76px;
  --radius: 36px;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --ui: var(--cream);
  --ui-muted: var(--muted-d);
}
body.ui-light { --ui: var(--ink); --ui-muted: var(--muted-l); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--night); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-loading, body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
i { font-style: italic; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }

video { width: 100%; height: 100%; object-fit: cover; background: var(--espresso); }

/* ---------- Type ---------- */
.chap-title, .title-xl, .title-xxl, .menu-links a {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 64;
  font-stretch: 64%;
  font-weight: 560;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.005em;
}
.chap-title i, .title-xl i, .title-xxl i, .footer-tag i {
  text-transform: none; font-weight: 300; font-variation-settings: "wdth" 80; font-stretch: 80%;
  color: var(--gold-l); letter-spacing: -.02em;
}
.light .title-xl i { color: var(--gold); }
.title-xl { font-size: clamp(2.9rem, 7.4vw, 7.8rem); }
.title-xxl { font-size: clamp(3.6rem, 12vw, 13rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.eyebrow span {
  font-family: var(--f-display); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none;
  color: var(--gold); display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow span::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.lede { font-size: clamp(15px, 1.15vw, 17px); font-weight: 300; max-width: 44ch; line-height: 1.7; }
.dark .lede { color: var(--muted-d); }
.light .lede { color: var(--muted-l); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .06em;
  transition: color .5s var(--ease), border-color .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: none; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold::before { background: var(--gold-xl); }
.btn-line { border: 1px solid currentColor; }
.dark .btn-line { color: var(--cream); border-color: rgba(241,234,224,.4); }
.dark .btn-line::before { background: var(--cream); }
.dark .btn-line:hover { color: var(--night); border-color: var(--cream); }
.light .btn-line::before { background: var(--ink); }
.light .btn-line:hover { color: var(--paper); }

/* ==========================================================
   LOADER
   ========================================================== */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--night); color: var(--cream);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s var(--ease-io);
}
.loader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader-mark { display: grid; justify-items: center; gap: 4px; transition: transform 1.2s var(--ease-io), opacity .8s; }
.loader.done .loader-mark { transform: translateY(-30vh); opacity: 0; }
.loader-cup { width: 64px; height: 48px; overflow: visible; }
.loader-cup path { fill: none; stroke: var(--gold-l); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 1.6s var(--ease) forwards; }
.loader-cup .handle { animation-delay: .2s; }
.loader-cup .saucer { animation-delay: .3s; }
.loader-cup .steam-a, .loader-cup .steam-b { animation: draw 1.4s var(--ease) .5s forwards, steamUp 2.4s ease-in-out 1.6s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes steamUp { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-2px); opacity: .5; } }
.loader-word { font-family: var(--f-logo); font-weight: 700; font-size: 34px; letter-spacing: .06em; margin-top: 6px; opacity: 0; animation: fadeUp 1s var(--ease) .4s forwards; }
.loader-sub { font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--muted-d); opacity: 0; animation: fadeUp 1s var(--ease) .6s forwards; }
.loader-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(32px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 18px; }
.loader-bar { flex: 1; height: 1px; background: rgba(241,234,224,.14); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.loader-num { font-family: var(--f-display); font-style: italic; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--gold-l); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .065;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}
@media (hover: none) { .grain { inset: 0; animation: none; opacity: .05; } }

/* ---------- Cursor (desktop) ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 160; pointer-events: none; display: none; }
.has-cursor .cursor-dot { display: block; }
.has-cursor .cursor { display: grid; place-items: center; }
.cursor {
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 1px solid rgba(205, 181, 133, .7);
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .4s, border-color .4s, opacity .3s;
}
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--gold-l); }
.cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(205,181,133,.14); }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--gold); border-color: var(--gold); }
.cursor-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--night); opacity: 0; transition: opacity .3s; }
.cursor.is-label .cursor-label { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor input { cursor: text; }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--ui);
  transition: color .6s var(--ease), background-color .6s, backdrop-filter .6s, transform .8s var(--ease);
}
.nav::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: currentColor; opacity: 0; transition: opacity .6s; }
.nav.solid { background: rgba(17, 14, 12, .55); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.nav.solid::after { opacity: .1; }
body.ui-light .nav.solid { background: rgba(245, 239, 230, .72); }
.nav.hide { transform: translateY(-100%); }
body.menu-open .nav { color: var(--cream); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
body.menu-open .nav::after { opacity: 0; }
body.is-loading .nav, body.is-loading .chapter-ind { opacity: 0; }
.nav, .chapter-ind { transition: opacity .8s .4s, color .6s var(--ease), background-color .6s, transform .8s var(--ease); }

.logo { display: inline-grid; justify-items: center; justify-self: start; line-height: 1; }
.logo-cup { width: 22px; height: 17px; color: var(--gold-l); margin-bottom: 1px; }
body.ui-light .logo-cup { color: var(--gold); }
.logo-word { font-family: var(--f-logo); font-weight: 700; font-size: 21px; letter-spacing: .05em; }
.logo-sub { font-family: var(--f-logo); font-weight: 600; font-size: 7.5px; letter-spacing: .5em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; margin-top: 2px; padding-left: .5em; }
.logo-sub::before, .logo-sub::after { content: ""; width: 16px; height: 1px; background: var(--gold); }

.nav-links { display: none; gap: 34px; font-size: 13px; letter-spacing: .02em; }
.nav-links a { position: relative; padding: 6px 0; opacity: .78; transition: opacity .4s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 12px; justify-self: end; grid-column: 3; }
.pill { height: 38px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; font-weight: 500; letter-spacing: .06em; opacity: .9; transition: background-color .4s, color .4s; }
.pill:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.burger { width: 42px; height: 42px; display: grid; place-content: center; gap: 7px; -webkit-tap-highlight-color: transparent; }
.burger span { display: block; width: 24px; height: 1.4px; background: currentColor; transition: transform .6s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.2px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.2px) rotate(-45deg); }
@media (min-width: 1060px) { .nav-links { display: flex; } }

/* Menu */
.menu {
  position: fixed; inset: 0; z-index: 110; background: var(--night); color: var(--cream);
  display: grid; grid-template-columns: 1fr;
  clip-path: circle(0% at calc(100% - var(--gutter) - 21px) calc(var(--nav-h) / 2));
  transition: clip-path 1s var(--ease-io); visibility: hidden;
}
.menu.open { clip-path: circle(150% at calc(100% - var(--gutter) - 21px) calc(var(--nav-h) / 2)); visibility: visible; }
.menu-media { position: absolute; inset: 0; opacity: .28; }
.menu-body { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + 6svh + env(safe-area-inset-top)) var(--gutter) calc(30px + env(safe-area-inset-bottom)); }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { font-size: clamp(2.6rem, 11vw, 6.4rem); display: flex; align-items: baseline; gap: 16px; padding: 6px 0; border-bottom: 1px solid rgba(241,234,224,.1); opacity: 0; transform: translateY(40px); transition: opacity .6s, transform .9s var(--ease), color .4s; }
.menu-links a:hover { color: var(--gold-l); }
.menu-links small { font-family: var(--f-display); font-style: italic; font-size: 14px; color: var(--gold); text-transform: none; font-weight: 400; }
.menu.open .menu-links a { opacity: 1; transform: none; }
.menu.open .menu-links a:nth-child(1) { transition-delay: .25s; } .menu.open .menu-links a:nth-child(2) { transition-delay: .3s; }
.menu.open .menu-links a:nth-child(3) { transition-delay: .35s; } .menu.open .menu-links a:nth-child(4) { transition-delay: .4s; }
.menu.open .menu-links a:nth-child(5) { transition-delay: .45s; } .menu.open .menu-links a:nth-child(6) { transition-delay: .5s; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13px; color: var(--muted-d); margin-top: 28px; }
.menu-foot a:hover { color: var(--cream); }
@media (min-width: 900px) {
  .menu { grid-template-columns: 40% 1fr; }
  .menu-media { position: relative; opacity: 1; }
}

/* ---------- Global chapter indicator ---------- */
.chapter-ind {
  position: fixed; z-index: 100; left: var(--gutter); bottom: calc(26px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px; color: var(--cream);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; pointer-events: none;
  padding: 8px 18px 8px 14px; margin-left: -14px; border-radius: 999px;
  background: rgba(17, 14, 12, .42); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.chapter-ind.is-light { color: var(--ink); background: rgba(245, 239, 230, .94); box-shadow: 0 0 0 1px rgba(24, 33, 36, .08); }
.chapter-ind.is-light .ci-num { color: var(--gold); }
.chapter-ind.gone { opacity: 0; }
.ci-num { font-family: var(--f-display); font-style: italic; font-size: 22px; letter-spacing: 0; color: var(--gold-l); min-width: 26px; }
.ci-track { width: 72px; height: 1px; background: currentColor; opacity: .25; position: relative; overflow: hidden; }
.ci-track i { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(0); }
.chapter-ind .ci-track { opacity: 1; background: color-mix(in srgb, currentColor 22%, transparent); }
.ci-label { transition: opacity .4s; }

/* ==========================================================
   THE FILM (story)
   ========================================================== */
.story { position: relative; height: 560vh; height: 560svh; background: var(--paper); }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--night); color: var(--cream);
  will-change: clip-path;
}
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene[data-i="1"] { z-index: 1; } .scene[data-i="2"] { z-index: 2; } .scene[data-i="3"] { z-index: 3; }
.scene:not([data-i="0"]) { clip-path: circle(0px at 50% 50%); visibility: hidden; }
.scene video { position: absolute; inset: 0; will-change: transform; transform-origin: 50% 50%; }
.shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8,6,5,.88) 0%, rgba(8,6,5,.35) 38%, rgba(8,6,5,0) 62%),
    linear-gradient(90deg, rgba(8,6,5,.55) 0%, rgba(8,6,5,0) 60%),
    linear-gradient(180deg, rgba(8,6,5,.5) 0%, rgba(8,6,5,0) 22%);
}
.scene::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; }

.ring {
  position: absolute; z-index: 5; left: 50%; top: 50%; width: 0; height: 0;
  border-radius: 50%; border: 1px solid var(--gold-l);
  box-shadow: 0 0 60px rgba(205,181,133,.35), inset 0 0 60px rgba(205,181,133,.18);
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none;
}

.chap {
  position: absolute; z-index: 8; left: var(--gutter); right: var(--gutter);
  bottom: calc(96px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  grid-template-areas: "eye eye" "title side"; align-items: end; column-gap: 6vw;
  pointer-events: none;
}
.chap-eyebrow {
  grid-area: eye; display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted-d);
  opacity: 0;
}
.chap-eyebrow span { font-family: var(--f-display); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 15px; color: var(--gold-l); display: inline-flex; align-items: center; gap: 14px; }
.chap-eyebrow span::after { content: ""; width: 40px; height: 1px; background: currentColor; }
.chap-title { grid-area: title; font-size: clamp(3.8rem, 11vw, 12rem); color: var(--cream); }
.ln { display: block; overflow: hidden; padding: .02em 0 .06em; margin-bottom: -.06em; }
.ln > span { display: block; transform: translate3d(0, 150%, 0); will-change: transform; }
.chap-side { grid-area: side; padding-bottom: 1.2vw; opacity: 0; }
.chap-copy { font-size: 15px; font-weight: 300; line-height: 1.7; color: rgba(241,234,224,.78); }

.cards {
  position: absolute; z-index: 8; right: var(--gutter); top: calc(var(--nav-h) + 6svh);
  display: grid; gap: 10px; width: 300px;
}
.card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 16px;
  background: rgba(20, 16, 13, .42); border: 1px solid rgba(241,234,224,.14);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  opacity: 0; will-change: transform, opacity;
}
.card-n { font-family: var(--f-display); font-style: italic; color: var(--gold-l); font-size: 18px; min-width: 22px; line-height: 1.2; }
.card h3 { font-family: var(--f-display); font-variation-settings: "wdth" 70; font-stretch: 70%; font-weight: 500; text-transform: uppercase; font-size: 19px; letter-spacing: .03em; line-height: 1.1; }
.card p { font-size: 12.5px; font-weight: 300; color: var(--muted-d); margin-top: 4px; line-height: 1.5; }

.scroll-hint {
  position: absolute; z-index: 8; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted-d);
}
.scroll-hint i { position: relative; width: 22px; height: 34px; border: 1px solid rgba(241,234,224,.4); border-radius: 12px; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 2px; height: 6px; margin-left: -1px; border-radius: 2px; background: var(--gold-l); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 860px) {
  .story { height: 500vh; height: 500svh; }
  .chap { grid-template-columns: 1fr; grid-template-areas: "eye" "title" "side"; bottom: calc(78px + env(safe-area-inset-bottom)); }
  .chap-title { font-size: clamp(3.2rem, 17vw, 6.5rem); }
  .chap-eyebrow { margin-bottom: 16px; }
  .chap-side { padding: 18px 0 0; max-width: 36ch; }
  .chap-copy { font-size: 14px; }
  .shade { background: linear-gradient(0deg, rgba(8,6,5,.92) 0%, rgba(8,6,5,.55) 38%, rgba(8,6,5,0) 66%), linear-gradient(180deg, rgba(8,6,5,.55) 0%, rgba(8,6,5,0) 20%); }
  .cards { left: var(--gutter); right: var(--gutter); width: auto; top: calc(var(--nav-h) + 1svh + env(safe-area-inset-top)); grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .card { flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; }
  .card h3 { font-size: 14px; }
  .card p { display: none; }
  .card-n { font-size: 14px; }
  .scroll-hint { display: none; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .chap-title { font-size: clamp(2.4rem, 15svh, 5rem); }
  .chap-side, .cards { display: none; }
  .chap { bottom: 60px; }
}

/* ==========================================================
   SECTIONS (stacked pages)
   ========================================================== */
.section {
  position: relative; overflow: clip;
  border-radius: var(--radius) var(--radius) 0 0; margin-top: calc(var(--radius) * -1);
  padding: clamp(120px, 14vw, 200px) 0 clamp(120px, 13vw, 190px);
}
.section.light { background: var(--paper); color: var(--ink); }
.section.dark { background: var(--espresso); color: var(--cream); }
.section::after {
  content: ""; position: absolute; inset: 0; z-index: 20; background: #000; pointer-events: none;
  opacity: calc(var(--out, 0) * .6);
}
.section-inner { position: relative; transform: translate3d(0, calc(var(--out, 0) * 16vh), 0) scale(calc(1 - var(--out, 0) * .06)); transform-origin: 50% 100%; }
.univers { margin-top: 0; border-radius: 0; padding-top: clamp(90px, 10vw, 150px); }

.reveal { opacity: 0; transform: translate3d(0, 50px, 0); transition: opacity 1.3s var(--ease), transform 1.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 05 Univers ---------- */
.words {
  font-family: var(--f-display); font-weight: 300; font-variation-settings: "wdth" 82; font-stretch: 82%;
  font-size: clamp(2.1rem, 4.9vw, 5.2rem); line-height: 1.04; letter-spacing: -.02em; max-width: 25ch;
}
.words .w { opacity: .12; transition: opacity .3s linear; }
.words .w.gold { color: var(--gold); font-style: italic; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); margin-top: clamp(80px, 10vw, 150px); }
.pillar {
  position: relative; aspect-ratio: 3 / 4.1; border-radius: 22px; overflow: hidden; color: var(--cream); background: var(--espresso);
  clip-path: inset(100% 0 0 0 round 22px); transition: clip-path 1.5s var(--ease-io);
}
.pillar.in { clip-path: inset(0 0 0 0 round 22px); }
.pillar:nth-child(2) { margin-top: clamp(0px, 6vw, 90px); }
.pillar:nth-child(2).in { transition-delay: .12s; }
.pillar:nth-child(3).in { transition-delay: .24s; }
.pillar-media { position: absolute; inset: 0; }
.pillar-media video { transform: scale(1.25); transition: transform 2.4s var(--ease); }
.pillar.in .pillar-media video { transform: scale(1.02); }
.pillar:hover .pillar-media video { transform: scale(1.08); }
.pillar-body { position: absolute; inset: auto 0 0 0; padding: clamp(20px, 2.2vw, 30px); background: linear-gradient(0deg, rgba(8,6,5,.85), rgba(8,6,5,0)); }
.pillar-body span { font-family: var(--f-display); font-style: italic; color: var(--gold-l); font-size: 16px; }
.pillar-body h3 { font-family: var(--f-display); font-variation-settings: "wdth" 66; font-stretch: 66%; font-weight: 560; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 38px); line-height: .95; margin: 8px 0 8px; }
.pillar-body p { font-size: 13.5px; font-weight: 300; color: rgba(241,234,224,.75); max-width: 30ch; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid rgba(24,33,36,.14); }
.stat { padding: clamp(26px, 3vw, 44px) clamp(10px, 2vw, 28px) 0 0; }
.stat b { font-family: var(--f-display); font-variation-settings: "wdth" 64; font-stretch: 64%; font-weight: 400; font-size: clamp(3.4rem, 7vw, 7.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat sup { font-family: var(--f-display); font-style: italic; font-size: clamp(16px, 1.6vw, 22px); color: var(--gold); margin-left: 4px; vertical-align: top; position: relative; top: .5em; }
.stat span { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-l); }

/* ---------- 06 Nos cafés ---------- */
.cafes { padding-bottom: clamp(120px, 12vw, 180px); }
.cafes-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.orbit { position: relative; width: min(84vw, 660px); aspect-ratio: 1; margin: clamp(50px, 6vw, 90px) auto 0; }
.orbit-circle {
  position: absolute; inset: 9%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(205,181,133,.25);
  transform: scale(var(--oc, .6)); will-change: transform;
}
.orbit-circle video { transform: scale(1.12); }
.orbit-text { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.orbit-text text { font-family: var(--f-body); font-size: 13px; font-weight: 500; letter-spacing: .42em; fill: var(--gold-l); }
.bag { position: absolute; width: 36%; will-change: transform; }
.bag svg { width: 100%; height: auto; filter: drop-shadow(0 40px 40px rgba(0,0,0,.55)); }
.bag figcaption { margin-top: 10px; text-align: center; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-d); }
.bag figcaption b { color: var(--gold-l); font-weight: 500; }
.bag-dark { left: -20%; bottom: -4%; }
.bag-gold { right: -20%; bottom: 10%; width: 40%; }
.cafes-foot { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: clamp(60px, 7vw, 100px); }
.cafes-foot .btn-row { justify-content: center; }

/* ---------- 07 Académie ---------- */
.academie { padding-top: 0; }
.aca-media {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  clip-path: inset(var(--ins, 0%) var(--ins-x, 0%) round var(--rad, 0px)); will-change: clip-path;
}
.aca-media video { position: absolute; inset: 0; transform: scale(var(--vz, 1.1)); }
.aca-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,14,12,1) 0%, rgba(17,14,12,.55) 35%, rgba(17,14,12,.1) 70%), linear-gradient(90deg, rgba(17,14,12,.5), transparent 70%); }
.aca-title { position: absolute; left: 0; right: 0; bottom: clamp(40px, 6vw, 90px); }
.aca-title .title-xl { max-width: 17ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(241,234,224,.12); margin-top: clamp(30px, 5vw, 70px); }
.step { padding: clamp(28px, 3vw, 44px) clamp(16px, 2.4vw, 36px) 0 0; border-right: 1px solid rgba(241,234,224,.08); }
.step + .step { padding-left: clamp(16px, 2.4vw, 36px); }
.step:last-child { border-right: 0; }
.step.reveal.in:nth-child(2) { transition-delay: .1s; } .step.reveal.in:nth-child(3) { transition-delay: .2s; }
.step-n { font-family: var(--f-display); font-style: italic; color: var(--gold-l); font-size: 18px; }
.step h3 { font-family: var(--f-display); font-variation-settings: "wdth" 66; font-stretch: 66%; text-transform: uppercase; font-weight: 560; font-size: clamp(30px, 3vw, 44px); line-height: 1; margin: 18px 0 12px; }
.step p { color: var(--muted-d); font-weight: 300; font-size: 15px; max-width: 32ch; }
.quote { margin-top: clamp(80px, 9vw, 130px); max-width: 30ch; }
.quote p { font-family: var(--f-display); font-weight: 300; font-style: italic; font-variation-settings: "wdth" 85; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.18; }
.quote cite { display: block; margin-top: 22px; font-style: normal; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l); }

/* ---------- 08 Stores ---------- */
.stores-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(24,33,36,.16); background: #fff; width: min(100%, 360px); transition: border-color .4s, box-shadow .4s; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(169,146,106,.15); }
.search svg { width: 18px; height: 18px; color: var(--muted-l); flex: none; }
.search input { border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); width: 100%; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 56px 0 30px; }
.city { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(24,33,36,.14); font-size: 13px; white-space: nowrap; transition: background-color .4s, color .4s, border-color .4s; -webkit-tap-highlight-color: transparent; }
.city small { font-family: var(--f-display); font-style: italic; color: var(--gold); margin-left: 7px; font-size: 13px; }
.city:hover { border-color: var(--ink); }
.city[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.city[aria-selected="true"] small { color: var(--gold-l); }
.store-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); border-top: 1px solid rgba(24,33,36,.12); }
.store a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 6px; border-bottom: 1px solid rgba(24,33,36,.12); animation: pop .6s var(--ease) both; position: relative; }
.store a::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.store a:hover::before { transform: scaleX(1); }
.store strong { display: block; font-family: var(--f-display); font-variation-settings: "wdth" 75; font-stretch: 75%; font-weight: 500; font-size: 21px; line-height: 1.1; }
.store span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-l); }
.store .go { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(24,33,36,.16); font-size: 14px; letter-spacing: 0; color: var(--ink); transition: background-color .4s, border-color .4s, transform .5s var(--ease); }
.store a:hover .go { background: var(--gold); border-color: var(--gold); transform: rotate(45deg); }
.store-empty { padding: 28px 0; color: var(--muted-l); }
@media (min-width: 861px) { .store-list { column-gap: 40px; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 09 Franchise ---------- */
.franchise { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: clamp(140px, 16vw, 220px) 0; }
.fr-media { position: absolute; inset: 0; clip-path: circle(var(--r, 0px) at 50% 55%); will-change: clip-path; }
.fr-media video { position: absolute; inset: 0; transform: scale(var(--fz, 1.15)); }
.fr-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11,9,8,.35) 0%, rgba(11,9,8,.8) 75%), linear-gradient(0deg, rgba(11,9,8,.7), transparent 40%); }
.fr-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.franchise .lede { margin-top: 30px; color: rgba(241,234,224,.75); }
.franchise .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; background: var(--night); color: var(--cream); padding: clamp(80px, 9vw, 130px) 0 calc(30px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-tag { font-family: var(--f-display); font-variation-settings: "wdth" 64; font-stretch: 64%; font-weight: 560; text-transform: uppercase; font-size: clamp(2.6rem, 4.6vw, 4.6rem); line-height: .9; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 300; }
.footer-col h4 { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 8px; }
.footer-col a { color: var(--muted-d); transition: color .3s; width: fit-content; }
.footer-col a:hover { color: var(--cream); }
.footer-mark {
  font-family: var(--f-logo); font-weight: 700; font-size: 27vw; line-height: .78; letter-spacing: .02em; text-align: center;
  margin: clamp(60px, 8vw, 120px) 0 0; white-space: nowrap;
  background: linear-gradient(180deg, rgba(205,181,133,.55), rgba(205,181,133,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(241,234,224,.08); font-size: 12px; color: rgba(241,234,224,.45); }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --radius: 26px; --nav-h: 68px; }
  .pillars { grid-template-columns: 1fr; gap: 16px; }
  .pillar { aspect-ratio: 4 / 4.6; }
  .pillar:nth-child(2) { margin-top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 30px 0; border-right: 0; border-bottom: 1px solid rgba(241,234,224,.08); }
  .orbit { width: 72vw; margin-top: 50px; }
  .bag { width: 38%; }
  .bag-gold { width: 42%; right: -18%; bottom: 12%; }
  .bag-dark { left: -18%; bottom: -8%; }
  .aca-title .title-xl { font-size: clamp(2.5rem, 11.5vw, 4.2rem); }
  .bag figcaption { font-size: 9px; }
  .orbit-text text { font-size: 15px; }
  .store-list { grid-template-columns: 1fr; }
  .search { width: 100%; }
  .cities { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-snap-type: x proximity; }
  .cities::-webkit-scrollbar { display: none; }
  .city { flex: none; scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-tag { grid-column: 1 / -1; }
  .chapter-ind { bottom: calc(18px + env(safe-area-inset-bottom)); gap: 10px; font-size: 10px; }
  .ci-num { font-size: 18px; }
  .ci-track { width: 40px; }
  .aca-media { height: 88svh; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
