/* =========================================================
   Qissahh , Cafe Content Page  |  "Scrub the Reel"
   Cinematic editorial. Royal blue on coffee. Proof not pitch.
   ========================================================= */

:root {
  --base:        #0d0a07;   /* deep espresso */
  --base-2:      #16110b;   /* roast surface */
  --base-3:      #1d160e;
  --cream:       #f4ede1;
  --cream-dim:   #b1a692;
  --coffee:      #6f4a32;
  --mocha:       #8a5a3b;
  --crema:       #c79b6a;
  --blue:        #2173cf;
  --blue-bright: #2f93e0;
  --blue-deep:   #1147a6;

  --line:        rgba(244, 237, 225, 0.10);
  --line-strong: rgba(244, 237, 225, 0.20);

  --energy: linear-gradient(105deg, var(--blue-bright), var(--blue-deep));
  --warm:   linear-gradient(120deg, var(--mocha), var(--coffee));

  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 72px);

  --f-display: 'Anton', 'Archivo Black', sans-serif;
  --f-display-2: 'Archivo Black', 'Anton', sans-serif;
  --f-body: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;
  --f-ar: 'IBM Plex Sans Arabic', 'Tahoma', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--base);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; height: 100vh; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 2px; }

/* =========================================================
   Texture layers , film grain, noise, paper, vignette
   ========================================================= */
/* Animated fine film grain , sits above everything */
.grain {
  position: fixed; inset: -150%; z-index: 9000; pointer-events: none;
  opacity: 0.16;
  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='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  animation: grain-shift 0.5s steps(3) infinite;
  mix-blend-mode: overlay;
}
/* Coarser, slower grain layer for depth */
.grain--coarse {
  opacity: 0.10; z-index: 8800;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 280px 280px;
  animation: grain-shift2 0.9s steps(2) infinite;
  mix-blend-mode: soft-light;
}
@keyframes grain-shift {
  0%{transform:translate(0,0)} 20%{transform:translate(-6%,3%)} 40%{transform:translate(5%,-4%)}
  60%{transform:translate(-3%,5%)} 80%{transform:translate(4%,-2%)} 100%{transform:translate(-2%,3%)}
}
@keyframes grain-shift2 { 0%{transform:translate(0,0)} 50%{transform:translate(4%,-3%)} 100%{transform:translate(-3%,2%)} }

/* Constant static noise behind content , tactile "paper/film" base */
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Cinematic vignette , darken edges (not a glow) */
.vignette {
  position: fixed; inset: 0; z-index: 8500; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 0%, transparent 80%);
          mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 0%, transparent 80%);
}

/* =========================================================
   Custom cursor
   ========================================================= */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 9500; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor {
  width: 34px; height: 34px; border: 1px solid rgba(244,237,225,0.8);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s, border-color 0.25s;
  display: flex; align-items: center; justify-content: center;
}
.cursor-dot { width: 5px; height: 5px; background: var(--cream); transform: translate(-50%, -50%); }
.cursor__label { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); opacity: 0; transition: opacity 0.2s; }
body.cursor-hover .cursor { width: 56px; height: 56px; background: rgba(244,237,225,0.12); }
body.cursor-media .cursor { width: 86px; height: 86px; background: rgba(47,147,224,0.25); border-color: transparent; mix-blend-mode: normal; }
body.cursor-media .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* =========================================================
   Loader
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 9800; background: var(--base); display: flex; align-items: center; justify-content: center; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; z-index: 2; }
.loader__logo { height: 64px; width: auto; opacity: 0; transform: translateY(12px); animation: loaderLogo 0.9s var(--ease) forwards; }
@keyframes loaderLogo { to { opacity: 1; transform: none; } }
.loader__bar { width: 180px; height: 2px; background: var(--line-strong); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0%; background: var(--energy); }
.loader__count { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--cream-dim); }
.loader__word { position: absolute; font-family: var(--f-ar); font-weight: 700; font-size: 34vw; color: rgba(47,147,224,0.05); line-height: 1; z-index: 1; pointer-events: none; }
.loader.is-done { transform: translateY(-100%); transition: transform 0.9s var(--ease); }

/* =========================================================
   Scrub timeline
   ========================================================= */
