/* Self-hosted fonts (Readex Pro for Arabic, Montserrat for Latin; Arabic and Latin subsets only) */
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(assets/fonts/readex-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(assets/fonts/readex-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(assets/fonts/montserrat-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* بُنّ آدم — identity from BunnAdam-Box-Print-Art-v2: ink, espresso, orange, cream */
:root {
  --ink: #0A0A09;
  --espresso: #1D120B;
  --orange: #DE6032;
  --orange-lit: #ED7340;
  --cream: #F0E1C5;
  --cream-dim: #C9B79A;
  --line: rgb(240 225 197 / .14);

  --ar: 'Readex Pro', system-ui, sans-serif;
  --lat: 'Montserrat', 'Readex Pro', sans-serif;

  --header: 68px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font-family: var(--ar); font-weight: 400; font-size: 17px; line-height: 1.85;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; }
ul, ol { padding: 0; list-style: none; }
img, picture { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[lang="en"] { font-family: var(--lat); }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sr, .hero-alt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 50; inset-block-start: -80px; inset-inline-start: 12px; padding: 10px 16px; border-radius: 8px; background: var(--cream); color: var(--ink); font-weight: 600; }
.skip:focus { inset-block-start: 12px; }
:focus-visible { outline: 3px solid var(--orange-lit); outline-offset: 3px; }

.tag { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--orange-lit); }
.tag::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--orange); }
.status { display: inline-block; vertical-align: middle; margin-inline-start: 10px; padding: 2px 14px; border: 1px solid var(--orange-lit); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--orange-lit); letter-spacing: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 30; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter);
  background: linear-gradient(to bottom, rgb(10 10 9 / .7), rgb(10 10 9 / 0)); transition: background .3s;
}
.topbar.solid { background: rgb(10 10 9 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-block-end: 1px solid var(--line); }
.brand img { height: 40px; width: auto; }
.topbar-cta {
  padding: 8px 20px; border-radius: 999px; background: var(--orange); color: var(--ink);
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .2s var(--ease);
}
.topbar-cta:hover { background: var(--orange-lit); transform: translateY(-1px); }

/* ---------- buttons ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 12px 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--orange); color: var(--ink); font-size: 17px; font-weight: 700; text-decoration: none;
  transition: background .2s, transform .2s var(--ease);
}
.cta::after {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H4M10 5l-7 7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H4M10 5l-7 7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cta:hover { background: var(--orange-lit); transform: translateY(-2px); }

/* ---------- hero: shadow crowd ---------- */
.hero { position: relative; }
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #1A0B04; --k: 1; --rise: 100; }
.motion .stage { --k: 0; --rise: -34; }
.motion .hero { height: 290vh; }
.motion .stage { position: sticky; inset-block-start: 0; }

.art { position: absolute; inset: 0; }
.art picture { position: absolute; inset: 0; }
.art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.art-dim img { filter: brightness(.3) saturate(.7); }
.art-lit {
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--rise) * 1%), transparent calc(var(--rise) * 1% + 34%));
          mask-image: linear-gradient(to top, #000 calc(var(--rise) * 1%), transparent calc(var(--rise) * 1% + 34%));
}
.cup-glow {
  position: absolute; left: var(--cx, 50%); top: var(--cy, 75%); width: calc(var(--cup, 60px) * 5); aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgb(255 170 90 / .85), rgb(255 120 40 / .25) 55%, transparent 76%);
  opacity: calc(.12 + var(--k) * .88); scale: calc(.7 + var(--k) * .3);
}
.steam { position: absolute; left: var(--cx, 50%); top: var(--cy, 75%); width: 0; height: 0; pointer-events: none; opacity: var(--k); }
.steam i {
  position: absolute; inset-block-end: calc(var(--cup, 60px) * .3); inset-inline-start: calc(var(--cup, 60px) * -.3);
  width: calc(var(--cup, 60px) * .6); height: calc(var(--cup, 60px) * .85); border-radius: 50%;
  background: radial-gradient(closest-side, rgb(240 225 197 / .5), transparent); filter: blur(calc(var(--cup, 60px) * .1)); opacity: 0;
}
html:not(.motion) .steam { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .steam i { animation: steam 6.5s ease-in infinite; }
  .steam i:nth-child(2) { animation-delay: -2.2s; animation-duration: 7.5s; }
  .steam i:nth-child(3) { animation-delay: -4.4s; animation-duration: 8s; }
  .scroll-cue i { animation: cue 2s var(--ease) infinite; }
}
@keyframes steam {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  20% { opacity: .75; }
  100% { transform: translate(calc(var(--cup, 60px) * .28), calc(var(--cup, 60px) * -2.9)) scale(1.5); opacity: 0; }
}
@keyframes cue { 0% { transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

.veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgb(10 10 9 / .6), transparent 36%), linear-gradient(to top, var(--ink), transparent 15%);
}
.hero-copy {
  position: absolute; inset-block-start: clamp(92px, 14vh, 150px); inset-inline-start: clamp(24px, 6vw, 96px);
  max-width: min(30vw, 440px); text-align: start;
}
.hero-copy h1 { font-size: clamp(40px, 4.8vw, 78px); line-height: 1.12; text-wrap: balance; text-shadow: 0 2px 40px rgb(0 0 0 / .55); }
.hero-copy .sub { margin-block: 14px 26px; font-size: clamp(20px, 2vw, 28px); font-weight: 300; color: var(--cream); opacity: .92; }
.scroll-cue {
  position: absolute; inset-block-end: 22px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 14px; color: var(--cream-dim); opacity: calc(1 - var(--k, 0) * 5);
}
.scroll-cue i { width: 2px; height: 26px; border-radius: 2px; background: linear-gradient(var(--orange-lit), transparent); }
html:not(.motion) .scroll-cue { display: none; }

