/* =====================================================================
   LUNA — "رحلة لونا"  ·  light only  ·  AR / EN
   Identity: milk-white paper, appetizing apricot → orange, roasted brown.
   Red only lives in the Luna logo. One kashida-stretched word per title.
   Shapes: leaf corners (one sharp, one soft) instead of generic pills;
   two-tone line icons with no boxed frames; 8pt rhythm.
   ===================================================================== */
:root {
  color-scheme: light;
  --milk: #FFFBF5; --cream: #FBF1E3; --sand: #F3E2CB; --paper: #FFFFFF;
  --ink: #2E1208; --ink-soft: #6B4A3A; --line: rgba(46, 18, 8, .12);
  --o1: #FFB25B; --o2: #F97316; --o3: #E8590C; --o-ink: #C2410C; --o-wash: #FFF1E0;
  --red: #D4202A; --brown: #4A1A0C;
  --foot-1: #8A3214; --foot-2: #5A1E0B; --foot-3: #2E0E05; --on-foot: #FCEBD6;
  --c-teal: #0F8A7A; --c-blue: #1680C4; --c-amber: #C76E0A; --c-crimson: #A5142E; --c-olive: #5A7A1E;
  --f-display: "Marhey", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-hand: "Aref Ruqaa", "Marhey", serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --t-hero: clamp(2.4rem, 1rem + 4vw, 4.5rem);
  --t-h2: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --t-h3: clamp(1.375rem, 1.15rem + .8vw, 1.875rem);
  --t-lg: 1.1875rem; --t-md: 1rem; --t-sm: .875rem; --t-xs: .75rem;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --leaf: 18px 4px; /* soft corner / sharp corner */
  --shadow-1: 0 1px 2px rgba(46,18,8,.06), 0 6px 16px rgba(46,18,8,.08);
  --shadow-2: 0 2px 6px rgba(46,18,8,.08), 0 24px 56px rgba(46,18,8,.16);
  --nav-h: 80px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}
:root[lang="en"] { --f-display: "Fraunces", Georgia, serif; --f-body: "DM Sans", "Segoe UI", system-ui, sans-serif; --f-hand: "Caveat", cursive; }
:root[lang="en"] .h2, :root[lang="en"] h1, :root[lang="en"] .display { letter-spacing: -.015em; font-weight: 600; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--milk); color: var(--ink); font: 400 var(--t-md)/1.75 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--milk); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--o2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { width: 100%; max-width: 1248px; margin-inline: auto; padding-left: max(var(--s5), env(safe-area-inset-left, 0px)); padding-right: max(var(--s5), env(safe-area-inset-right, 0px)); }
@media (max-width: 560px) { .wrap { padding-left: max(var(--s4), env(safe-area-inset-left, 0px)); padding-right: max(var(--s4), env(safe-area-inset-right, 0px)); } }
.sec { position: relative; padding-block: var(--s10); }
.k { white-space: nowrap; }
.o { color: var(--o-ink); }
.lead { font-size: var(--t-lg); line-height: 1.85; color: var(--ink-soft); max-width: 56ch; }
.head { display: grid; gap: var(--s4); justify-items: center; text-align: center; margin-bottom: var(--s8); }
.head .lead { margin-inline: auto; }
.h2 { font-family: var(--f-display); font-size: var(--t-h2); line-height: 1.3; }
.ic { width: 34px; height: 34px; color: var(--ink); flex: none; }

/* ---------- CTA: leaf-cornered, with a stamped arrow block ---------- */
/* Buttons: calm 12px corners; on hover a deeper tone "pours" in from the bottom, like milk filling a can */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; white-space: nowrap; font-size: 1.0625rem; font-weight: 700; letter-spacing: .01em; transition: color .35s var(--ease), box-shadow .35s var(--ease), transform .2s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn .ar { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; transition: transform .35s var(--ease); }
.btn .ar svg { width: 20px; height: 20px; }
[dir="rtl"] .btn .ar svg { transform: scaleX(-1); }
.btn:hover .ar { transform: translateX(4px); }
[dir="rtl"] .btn:hover .ar { transform: translateX(-4px); }
.btn:active { transform: translateY(1px); }
.btn-o { color: #fff; background: var(--o2); box-shadow: 0 10px 24px -12px rgba(232,89,12,.8); }
.btn-o::before { background: #D9480F; }
.btn-o:hover { box-shadow: 0 14px 28px -12px rgba(217,72,15,.85); }
.btn-c { color: var(--o-ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--o2); }
.btn-c::before { background: var(--o2); }
.btn-c:hover, .btn-c:focus-visible { color: #fff; }
.btn.sm { min-height: 44px; font-size: var(--t-md); padding: 0 20px; gap: 8px; border-radius: 10px; }
.btn.sm .ar, .btn.sm .ar svg { width: 18px; height: 18px; }
.tlink { display: inline-flex; align-items: center; gap: var(--s2); color: var(--o-ink); font-weight: 700; text-decoration: none; background: none; border: 0; padding: var(--s2) 0; cursor: pointer; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); }
.tlink:hover { background-size: 40% 2px; }
.chip { text-decoration: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: 42px; padding: 0 var(--s4); border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); font-size: var(--t-sm); font-weight: 600; cursor: pointer; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--o2); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--o-wash); border-color: var(--o2); color: var(--o-ink); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--o2)); }
.chip img { width: 30px; height: 30px; object-fit: contain; }

/* =========================== NAV =========================== */
.nav { position: fixed; z-index: 50; top: env(safe-area-inset-top, 0px); inset-inline: 0; height: var(--nav-h); transition: background-color .3s, box-shadow .3s, height .3s; }
.nav.solid { --nav-h: 68px; background: rgba(255, 251, 245, .9); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.logo { flex: none; display: block; height: 56px; transition: height .3s var(--ease); }
.logo img { width: auto; height: 100%; filter: drop-shadow(0 4px 8px rgba(160, 20, 20, .2)); }
.nav.solid .logo { height: 46px; }
.links { display: flex; gap: var(--s1); margin: 0 auto; padding: 0; list-style: none; }
.links a { display: block; position: relative; padding: var(--s2) var(--s3); text-decoration: none; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.links a::after { content: ""; position: absolute; bottom: 2px; inset-inline: var(--s3); height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--o1), var(--o3)); transform: scaleX(0); transition: transform .3s var(--ease); }
.links a:hover, .links a.on { color: var(--ink); }
.links a:hover::after, .links a.on::after { transform: scaleX(1); }
.tools { display: flex; gap: var(--s2); align-items: center; margin-inline-start: auto; }
.links + .tools { margin-inline-start: 0; }
.lang { min-width: 46px; height: 46px; padding: 0 var(--s3); border-radius: 10px; border: 0; background: rgba(46,18,8,.06); font-weight: 700; cursor: pointer; font-family: "IBM Plex Sans Arabic", "DM Sans", sans-serif; }
.lang:hover { background: rgba(46,18,8,.12); }
.burger { display: none; width: 46px; height: 46px; border-radius: 10px; border: 0; background: rgba(46,18,8,.06); cursor: pointer; place-items: center; }
.burger svg { width: 22px; height: 22px; }
@media (max-width: 1080px) { .links, .tools .btn { display: none; } .burger { display: grid; } }
.sheet { position: fixed; inset: 0; z-index: 80; background: var(--milk); display: grid; align-content: start; padding: calc(var(--s9) + env(safe-area-inset-top, 0px)) max(var(--s5), env(safe-area-inset-right, 0px)) var(--s7) max(var(--s5), env(safe-area-inset-left, 0px)); opacity: 0; pointer-events: none; transition: opacity .3s; overflow-y: auto; }
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet a:not(.btn) { font-family: var(--f-display); font-size: 1.875rem; text-decoration: none; padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: var(--s6); justify-self: start; }
.sheet .x { position: absolute; top: calc(var(--s4) + env(safe-area-inset-top, 0px)); inset-inline-end: max(var(--s5), env(safe-area-inset-right, 0px)); }
.x { width: 46px; height: 46px; border-radius: 10px; border: 0; background: var(--paper); box-shadow: var(--shadow-1); cursor: pointer; display: grid; place-items: center; font-size: 1.125rem; }
.progress { position: fixed; z-index: 60; top: env(safe-area-inset-top, 0px); inset-inline: 0; height: 3px; background: linear-gradient(90deg, var(--o1), var(--o3)); transform-origin: 100% 50%; transform: scaleX(0); }
[dir="ltr"] .progress { transform-origin: 0 50%; }

