/* =========================================================
   بن السعودي — El Soody Coffee
   Palette pulled from the brand assets (logo + printed menu)
   ========================================================= */
:root {
  color-scheme: dark;       /* stops phone browsers from auto-recoloring the page (turned the orange logo red) */
  --orange: #FD9A19;        /* logo orange */
  --orange-deep: #E07F0A;
  --gold: #9C8268;          /* muted mocha (no gold) */
  --gold-soft: #E9D9C2;
  --black: #0E0A07;         /* logo black, warmed */
  --coffee-900: #17100B;
  --coffee-800: #221811;
  --coffee-700: #2D241F;    /* menu dark panel */
  --coffee-500: #604729;    /* menu roast brown */
  --mocha: #8B7055;
  --cream: #F3E6D3;
  --cream-dim: #CDBBA4;

  --roast-light: #C08A4E;
  --roast-medium: #7A4A24;
  --roast-dark: #3A2213;

  --font-ar-display: "Lalezar", "Cairo", system-ui, sans-serif;
  --font-body: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en-display: "Fraunces", Georgia, serif;
  --font-display: var(--font-ar-display);

  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23F3E6D3' stroke-opacity='.045'%3E%3Crect x='26' y='26' width='36' height='36'/%3E%3Crect x='26' y='26' width='36' height='36' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

html:lang(en) { --font-display: var(--font-en-display); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}
html:lang(en) body { line-height: 1.65; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 .6rem;
  color: var(--orange);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: .6rem;
}
html:lang(en) .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--dark { color: var(--black); }

.h2, .h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; margin: 0 0 1rem; }
html:lang(en) .h2, html:lang(en) .h3 { font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--black); }
.btn--primary:hover { background: var(--gold-soft); }
.btn--ghost { border-color: rgba(243,230,211,.35); color: var(--cream); background: transparent; }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--sm { padding: .5rem 1.1rem; font-size: .92rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- logo (PNG used as a mask so we can tint it) ---------- */
.logo-mark {
  display: inline-block;
  width: 40px;
  aspect-ratio: 1284 / 1632;
  background: var(--orange);
  /* small sizes use a version with thicker lines so it shows the same solid orange as the text */
  -webkit-mask: url("../media/logo-sm.png") center / contain no-repeat;
          mask: url("../media/logo-sm.png") center / contain no-repeat;
  flex: none;
}
.logo-mark--lg {
  width: 120px; background: var(--black);
  -webkit-mask-image: url("../media/logo.png");
          mask-image: url("../media/logo.png");
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { background: rgba(14,10,7,.88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(243,230,211,.18); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.nav__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav__name { font-family: var(--font-ar-display); font-size: 1.5rem; color: var(--orange); line-height: 1; padding-top: .2rem; }
html:lang(en) .nav__name { font-family: var(--font-en-display); font-weight: 700; font-size: 1.3rem; padding-top: 0; }
.nav__links { display: flex; gap: 1.8rem; margin-inline-start: auto; }
.nav__links a { text-decoration: none; font-weight: 600; color: var(--cream-dim); position: relative; padding-block: .3rem; }
.nav__links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .25s ease; }
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--orange); }
.nav__actions { display: flex; align-items: center; gap: .6rem; }

.lang-btn {
  min-width: 48px; height: 40px; padding-inline: .9rem;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-soft);
  font-weight: 700; cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-btn:hover { background: var(--gold); color: var(--black); }
.lang-btn__label { font-family: var(--font-body); }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 110px 70px;
  background:
    radial-gradient(ellipse 60% 55% at 70% 45%, rgba(253,154,25,.16), transparent 70%),
    var(--pattern),
    var(--black);
  overflow: hidden;
}
html[dir="rtl"] .hero { background:
    radial-gradient(ellipse 60% 55% at 30% 45%, rgba(253,154,25,.16), transparent 70%),
    var(--pattern),
    var(--black); }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 8vw, 6.2rem); line-height: 1.1; margin: 0 0 1rem; }