.scrub { position: fixed; right: clamp(14px, 2vw, 30px); top: 50%; transform: translateY(-50%); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 0.8rem; }
.scrub__now { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-bright); writing-mode: vertical-rl; }
.scrub__track { width: 2px; height: 120px; background: var(--line-strong); position: relative; overflow: hidden; }
.scrub__fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--energy); }
.scrub__chapters { display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-end; }
.scrub__chapters li { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cream-dim); cursor: pointer; opacity: 0.5; transition: opacity 0.25s, color 0.25s; display: flex; gap: 0.4rem; align-items: center; }
.scrub__chapters li span { color: var(--blue-bright); }
.scrub__chapters li:hover { opacity: 1; }
.scrub__chapters li.is-active { opacity: 1; color: var(--cream); }
@media (max-width: 1100px) { .scrub { display: none; } }

/* =========================================================
   Shared primitives
   ========================================================= */
.eyebrow { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 1.1rem; }
.fill { font-style: normal; background: var(--energy); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--cream); }

.pill { display: inline-flex; align-items: center; font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: 0.02em; padding: 0.5em 1.05em; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(244,237,225,0.04); color: var(--cream); }
.pill--blue { border-color: rgba(47,147,224,0.5); color: var(--blue-bright); background: rgba(47,147,224,0.08); }
.pill--warm { border-color: rgba(199,155,106,0.5); color: var(--crema); background: rgba(199,155,106,0.07); }
.pill--sm { font-size: 0.72rem; padding: 0.4em 0.8em; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; font-family: var(--f-mono); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.95em 1.6em; border-radius: 10px; border: 1px solid var(--line-strong); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s; }
.btn--primary { background: var(--energy); border-color: transparent; color: #fff; font-weight: 500; }
.btn--primary:hover { transform: translateY(-3px); }
.btn--ghost:hover { background: rgba(244,237,225,0.06); transform: translateY(-3px); }
.btn--lg { font-size: 1rem; padding: 1.15em 2.2em; }

.index-num { position: absolute; top: clamp(24px, 4vw, 56px); right: var(--pad); font-family: var(--f-display); font-size: clamp(4rem, 12vw, 11rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); z-index: 0; pointer-events: none; }

.section { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vw, 150px) var(--pad); z-index: 1; }
.section__head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; }
.section__sub { margin-top: 1.4rem; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--cream-dim); max-width: 60ch; }

/* =========================================================
   Nav
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--pad); transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { backdrop-filter: blur(12px); background: linear-gradient(180deg, rgba(13,10,7,0.9), rgba(13,10,7,0.5)); border-bottom-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 0.65rem; }
.nav__logoimg { height: 30px; width: auto; display: block; }
.nav__logo { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--cream); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); font-family: var(--f-mono); font-size: 0.85rem; }
.nav__links a:not(.nav__cta) { color: var(--cream-dim); transition: color 0.2s; }
.nav__links a:not(.nav__cta):hover { color: var(--cream); }
.nav__cta { padding: 0.6em 1.2em; border: 1px solid var(--blue); border-radius: 8px; color: var(--blue-bright); text-transform: uppercase; letter-spacing: 0.05em; transition: background 0.2s, color 0.2s; }
.nav__cta:hover { background: var(--blue); color: #fff; }
@media (max-width: 720px) { .nav__links a:not(.nav__cta) { display: none; } }

/* =========================================================
   A. Hero
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: clamp(92px, 11vw, 124px) 0 clamp(48px, 6vw, 76px); width: 100%; z-index: 1; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; object-position: 60% 40%; filter: grayscale(0.65) contrast(1.05) brightness(0.7); will-change: transform; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, var(--base) 24%, rgba(13,10,7,0.82) 55%, rgba(13,10,7,0.32) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.hero__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.7rem, 8.6vw, 7.2rem); line-height: 0.92; letter-spacing: -0.015em; text-transform: uppercase; margin-bottom: 1.3rem; }
.line-wrap { display: block; overflow: hidden; }
.hero__sub { max-width: 56ch; font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--cream-dim); margin-bottom: 1.4rem; }
.stickers { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.7rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll { position: absolute; bottom: clamp(24px, 5vw, 48px); left: max(var(--pad), calc(50% - var(--maxw) / 2 + var(--pad))); display: flex; align-items: center; gap: 0.8rem; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); z-index: 2; }
.hero__scroll-line { width: 60px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--blue-bright); animation: scroll-sweep 2s ease-in-out infinite; }
@keyframes scroll-sweep { 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(100%)} }

/* =========================================================
   B. Marquee
   ========================================================= */