/* =========================== HERO =========================== */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: center; padding-block: calc(var(--nav-h) + var(--s6)) var(--s8); overflow: hidden; }
.hero::before, .phead::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(assets/img/texture.webp) center top / cover; }
.hero::after, .phead::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--milk)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: center; }
.hero-copy { display: grid; gap: var(--s5); justify-items: start; }
.hero h1 { font-family: var(--f-display); font-size: var(--t-hero); line-height: 1.25; }
.hero h1 > span { display: block; }
@media (min-width: 921px) { .hero h1 > span { white-space: nowrap; } }
.hero .lead { color: #5B3A2A; max-width: 50ch; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.signature { font-family: var(--f-hand); font-size: 1.5rem; color: var(--o-ink); display: inline-flex; align-items: center; gap: var(--s2); }
.signature svg { width: 54px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.can-stage { position: relative; height: min(68vh, 580px); min-height: 440px; display: grid; place-items: center; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.can-stage:active { cursor: grabbing; }
.can-halo { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,.4) 55%, transparent 70%); }
.can3d { --r: 118px; --h: 300px; position: relative; z-index: 1; width: calc(var(--r) * 2); height: var(--h); perspective: 1400px; }
.cyl { position: absolute; inset: 0; transform-style: preserve-3d; }
.face { position: absolute; top: 0; left: 50%; height: 100%; backface-visibility: hidden; background: linear-gradient(180deg, #a3a39f 0 2%, #e9e9e6 4%, #f8f8f6 10%, #dcdcd8 50%, #f2f2ef 90%, #e9e9e6 96%, #a3a39f 98%); }
.face .lbl { position: absolute; inset: 0; background-repeat: no-repeat; clip-path: inset(0 0 calc(100% - var(--print, 1) * 100%) 0); }
.lid, .base { position: absolute; left: 0; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin-top: calc(var(--r) * -1); border-radius: 50%; }
.lid { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 + var(--drop, 0px))); opacity: var(--lid, 1); background: radial-gradient(circle at 50% 50%, #f4f4f2 0 30%, #c9c9c6 31%, #ececea 33%, #d2d2cf 52%, #f6f6f4 54%, #b9b9b5 58%, #e7e7e4 62%, #a9a9a5 92%, #8d8d89 100%); }
.lid::after { content: ""; position: absolute; left: 50%; top: 22%; width: 34%; height: 22%; margin-left: -17%; border-radius: 40% 40% 50% 50%; border: 5px solid #b7b7b3; background: linear-gradient(#efefed, #cfcfcb); }
.base { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: #9a9a96; opacity: var(--base, 1); }
.can-shadow { position: absolute; z-index: 0; bottom: calc(50% - 186px); width: 280px; height: 44px; border-radius: 50%; background: radial-gradient(closest-side, rgba(70,25,8,.35), transparent); filter: blur(4px); }
.orbit { position: absolute; left: 50%; top: 58%; width: min(560px, 120%); aspect-ratio: 560 / 190; transform: translate(-50%, -50%); pointer-events: none; }
.orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit.back { z-index: 0; clip-path: inset(-20% -10% 50% -10%); opacity: .38; }
.orbit.front { z-index: 2; clip-path: inset(50% -10% -20% -10%); }
.orbit text { font: 700 17px var(--f-body); fill: var(--o-ink); letter-spacing: .5px; }
.orbit text.over { fill: #fff; paint-order: stroke; stroke: rgba(120,20,10,.35); stroke-width: 2px; }
.orbit .ell { fill: none; stroke: rgba(232,89,12,.22); stroke-width: 1.2; stroke-dasharray: 2 6; }
.drag-hint { position: absolute; bottom: 2%; z-index: 3; display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft); transition: opacity .4s; }
.drag-hint svg { width: 18px; height: 18px; color: var(--o3); }
.scroll-cue { position: absolute; bottom: var(--s5); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; text-decoration: none; }
.scroll-cue i { width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(46,18,8,.25); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--o3); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(18px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 920px) {
  .hero { min-height: 0; } .hero-grid { grid-template-columns: 1fr; } .can-stage { order: -1; height: 400px; min-height: 0; }
  .hero .can3d { --r: 92px; --h: 236px; } .hero .can-shadow { bottom: calc(50% - 146px); width: 220px; } .scroll-cue { display: none; }
}

/* =========================== FACTORY · a can is born =========================== */
.factory { padding-bottom: 0; }
.assembly { position: relative; height: 340vh; }
.asm-pin { position: sticky; top: 68px; height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s7); align-items: center; }
.asm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: st; }
.asm-steps li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s4); padding: var(--s4) var(--s4) var(--s4) 0; border-top: 1px solid var(--line); transition: opacity .4s; opacity: .42; }
[dir="ltr"] .asm-steps li { padding: var(--s4) 0 var(--s4) var(--s4); }
.asm-steps li:last-child { border-bottom: 1px solid var(--line); }
.asm-steps li::after { content: ""; position: absolute; inset-inline-start: -16px; top: -1px; bottom: -1px; width: 4px; background: linear-gradient(var(--o1), var(--o3)); transform: scaleY(var(--fill, 0)); transform-origin: top; transition: transform .2s linear; }
.asm-steps li.on { opacity: 1; }
.asm-steps li.done { opacity: .78; }
.asm-steps .ic { width: 40px; height: 40px; transition: transform .4s var(--spring); }
.asm-steps li.on .ic { transform: scale(1.12); }
.asm-steps b { display: block; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.35; }
.asm-steps span { display: grid; grid-template-rows: 0fr; color: var(--ink-soft); font-size: var(--t-md); transition: grid-template-rows .4s var(--ease); overflow: hidden; }
.asm-steps li.on span { grid-template-rows: 1fr; margin-top: var(--s1); }
.bench { position: relative; height: 100%; max-height: 640px; display: grid; place-items: center; border-radius: 6px; overflow: hidden; isolation: isolate;
  background: linear-gradient(rgba(232,89,12,.08) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(232,89,12,.08) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(rgba(232,89,12,.15) 1px, transparent 1px) 0 0 / 120px 120px, linear-gradient(90deg, rgba(232,89,12,.15) 1px, transparent 1px) 0 0 / 120px 120px, #FFF9F1; box-shadow: inset 0 0 0 1.5px rgba(46,18,8,.18), inset 0 0 0 10px #FFF9F1, inset 0 0 0 11px rgba(46,18,8,.12); }
.crop { position: absolute; width: 22px; height: 22px; z-index: 5; border-color: var(--o3); border-style: solid; border-width: 0; }
.crop.tl { top: 22px; left: 22px; border-top-width: 2px; border-left-width: 2px; } .crop.tr { top: 22px; right: 22px; border-top-width: 2px; border-right-width: 2px; }
.crop.bl { bottom: 22px; left: 22px; border-bottom-width: 2px; border-left-width: 2px; } .crop.br { bottom: 22px; right: 22px; border-bottom-width: 2px; border-right-width: 2px; }
.bench-now { position: absolute; top: 34px; inset-inline-start: 48px; z-index: 5; display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px var(--s3); padding: var(--s2) var(--s4); background: var(--paper); box-shadow: var(--shadow-1); border-radius: 4px; border-start-start-radius: 12px; border-end-end-radius: 12px; min-width: 210px; }
.bench-now span { font-size: var(--t-xs); color: var(--ink-soft); font-weight: 600; }
.bench-now b { font-family: var(--f-display); font-size: 1.125rem; color: var(--o-ink); }
.bench-now > i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--cream); overflow: hidden; }
.bench-now > i > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--o1), var(--o3)); }
.title-block { position: absolute; z-index: 5; bottom: 24px; inset-inline-end: 48px; display: grid; text-align: end; font-size: 10px; letter-spacing: .14em; color: var(--ink-soft); border-top: 1px solid rgba(46,18,8,.2); padding-top: 4px; }
.title-block span:first-child { font-size: var(--t-xs); letter-spacing: 0; font-weight: 600; color: var(--ink); }
.bench .can3d { --r: 104px; --h: 266px; }
.bench .can-shadow { bottom: calc(50% - 162px); width: 260px; opacity: var(--shadow, 1); }
.dims { position: absolute; inset: 0; pointer-events: none; opacity: var(--dims, 1); }
.dims svg { position: absolute; left: 50%; top: 50%; width: 520px; height: 360px; transform: translate(-50%, -50%); overflow: visible; }
.dims line, .dims path { stroke: var(--o3); stroke-width: 1.2; fill: none; }
.dims text { font: 600 12px var(--f-body); fill: var(--o-ink); letter-spacing: .1em; }
.nozzle { position: absolute; left: 50%; top: 0; width: 64px; height: 46px; margin-left: -32px; z-index: 3; border-radius: 0 0 12px 12px; background: linear-gradient(90deg, #4a3a32, #8a7468 45%, #3a2c25); box-shadow: 0 6px 12px rgba(0,0,0,.2); transform: translateY(calc((1 - var(--noz, 0)) * -60px)); transition: transform .3s; }
.nozzle::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 18px; height: 12px; margin-left: -9px; border-radius: 0 0 4px 4px; background: #3a2c25; }
.stream { position: absolute; left: 50%; top: 54px; width: 16px; height: calc(50% - 133px - 50px); margin-left: -8px; border-radius: 0 0 8px 8px; background: linear-gradient(90deg, #e9dcc6, #ffffff 35%, #fffaf0 60%, #e3d3b8); box-shadow: 0 0 0 1px rgba(150,110,60,.18), 0 0 14px rgba(255,255,255,.9); transform-origin: top; transform: scaleY(var(--pour, 0)); opacity: calc(var(--pour, 0) * 4); z-index: 2; }
.puffs { position: absolute; left: 50%; top: 14%; width: 220px; height: 90px; margin-left: -110px; z-index: 3; opacity: var(--steam, 0); }
.puffs i { position: absolute; bottom: 0; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.95), transparent); filter: blur(3px); animation: puff 2.4s ease-out infinite; }
.puffs i:nth-child(1) { left: 20px; } .puffs i:nth-child(2) { left: 75px; animation-delay: -.8s; } .puffs i:nth-child(3) { left: 130px; animation-delay: -1.6s; }
@keyframes puff { from { transform: translateY(20px) scale(.6); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-50px) scale(1.3); opacity: 0; } }
.seal { position: absolute; z-index: 4; top: 18%; inset-inline-end: 12%; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; text-align: center; color: var(--o3); border: 3px solid currentColor; box-shadow: inset 0 0 0 6px #FFF9F1, inset 0 0 0 8px currentColor; transform: rotate(-14deg) scale(var(--seal, 0)); opacity: var(--seal, 0); font-weight: 700; line-height: 1.1; background: rgba(255,249,241,.85); }
.seal b { font-family: var(--f-display); font-size: 1.375rem; display: block; }
.seal small { font-size: 10px; letter-spacing: .12em; }
@media (max-width: 900px) {
  .assembly { height: 300vh; }
  .asm-pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: var(--s3); align-content: start; padding-top: var(--s3); }
  .asm-steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .asm-steps li, [dir="ltr"] .asm-steps li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: var(--s2) var(--s1); gap: var(--s1); border: 0 !important; border-bottom: 3px solid var(--line) !important; }
  .asm-steps li::after { inset: auto 0 -3px 0; width: auto; height: 3px; transform: scaleX(var(--fill, 0)); transform-origin: right; }
  [dir="ltr"] .asm-steps li::after { transform-origin: left; }
  .asm-steps li span { display: none; } .asm-steps b { font-size: .875rem; } .asm-steps .ic { width: 30px; height: 30px; }
  .bench { max-height: none; } .bench .can3d { --r: 62px; --h: 158px; } .bench .can-shadow { bottom: calc(50% - 100px); width: 160px; }
  .stream { height: calc(50% - 79px - 50px); } .bench-now { top: auto; bottom: 20px; inset-inline-start: 50%; transform: translateX(50%); min-width: 170px; } [dir="ltr"] .bench-now { transform: translateX(-50%); } .title-block { display: none; }
  .dims svg { width: 340px; height: 240px; } .seal { width: 96px; height: 96px; top: 20%; inset-inline-end: 6%; } .seal b { font-size: 1rem; }
  .crop.tl, .crop.tr { top: 12px; } .crop.bl, .crop.br { bottom: 12px; } .crop.tl, .crop.bl { left: 12px; } .crop.tr, .crop.br { right: 12px; }
}

