/* Masar — the Coming soon page (coming-soon.design.md). "Something great is brewing": a brass dallah, the Gulf's coffee
   pot of welcome, warm from the coals with steam rising from its beak, at the foot of an arch that frames a
   photograph: a man in a thobe holding out the first finjan, steam rising from it (both credited in CREDITS.md). Dark is a desert night (stars, an indigo sky over espresso sand); light is the same
   scene at dawn (cream sand, a saffron sun behind it). One saffron accent. Fraunces sets the English display, Thmanyah
   Serif Display the Arabic; Inter and Thmanyah Sans the running text. Every motion is CSS, and stops for anyone who
   asks for less motion. Logical properties everywhere: the Arabic page mirrors without a second stylesheet — all but
   the photograph, which is never mirrored (his right hand stays his right hand). Markup: designs/coming-soon/page.html. */

@font-face { font-family: "MasarRiyal"; font-weight: 100 900; font-display: swap; src: url("/site-assets/fonts/masar-riyal.woff2") format("woff2"); unicode-range: U+20C1; }
@font-face { font-family: "Fraunces"; font-weight: 100 900; font-display: swap; src: url("/site-assets/fonts/fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("/site-assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 300; font-display: swap; src: url("/site-assets/fonts/thmanyah-serif-display-300.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 400 700; font-display: swap; src: url("/site-assets/fonts/thmanyah-serif-display-400.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 300; font-display: swap; src: url("/site-assets/fonts/thmanyah-sans-300.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 400; font-display: swap; src: url("/site-assets/fonts/thmanyah-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 500 600; font-display: swap; src: url("/site-assets/fonts/thmanyah-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 700 900; font-display: swap; src: url("/site-assets/fonts/thmanyah-sans-700.woff2") format("woff2"); }

/* ---------- tokens: dawn (light) ---------- */
:root {
  --page: #f7f0e4;               /* cream sand */
  --page-2: #efe3cf;             /* the band under the fold */
  --card: #fffaf1;
  --line: #e6d6bd;
  --ink: #2b1b10;                /* dark coffee */
  --ink-2: #4f3b2b;
  --muted: #76614c;
  --accent: #a65f12;             /* saffron as text on sand (4.6:1) */
  --accent-fill: #f2b35a;        /* saffron as a fill */
  --on-accent: #1d1209;
  --cardamom: #5d7d3f;
  --sky: linear-gradient(180deg, #f1e2c8 0%, #f7efe2 46%, var(--page) 100%);
  --sun: radial-gradient(closest-side, rgba(242, 179, 90, .55), rgba(242, 179, 90, .18) 55%, transparent);
  --star: transparent;
  --brass-b: #d99a3e; --brass-c: #94591a;
  --ember-a: #ff8a3d; --ember-b: rgba(226, 85, 42, 0);
  --steam: rgba(118, 97, 76, .7);
  --cup-a: #fffaf2; --cup-b: #e6d8c2; --cup-line: #b78a4a; --gahwa: #d4a248;
  --danger: #a8361d;
  --shadow: 0 1px 2px rgba(60, 35, 12, .06), 0 30px 60px -32px rgba(80, 45, 15, .4);
  color-scheme: light;

  --gutter: clamp(16px, 4.5vw, 56px);
  --column: 76rem;
  --r-card: 22px; --r-pill: 999px;
  --font-display: "MasarRiyal", "Fraunces", "Thmanyah Serif Display", Georgia, serif;
  --font-sans: "MasarRiyal", "Inter", "Thmanyah Sans", system-ui, sans-serif;
}
/* ---------- the desert night (dark) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #120c08; --page-2: #181009; --card: #1c140e; --line: #34271b;
    --ink: #f6ead8; --ink-2: #dccbb3; --muted: #ab977f;
    --accent: #f2b35a; --cardamom: #9cc276;
    --sky: linear-gradient(180deg, #0b1020 0%, #17121a 42%, var(--page) 100%);
    --sun: radial-gradient(closest-side, rgba(242, 179, 90, .32), rgba(242, 179, 90, .1) 55%, transparent);
    --star: #fff3dc;
    --brass-b: #e9a54a; --brass-c: #a8641d;
    --steam: rgba(246, 234, 216, .62);
    --cup-a: #f6eee2; --cup-b: #cdbfa8; --cup-line: #e9b866; --gahwa: #d9a545;
    --danger: #ff9b7e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 34px 70px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #120c08; --page-2: #181009; --card: #1c140e; --line: #34271b;
  --ink: #f6ead8; --ink-2: #dccbb3; --muted: #ab977f;
  --accent: #f2b35a; --cardamom: #9cc276;
  --sky: linear-gradient(180deg, #0b1020 0%, #17121a 42%, var(--page) 100%);
  --sun: radial-gradient(closest-side, rgba(242, 179, 90, .32), rgba(242, 179, 90, .1) 55%, transparent);
  --star: #fff3dc;
  --brass-b: #e9a54a; --brass-c: #a8641d;
  --steam: rgba(246, 234, 216, .62);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 34px 70px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
[lang="ar"] {
  --font-display: "MasarRiyal", "Thmanyah Serif Display", "Fraunces", serif;
  --font-sans: "MasarRiyal", "Thmanyah Sans", "Inter", system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--page); color: var(--ink);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  transition: background-color .3s ease, color .3s ease;
}
[lang="ar"] body { line-height: 1.85; }
body { display: flex; flex-direction: column; }
main { flex: 1 0 auto; display: grid; align-items: center; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: lining-nums tabular-nums; }
svg { flex: none; }
.wrap { width: 100%; max-width: calc(var(--column) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  margin: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--accent);
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.heading {
  margin: 0; font-family: var(--font-display); font-weight: 380; color: var(--ink);
  font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance;
}
[lang="ar"] .heading { font-weight: 400; line-height: 1.5; letter-spacing: 0; }

/* ---------- the sky: stars at night, a saffron sun at dawn ---------- */
.night { position: fixed; inset: 0; z-index: -1; background: var(--sky); pointer-events: none; overflow: hidden; }
.night .haze { position: absolute; inset-inline-end: -10vw; top: 6vh; width: min(70vw, 62rem); aspect-ratio: 1; background: var(--sun); filter: blur(10px); }
.night .stars {
  position: absolute; top: 0; left: 0; /* physical: the shadows' offsets run rightwards in both languages */ width: 2px; height: 2px; border-radius: 50%; background: transparent;
  box-shadow:
    6vw 8vh var(--star), 14vw 22vh var(--star), 22vw 6vh var(--star), 31vw 15vh var(--star), 38vw 4vh var(--star),
    47vw 19vh var(--star), 55vw 9vh var(--star), 63vw 25vh var(--star), 71vw 7vh var(--star), 79vw 17vh var(--star),
    86vw 5vh var(--star), 93vw 21vh var(--star), 10vw 33vh var(--star), 27vw 38vh var(--star), 44vw 31vh var(--star),
    59vw 40vh var(--star), 75vw 34vh var(--star), 90vw 42vh var(--star), 3vw 47vh var(--star), 35vw 52vh var(--star);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.night .stars-far {
  width: 1px; height: 1px; opacity: .7; animation-duration: 7s; animation-delay: -2s;
  box-shadow:
    3vw 15vh var(--star), 18vw 12vh var(--star), 25vw 28vh var(--star), 34vw 9vh var(--star), 42vw 24vh var(--star),
    51vw 3vh var(--star), 58vw 30vh var(--star), 67vw 13vh var(--star), 74vw 2vh var(--star), 83vw 27vh var(--star),
    97vw 11vh var(--star), 8vw 41vh var(--star), 20vw 46vh var(--star), 52vw 45vh var(--star), 68vw 49vh var(--star),
    81vw 38vh var(--star), 95vw 33vh var(--star), 12vw 58vh var(--star), 87vw 55vh var(--star), 30vw 61vh var(--star);
}
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }

/* ---------- the bar ---------- */
.bar { position: relative; z-index: 2; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent-fill); color: var(--on-accent); }
.brand-mark svg { width: 20px; height: 20px; }
.bar-actions { display: inline-flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  text-decoration: none; font-size: .9375rem; font-weight: 500; white-space: nowrap;
}
.pill svg { width: 18px; height: 18px; }
.pill-ghost { border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent); }
.pill-ghost:hover { border-color: var(--accent); }
.pill [lang="ar"] { font-family: "Thmanyah Sans", sans-serif; }
.pill [lang="en"] { font-family: "Inter", sans-serif; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent);
}
.icon-btn:hover { border-color: var(--accent); }
.theme svg { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform .35s ease, opacity .25s ease; }
.theme .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .theme .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="dark"] .theme .i-sun { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
  :root:not([data-theme="light"]) .theme .i-sun { opacity: 1; transform: none; }
}

/* ---------- the hero ---------- */
/* clipped sideways: the sun behind the arch is wider than the arch, and must never widen a phone's page */
.hero { position: relative; overflow-x: clip; padding-block: clamp(8px, 3vh, 40px) clamp(40px, 7vh, 88px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: calc(100svh - 190px); } }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.soon {
  margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 72%, transparent); font-size: .875rem; color: var(--ink-2);
}
[dir="rtl"] .soon { padding: 7px 12px 7px 16px; }
.soon b { color: var(--ink); font-weight: 600; }
.soon-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.soon-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-fill); }
.soon-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent-fill); animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }
.display {
  margin: 0; font-family: var(--font-display); color: var(--ink); text-wrap: balance;
  font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5rem); line-height: 1.02; font-weight: 340; letter-spacing: -.03em;
  font-variation-settings: "opsz" 144;
}
[lang="ar"] .display { font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.2rem); line-height: 1.35; font-weight: 400; letter-spacing: 0; }
.mark {
  position: relative; font-style: normal; white-space: nowrap; color: var(--accent);
  background: linear-gradient(100deg, var(--brass-c), var(--accent-fill) 45%, var(--brass-b));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mark::after {
  content: ""; position: absolute; inset-inline: 2%; bottom: -.04em; height: .07em; border-radius: 1em;
  background: linear-gradient(90deg, var(--accent-fill), transparent); transform-origin: left center;
  animation: underline 1.4s cubic-bezier(.2, .7, .2, 1) 1s both;
}
[dir="rtl"] .mark::after { background: linear-gradient(270deg, var(--accent-fill), transparent); transform-origin: right center; bottom: -.12em; }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lead { margin: 0; max-width: 36rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.65; color: var(--ink-2); }
[lang="ar"] .lead { line-height: 1.95; }
/* the sign-off under the lead: closer to it, in the page's own ink */
.lead-more { margin-top: -8px; color: var(--ink); }

/* ---------- the waitlist ---------- */
.waitlist {
  position: relative; display: grid; gap: 12px; width: 100%; max-width: 34rem; margin-top: 4px; padding: clamp(16px, 2.4vw, 22px);
  border-radius: var(--r-card); border: 1px solid var(--line); box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--card) 80%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.waitlist-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; line-height: 1.3; color: var(--ink); font-variation-settings: "opsz" 72; }