html:lang(en) .hero__title { font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.hero__title span { display: block; }
.hero__title .accent { color: var(--orange); }
.hero__tagline { font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 600; color: var(--cream); opacity: .85; margin: 0 0 1.2rem; letter-spacing: .02em; }
.hero__lead { max-width: 52ch; color: var(--cream-dim); margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__media { position: relative; justify-self: center; width: min(100%, 400px); }
.arch {
  position: relative;
  aspect-ratio: 9 / 15;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(243,230,211,.35);
  background: var(--coffee-800);
}
.arch::after { /* inner gold hairline */
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(243,230,211,.3);
  border-radius: 999px 999px 10px 10px;
  pointer-events: none;
}
.arch__video { width: 100%; height: 100%; object-fit: cover; }
/* star ornament cut from the logo, tinted via mask */
.orn {
  display: block;
  aspect-ratio: 1284 / 652;
  background: var(--orange);
  -webkit-mask: url("../media/ornament.png") center / contain no-repeat;
          mask: url("../media/ornament.png") center / contain no-repeat;
}
.hero__ornament {
  position: absolute; width: 62%; left: 50%; bottom: -7%;
  transform: translateX(-50%) rotate(180deg);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: clamp(80px, 11vw, 140px); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section__head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section__orn { width: 120px; margin: 0 auto 1.4rem; }
.section__lead { color: var(--cream-dim); margin: 0; }

/* ---------- story ---------- */
.story { background: var(--coffee-900); }
.story__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.story__photo { margin: 0; position: relative; }
.story__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.story__photo::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--orange); border-radius: var(--radius); z-index: -1; }
html[dir="rtl"] .story__photo::before { inset: -14px -14px 14px 14px; }
.story__photo { isolation: isolate; }
.story__text p { color: var(--cream-dim); }
.stats { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; gap: clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-en-display); font-size: 2.6rem; line-height: 1; color: var(--orange); }
.stats span { color: var(--cream-dim); font-size: .95rem; }