/* =========================== QUALITY · passport =========================== */
.quality { overflow: hidden; }
.pp-stage { perspective: 2400px; display: grid; justify-items: center; }
.book { position: relative; width: min(1000px, 100%); aspect-ratio: 1000 / 580; transition: transform 1.1s var(--ease); }
.book.instant, .book.instant * { transition: none !important; }
[dir="rtl"] .book { transform: translateX(25%); } [dir="ltr"] .book { transform: translateX(-25%); }
.book.open { transform: none !important; }
.leaf { position: absolute; top: 0; width: 50%; height: 100%; }
[dir="rtl"] .leaf.stamps-page { left: 0; } [dir="ltr"] .leaf.stamps-page { right: 0; }
.paper { position: absolute; inset: 0; padding: var(--s7) var(--s6); background: repeating-radial-gradient(circle at 30% 40%, rgba(199,123,48,.07) 0 2px, transparent 2px 9px), repeating-linear-gradient(115deg, rgba(232,89,12,.05) 0 1px, transparent 1px 7px), #FBF4E6; }
[dir="rtl"] .stamps-page .paper { border-radius: 14px 0 0 14px; box-shadow: inset -22px 0 26px -20px rgba(0,0,0,.3), var(--shadow-2); }
[dir="ltr"] .stamps-page .paper { border-radius: 0 14px 14px 0; box-shadow: inset 22px 0 26px -20px rgba(0,0,0,.3), var(--shadow-2); }
.cover { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; transition: transform 1.3s cubic-bezier(.6,.05,.2,1); z-index: 3; cursor: pointer; }
[dir="rtl"] .cover { left: 0; transform-origin: 100% 50%; } [dir="ltr"] .cover { right: 0; transform-origin: 0 50%; }
[dir="rtl"] .book.open .cover { transform: rotateY(180deg); } [dir="ltr"] .book.open .cover { transform: rotateY(-180deg); }
.cover .front, .cover .back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cover .back { transform: rotateY(180deg); }
.cover .front { display: grid; place-content: center; justify-items: center; gap: var(--s4); text-align: center; color: #E9C17A; background: radial-gradient(120% 90% at 50% 20%, #8E2A1A, #5E170D 60%, #43100A), #5E170D; box-shadow: var(--shadow-2), inset 0 0 0 8px #5E170D, inset 0 0 0 9px rgba(233,193,122,.5); }
[dir="rtl"] .cover .front { border-radius: 14px 4px 4px 14px; } [dir="ltr"] .cover .front { border-radius: 4px 14px 14px 4px; }
.cover .front .emblem { width: 120px; aspect-ratio: 480 / 443; background: linear-gradient(160deg, #F7DCA0, #C9963F 60%, #F1D08F); -webkit-mask: url(assets/img/logo.webp) center / contain no-repeat; mask: url(assets/img/logo.webp) center / contain no-repeat; }
.cover .front b { font-family: var(--f-display); font-size: 2rem; }
.cover .front small { letter-spacing: .35em; font-size: var(--t-xs); font-weight: 600; }
.cover .front .chipico { width: 44px; height: 30px; border-radius: 6px; border: 2px solid currentColor; opacity: .7; position: relative; }
.cover .front .chipico::after { content: ""; position: absolute; inset: 6px 10px; border: 1.5px solid currentColor; border-radius: 3px; }
[dir="rtl"] .cover .back .paper { border-radius: 0 14px 14px 0; box-shadow: inset 22px 0 26px -20px rgba(0,0,0,.3), var(--shadow-2); }
[dir="ltr"] .cover .back .paper { border-radius: 14px 0 0 14px; box-shadow: inset -22px 0 26px -20px rgba(0,0,0,.3), var(--shadow-2); }
.pp-title { display: flex; align-items: center; gap: var(--s4); padding-bottom: var(--s4); border-bottom: 1px dashed rgba(122,30,20,.35); }
.pp-title img { width: 60px; }
.pp-title b { font-family: var(--f-display); font-size: 1.5rem; color: #7A1E14; display: block; line-height: 1.3; }
.pp-title small { font-size: var(--t-xs); letter-spacing: .2em; color: var(--ink-soft); }
.pp-fields { display: grid; gap: var(--s3); margin-top: var(--s5); }
.pp-fields div { display: grid; grid-template-columns: 104px 1fr; gap: var(--s3); align-items: baseline; border-bottom: 1px solid rgba(46,18,8,.1); padding-bottom: var(--s2); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.book.typed .pp-fields div { opacity: 1; transform: none; }
.pp-fields span { font-size: var(--t-xs); color: var(--ink-soft); }
.pp-fields b { font-family: var(--f-hand); font-size: 1.3rem; color: var(--ink); font-weight: 700; }
.mrz { margin-top: var(--s5); font: 600 12px/1.6 "Courier New", monospace; letter-spacing: 2px; color: rgba(46,18,8,.5); direction: ltr; text-align: left; word-break: break-all; }
.stamps { position: absolute; inset: var(--s5); }
.stamp { --rot: 0deg; position: absolute; display: grid; place-items: center; text-align: center; border: 3px solid currentColor; font-weight: 700; line-height: 1.15; opacity: 0; mix-blend-mode: multiply; transform: rotate(var(--rot)); font-family: "IBM Plex Sans Arabic", "DM Sans", sans-serif;
  -webkit-mask: 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='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.9'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
          mask: 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='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.9'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.stamp small { display: block; font-size: 9px; letter-spacing: .14em; font-weight: 600; }
.stamp b { display: block; font-size: 1.0625rem; letter-spacing: .04em; direction: ltr; }
.stamp.circle { width: 118px; height: 118px; border-radius: 50%; box-shadow: inset 0 0 0 5px #FBF4E6, inset 0 0 0 7px currentColor; }
.stamp.rect { padding: 10px 16px; border-radius: 6px; border-style: double; border-width: 5px; }
.stamp.oval { width: 140px; height: 90px; border-radius: 50%; }
.stamp.hex { width: 116px; height: 100px; border: 0; background: currentColor; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.stamp.hex > span { color: #FBF4E6; }
.stamp.go { animation: stampIn .5s var(--spring) forwards; }
@keyframes stampIn { 0% { opacity: 0; transform: scale(1.9) rotate(var(--rot)); } 60% { opacity: .95; } 100% { opacity: .9; transform: scale(1) rotate(var(--rot)); } }
@media (max-width: 860px) {
  .book { aspect-ratio: auto; height: 1120px; width: min(460px, 100%); }
  [dir] .book { transform: translateY(-25%); }
  .leaf, .cover { width: 100%; height: 50%; left: 0 !important; right: auto !important; }
  .leaf.stamps-page { top: 50%; }
  [dir] .cover { top: 50%; transform-origin: 50% 0; }
  [dir] .book.open .cover { transform: rotateX(-180deg); }
  .cover .back { transform: rotateX(180deg); }
  [dir] .stamps-page .paper { border-radius: 0 0 14px 14px; box-shadow: inset 0 22px 26px -20px rgba(0,0,0,.3), var(--shadow-2); }
  [dir] .cover .back .paper { border-radius: 14px 14px 0 0; box-shadow: inset 0 -22px 26px -20px rgba(0,0,0,.3), var(--shadow-2); }
  [dir] .cover .front { border-radius: 4px 4px 14px 14px; }
  .paper { padding: var(--s5) var(--s4); }
  .stamps { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s4) var(--s3); }
  .stamp { position: relative !important; top: auto !important; inset-inline-start: auto !important; }
  .stamp.circle { width: 100px; height: 100px; } .stamp.oval { width: 120px; height: 78px; } .stamp.hex { width: 100px; height: 88px; }
}

/* =========================== SUFRA · the turning tray =========================== */
.sufra { background: linear-gradient(var(--milk), var(--cream) 40%, var(--milk)); overflow: hidden; }
.sufra-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s8); align-items: center; }
.world-info { display: grid; gap: var(--s6); }
.wtabs { display: flex; flex-wrap: wrap; gap: var(--s2); }
.wtabs .chip { --c: var(--o2); }
.wtabs .chip[aria-selected="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.wtabs .chip[aria-selected="true"] .dot { background: #fff; }
.wcard { display: grid; gap: var(--s4); justify-items: start; padding-inline-start: var(--s5); border-inline-start: 4px solid var(--c); }
.wcard .wname { font-family: var(--f-display); font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.25rem); line-height: 1.2; color: var(--c); }
.wcard p { color: var(--ink); font-size: var(--t-lg); line-height: 1.8; max-width: 42ch; }
.wcard .lbl { font-size: var(--t-sm); font-weight: 700; color: var(--ink-soft); }
.wcard .prods { display: flex; flex-wrap: wrap; gap: var(--s2); }
.swap-in { animation: swapIn .5s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } }
.tray { position: relative; width: min(560px, 100%); aspect-ratio: 1; justify-self: center; --w: 0deg; }
.tray .rim { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #7E1A12 0deg 4deg, #F6E7CF 4deg 5.5deg, #1E0D07 5.5deg 7deg, #F6E7CF 7deg 8.5deg, #E8590C 8.5deg 11deg, #F6E7CF 11deg 12.5deg, #1E0D07 12.5deg 13deg); -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 88.5%); mask: radial-gradient(closest-side, transparent 88%, #000 88.5%); box-shadow: var(--shadow-2); transform: rotate(var(--w)); transition: transform 1.1s var(--ease); }
.tray .rim2 { position: absolute; inset: 6%; border-radius: 50%; background: repeating-conic-gradient(from 6deg, #F6E7CF 0deg 6deg, #7E1A12 6deg 12deg); -webkit-mask: radial-gradient(closest-side, transparent 95%, #000 95.5%); mask: radial-gradient(closest-side, transparent 95%, #000 95.5%); transform: rotate(var(--w)); transition: transform 1.1s var(--ease); }
.tray .surface { position: absolute; inset: 6.5%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FFFDF8, #F6E6CC 75%, #EBD3AE); box-shadow: inset 0 6px 20px rgba(120,60,20,.18); }
.tray .wheel { position: absolute; inset: 0; transform: rotate(var(--w)); transition: transform 1.1s var(--ease); }
/* plates: 22% wide, centered on a 29% radius ring → clear of the hub (≤15%) and the rim (≥43.5%) */
.plate { position: absolute; left: 39%; top: 39%; width: 22%; height: 22%; border: 0; padding: 0; background: none; cursor: pointer; transform: rotate(var(--a)) translateY(-132%) rotate(calc(-1 * var(--a) - var(--w))); transition: transform 1.1s var(--ease); }
.plate .dish { display: block; width: 100%; height: 100%; border-radius: 50%; padding: 7%; background: radial-gradient(circle, #fff 64%, #EFE6D8 65%, #fff 72%, #E8DCCB 100%); box-shadow: 0 12px 20px -10px rgba(60,20,5,.45); transition: transform .5s var(--spring), box-shadow .4s; }
.plate .dish img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.plate.on .dish { transform: scale(1.1); box-shadow: 0 0 0 3px var(--o2), 0 16px 26px -10px rgba(232,89,12,.55); }
.plate:hover .dish { transform: scale(1.06); }
.plate.on:hover .dish { transform: scale(1.1); }
.hub { position: absolute; left: 35%; top: 35%; width: 30%; height: 30%; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #fff, #F8EEDD); box-shadow: inset 0 0 0 5px #fff, 0 10px 30px -10px rgba(60,20,5,.35); display: grid; place-items: center; overflow: hidden; }
.hub .cuts { display: flex; align-items: center; justify-content: center; gap: 2px; width: 84%; height: 66%; }
.hub .cuts img { max-height: 100%; max-width: 60%; min-width: 0; width: auto; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(46,18,8,.2)); }
.pointer { position: absolute; left: 50%; top: 4px; width: 22px; height: 16px; margin-left: -11px; background: linear-gradient(var(--o2), var(--o3)); clip-path: polygon(0 0, 100% 0, 50% 100%); z-index: 2; }
@media (max-width: 920px) { .sufra-grid { grid-template-columns: 1fr; gap: var(--s6); } .tray { order: -1; width: min(420px, 100%); } }

/* =========================== KITCHEN · two fans =========================== */
.kitchen { overflow: hidden; background: radial-gradient(60% 40% at 50% 50%, var(--cream), var(--milk)); padding-block: var(--s9); }
.fan { position: relative; height: 330px; }
.rcard { text-decoration: none; color: var(--ink); --rot: 0deg; --x: 0px; --y: 0px; position: absolute; left: 50%; width: 206px; margin-left: -103px; aspect-ratio: 5 / 7; border: 0; padding: var(--s2); border-radius: 6px; border-start-start-radius: 20px; border-end-end-radius: 20px; background: var(--paper); box-shadow: var(--shadow-2); cursor: pointer; text-align: start; transform: translate(var(--x), var(--y)) rotate(var(--rot)); transition: transform .55s var(--spring), box-shadow .3s; display: grid; grid-template-rows: 1fr auto; gap: var(--s2); }
.fan.top .rcard { bottom: 0; transform-origin: 50% 160%; }
.fan.bottom .rcard { top: 0; transform-origin: 50% -60%; }
.rcard img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; border-start-start-radius: 14px; border-end-end-radius: 14px; min-height: 0; }
.rcard .t { display: grid; gap: 1px; padding: 0 var(--s2) var(--s1); }
.rcard .t b { font-size: var(--t-sm); line-height: 1.45; }
.rcard .t small { color: var(--o-ink); font-size: var(--t-xs); font-weight: 600; }
.fan.top .rcard:hover, .fan.top .rcard:focus-visible { transform: translate(var(--x), calc(var(--y) - 28px)) rotate(calc(var(--rot) * .5)) scale(1.07); z-index: 20 !important; box-shadow: 0 30px 70px rgba(46,18,8,.3); }
.fan.bottom .rcard:hover, .fan.bottom .rcard:focus-visible { transform: translate(var(--x), calc(var(--y) + 28px)) rotate(calc(var(--rot) * .5)) scale(1.07); z-index: 20 !important; box-shadow: 0 30px 70px rgba(46,18,8,.3); }
.k-mid { display: grid; justify-items: center; text-align: center; gap: var(--s4); padding-block: var(--s9); position: relative; z-index: 25; }
.k-mid .lead { margin-inline: auto; }
@media (max-width: 860px) {
  .fan { height: auto; display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--s4) var(--s4) var(--s5); scrollbar-width: none; margin-inline: calc(-1 * var(--s4)); }
  .fan::-webkit-scrollbar { display: none; }
  .rcard { position: relative; left: auto !important; top: auto !important; bottom: auto !important; margin: 0; flex: none; width: 190px; transform: none !important; scroll-snap-align: center; }
  .k-mid { padding-block: var(--s7); }
}

/* =========================== WORLD · map with callouts =========================== */
.map { position: relative; width: 100%; aspect-ratio: 1200 / 500; }
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-land > g { opacity: .42; }
.route { fill: none; stroke: var(--o2); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 4 7; opacity: .7; }
.map.live .route { animation: flow 2.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.pin { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .3s var(--spring); }
.pin:hover { transform: scale(1.3); }
.pin .rim { fill: #fff; stroke: var(--red); stroke-width: 1.6; }
.pin .glow { fill: var(--o2); opacity: 0; transform-box: fill-box; transform-origin: center; }
.map.live .pin .glow { animation: ping 3.4s ease-out infinite; animation-delay: var(--d); }
@keyframes ping { 0% { opacity: .35; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(2.6); } }
.jeddah .core { fill: var(--o3); stroke: #fff; stroke-width: 4; }
.jeddah .wave { fill: none; stroke: var(--o2); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.6s ease-out infinite; }
.jeddah .wave:nth-of-type(2) { animation-delay: -1.3s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(3); opacity: 0; } }
.callouts { position: absolute; inset: 0; pointer-events: none; }
.callout { position: absolute; transform: translate(-50%, -100%); display: grid; justify-items: center; opacity: 0; transition: opacity .5s, transform .6s var(--spring); }
.map.live .callout { opacity: 1; transform: translate(-50%, calc(-100% - 6px)); }
.callout .card { display: grid; gap: 0; justify-items: center; text-align: center; background: var(--paper); padding: var(--s2) var(--s4); box-shadow: var(--shadow-2); border-radius: 4px; border-start-start-radius: 14px; border-end-end-radius: 14px; white-space: nowrap; }
.callout b { font-family: var(--f-display); font-size: 1.875rem; line-height: 1.15; color: var(--o-ink); }
.callout b .p { font-size: 1em; }
.callout span { font-size: var(--t-sm); font-weight: 600; }
.callout i { width: 2px; height: 22px; background: var(--o3); }
.callout i::after { content: ""; display: block; width: 10px; height: 10px; margin: 20px 0 0 -4px; border-radius: 50%; background: var(--o3); box-shadow: 0 0 0 3px #fff; }
.callout.down { transform: translate(-50%, 0); }
.map.live .callout.down { transform: translate(-50%, 6px); }
.callout.down .card { order: 2; }
.callout.down i::after { margin: -4px 0 0 -4px; }
.callout.jd .card { background: linear-gradient(160deg, #FF9F43, var(--o3)); color: #fff; }
.callout.jd b { color: #fff; }
.callout-list { display: none; }
@media (max-width: 760px) {
  .map { aspect-ratio: 8 / 5; } .callouts { display: none; }
  .callout-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s5); }
  .callout-list div { background: var(--paper); box-shadow: var(--shadow-1); padding: var(--s3) var(--s4); border-radius: 4px; border-start-start-radius: 14px; border-end-end-radius: 14px; display: grid; }
  .callout-list b { font-family: var(--f-display); font-size: 1.5rem; color: var(--o-ink); line-height: 1.2; }
  .callout-list span { font-size: var(--t-sm); color: var(--ink-soft); }
}

/* =========================== CARE · notebook =========================== */
.notebook { position: relative; border-radius: 12px 24px 24px 12px; padding: var(--s8) var(--s8) var(--s8) calc(var(--s8) + 24px); background: linear-gradient(90deg, transparent 0 calc(var(--s8) + 4px), rgba(212,32,42,.35) calc(var(--s8) + 4px) calc(var(--s8) + 6px), transparent calc(var(--s8) + 6px)), repeating-linear-gradient(180deg, transparent 0 35px, rgba(22,128,196,.16) 35px 36px), #FFFEFA; box-shadow: var(--shadow-2); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s7); align-items: center; }
[dir="rtl"] .notebook { border-radius: 24px 12px 12px 24px; padding: var(--s8) calc(var(--s8) + 24px) var(--s8) var(--s8); background: linear-gradient(270deg, transparent 0 calc(var(--s8) + 4px), rgba(212,32,42,.35) calc(var(--s8) + 4px) calc(var(--s8) + 6px), transparent calc(var(--s8) + 6px)), repeating-linear-gradient(180deg, transparent 0 35px, rgba(22,128,196,.16) 35px 36px), #FFFEFA; }
.rings { position: absolute; top: var(--s6); bottom: var(--s6); inset-inline-start: 14px; width: 24px; background: radial-gradient(circle at 12px 12px, var(--milk) 0 6px, rgba(46,18,8,.25) 6.5px 7.5px, transparent 8px) 0 0 / 24px 48px repeat-y; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
.kid { position: relative; margin: 0; display: grid; gap: var(--s3); justify-items: center; }
.kid img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 10%; background: #fff; padding: 18px 10px 0; box-shadow: var(--shadow-1); mix-blend-mode: normal; }
.kid.k1 { transform: rotate(-3deg); } .kid.k2 { transform: rotate(3deg); margin-top: var(--s8); }
.kid figcaption { font-family: var(--f-hand); font-size: 1.375rem; color: var(--red); text-align: center; line-height: 1.3; display: flex; align-items: center; gap: var(--s2); }
.kid figcaption::before { content: ""; width: 34px; height: 20px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 20' fill='none' stroke='%23D4202A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M32 16C22 18 10 14 4 4M4 4l1 8M4 4l8 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.tape { position: absolute; z-index: 2; top: -16px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: rgba(255,178,91,.6); transform: rotate(-4deg); }
.report { position: relative; background: #FFFDF7; border: 2px solid #C9963F; outline: 6px double rgba(201,150,63,.5); outline-offset: -12px; border-radius: 6px; padding: var(--s6) var(--s6) var(--s5); box-shadow: var(--shadow-1); transform: rotate(1.2deg); }
.report header { text-align: center; display: grid; justify-items: center; gap: var(--s1); padding-bottom: var(--s3); border-bottom: 1px solid rgba(201,150,63,.4); margin-bottom: var(--s3); }
.report header img { width: 48px; }
.report header b { font-family: var(--f-display); font-size: 1.5rem; }
.report header small { color: var(--ink-soft); font-size: var(--t-xs); }
.grades { width: 100%; border-collapse: collapse; }
.grades td { padding: var(--s2) 0; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.grades td:first-child b { display: block; font-size: var(--t-sm); }
.grades td:first-child small { color: var(--ink-soft); font-size: var(--t-xs); }
.grades td:last-child { text-align: end; width: 116px; }
.grade { position: relative; display: inline-block; font-family: var(--f-hand); font-weight: 700; font-size: 1.375rem; color: var(--red); padding: 2px 12px; }
.grade svg { position: absolute; inset: -6px -8px; width: calc(100% + 16px); height: calc(100% + 12px); overflow: visible; }
.grade path { fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.report.marked .grade path { transition: stroke-dashoffset .9s var(--ease); stroke-dashoffset: 0; }
.report footer { display: flex; justify-content: space-between; align-items: end; margin-top: var(--s4); }
.report .sig { font-family: var(--f-hand); font-size: 1.25rem; color: var(--c-blue); }
.report .sig small { display: block; font-family: var(--f-body); font-size: var(--t-xs); color: var(--ink-soft); }
.report .ok { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--red); color: var(--red); display: grid; place-items: center; font-family: var(--f-hand); font-size: 1.25rem; transform: rotate(-14deg) scale(0); opacity: 0; mix-blend-mode: multiply; }
.report.marked .ok { transition: transform .5s var(--spring) 1.7s, opacity .3s 1.7s; transform: rotate(-14deg) scale(1); opacity: .9; }
@media (max-width: 920px) {
  .notebook { grid-template-columns: 1fr; padding: var(--s6) var(--s4) var(--s6) calc(var(--s4) + 30px); }
  [dir="rtl"] .notebook { grid-template-columns: 1fr; padding: var(--s6) calc(var(--s4) + 30px) var(--s6) var(--s4); }
  .kid figcaption { font-size: 1.0625rem; } .kid.k2 { margin-top: var(--s6); } .report { padding: var(--s5) var(--s4); }
}

/* =========================== TICKETS =========================== */
.tickets-sec { background: linear-gradient(var(--milk), var(--cream)); overflow: hidden; }
.printer { position: relative; z-index: 2; max-width: 1160px; margin-inline: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s5); padding: var(--s3) var(--s5); border-radius: 18px 18px 8px 8px; background: linear-gradient(#5A1E0B, #3A1206); color: #F3D3B4; box-shadow: var(--shadow-2), inset 0 2px 0 rgba(255,255,255,.08); }
.pr-label { display: grid; line-height: 1.35; }
.pr-label b { font-family: var(--f-display); font-size: 1.125rem; color: #fff; }
.pr-label span { font-size: var(--t-xs); color: #E8BFA0; }
.slot { height: 10px; border-radius: 6px; background: #170703; box-shadow: inset 0 2px 3px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.08); }
.printer .led { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); font-weight: 600; }
.printer .led i { width: 10px; height: 10px; border-radius: 50%; background: #FFB25B; box-shadow: 0 0 8px #FFB25B; animation: blinkLed .9s steps(2) infinite; }
.printer.done .led i { background: #7CFC9A; box-shadow: 0 0 8px #7CFC9A; animation: none; }
@keyframes blinkLed { 50% { opacity: .25; } }
.hang { display: flex; justify-content: center; gap: var(--s4); max-width: 1120px; margin: -2px auto 0; padding-inline: var(--s3); }
.tk-clip { overflow: hidden; padding: 0 10px 60px; margin-inline: -10px; flex: 1 1 0; max-width: 220px; min-width: 0; }
.tk-swing { transform-origin: 50% 0; transition: transform .6s var(--spring); }
.tk-swing:hover { transform: rotate(-2.5deg); }
.tk-clip:nth-child(even) .tk-swing:hover { transform: rotate(2.5deg); }
.tk { position: relative; background: var(--paper); border-radius: 0 0 14px 14px; box-shadow: 0 18px 30px -16px rgba(46,18,8,.4); transform: translateY(-104%); }
.tk.printed { transform: none; transition: transform 1.4s cubic-bezier(.3,.7,.2,1); }
.tk::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: repeating-linear-gradient(90deg, rgba(46,18,8,.08) 0 2px, transparent 2px 6px); }
.tk .tk-main { padding: var(--s5) var(--s4) var(--s4); display: grid; gap: var(--s3); }
.tk .top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 700; color: var(--ink-soft); letter-spacing: .1em; }
.tk .top img { height: 26px; width: auto; }
.tk .leg { display: grid; grid-template-columns: 22px 1fr; gap: var(--s2) var(--s3); align-items: center; }
.tk .leg .dotline { grid-row: span 3; justify-self: center; width: 2px; height: 100%; min-height: 96px; background: repeating-linear-gradient(180deg, var(--o2) 0 5px, transparent 5px 10px); position: relative; }
.tk .leg .dotline::before, .tk .leg .dotline::after { content: ""; position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; }
.tk .leg .dotline::before { top: -2px; background: #fff; box-shadow: inset 0 0 0 2.5px var(--o3); }
.tk .leg .dotline::after { bottom: -2px; background: var(--o3); }
.tk .leg .runner { position: absolute; left: 50%; top: 0; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff url(assets/img/logo.webp) center / 13px auto no-repeat; box-shadow: 0 0 0 2px var(--o2); transition: top 1s var(--ease); }
.tk-swing:hover .runner { top: calc(100% - 18px); }
.tk small { font-size: var(--t-xs); color: var(--ink-soft); display: block; }
.tk .from b { font-size: var(--t-sm); color: var(--ink-soft); }
.tk .to b { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.25; display: block; }
.tk .meta { display: grid; gap: var(--s1); font-size: var(--t-xs); color: var(--ink-soft); }
.tk .meta b { color: var(--ink); font-size: var(--t-sm); font-weight: 600; display: block; line-height: 1.5; }
.tk .perf { position: relative; height: 0; border-top: 2px dashed var(--line); margin-inline: var(--s3); }
.tk .perf::before, .tk .perf::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); }
.tk .perf::before { left: -22px; } .tk .perf::after { right: -22px; }
.stub { display: grid; gap: var(--s2); justify-items: center; padding: var(--s3) var(--s4) var(--s4); border: 0; width: 100%; background: none; cursor: pointer; border-radius: 0 0 14px 14px; transition: transform .6s var(--ease), opacity .6s, background-color .2s; transform-origin: 10% 0; }
.stub .bars { width: 100%; height: 30px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 13px); opacity: .85; }
.stub .ph { font-weight: 700; font-size: var(--t-sm); direction: ltr; font-variant-numeric: tabular-nums; }
.stub .cut { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--o-ink); font-weight: 700; }
.stub .cut svg { width: 14px; height: 14px; }
.stub:hover { background: var(--o-wash); }
.stub.torn { transform: translateY(40px) rotate(-14deg); opacity: 0; }
.tk .copied { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-family: var(--f-hand); font-size: 1.375rem; color: var(--c-teal); border: 2px solid currentColor; border-radius: 8px; padding: 0 var(--s3); opacity: 0; transition: opacity .3s .3s; white-space: nowrap; }
.tk.got .copied { opacity: 1; }
.tear-hint { display: flex; justify-content: center; align-items: center; gap: var(--s2); margin-top: var(--s3); color: var(--ink-soft); font-size: var(--t-sm); font-weight: 600; }
.tear-hint svg { width: 18px; height: 18px; color: var(--o3); }
@media (max-width: 1000px) {
  .printer { grid-template-columns: 1fr auto; } .slot { display: none; }
  .hang { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--s4); margin-inline: calc(-1 * var(--s4)); }
  .hang::-webkit-scrollbar { display: none; }
  .tk-clip { flex: none; width: 210px; max-width: none; scroll-snap-align: center; }
}

/* =========================== AIRMAIL =========================== */
.airmail { position: relative; border-radius: var(--r-lg); padding: 10px; background: repeating-linear-gradient(-45deg, var(--o2) 0 14px, #fff 14px 28px, var(--brown) 28px 42px, #fff 42px 56px); box-shadow: var(--shadow-2); }
.airmail > .in { position: relative; border-radius: calc(var(--r-lg) - 6px); background: var(--paper); }
.pstamp { width: 96px; height: 112px; padding: 8px; background: #fff; display: grid; place-items: center; transform: rotate(5deg); box-shadow: var(--shadow-1); border-radius: 2px; flex: none; }
.pstamp span { display: grid; place-items: center; width: 100%; height: 100%; background: var(--o-wash); outline: 2px dashed rgba(232,89,12,.45); outline-offset: 4px; }
.pstamp img { width: 54px; }
.cta-band .in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s6); padding: var(--s7); }
.cta-band .cta-text { display: grid; gap: var(--s2); }
.cta-band .pstamp { justify-self: center; }
.cta-band .btn { justify-self: end; }
.cta-band h2 { font-family: var(--f-display); font-size: var(--t-h3); line-height: 1.35; }
.cta-band p { color: var(--ink-soft); }
@media (max-width: 860px) { .cta-band .in { grid-template-columns: 1fr; justify-items: start; padding: var(--s6) var(--s5); } .cta-band .pstamp { display: none; } .cta-band .btn { justify-self: start; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s6); align-items: start; }
.cform .in { padding: var(--s7); display: grid; gap: var(--s6); }
.cform .pstamp { position: absolute; top: var(--s5); inset-inline-end: var(--s5); }
.cform .salute { font-family: var(--f-hand); font-size: 1.875rem; color: var(--o-ink); line-height: 1.3; padding-inline-end: 120px; }
.cform fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s4); min-width: 0; }
.cform legend { padding: 0; font-weight: 700; font-size: var(--t-md); display: flex; align-items: center; gap: var(--s3); width: 100%; margin-bottom: var(--s4); }
.cform legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.type { display: grid; justify-items: center; gap: var(--s2); padding: var(--s5) var(--s2) var(--s4); border: 1.5px solid var(--line); background: var(--milk); cursor: pointer; text-align: center; font-size: var(--t-sm); font-weight: 600; border-radius: 4px; border-start-start-radius: 16px; border-end-end-radius: 16px; transition: border-color .2s, background-color .2s, transform .3s var(--spring); }
.type svg { width: 40px; height: 40px; color: var(--ink); }
.type:hover { transform: translateY(-2px); border-color: var(--o1); }
.type[aria-pressed="true"] { border-color: var(--o2); background: var(--o-wash); color: var(--o-ink); box-shadow: 0 8px 18px -10px rgba(232,89,12,.5); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); }
.field { display: grid; gap: var(--s2); min-width: 0; } .field.full { grid-column: 1 / -1; }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; border: 1.5px solid transparent; background: #FBF4EA; border-radius: 12px; padding: var(--s3) var(--s4); font: 500 1.0625rem var(--f-body); color: var(--ink); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field input:hover, .field textarea:hover, .field select:hover { background: #F8EDDF; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--o2); background: #fff; box-shadow: 0 0 0 4px rgba(249,115,22,.15); }
.field .err { color: #B42318; font-size: var(--t-xs); min-height: 1.1em; }
.field.bad input, .field.bad textarea { border-color: #D92D20; background: #FFF6F5; }
.send-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; padding-top: var(--s4); border-top: 1px solid var(--line); }
.send-row small { color: var(--ink-soft); font-size: var(--t-xs); max-width: 36ch; }
.cform.fold .in { transform: perspective(900px) rotateX(70deg) scale(.6) translateY(-40px); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.sent { display: grid; justify-items: center; text-align: center; gap: var(--s4); padding: var(--s8) var(--s5); animation: sentIn .7s var(--spring); }
@keyframes sentIn { from { opacity: 0; transform: translateY(30px) scale(.94); } }
.envelope { width: 150px; height: 98px; position: relative; background: var(--sand); border-radius: 8px; box-shadow: var(--shadow-1); overflow: hidden; }
.envelope::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 62%; background: #EAD3B3; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.envelope i { position: absolute; z-index: 2; left: 50%; top: 48%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--o3) url(assets/img/logo-white.webp) center / 22px auto no-repeat; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.side { display: grid; gap: var(--s4); }
.side .card { border-radius: 6px; border-start-start-radius: 24px; border-end-end-radius: 24px; padding: var(--s6); background: var(--paper); box-shadow: var(--shadow-1); display: grid; gap: var(--s3); }
.side .card.hot { background: linear-gradient(160deg, #FFF4E6, #FFE3C4); box-shadow: inset 0 0 0 1.5px rgba(232,89,12,.25); }
.side .card .ic { width: 38px; height: 38px; }
.side .card p { color: var(--ink-soft); }
.side .big { font-family: var(--f-display); font-size: 2rem; color: var(--o-ink); justify-self: start; }
.copy { display: inline-flex; align-items: center; gap: var(--s2); border: 0; cursor: pointer; padding: var(--s2) var(--s4); border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(232,89,12,.25); font-size: var(--t-sm); font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .2s; justify-self: start; color: var(--ink); }
.copy:hover { background: var(--o-wash); }
.copy.done { background: var(--c-teal); color: #fff; box-shadow: none; }
.copy svg { width: 15px; height: 15px; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } .cform .in { padding: var(--s6) var(--s4); } .types { grid-template-columns: 1fr 1fr; } .fields { grid-template-columns: 1fr; } .cform .salute { padding-inline-end: 96px; font-size: 1.5rem; } .cform .pstamp { width: 72px; height: 86px; } .cform .pstamp img { width: 40px; } }

/* =========================== INNER PAGES =========================== */
.phead { position: relative; isolation: isolate; overflow: hidden; padding-block: calc(var(--nav-h) + var(--s8)) var(--s8); }
.phead .wrap { display: grid; gap: var(--s4); justify-items: center; text-align: center; }
.phead h1 { font-family: var(--f-display); font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4rem); line-height: 1.25; }
.phead .lead { margin-inline: auto; color: #5B3A2A; }
.crumbs { font-size: var(--t-sm); color: var(--ink-soft); display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center; }
.crumbs a { text-decoration: none; color: var(--o-ink); font-weight: 600; } .crumbs a:hover { text-decoration: underline; }
.bar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; margin-bottom: var(--s7); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); }
.search { position: relative; flex: 0 1 300px; min-width: 0; }
.search input { width: 100%; min-height: 46px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); padding-inline: var(--s5) 46px; font: inherit; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--o2); }
.search svg { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--ink-soft); }
.note { color: var(--ink-soft); font-size: var(--t-sm); margin-top: var(--s6); text-align: center; }
/* products: shelves per world */
.world-shelf { --c: var(--c-teal); margin-bottom: var(--s9); }
.ws-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: center; margin-bottom: var(--s5); }
.ws-head .ph { width: 112px; height: 112px; border-radius: 50%; padding: 6px; background: #fff; box-shadow: 0 0 0 3px var(--c), var(--shadow-1); }
.ws-head .ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ws-head h2 { font-family: var(--f-display); font-size: var(--t-h3); color: var(--c); line-height: 1.3; }
.ws-head p { color: var(--ink-soft); max-width: 60ch; }
.shelf-row { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s5) var(--s5); padding: var(--s6) var(--s5) 0; border-radius: 4px; border-start-start-radius: 28px; border-end-end-radius: 28px; background: color-mix(in srgb, var(--c) 7%, var(--paper)); }
.shelf-item { width: 150px; display: grid; grid-template-rows: 150px auto; justify-items: center; text-align: center; gap: var(--s3); text-decoration: none; padding-bottom: var(--s5); position: relative; }
.shelf-item::before { content: ""; position: absolute; top: 146px; inset-inline: -10px; height: 12px; background: linear-gradient(color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 45%, #fff)); border-radius: 3px; box-shadow: 0 10px 14px -8px rgba(46,18,8,.3); }
.shelf-item img { align-self: end; max-height: 140px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(46,18,8,.2)); transition: transform .45s var(--spring); position: relative; z-index: 1; }
.shelf-item:hover img { transform: translateY(-12px) rotate(-2deg); }
.shelf-item b { font-size: var(--t-sm); line-height: 1.45; padding-top: var(--s3); }
.shelf-item .new { position: absolute; top: 0; inset-inline-end: 4px; z-index: 2; font-family: var(--f-hand); color: var(--o3); font-size: 1.25rem; transform: rotate(10deg); }
/* product page */
.pd { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s8); align-items: center; padding-block: calc(var(--nav-h) + var(--s7)) var(--s9); }
.pd-media { --c: var(--c-teal); position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff, color-mix(in srgb, var(--c) 18%, var(--milk))); box-shadow: inset 0 0 0 14px #fff, var(--shadow-2); }
.pd-media img { width: 70%; max-height: 70%; object-fit: contain; filter: drop-shadow(0 30px 24px rgba(46,18,8,.25)); }
.pd-info { display: grid; gap: var(--s5); justify-items: start; }
.pd-info .cat { font-weight: 700; color: var(--c); display: inline-flex; align-items: center; gap: var(--s2); }
.pd-info .cat::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.pd-info h1 { font-family: var(--f-display); font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.25; }
.pd-info .crumbs { justify-content: flex-start; }
.sizes { display: flex; flex-wrap: wrap; gap: var(--s2); }
.sizes span { padding: var(--s1) var(--s4); border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; direction: ltr; }
.shelf { display: flex; align-items: flex-end; justify-content: center; gap: var(--s5); flex-wrap: wrap; padding: var(--s6) var(--s5) var(--s4); border-radius: 4px; border-start-start-radius: 28px; border-end-end-radius: 28px; background: linear-gradient(transparent 80%, var(--sand) 80%), var(--cream); }
.sku { display: grid; justify-items: center; gap: var(--s3); }
.sku img { width: auto; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(60,20,5,.25)); transition: transform .45s var(--spring); }
.sku:hover img { transform: translateY(-10px); }
.sku b { font-size: var(--t-sm); } .sku small { color: var(--ink-soft); direction: ltr; }
.block { padding-block: var(--s8); }
.block h2 { font-family: var(--f-display); font-size: var(--t-h3); margin-bottom: var(--s5); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s6) var(--s5); }
.pcard { --c: var(--c-teal); text-decoration: none; text-align: center; display: grid; gap: var(--s3); justify-items: center; }
.pcard .pl { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff, color-mix(in srgb, var(--c) 14%, var(--milk))); transition: transform .45s var(--spring); }
.pcard:hover .pl { transform: translateY(-8px); }
.pcard img { width: 74%; max-height: 74%; object-fit: contain; filter: drop-shadow(0 14px 12px rgba(46,18,8,.18)); }
.pcard small { font-size: var(--t-xs); font-weight: 700; color: var(--c); }
.pcard b { font-size: var(--t-md); line-height: 1.45; }
/* recipes: the recipe box */
.rbox-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: -2px; position: relative; z-index: 2; }
.rbox-tabs a { padding: var(--s3) var(--s5) var(--s3); text-decoration: none; font-weight: 700; font-size: var(--t-sm); color: var(--ink-soft); background: var(--sand); border-radius: 14px 14px 0 0; transition: background-color .2s, color .2s, transform .2s; transform: translateY(6px); }
.rbox-tabs a:hover { transform: translateY(2px); color: var(--ink); }
.rbox-tabs a[aria-current="true"] { background: var(--paper); color: var(--o-ink); transform: none; box-shadow: 0 -6px 14px -8px rgba(46,18,8,.2); }
.rbox { background: var(--paper); border-radius: 6px; border-start-start-radius: 28px; border-end-end-radius: 28px; box-shadow: var(--shadow-2); padding: var(--s7) var(--s6); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s6) var(--s5); }
.icard { --r: 0deg; text-decoration: none; color: var(--ink); display: grid; grid-template-rows: auto 1fr; background: #FFFDF8; border-radius: 4px; border-start-start-radius: 18px; border-end-end-radius: 18px; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); transform: rotate(var(--r)); transition: transform .45s var(--spring), box-shadow .3s; overflow: hidden; }
.icard:hover { transform: rotate(0) translateY(-8px); box-shadow: var(--shadow-2); }
.icard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.icard .body { padding: var(--s4) var(--s4) var(--s5); display: grid; gap: var(--s2); align-content: start; background: repeating-linear-gradient(180deg, transparent 0 27px, rgba(22,128,196,.12) 27px 28px); }
.icard b { font-family: var(--f-display); font-size: 1.1875rem; line-height: 1.4; }
.icard small { color: var(--o-ink); font-weight: 600; font-size: var(--t-xs); }
.icard .uses { color: var(--ink-soft); font-size: var(--t-xs); }
/* recipe page */
.rhero { position: relative; height: min(70vh, 560px); min-height: 380px; overflow: hidden; display: grid; align-items: end; color: #fff; isolation: isolate; }
.rhero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,10,4,.1) 30%, rgba(30,10,4,.78)); }
.rhero .wrap { padding-block: var(--s7); display: grid; gap: var(--s3); }
.rhero h1 { font-family: var(--f-display); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.25; }
.rhero .crumbs { justify-content: flex-start; color: #F3D9C4; } .rhero .crumbs a { color: #FFC58A; }
.meta-row { display: flex; flex-wrap: wrap; gap: var(--s4); font-size: var(--t-sm); }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row svg { width: 16px; height: 16px; }
.rbody { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s8); padding-block: var(--s8); align-items: start; }
.ing-card { position: sticky; top: 92px; border-radius: 6px; border-start-start-radius: 24px; border-end-end-radius: 24px; background: var(--paper); box-shadow: var(--shadow-1); padding: var(--s6); display: grid; gap: var(--s4); }
.ing-card h2, .method-col h2 { font-family: var(--f-display); font-size: var(--t-h3); }
.ing { list-style: none; margin: 0; padding: 0; display: grid; }
.ing label { display: flex; gap: var(--s3); align-items: center; padding: var(--s2) 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.ing input { width: 20px; height: 20px; accent-color: var(--o3); flex: none; }
.ing input:checked + span { text-decoration: line-through; color: var(--ink-soft); }
.ing .q { font-weight: 700; color: var(--o-ink); min-width: 5.4em; display: inline-block; font-variant-numeric: tabular-nums; }
.scaler { display: inline-flex; align-items: center; gap: var(--s2); border-radius: 12px; padding: var(--s1); background: var(--milk); box-shadow: inset 0 0 0 1px var(--line); }
.scaler button { width: 38px; height: 38px; border-radius: 9px; border: 0; cursor: pointer; background: #fff; box-shadow: var(--shadow-1); font-weight: 700; font-size: 1.125rem; color: var(--o3); }
.scaler output { min-width: 3ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.prog { height: 8px; border-radius: 8px; background: var(--cream); overflow: hidden; } .prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--o1), var(--o3)); border-radius: inherit; transition: width .4s var(--ease); }
.method-col { display: grid; gap: var(--s5); }
.method { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); counter-reset: s; }
.method li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: var(--s4); align-items: start; font-size: var(--t-lg); }
.method li::before { content: counter(s); width: 44px; height: 44px; border-radius: 4px; border-start-start-radius: 14px; border-end-end-radius: 14px; display: grid; place-items: center; background: var(--o-wash); color: var(--o-ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px rgba(232,89,12,.3); }
.uses-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.uses-row a { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s4) var(--s1) var(--s1); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow-1); text-decoration: none; font-weight: 600; font-size: var(--t-sm); }
[dir="rtl"] .uses-row a { padding: var(--s1) var(--s1) var(--s1) var(--s4); }
.uses-row img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: var(--cream); padding: 4px; }
/* story: the road */
.road-sec { padding-block: var(--s6) var(--s9); }
.road { position: relative; }
.road-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.road-path path { fill: none; stroke-linecap: round; }
#roadBase { stroke: var(--sand); stroke-width: 10; }
#roadDraw { stroke: var(--o2); stroke-width: 4; stroke-dasharray: 10 12; }
.chapter { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s9); align-items: center; padding-block: var(--s8); }
.chapter:nth-child(even) .ch-media { order: 2; }
.ch-media { position: relative; display: grid; place-items: center; }
.ch-media .disc { width: min(380px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, var(--cream)); box-shadow: inset 0 0 0 12px #fff, var(--shadow-2); display: grid; place-items: center; overflow: hidden; }
.ch-media .disc img.cut { width: 72%; max-height: 72%; object-fit: contain; filter: drop-shadow(0 20px 18px rgba(46,18,8,.22)); }
.ch-media .disc img.full { width: 100%; height: 100%; object-fit: cover; }
.ch-media .disc .stamps-mini { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 18%; }
.ch-media .disc .stamps-mini { gap: 10px; padding: 14%; }
.ch-media .disc .stamps-mini span { font: 700 14px "DM Sans", sans-serif; padding: 6px 10px; border: 2px solid currentColor; border-radius: 6px; transform: rotate(var(--r)); }
.ch-media .disc .brands-mini { display: grid; gap: 8px; text-align: center; }
.ch-media .disc .brands-mini b { font-family: var(--f-display); font-size: 1.5rem; }
.ch-media .disc .brands-mini b:first-child { color: var(--red); font-size: 2.25rem; }
.ch-dot { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px var(--o2), var(--shadow-1); z-index: 2; transition: background-color .4s, transform .4s var(--spring); }
.chapter.seen .ch-dot { background: var(--o3); transform: scale(1.2); }
.ch-text { display: grid; gap: var(--s3); justify-items: start; opacity: .25; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.chapter.seen .ch-text { opacity: 1; transform: none; }
.ch-text .when { font-family: var(--f-hand); font-size: 1.75rem; color: var(--o-ink); line-height: 1.2; }
.ch-text h2 { font-family: var(--f-display); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.3; }
.ch-text p { color: var(--ink-soft); font-size: var(--t-lg); line-height: 1.85; max-width: 44ch; }
/* where: postcards */
.postcards { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s5); }
.postcard { flex: 0 1 280px; position: relative; background: #FFFDF8; padding: var(--s5) var(--s5) var(--s5); border-radius: 4px; border-start-start-radius: 20px; border-end-end-radius: 20px; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); display: grid; gap: var(--s2); overflow: hidden; transition: transform .4s var(--spring); }
.postcard:hover { transform: translateY(-6px) rotate(-.8deg); }
.postcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: repeating-linear-gradient(-45deg, var(--o2) 0 10px, #fff 10px 20px, var(--brown) 20px 30px, #fff 30px 40px); }
.postcard .pm { position: absolute; top: var(--s5); inset-inline-end: var(--s4); width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(232,89,12,.45); display: grid; place-items: center; text-align: center; font-size: 9px; font-weight: 700; letter-spacing: .1em; color: var(--o-ink); transform: rotate(-12deg); line-height: 1.3; }
.postcard small { font-size: var(--t-xs); color: var(--ink-soft); font-weight: 600; margin-top: var(--s2); }
.postcard b { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.3; padding-inline-end: 72px; }
.postcard .who { font-size: var(--t-sm); color: var(--ink); padding-top: var(--s3); border-top: 1px dashed var(--line); direction: ltr; text-align: start; }
@media (max-width: 900px) {
  .pd, .rbody { grid-template-columns: 1fr; gap: var(--s6); } .pd-media { max-width: 420px; width: 100%; justify-self: center; } .ing-card { position: static; }
  .chapter { grid-template-columns: 1fr; gap: var(--s5); padding-block: var(--s6); } .chapter:nth-child(even) .ch-media { order: 0; } .ch-media .disc { width: min(280px, 80%); }
  .ch-dot { display: none; } .road-path { display: none; } .ch-text { opacity: 1; transform: none; }
  .rbox { padding: var(--s5) var(--s4); } .ws-head { grid-template-columns: 1fr; } .ws-head .ph { width: 88px; height: 88px; }
}

/* =========================== FOOTER =========================== */
.footer { position: relative; overflow: hidden; isolation: isolate; color: var(--on-foot); background: radial-gradient(130% 140% at 85% 0%, var(--foot-1) 0%, var(--foot-2) 45%, var(--foot-3) 100%); }
.wide-wrap { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; pointer-events: none; padding-inline: var(--s5); }
.wide { display: block; width: 100%; text-align: center; font-family: "Marhey", serif; font-weight: 700; line-height: 1; white-space: nowrap; color: #FCEBD6; opacity: .08; user-select: none; }
:root[lang="en"] .wide { font-family: "Fraunces", serif; letter-spacing: .08em; }
.footer .wrap { position: relative; z-index: 1; }
.f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s7); padding-block: var(--s10) var(--s9); }
.f-grid h4 { font-size: var(--t-sm); font-weight: 600; color: #E8BFA0; margin-bottom: var(--s4); padding-bottom: var(--s2); border-bottom: 1px solid rgba(255,255,255,.14); }
.f-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); justify-items: start; }
.f-grid a { text-decoration: none; } .f-grid a:hover { color: var(--o1); }
.f-brand img { height: 76px; width: auto; margin-bottom: var(--s4); }
.f-brand p { color: #EBCBB2; max-width: 36ch; }
.social { display: flex; gap: var(--s2); margin-top: var(--s5); }
.social a { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background-color .25s, transform .25s; }
.social a:hover { background: var(--o2); color: #fff !important; transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); padding-block: var(--s5) calc(var(--s6) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.12); font-size: var(--t-sm); color: #D9AE90; }
@media (max-width: 900px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }

.view { animation: viewIn .5s var(--ease); }
@keyframes viewIn { from { opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