[lang="ar"] .waitlist-title { font-size: 1.5rem; line-height: 1.6; }
.waitlist-form { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist-form input[type="email"] {
  flex: 1 1 14rem; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--page); color: var(--ink); font-size: 1rem;
}
.waitlist-form input::placeholder { color: var(--muted); }
.waitlist-form input:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.waitlist.has-error input[type="email"] { border-color: var(--danger); }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--accent-fill); color: var(--on-accent); font-weight: 600; font-size: 1rem;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent-fill) 80%, transparent); transition: transform .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:disabled { cursor: progress; filter: saturate(.7); transform: none; }
.btn .mini-cup { width: 22px; height: 19px; }
.btn .mini-cup .cup-body, .btn .mini-cup .cup-foot { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; }
.btn .mini-cup .cup-rim { fill: currentColor; stroke: none; }
.btn:hover .mini-cup { animation: tilt .6s ease-in-out; }
@keyframes tilt { 40% { transform: rotate(-12deg); } 75% { transform: rotate(5deg); } }
[dir="rtl"] .btn:hover .mini-cup { animation-name: tilt-rtl; }
@keyframes tilt-rtl { 40% { transform: rotate(12deg); } 75% { transform: rotate(-5deg); } }
@media (max-width: 480px) { .btn { flex: 1 1 100%; } }
.waitlist-error { display: none; margin: 0; font-size: .9rem; font-weight: 500; color: var(--danger); }
.waitlist.has-error .waitlist-error, .waitlist-error:target { display: block; }
.waitlist-done { display: none; align-items: center; gap: 14px; outline: none; }
.waitlist.is-done .waitlist-done, .waitlist-done:target { display: flex; }
.waitlist.is-done :is(.waitlist-form, .waitlist-note, .waitlist-error),
.waitlist:has(.waitlist-done:target) :is(.waitlist-form, .waitlist-note, .waitlist-error) { display: none; }
.done-cup { flex: none; display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: color-mix(in srgb, var(--accent-fill) 22%, transparent); }
.done-cup .mini-cup { width: 34px; height: 29px; }
.waitlist.is-done .done-cup, .waitlist-done:target .done-cup { animation: pop .7s cubic-bezier(.2, .9, .3, 1.4) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.done-words { display: grid; gap: 2px; }
.done-words b { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.3; color: var(--ink); }
[lang="ar"] .done-words b { line-height: 1.6; }
.done-words span { color: var(--ink-2); }
.waitlist-note { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.waitlist-privacy { margin: 0; font-size: .8125rem; color: var(--muted); }

/* ---------- three hints, no more ---------- */
.hints { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; color: var(--muted); }
.hints li { display: inline-flex; align-items: center; gap: 8px; }
.hints li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fill); opacity: .4; animation: glint 6s ease-in-out infinite; }
.hints li:nth-child(2)::before { animation-delay: 2s; } .hints li:nth-child(3)::before { animation-delay: 4s; }
@keyframes glint {
  0%, 100% { opacity: .4; box-shadow: none; }
  8%, 22% { opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-fill) 25%, transparent); }
  36% { opacity: .4; box-shadow: none; }
}