.marquee { position: relative; z-index: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(14px, 2vw, 24px) 0; overflow: hidden; white-space: nowrap; background: var(--base-2); }
.marquee__track { display: inline-flex; align-items: center; gap: 1.5rem; padding-right: 1.5rem; animation: marquee 24s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.m-word { font-family: var(--f-display); font-size: clamp(2rem, 5vw, 4rem); text-transform: uppercase; line-height: 1; }
.m-word--outline { color: transparent; -webkit-text-stroke: 1.5px var(--blue-bright); }
.m-dot { font-family: var(--f-display); font-size: clamp(1.6rem, 4vw, 3rem); color: var(--blue-bright); }

/* =========================================================
   C. Packages
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.card { position: relative; background: var(--base-2); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 2.5vw, 36px); display: flex; flex-direction: column; gap: 1.4rem; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 24px 50px rgba(0,0,0,0.45); }
.card--featured { border-color: var(--blue); }
.card__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.45em 1em; border-radius: 7px; background: var(--blue); color: #fff; white-space: nowrap; }
.card__head { display: flex; flex-direction: column; gap: 0.55rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.card__tag { color: var(--cream-dim); font-size: 0.95rem; }
.card__price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.4rem; }
.card__amount { font-family: var(--f-display); font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; }
.card__unit { font-family: var(--f-mono); font-size: 0.85rem; color: var(--cream-dim); }
.card__vat { font-family: var(--f-mono); font-size: 0.72rem; color: var(--cream-dim); letter-spacing: 0.04em; }
.card__metrics { display: flex; gap: 1.4rem; margin-top: 0.6rem; font-family: var(--f-mono); font-size: 0.82rem; color: var(--cream-dim); }
.card__metrics strong { color: var(--blue-bright); font-size: 1.1rem; }
.card__features { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card__features li { position: relative; padding-left: 1.6rem; font-size: 0.92rem; }
.card__features li::before { content: "+"; position: absolute; left: 0; top: 0; font-family: var(--f-mono); color: var(--blue-bright); font-weight: 500; }
.card__features li.off { color: rgba(177,166,146,0.45); }
.card__features li.off::before { content: "–"; color: rgba(177,166,146,0.4); }
.btn--card { width: 100%; }

/* =========================================================
   D. How it works
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.step { display: flex; flex-direction: column; gap: 0.6rem; }
.step__img { width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; margin-bottom: 0.5rem; transition: transform 0.4s var(--ease), border-color 0.3s; }
.step__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step:hover .step__img { transform: translateY(-5px); border-color: rgba(47,147,224,0.5); }
.step__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-transform: uppercase; }
.step p { color: var(--cream-dim); font-size: 0.95rem; }

/* =========================================================
   BTS band
   ========================================================= */
.bts-band { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 1500px; margin: 0 auto; padding: 0 4px; }
.bts-band__item { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.bts-band__item img, .bts-band__item video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.5s ease, transform 0.8s var(--ease); }
.bts-band__item:hover img, .bts-band__item:hover video { filter: grayscale(0) contrast(1); transform: scale(1.04); }
.bts-band__cap { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); background: rgba(13,10,7,0.6); padding: 0.5em 1em; border-radius: 999px; backdrop-filter: blur(6px); }
@media (max-width: 720px) { .bts-band { grid-template-columns: 1fr; } .bts-band__item:nth-child(3) { display: none; } }

/* =========================================================
   E. Trusted by
   ========================================================= */
.trusted { position: relative; z-index: 1; text-align: center; padding: clamp(50px, 7vw, 90px) var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: var(--maxw); margin: 0 auto; }
.trusted__label { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 1.8rem; }
.trusted__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.2rem, 4vw, 3rem); }
.trusted__row span { font-family: var(--f-display-2); font-size: clamp(1.3rem, 3vw, 2.4rem); text-transform: uppercase; color: var(--cream); opacity: 0.5; transition: opacity 0.25s ease, color 0.25s ease; }
.trusted__row span:hover { opacity: 1; color: var(--blue-bright); }