@media (max-aspect-ratio: 1/1) {
  .hero-copy { inset-inline: 0; inset-block-start: clamp(88px, 12svh, 140px); max-width: none; padding-inline: var(--gutter); text-align: center; }
  .hero-copy h1 { font-size: clamp(40px, 12vw, 68px); }
}

/* ---------- idea ---------- */
.idea { padding-block: clamp(90px, 13vw, 170px); background: var(--ink); }
.idea-in { display: grid; gap: 22px; }
.idea h2 { font-size: clamp(46px, 8vw, 112px); line-height: 1.1; color: var(--cream); }
.idea .lead { max-width: 28ch; text-wrap: balance; font-size: clamp(22px, 2.6vw, 34px); font-weight: 300; line-height: 1.6; color: var(--cream); }
.idea .plain { max-width: 40ch; color: var(--cream-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 6px; }
.chips li { padding: 6px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--cream); }

/* ---------- editions ---------- */
.editions { padding-block: clamp(70px, 9vw, 120px); background: var(--espresso); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 8px; margin-block-end: 38px; }
.sec-head h2 { font-size: clamp(36px, 5.4vw, 68px); }
.sec-head p { color: var(--cream-dim); max-width: 36ch; }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ed-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 380px; padding: 28px;
  background: var(--ink); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; overflow: hidden;
  transition: transform .35s var(--ease), border-color .25s;
}
a.ed-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.ed-num { font-family: var(--lat); font-weight: 800; font-size: clamp(72px, 9vw, 110px); line-height: .95; color: transparent; -webkit-text-stroke: 1.5px var(--orange-lit); }
.ed-origin { font-size: 14px; color: var(--cream-dim); }
.ed-mood { font-size: clamp(26px, 2.6vw, 34px); }
.ed-process { font-family: var(--lat); font-size: 15px; font-weight: 600; letter-spacing: .08em; color: var(--orange-lit); }
.ed-notes { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-notes li { padding: 3px 14px; border-radius: 999px; background: rgb(222 96 50 / .14); font-size: 14px; font-weight: 500; color: var(--cream); }
.ed-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: auto; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.ed-price { font-size: 14px; color: var(--cream-dim); }
.ed-price b { font-family: var(--lat); font-size: 24px; font-weight: 700; color: var(--cream); }
.ed-pill { padding: 3px 14px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 700; }
.ed-card--soon { justify-content: flex-end; background: var(--ink); }
.ed-card--soon .ed-bg { position: absolute; inset: 0; opacity: .35; }
.ed-card--soon .ed-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; filter: saturate(.8); }
.ed-card--soon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 12%, transparent 70%); }
.ed-card--soon > * { position: relative; z-index: 1; }
.ed-card--soon .ed-pill { background: transparent; border: 1px solid var(--orange-lit); color: var(--orange-lit); }