/* ---------- the stove: the first cup in an arch, a brass dallah on a wood fire at its foot ---------- */
.stove { position: relative; margin: 0; justify-self: center; width: min(100%, 31rem); padding-block-end: 8%; }
@media (max-width: 959px) { .stove { width: min(92%, 23rem); order: -1; } }
/* the arch: a Gulf doorway framing the photograph, a brass line drawn a little outside it */
.arch {
  position: relative; margin-inline-start: 22%; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate;
  border-radius: 999px 999px 28px 28px; background: var(--card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brass-b) 55%, transparent), 0 48px 90px -40px rgba(60, 30, 8, .55);
}
@media (max-width: 959px) { .arch { aspect-ratio: 1; } }
.arch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(40, 20, 6, .35)),
              linear-gradient(180deg, rgba(242, 179, 90, .08), transparent 40%);
}
.stove::after {
  content: ""; position: absolute; inset-block: -14px calc(4% - 14px); inset-inline: calc(22% - 14px) -14px; z-index: -1;
  border-radius: 999px 999px 40px 40px; border: 1.5px solid color-mix(in srgb, var(--brass-b) 60%, transparent);
}
@media (max-width: 959px) { .stove::after { display: none; } }
/* the photograph never mirrors; its steam is drawn in its own pixels (viewBox = the photo's 640 × 960) */
.shot { position: absolute; inset-inline: 0; top: 0; aspect-ratio: 2 / 3; }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.cup-steam { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cup-steam .puff { stroke: rgba(255, 255, 255, .9); stroke-width: 7; filter: drop-shadow(0 0 3px rgba(60, 30, 8, .35)); }
.js .photo { animation: fade-in 1.2s ease .2s both; }
.stove::before {
  content: ""; position: absolute; inset: 8% -18% 0; background: var(--sun); border-radius: 50%;
  animation: breathe 6s ease-in-out infinite alternate; z-index: -1;
}
@keyframes breathe { from { transform: scale(.94); opacity: .75; } to { transform: scale(1.04); opacity: 1; } }
/* the dallah at the arch's foot (an illustration — CREDITS.md), its beak toward the cup: drawn with its beak to the
   left, so it is turned in English and stays as drawn in Arabic, where the arch is on its other side */
.pot { position: absolute; inset-inline-start: 0; bottom: 0; width: 42%; transform: scaleX(-1); }
[dir="rtl"] .pot { transform: none; }
/* it stands on the wood fire: lifted so its foot rests on the ember bed (13% of its width = the fire frame's y 240) */
.dallah { position: relative; z-index: 2; display: block; width: 100%; height: auto; margin-block-end: 13.3%; filter: drop-shadow(0 22px 24px rgba(40, 20, 5, .34)); }
/* the fire's two layers, one frame (600 × 320) centred under the dallah's base (at 56% of its width) */
.hatab { position: absolute; left: 6%; bottom: 0; width: 100%; height: auto; z-index: 1; overflow: visible; pointer-events: none; }
.hatab-front { z-index: 3; }
.hatab .ground { fill: rgba(50, 25, 5, .3); }
/* the flames flicker from their own base, each at its own pace; the coals pulse; sparks drift up and fade */
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.1s ease-in-out infinite alternate; }
.flame.f2 { animation-duration: .85s; animation-delay: -.3s; } .flame.f3 { animation-duration: 1.35s; animation-delay: -.7s; }
@keyframes flicker {
  from { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(.95, 1.07) rotate(1.5deg); } to { transform: scale(1.04, .94) rotate(-1deg); }
}
.coal { animation: glow 1.6s ease-in-out infinite alternate; } .coal.c2 { animation-delay: -.6s; } .coal.c3 { animation-delay: -1.1s; }
.spark { opacity: 0; animation: spark 2.6s ease-out infinite; }
.spark.s2 { animation-delay: -.9s; } .spark.s3 { animation-delay: -1.6s; } .spark.s4 { animation-delay: -.4s; animation-duration: 3s; }
.spark.s5 { animation-delay: -2s; animation-duration: 2.2s; } .spark.s6 { animation-delay: -1.2s; animation-duration: 2.8s; }
@keyframes spark { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -110px); } }
/* the fire's warmth on the ground around it, breathing */
.pot::before {
  content: ""; position: absolute; inset-inline: -14%; bottom: -4%; height: 24%;
  background: radial-gradient(closest-side, var(--ember-a), var(--ember-b)); opacity: .5;
  animation: glow 2.6s ease-in-out infinite alternate;
}
/* the steam, in the illustration's own pixels (viewBox = its 600 × 779): laid over the dallah image exactly */
.pot-steam { position: absolute; top: 0; left: 0; width: 100%; height: auto; z-index: 4; overflow: visible; pointer-events: none; }
/* white with a soft shadow, as the cup's: it rises over the photograph */
.pot-steam .puff { stroke: rgba(255, 255, 255, .9); stroke-width: 9; filter: drop-shadow(0 0 4px rgba(60, 30, 8, .4)); }
.puff { fill: none; stroke: var(--steam); stroke-width: 4; stroke-linecap: round; stroke-dasharray: .32 .68; opacity: 0; animation: rise 4.2s linear infinite; }
.puff.p2 { animation-delay: -1.4s; animation-duration: 4.8s; } .puff.p3 { animation-delay: -2.8s; animation-duration: 5.2s; }
@keyframes rise {
  0% { stroke-dashoffset: 1; opacity: 0; transform: translateY(6px); }
  18% { opacity: .9; }
  70% { opacity: .55; }
  100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-14px); }
}
.puff.c1 { animation-duration: 4.4s; animation-delay: -.6s; } .puff.c2 { animation-duration: 5s; animation-delay: -2.2s; }
.puff.c3 { animation-duration: 4.8s; animation-delay: -3.6s; }
@keyframes glow { from { opacity: .3; } to { opacity: .6; } }
/* the little finjan of the button and of the thanks */
.cup-a { stop-color: var(--cup-a); } .cup-b { stop-color: var(--cup-b); }
.cup-body, .cup-foot { fill: url(#porcelain); stroke: var(--cup-line); stroke-width: 1.4; stroke-linejoin: round; }
.mini-cup .cup-rim { fill: var(--gahwa); stroke: var(--brass-b); stroke-width: 2; }

/* the dallah settles into place as the page opens — only where the script runs (no flash without it) */
.js .dallah { animation: settle 1.1s cubic-bezier(.2, .7, .2, 1) .35s both; }
@keyframes settle { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- the footer ---------- */
.foot { padding-block: 28px 40px; border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: .875rem; }
.foot .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
.foot .brand-mark svg { width: 16px; height: 16px; }
.foot-contact { margin-inline-start: auto; }
.foot-contact a { color: var(--accent); font-weight: 500; }

/* ---------- reveal on scroll (landing.js) ---------- */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }

/* ---------- less motion: the finished scene, still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .puff { opacity: .55; stroke-dasharray: none; }
  .spark { display: none; }
  .reveal, .js .reveal:not(.in) { opacity: 1; transform: none; }
  .hints li::before { opacity: 1; }
}
@media print {
  .night, .theme, .waitlist-form { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