/* =========================================================
   F. Flagship
   ========================================================= */
.flagship { overflow: hidden; }
.flagship__media { position: absolute; inset: 0; z-index: 0; }
.flagship__img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; object-position: center 30%; filter: grayscale(0.7) contrast(1.05) brightness(0.55); will-change: transform; }
.flagship__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, var(--base) 0%, rgba(13,10,7,0.7) 35%, rgba(13,10,7,0.85) 100%); }
.flagship > * { position: relative; z-index: 1; }
.flagship .section__head .pill { margin-bottom: 1.5rem; }
.flagship .pill + .section__title { margin-top: 0.4rem; }
.stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); margin-bottom: clamp(36px, 5vw, 56px); padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat__num { font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; background: var(--energy); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.stat__num--text { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.05; max-width: 12ch; }
.stat__label { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-dim); }

.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 6vw, 70px); }
.proof__quote p { font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.4; font-weight: 500; }
.proof__quote cite { display: block; margin-top: 1.2rem; font-family: var(--f-mono); font-size: 0.85rem; font-style: normal; color: var(--blue-bright); }

/* Animated WhatsApp-style chat */
.chat { background: #0b141a; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.5); max-width: 440px; }
.chat__top { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem; background: #1f2c34; border-bottom: 1px solid rgba(255,255,255,0.05); }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--base); padding: 5px; object-fit: contain; }
.chat__id { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.chat__id strong { font-size: 0.95rem; color: #e9edef; }
.chat__id span { font-size: 0.72rem; color: #8696a0; }
.chat__wa { color: #00a884; }
.chat__body { padding: 1.1rem 1rem 1.3rem; display: flex; flex-direction: column; gap: 0.55rem; min-height: 260px; background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 18px 18px; }
.bubble { max-width: 82%; padding: 0.55rem 0.75rem 0.65rem; border-radius: 10px; font-size: 0.9rem; line-height: 1.4; position: relative; opacity: 0; transform: translateY(8px); }
.bubble.is-in { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.4s var(--ease); }
.bubble--in { align-self: flex-start; background: #202c33; color: #e9edef; border-top-left-radius: 3px; }
.bubble--out { align-self: flex-end; background: #005c4b; color: #e9edef; border-top-right-radius: 3px; }
.bubble[lang="ar"] { direction: rtl; font-family: var(--f-ar); text-align: right; }
.bubble__time { display: block; font-size: 0.62rem; color: rgba(233,237,239,0.55); text-align: right; margin-top: 0.2rem; }
.bubble--redacted { color: transparent; user-select: none; }
.bubble--redacted span { display: inline-block; height: 0.7em; border-radius: 3px; background: rgba(233,237,239,0.18); }
.typing { align-self: flex-start; background: #202c33; border-radius: 10px; padding: 0.7rem 0.9rem; display: inline-flex; gap: 4px; opacity: 0; }
.typing.is-in { opacity: 1; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: typing 1.2s infinite; }
.typing span:nth-child(2){ animation-delay: 0.2s } .typing span:nth-child(3){ animation-delay: 0.4s }
@keyframes typing { 0%,60%,100%{transform:translateY(0);opacity:0.4} 30%{transform:translateY(-4px);opacity:1} }
.chat__note { font-family: var(--f-mono); font-size: 0.62rem; color: #5c6b73; padding: 0 1rem 0.9rem; }

/* =========================================================
   Reels + video
   ========================================================= */
.reels-strip { display: flex; gap: clamp(12px, 1.5vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem 0 1.2rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; -webkit-overflow-scrolling: touch; }
.reels-strip::-webkit-scrollbar { height: 6px; }
.reels-strip::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.reel-grid .reel { width: 100%; }

.reel { position: relative; flex: 0 0 auto; width: clamp(190px, 24vw, 270px); aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #1a130d; border: 1px solid var(--line); scroll-snap-align: start; transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.3s ease; }
.reel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, #1a130d 30%, #241a11 50%, #1a130d 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.reel.is-loaded::before { display: none; }
@keyframes shimmer { from{background-position:200% 0} to{background-position:-200% 0} }
.reel__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.4s ease; z-index: 1; }
.reel__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(13,10,7,0.5); border: 1px solid rgba(244,237,225,0.35); display: flex; align-items: center; justify-content: center; color: var(--cream); z-index: 2; pointer-events: none; opacity: 0.85; transition: opacity 0.3s; }
.reel.is-loaded .reel__play { opacity: 0; }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; filter: grayscale(1) contrast(1.05); transition: filter 0.4s ease; }
.reel:hover, .reel:focus-within { transform: translateY(-8px); box-shadow: 0 24px 44px rgba(0,0,0,0.5); border-color: rgba(47,147,224,0.5); z-index: 5; }
.reel:hover .reel__poster, .reel:focus-within .reel__poster { filter: grayscale(0) contrast(1); }
.reel:hover iframe, .reel:focus-within iframe { filter: grayscale(0) contrast(1); }

.video-16x9 { position: relative; width: 100%; max-width: 920px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); background: #1a130d; cursor: pointer; }
.video-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-16x9__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; background: linear-gradient(180deg, rgba(13,10,7,0.25), rgba(13,10,7,0.6)); color: var(--cream); border: 0; cursor: pointer; font-family: var(--f-mono); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.3s ease; }
.video-16x9__play svg { width: 70px; height: 70px; padding: 18px; border-radius: 50%; background: var(--blue); color: #fff; transition: transform 0.25s ease; }
.video-16x9:hover .video-16x9__play svg { transform: scale(1.08); }
.video-16x9.is-playing .video-16x9__play { display: none; }

/* =========================================================
   H. Selected cafe work
   ========================================================= */
.cafe { display: grid; grid-template-columns: minmax(220px, 0.7fr) minmax(0, 2fr); gap: clamp(20px, 3vw, 48px); align-items: start; padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.cafe:first-of-type { border-top: none; }
.cafe__meta { display: flex; flex-direction: column; gap: 0.8rem; position: sticky; top: 100px; }
.cafe__index { font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 4rem); color: transparent; -webkit-text-stroke: 1.5px var(--blue); line-height: 1; }
.cafe__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.4rem); text-transform: uppercase; line-height: 0.95; }
.cafe__meta .pill { align-self: flex-start; }
.cafe__note { color: var(--cream-dim); font-size: 0.95rem; max-width: 38ch; }

/* =========================================================
   I. Footer
   ========================================================= */
.footer { position: relative; z-index: 1; overflow: hidden; border-top: 1px solid var(--line); padding: clamp(70px, 10vw, 130px) var(--pad) clamp(36px, 5vw, 56px); }
.footer__cta { max-width: var(--maxw); margin: 0 auto clamp(48px, 7vw, 80px); text-align: center; }
.footer__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 7vw, 6rem); line-height: 0.98; text-transform: uppercase; margin-bottom: 2rem; }
.footer__terms { max-width: var(--maxw); margin: 0 auto clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 3vw, 2.5rem); text-align: center; }
.footer__terms p { font-family: var(--f-mono); font-size: 0.82rem; color: var(--cream-dim); letter-spacing: 0.03em; }
.footer__base { max-width: var(--maxw); margin: 0 auto; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.footer__logoimg { height: 34px; width: auto; display: block; }
.footer__contact { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2rem); font-family: var(--f-mono); font-size: 0.85rem; }
.footer__contact a { color: var(--cream-dim); transition: color 0.2s; }
.footer__contact a:hover { color: var(--blue-bright); }
.footer__tag { font-family: var(--f-mono); font-size: 0.85rem; color: var(--blue-bright); letter-spacing: 0.06em; }

/* =========================================================
   Founder / education authority
   ========================================================= */
.founder__feature { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 6vw, 64px); }
.video-9x16 { position: relative; width: 100%; max-width: 320px; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); background: #1a130d; cursor: pointer; }
.video-9x16 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-9x16.is-playing .video-16x9__play { display: none; }
.vid-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05) brightness(0.8); z-index: 0; }
.video-9x16.is-playing .vid-poster, .video-16x9.is-playing .vid-poster { display: none; }
.founder__copy .pill { align-self: flex-start; }
.founder__copy h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.6rem); text-transform: uppercase; line-height: 1.0; margin: 1rem 0 0.9rem; }
.founder__copy p { color: var(--cream-dim); max-width: 48ch; }
.founder__copy .handle { display: inline-block; margin-top: 1.2rem; font-family: var(--f-mono); font-size: 0.85rem; color: var(--blue-bright); }