/* ---------- edition 01 ---------- */
.ed1 { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(90px, 12vw, 150px); background: var(--ink); }
.ed1[hidden] { display: none; }
.ed1-scene { position: absolute; inset: -10% 0; z-index: -1; }
.ed1-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.ed1-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--ink), rgb(10 10 9 / .55) 22%, rgb(10 10 9 / .7) 78%, var(--ink)); }
.ed1-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.ed1-info { display: grid; gap: 14px; justify-items: start; }
.ed1 h2 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.1; }
.ed1 .lat-line { font-family: var(--lat); font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .28em; color: var(--orange-lit); }
.ed1 .blurb { max-width: 40ch; font-size: 19px; font-weight: 300; color: var(--cream); }
.specs { width: 100%; max-width: 520px; margin-block: 8px; border-block-start: 1px solid var(--line); }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 11px; border-block-end: 1px solid var(--line); }
.specs dt { font-size: 15px; font-weight: 500; color: var(--cream-dim); }
.specs dd { font-weight: 600; text-align: end; }
.specs dd .dd-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.specs dd .dd-chips span { padding: 1px 12px; border-radius: 999px; background: rgb(222 96 50 / .16); font-size: 14px; }
.weights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 520px; }
.weights button {
  display: flex; flex-direction: column; align-items: flex-start; padding: 10px 18px; cursor: pointer; text-align: start;
  background: transparent; border: 1.5px solid var(--line); border-radius: 14px; transition: background .2s, border-color .2s, color .2s;
}
.weights .w { font-size: 14px; color: var(--cream-dim); }
.weights .p { font-family: var(--lat); font-weight: 700; font-size: 26px; line-height: 1.3; direction: ltr; }
.weights .p small { font-family: var(--ar); font-size: 14px; font-weight: 500; margin-inline-start: 4px; }
.weights button[aria-checked="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.weights button[aria-checked="true"] .w { color: var(--ink); }
.ed1 .hint { font-size: 14px; color: var(--cream-dim); }
.pack { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 1744 / 2336; }
.pack > picture, .pack > picture img { width: 100%; height: 100%; }
.pack > picture img {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
}
.pack .label { position: absolute; left: 30.5%; top: 39.5%; width: 39%; aspect-ratio: 215 / 300; box-shadow: 0 2px 6px rgb(0 0 0 / .5); }
.pack .label img { width: 100%; height: 100%; object-fit: cover; }
.pack::after { content: ""; position: absolute; left: 30.5%; top: 39.5%; width: 39%; aspect-ratio: 215 / 300; pointer-events: none; background: linear-gradient(100deg, rgb(255 190 120 / .1), transparent 35%, rgb(0 0 0 / .26)); }

/* ---------- brew ---------- */
.brew { padding-block: clamp(80px, 10vw, 130px); background: var(--ink); }
.tabs { display: inline-flex; gap: 6px; padding: 5px; margin-block-end: 26px; background: var(--espresso); border: 1px solid var(--line); border-radius: 999px; }
.tabs button { padding: 10px 24px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 16px; cursor: pointer; color: var(--cream-dim); transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--orange); color: var(--ink); }
.panel[hidden] { display: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-block-end: 30px; }
.stats li { display: grid; gap: 2px; padding: 20px; background: var(--espresso); border: 1px solid var(--line); border-radius: 16px; }
.stats .ic { width: 28px; height: 28px; margin-block-end: 8px; fill: none; stroke: var(--orange-lit); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stats b { font-family: var(--lat); font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; color: var(--orange-lit); direction: ltr; text-align: start; }
.stats span { font-size: 15px; color: var(--cream-dim); }
.steps { display: grid; gap: 14px; max-width: 700px; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 16px; font-size: clamp(17px, 1.8vw, 20px); font-weight: 500; counter-increment: step; }
.steps li::before {
  content: counter(step); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--ink); font-family: var(--lat); font-weight: 800; font-size: 17px;
}

/* ---------- box ---------- */
.box { padding-block: clamp(70px, 9vw, 120px); background: var(--espresso); border-block-start: 1px solid var(--line); }
.box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: start; }
.box-fig { display: grid; gap: 10px; }
.box-fig img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 30px 60px -24px rgb(0 0 0 / .85); }
.box-fig figcaption { font-size: 14px; color: var(--cream-dim); }

/* ---------- footer ---------- */
.footer { padding-block: 56px 48px; background: var(--ink); border-block-start: 1px solid var(--line); color: var(--cream-dim); font-size: 15px; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 40px; }
.footer-brand { display: grid; gap: 6px; justify-items: start; }
.footer-brand img { height: 68px; width: auto; }
.footer .lat-name { font-weight: 700; font-size: 14px; letter-spacing: .42em; color: var(--orange-lit); }
.footer .slogan { font-weight: 500; color: var(--cream); }
.footer-meta { text-align: start; line-height: 2; }
.footer a { color: var(--orange-lit); }

/* ---------- reveal ---------- */
.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .ed1-in { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { height: 34px; }
  .topbar-cta { padding: 7px 16px; font-size: 14px; }
  .cta { width: 100%; }
  .hero-copy .cta { width: auto; }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding-inline: 12px; }
  .stats li { padding: 16px; }
  .ed-card { min-height: 0; padding: 22px; }
}