/* ---------- menu ---------- */
.menu { background: linear-gradient(180deg, var(--coffee-900), var(--black)); }
.board {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(243,230,211,.08);
}
.board__panel { position: relative; padding: clamp(1.5rem, 3.5vw, 2.8rem) clamp(1rem, 3vw, 2.4rem); color: #fff; overflow: hidden; }
.board__panel--plain {
  background: linear-gradient(180deg, rgba(40,16,2,.18), rgba(40,16,2,.32)), url("../media/marble.svg") center / cover;
}
.board__panel--spiced {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.06), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 2px, transparent 2px 9px),
    #141110;
}
.board__head { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-bottom: 1.4rem; position: relative; }
.board__title { font-family: var(--font-ar-display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1; margin: 0; padding-top: .3rem; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
html:lang(en) .board__title { font-family: var(--font-en-display); font-weight: 700; padding-top: 0; }
.bowl {
  width: 62px; height: 62px; flex: none; border-radius: 50%;
  background: url("../media/grounds.svg") center / cover;
  border: 5px solid #F4ECE0;
  box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 3px 8px rgba(0,0,0,.6);
}

.board__table { width: 100%; border-collapse: separate; border-spacing: 7px 0; position: relative; }
.board__table thead th { font-family: var(--font-body); font-weight: 700; font-size: .95rem; text-align: center; padding: 0 0 .4rem; color: #fff; white-space: nowrap; }
.board__table tbody th { text-align: start; font-weight: 700; font-size: .98rem; line-height: 1.35; padding: .42rem 0; color: #fff; }
.board__table .roast { font-weight: 600; font-size: .86em; white-space: nowrap; }
.board__panel--plain .roast { color: #FFE2BC; }
.board__panel--spiced .roast { color: var(--orange); }
.board__table td.p {
  width: 3.7em; background: #fff; color: #111;
  text-align: center; font-weight: 800; font-size: .98rem;
  font-variant-numeric: tabular-nums; padding: .42rem .15rem;
}
.board__table tbody tr:first-child td.p { border-radius: 16px 16px 0 0; padding-top: .7rem; }
.board__table tbody tr:last-child td.p { border-radius: 0 0 16px 16px; padding-bottom: .7rem; }
.board__panel--plain td.p { box-shadow: 0 0 0 1px rgba(0,0,0,.04); }

.board__foot { text-align: center; margin: 1.6rem 0 0; font-family: var(--font-ar-display); font-size: 1.45rem; line-height: 1.3; color: #fff; }
html:lang(en) .board__foot { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; }
.board__sub { font-family: var(--font-ar-display); font-weight: 400; font-size: 1.5rem; margin: 2rem 0 .6rem; color: var(--orange); position: relative; }
html:lang(en) .board__sub { font-family: var(--font-en-display); font-weight: 700; font-size: 1.25rem; }
.board__flavors { margin: 1rem 0 0; font-size: .92rem; font-weight: 600; color: var(--cream); text-align: center; position: relative; }

/* the big "MENU" word down the edge, like the print */
.board__word {
  position: absolute; top: 0; bottom: 0; right: -.08em; /* physical sides: logical ones flip in vertical text */
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 700;
  font-size: clamp(5rem, 9vw, 8rem); letter-spacing: .06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(243,230,211,.09);
  pointer-events: none; user-select: none;
}
html[dir="rtl"] .board__word { right: auto; left: -.08em; }
html:lang(en) .board__word { transform: none; }
.board__panel--spiced { padding-inline-end: clamp(1rem, 7vw, 6.5rem); }

.menu__fine { text-align: center; color: var(--mocha); font-size: .88rem; margin: 1.2rem 0 0; }

/* ---------- gallery ---------- */
.shop { background: var(--coffee-900); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 1rem; }
.g { margin: 0; overflow: hidden; border-radius: 14px; background: var(--coffee-800); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.g:hover img { transform: scale(1.06); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }

.film { margin-top: clamp(3rem, 7vw, 5rem); display: grid; grid-template-columns: 1fr auto; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: calc(var(--radius) + 6px); background: var(--pattern), var(--black); border: 1px solid rgba(243,230,211,.25); }
.film__text p:not(.eyebrow) { color: var(--cream-dim); margin: 0; }
.film__frame { width: min(300px, 70vw); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(243,230,211,.4); }
.film__frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ---------- coming soon ---------- */
.soon { background: var(--orange); color: var(--black); padding-block: clamp(60px, 9vw, 100px); position: relative; overflow: hidden; }
.soon::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%230E0A07' stroke-opacity='.08'%3E%3Crect x='26' y='26' width='36' height='36'/%3E%3Crect x='26' y='26' width='36' height='36' transform='rotate(45 44 44)'/%3E%3C/g%3E%3C/svg%3E"); }
.soon__inner { position: relative; display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.soon .h2 { margin-bottom: .6rem; }
.soon p:not(.eyebrow) { margin: 0; max-width: 60ch; font-weight: 500; }

/* ---------- visit ---------- */
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.visit__text > p { color: var(--cream-dim); }
.visit__info { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .9rem; }
.visit__info:empty { display: none; }
.visit__info li { display: flex; gap: .8rem; align-items: flex-start; }
.visit__info .ico { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(253,154,25,.12); color: var(--orange); }
.visit__info .ico svg { width: 20px; height: 20px; }
.visit__info b { display: block; color: var(--gold-soft); font-size: .85rem; }
.visit__info a { text-decoration: none; }
.visit__info a:hover { color: var(--orange); }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(243,230,211,.45); color: var(--gold-soft); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: var(--black); }
.socials svg { width: 20px; height: 20px; }
.visit__photo { margin: 0; }
.visit__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: 0 0 0 1px rgba(243,230,211,.35); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(243,230,211,.14); background: var(--pattern), var(--black); padding-top: clamp(2.5rem, 6vw, 4rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 2rem clamp(1.5rem, 4vw, 3rem); padding-bottom: 2.2rem; }
.footer__logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.footer__logo .logo-mark { width: 46px; }
.footer__name { font-family: var(--font-ar-display); font-size: 1.7rem; color: var(--orange); line-height: 1; padding-top: .25rem; }
html:lang(en) .footer__name { font-family: var(--font-en-display); font-weight: 700; font-size: 1.4rem; padding-top: 0; }
.footer__tag { margin: .9rem 0 1.1rem; color: var(--cream-dim); font-weight: 600; max-width: 26ch; }
.footer__socials a { width: 40px; height: 40px; }
.footer__socials svg { width: 18px; height: 18px; }
.footer__h { font-family: var(--font-body); font-size: .85rem; font-weight: 700; letter-spacing: .04em; color: var(--orange); margin: .4rem 0 1rem; }
html:lang(en) .footer__h { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__col a { color: var(--cream-dim); text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .2s; }
.footer__col a:hover { color: var(--orange); }
.footer__branches ul { gap: .85rem; }
.footer__branches a { display: grid; gap: .1rem; }
.footer__branches b { color: var(--cream); font-weight: 700; }
.footer__branches small { color: var(--mocha); font-weight: 400; font-size: .85rem; line-height: 1.5; }
.footer__branches a:hover b { color: var(--orange); }
.footer__bar { display: flex; justify-content: center; text-align: center; padding-block: 1.1rem; border-top: 1px solid rgba(243,230,211,.1); }
.footer__bar p { margin: 0; color: var(--mocha); font-size: .85rem; }


/* =========================================================
   NEWS TICKER
   ========================================================= */
.ticker { display: flex; align-items: stretch; background: var(--orange); color: var(--black); border-block: 3px solid var(--black); overflow: hidden; position: relative; z-index: 2; }
.ticker__label {
  flex: none; display: flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem; background: var(--black); color: var(--orange);
  font-weight: 700; font-size: .95rem; white-space: nowrap; position: relative; z-index: 1;
}
.ticker__label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #E5402B; box-shadow: 0 0 0 0 rgba(229,64,43,.7); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(229,64,43,0); } 100% { box-shadow: 0 0 0 0 rgba(229,64,43,0); } }
.ticker__view { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
.ticker:hover .ticker__track { animation-play-state: paused; }
html[dir="rtl"] .ticker__track { animation-name: ticker-rtl; }
.ticker__item { display: inline-flex; align-items: center; padding-inline: 1.6rem; }
.ticker__item::after { content: ""; width: 14px; aspect-ratio: 1284 / 652; margin-inline-start: 3.2rem; background: var(--black); -webkit-mask: url("../media/ornament.png") center / contain no-repeat; mask: url("../media/ornament.png") center / contain no-repeat; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }

/* =========================================================
   PAGE HEADER (inner pages)
   ========================================================= */
.page-head {
  position: relative; padding: 150px 0 70px; text-align: center; overflow: hidden;
  background-color: var(--black); background-position: center; background-size: cover;
}
.page-head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.page-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.15; margin: 0 0 .8rem; }
html:lang(en) .page-head h1 { font-weight: 700; letter-spacing: -.02em; }
.page-head p:not(.eyebrow) { color: var(--cream-dim); max-width: 60ch; margin: 0 auto; }

/* =========================================================
   EXPLORE CARDS (home)
   ========================================================= */
.explore { background: var(--pattern), var(--black); }
.explore__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.xcard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px; padding: 1.6rem; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; isolation: isolate; border: 1px solid rgba(243,230,211,.12);
}
.xcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.xcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(14,10,7,.95) 85%); }
.xcard:hover img { transform: scale(1.06); }
.xcard h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.2; margin: 0 0 .4rem; }
html:lang(en) .xcard h3 { font-weight: 700; font-size: 1.6rem; }
.xcard p { margin: 0 0 1rem; color: var(--cream-dim); }
.xcard__go { color: var(--orange); font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; }
.xcard__go::after { content: "←"; transition: transform .25s; }
html:lang(en) .xcard__go::after { content: "→"; }
.xcard:hover .xcard__go::after { transform: translateX(-5px); }
html:lang(en) .xcard:hover .xcard__go::after { transform: translateX(5px); }
.xcard--book { background: radial-gradient(circle at 50% 35%, #3a2414, #120b07 70%); }
/* a small closed copy of the stories book cover (book.css .pg--cover) */
.xcover {
  position: relative; align-self: center; margin: 0 auto 1.6rem;
  width: min(52%, 210px); aspect-ratio: 5 / 7; container-type: inline-size;
  background: url("../media/leather.jpg") center / cover, #24140b;
  border-radius: 3px 7px 7px 3px;
  box-shadow: inset 7px 0 9px -3px rgba(0,0,0,.6), 0 26px 40px -12px rgba(0,0,0,.75);
  transform: rotate(-4deg); transition: transform .8s ease;
}
html[dir="rtl"] .xcover { border-radius: 7px 3px 3px 7px; box-shadow: inset -7px 0 9px -3px rgba(0,0,0,.6), 0 26px 40px -12px rgba(0,0,0,.75); transform: rotate(4deg); }
.xcard--book:hover .xcover { transform: rotate(0) scale(1.04); }
.xcover__frame {
  position: absolute; inset: 6.5%;
  border: 1px solid rgba(253,154,25,.55);
  outline: 1px solid rgba(253,154,25,.25); outline-offset: -5px;
  border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqw;
  text-align: center; padding: 6%;
}
.xcover__logo { width: 30cqw; }
.xcover__title { font-family: var(--font-display); font-size: 15cqw; line-height: 1.1; color: var(--orange); text-shadow: 0 2px 0 rgba(0,0,0,.5); }
html:lang(en) .xcover__title { font-weight: 700; font-size: 12.5cqw; }
.xcover__sub { font-weight: 600; font-size: 6cqw; line-height: 1.3; color: var(--cream-dim); }
.xcover__orn { width: 44cqw; }
.xcover__orn--down { transform: rotate(180deg); }

/* footer links */


/* =========================================================
   SOODY VIDEO PLAYER (shop page)
   ========================================================= */
.shop--film { min-height: 100svh; display: flex; align-items: center; padding-top: 120px; background: var(--pattern), var(--black); }
.film-wrap { display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.film-wrap__text p:not(.eyebrow) { color: var(--cream-dim); max-width: 46ch; }

.player {
  position: relative; isolation: isolate;
  width: min(380px, 86vw); aspect-ratio: 9 / 16;
  border-radius: 24px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(253,154,25,.4), 0 0 0 8px rgba(253,154,25,.06), 0 40px 90px -30px rgba(0,0,0,.95);
}
.player video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.player::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, rgba(0,0,0,.6)); pointer-events: none; transition: opacity .3s; }
.player.is-playing:not(.show-ui)::after { opacity: 0; }
.player__mark { position: absolute; top: 16px; left: 16px; width: 34px; z-index: 2; opacity: .9; pointer-events: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }

.player__big {
  position: absolute; inset: 0; margin: auto; z-index: 3;
  width: 88px; height: 88px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--orange); color: var(--black);
  display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(253,154,25,.2), 0 0 0 22px rgba(253,154,25,.08), 0 14px 30px rgba(0,0,0,.5);
  transition: transform .25s ease, opacity .25s ease;
}
.player__big svg { width: 38px; height: 38px; margin-left: 5px; }
.player__big:hover { transform: scale(1.06); }
.player.is-playing .player__big { opacity: 0; transform: scale(.7); pointer-events: none; }

.player__bar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
  display: flex; align-items: center; gap: .45rem;
  padding: .4rem .6rem; border-radius: 16px;
  background: rgba(14,10,7,.78); backdrop-filter: blur(10px);
  border: 1px solid rgba(253,154,25,.28);
  transition: opacity .3s, transform .3s;
}
.player.is-playing:not(.show-ui):not(.is-seeking):not(.is-volume) .player__bar { opacity: 0; transform: translateY(10px); pointer-events: none; }
.player__btn { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; background: transparent; color: var(--cream); display: grid; place-items: center; cursor: pointer; transition: color .2s, background .2s; }
.player__btn:hover { color: var(--orange); background: rgba(253,154,25,.12); }
.player__btn svg { width: 20px; height: 20px; }
.player .i-pause, .player .i-muted, .player .i-low { display: none; }
.player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }
.player.is-low .i-vol, .player.is-muted .i-vol, .player.is-muted .i-low { display: none; }
.player.is-low:not(.is-muted) .i-low { display: block; }
.player.is-muted .i-muted { display: block; }

/* volume pop up: a vertical slider above the speaker button */
.player__vol { position: relative; flex: none; }
.player__volpop {
  position: absolute; left: 50%; bottom: calc(100% + 14px); width: 42px; height: 132px; margin-left: -21px;
  padding: 16px 0; border-radius: 14px; display: flex; justify-content: center;
  background: rgba(14,10,7,.86); backdrop-filter: blur(10px); border: 1px solid rgba(253,154,25,.28);
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.player__volpop::after { content: ""; position: absolute; top: 100%; left: -6px; right: -6px; height: 16px; }   /* keeps the hover alive between button and pop up */
@media (hover: hover) { .player__vol:not(.no-slider):hover .player__volpop { opacity: 1; transform: none; pointer-events: auto; } }
.player__vol:not(.no-slider):has(:focus-visible) .player__volpop,
.player__vol.is-open .player__volpop, .player.is-volume .player__volpop { opacity: 1; transform: none; pointer-events: auto; }
.player__volume { position: relative; width: 28px; height: 100%; cursor: pointer; touch-action: none; }
.player__volume::before, .player__volfill { position: absolute; left: 50%; width: 4px; margin-left: -2px; border-radius: 4px; }
.player__volume::before { content: ""; top: 0; bottom: 0; background: rgba(243,230,211,.16); }
.player__volfill { bottom: 0; height: 100%; background: var(--orange); }
.player__thumb.player__volthumb { left: 50%; top: auto; bottom: 100%; margin: 0 0 -8.5px -6.5px; }
.player__volume:hover .player__volthumb, .player.is-volume .player__volthumb { transform: rotate(28deg) scale(1.3); }
.player__volume:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 6px; }
.player__time { font: 600 .76rem/1 var(--font-body); color: var(--cream-dim); font-variant-numeric: tabular-nums; min-width: 2.4em; text-align: center; }

.player__track { position: relative; flex: 1; height: 26px; cursor: pointer; touch-action: none; }
.player__track::before, .player__buffer, .player__fill { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.player__track::before { content: ""; right: 0; background: rgba(243,230,211,.16); }
.player__buffer { width: 0; background: rgba(243,230,211,.28); }
.player__fill { width: 0; background: var(--orange); }
/* the handle is a little coffee bean */
.player__thumb {
  position: absolute; top: 50%; left: 0;
  width: 13px; height: 17px; margin: -8.5px 0 0 -6.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #D59A5E, #7A4422 55%, #3D1F0D);
  transform: rotate(28deg); box-shadow: 0 1px 4px rgba(0,0,0,.7);
  transition: transform .15s;
}
.player__thumb::after { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 1.6px; margin-left: -.8px; border-radius: 2px; background: #241107; }
.player__track:hover .player__thumb, .player.is-seeking .player__thumb { transform: rotate(28deg) scale(1.3); }
.player__track:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

.player.is-full { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.player.is-full video { object-fit: contain; }

.visit .visit__text { max-width: 640px; }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1.3fr; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__inner, .story__grid, .visit__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .hero__text { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__text .eyebrow::before { display: none; }
  .hero__media { width: min(78%, 340px); margin-bottom: 2.5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .explore__grid { grid-template-columns: 1fr; }
  .xcard { min-height: 340px; }
  .board { grid-template-columns: 1fr; }
  .board__panel--spiced { padding-inline-end: clamp(1rem, 3vw, 2.4rem); }
  .board__word { display: none; }
  .story__photo { max-width: 460px; margin-inline: auto; width: 100%; }
  .visit__photo { max-width: 420px; margin-inline: auto; width: 100%; }
}

@media (max-width: 820px) {
  .menu-btn { display: flex; }
  .nav__links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(14,10,7,.97); backdrop-filter: blur(12px);
    padding: .5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid rgba(243,230,211,.25);
    transform: translateY(-120%); transition: transform .35s ease;
    visibility: hidden;
  }
  .nav__links.is-open { transform: none; visibility: visible; }
  .nav__links a { padding: .95rem 0; border-bottom: 1px solid rgba(243,230,211,.06); font-size: 1.1rem; }
  .nav__links a::after { display: none; }
  .nav__actions { margin-inline-start: auto; }
  .nav.menu-open { background: rgba(14,10,7,.97); }
  .nav.is-scrolled, .nav__links { backdrop-filter: none; background: rgba(14,10,7,.97); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .ticker__label span { display: none; }
  .ticker__label { padding-inline: .8rem; }
  .page-head { padding: 120px 0 50px; }
  .gallery { grid-auto-rows: 150px; gap: .6rem; }
  .g--wide { grid-column: span 2; }
  .film { grid-template-columns: 1fr; text-align: center; }
  .film-wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .film-wrap .eyebrow::before { display: none; }
  .shop--film { padding-top: 100px; }
  .film .eyebrow::before { display: none; }
  .film__frame { margin-inline: auto; }
  .soon__inner { flex-direction: column; text-align: center; }
  .soon .eyebrow::before { display: none; }
  .logo-mark--lg { width: 90px; }
  .board__table { border-spacing: 4px 0; }
  .board__table tbody th { font-size: .9rem; }
  .board__table td.p { width: 3.2em; font-size: .9rem; }
  .bowl { width: 50px; height: 50px; border-width: 4px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer__brand, .footer__branches { grid-column: 1 / -1; }
  .footer__brand { text-align: center; display: grid; justify-items: center; }
  .footer__tag { margin-inline: auto; }
  .footer__socials { justify-content: center; }
}

/* ---------- dropdowns (product grind, form branch): site colors instead of the system blue ---------- */
:root { accent-color: var(--orange); }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FD9A19' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 1rem center;
  padding-inline-end: 2.8rem !important;
}
html[dir="rtl"] select { background-position: left 1rem center; }
select option { background: var(--coffee-800); color: var(--cream); }
select option:checked { background: var(--orange); color: var(--black); }

/* browsers that let pages style the open list (Chrome, Edge, Samsung Internet) */
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { display: flex; align-items: center; }
  select::picker-icon { display: none; }
  ::picker(select) {
    background: var(--coffee-800); color: var(--cream);
    border: 1.5px solid rgba(253,154,25,.45); border-radius: 14px;
    padding: .35rem; margin-block: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.55);
  }
  select option { padding: .6rem .85rem; border-radius: 9px; background: transparent; color: var(--cream); font: inherit; cursor: pointer; }
  select option:hover, select option:focus-visible { background: rgba(253,154,25,.16); outline: none; }
  select option:checked { background: var(--orange); color: var(--black); font-weight: 700; }
  select option::checkmark { display: none; }
}