.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.edu-card { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #1a130d; transition: transform 0.3s var(--ease), border-color 0.3s; }
.edu-card:hover { transform: translateY(-6px); border-color: rgba(47,147,224,0.5); }
.edu-card__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.45s ease, transform 0.7s var(--ease); }
.edu-card:hover .edu-card__thumb { filter: grayscale(0) contrast(1); transform: scale(1.05); }
.edu-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,10,7,0.15) 0%, transparent 28%, transparent 42%, rgba(13,10,7,0.9) 100%); }
.edu-card__badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); background: rgba(13,10,7,0.5); backdrop-filter: blur(6px); padding: 0.35em 0.7em; border-radius: 999px; }
.edu-card__play { position: absolute; top: 46%; left: 50%; transform: translate(-50%,-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: rgba(13,10,7,0.45); border: 1px solid rgba(244,237,225,0.4); display: flex; align-items: center; justify-content: center; color: var(--cream); transition: transform 0.25s, background 0.25s, border-color 0.25s; }
.edu-card:hover .edu-card__play { transform: translate(-50%,-50%) scale(1.12); background: var(--blue); border-color: transparent; }
.edu-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(14px, 1.3vw, 18px); display: flex; flex-direction: column; gap: 0.45rem; }
.edu-card__eng { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--cream-dim); }
.edu-card__eng b { color: var(--blue-bright); font-weight: 500; }
.edu-card__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1rem, 1.4vw, 1.25rem); text-transform: uppercase; line-height: 1.05; color: var(--cream); }
@media (max-width: 720px) { .founder__feature { grid-template-columns: 1fr; } .video-9x16 { max-width: 260px; margin: 0 auto; } }

/* =========================================================
   Full content team
   ========================================================= */
/* Connected hub-and-spoke: every specialist feeds one output */
.team-hub { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; grid-template-areas: ".  top  ." "l1 hub r1" "l2 hub r2"; gap: clamp(16px, 1.6vw, 24px) clamp(30px, 5vw, 90px); align-items: center; counter-reset: role; }
.role--top { grid-area: top; } .role--l1 { grid-area: l1; } .role--l2 { grid-area: l2; }
.role--r1 { grid-area: r1; } .role--r2 { grid-area: r2; } .role--bot { grid-area: bot; }
.hub { grid-area: hub; }
.team-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.team-lines path { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 5 6; stroke-linecap: round; opacity: 0.45; }
.team-hub .role, .team-hub .hub { position: relative; z-index: 2; }
.team-hub .role::after { display: none; }
.team-hub .role { margin: 0; }
.hub { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.2rem; background: var(--energy); color: #06121f; border-radius: 18px; padding: clamp(26px, 3vw, 44px) clamp(20px, 2vw, 30px); }
.hub__eyebrow { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.hub__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.6rem); text-transform: uppercase; line-height: 0.95; }
.hub__sub { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; margin-top: 0.2rem; }
@media (max-width: 860px) {
  .team-hub { grid-template-columns: repeat(2, 1fr); grid-template-areas: none; gap: 12px; align-items: stretch; }
  .team-hub > .role { grid-area: auto; }
  .hub { grid-area: auto; grid-column: 1 / -1; order: -1; flex-direction: row; gap: 0.6rem; padding: 20px; }
  .hub__title { font-size: 1.5rem; }
  .hub__eyebrow, .hub__sub { font-size: 0.66rem; }
  .team-lines { display: none; }
}
@media (max-width: 460px) { .team-hub { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(14px, 1.6vw, 22px); counter-reset: role; }
.role { counter-increment: role; position: relative; background: var(--base-2); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 2.4vw, 32px); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.35s; }
.role::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--energy); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease); }
.role::after { content: counter(role, decimal-leading-zero); position: absolute; top: 10px; right: 16px; font-family: var(--f-display); font-size: clamp(2.6rem, 4.2vw, 3.6rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.4px var(--line-strong); opacity: 0.5; transition: opacity 0.4s ease, -webkit-text-stroke-color 0.4s ease; pointer-events: none; }
.role:hover { transform: translateY(-8px); border-color: rgba(47,147,224,0.55); }
.role:hover::before { transform: scaleY(1); }
.role:hover::after { opacity: 1; -webkit-text-stroke-color: var(--blue-bright); }
.role__icon { position: relative; display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center; border-radius: 13px; background: rgba(47,147,224,0.12); color: var(--blue-bright); margin-bottom: 1.2rem; transition: background 0.35s ease, color 0.35s ease, transform 0.4s var(--ease); }
.role__icon svg { width: 26px; height: 26px; }
.role:hover .role__icon { background: var(--blue); color: #06121f; transform: translateY(-3px) rotate(-5deg) scale(1.06); }
.role__name { position: relative; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.55rem); text-transform: uppercase; line-height: 1.05; margin-bottom: 0.45rem; transition: color 0.3s ease; }
.role:hover .role__name { color: var(--blue-bright); }
.role p { position: relative; color: var(--cream-dim); font-size: 0.92rem; line-height: 1.45; }

/* Floating sticker accents (parallax) */
.float { position: absolute; z-index: 4; pointer-events: none; width: clamp(110px, 13vw, 180px); will-change: transform; }
.float img { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 26px rgba(0,0,0,0.55)); animation: floatbob 6s ease-in-out infinite; }
@keyframes floatbob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.float--bean { top: 33%; left: 56%; }
.float--system { top: 20%; left: 55%; }
.float--camera { top: 8%; left: 56%; }
.float--folder { top: 6%; left: 58%; }
.float--working { top: 9%; left: 55%; }
@media (max-width: 820px) {
  /* Bigger on mobile, tucked top-right so they don't cover the headline */
  .float { width: clamp(74px, 20vw, 104px); left: auto !important; right: 5%; }
  .float--bean { top: 13%; }
  .float--system { top: 8%; }
  .float--camera { top: 7%; }
  .float--folder { top: 6%; }
  .float--working { top: 9%; left: 50% !important; right: auto; }
}
@media (prefers-reduced-motion: reduce) { .float img { animation: none; } }

/* Reveal states , slow blur-in */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(12px); }
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); transition: opacity 1.3s ease, transform 1.3s var(--ease), filter 1.3s ease; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .proof { grid-template-columns: 1fr; }
  .cafe { grid-template-columns: 1fr; }
  .cafe__meta { position: static; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; text-align: center; }
  /* Hero fits a phone screen without clipping the CTAs */
  .hero { padding-top: clamp(78px, 19vw, 100px); padding-bottom: 36px; }
  .hero__title { font-size: clamp(2.3rem, 10.5vw, 3.3rem); margin-bottom: 1.1rem; }
  .hero__sub { font-size: 1rem; margin-bottom: 1.1rem; }
  .stickers { gap: 0.45rem; margin-bottom: 1.2rem; }
  .stickers .pill { font-size: 0.72rem; padding: 0.42em 0.8em; }
  .hero__actions { width: 100%; gap: 0.7rem; }
  .hero__actions .btn { flex: 1 1 auto; text-align: center; }
  /* Reel cards 2-up on phones so sections aren't endlessly tall */
  .edu-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .reel-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .edu-card__title { font-size: 0.92rem; }
  .edu-card__eng { font-size: 0.62rem; }
}
/* Short viewports (landscape phones, short windows): let the hero grow instead of clipping */
@media (max-height: 680px) {
  .hero { min-height: auto; padding-top: clamp(84px, 16vh, 110px); padding-bottom: clamp(40px, 7vh, 64px); }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .grain, .marquee__track { animation: none; }
  .reveal, .line, .bubble { opacity: 1 !important; transform: none !important; }
  .reel iframe, .reel__poster { filter: grayscale(0); }
  .loader { display: none; }
  .cursor, .cursor-dot { display: none; }
  .hero__img, .flagship__img { height: 100%; }
}
