/* Al Sayakh — a made-up late-night shawarma counter in Al Satwa. Kaiven Studios concept. */
:root {
  --night: #0c0a08;
  --night-2: #16120e;
  --paper: #f4efe4;
  --muted: #a99c8a;
  --ember: #ff6a1a;
  --ember-2: #ffb15c;
  --steel: #c9c7c2;
  --line: rgba(244, 239, 228, .14);
  --cond: 'Archivo', system-ui, sans-serif;
  --led: 'DotGothic16', monospace;
  --ar: 'Cairo', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--night); color: var(--paper); font: 400 16px/1.55 var(--cond); font-stretch: 100%; overflow-x: hidden; }
html[lang="ar"] body, html[lang="ar"] button { font-family: var(--ar); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.kicker { font: 700 12px/1 var(--cond); letter-spacing: .24em; text-transform: uppercase; color: var(--ember); margin-bottom: 18px; }
html[lang="ar"] .kicker { letter-spacing: 0; font: 700 15px/1 var(--ar); }
h1, h2 { font: 900 clamp(46px, 7.4vw, 112px)/.86 var(--cond); font-stretch: 72%; text-transform: uppercase; letter-spacing: -.005em; }
html[lang="ar"] h1, html[lang="ar"] h2 { font: 900 clamp(40px, 6vw, 86px)/1.15 var(--ar); text-transform: none; }
.sub { color: var(--muted); max-width: 40ch; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 99px; background: var(--ember); color: var(--night); font-weight: 700; font-size: 14px; text-decoration: none; transition: background .2s; }
.btn:hover, .btn:focus-visible { background: var(--ember-2); }
.btn.ghost { background: transparent; color: var(--paper); border: 1px solid var(--line); }
.btn.ghost:hover, .btn.ghost:focus-visible { border-color: var(--ember); color: var(--ember); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 66px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(rgba(12, 10, 8, .8), transparent); }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo-en { font: 900 22px/1 var(--cond); font-stretch: 72%; letter-spacing: .04em; }
.logo-ar { font: 900 18px/1 var(--ar); color: var(--ember); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.clock { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; }
.clock b { font-weight: 700; font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); animation: pulse 2s infinite; }
.clock.closed .dot { background: #777; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 26, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 106, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 26, 0); } }
.lang { min-height: 40px; padding: 0 15px; border: 1px solid var(--paper); border-radius: 99px; font: 700 15px/1 var(--ar); white-space: nowrap; }
html[lang="ar"] .lang { font: 700 13px/1 var(--cond); }

/* 1. film: storefront (cut at the serving window) over the counter */
.film { position: relative; height: 520vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #050403; }
.outside, .inside { position: absolute; will-change: transform; }
/* tune these to the storefront image: serving window box and sign board, in % of the image */
.outside { --mx: 30.2%; --my: 31.88%; --mw: 37.86%; --mh: 26.89%; --sx: 27.87%; --sy: 7.01%; --sw: 43.78%; --sh: 12.75%;
  --pw: max(100vw, 177.78vh); width: var(--pw); height: calc(var(--pw) / 1.7778); left: calc(50vw - var(--pw) / 2); top: calc(50% - var(--pw) / 3.5556); z-index: 1; }
.inside { --iw: max(100vw, 177.78vh); width: var(--iw); height: calc(var(--iw) / 1.7778); left: calc(50vw - var(--iw) / 2); top: calc(50% - var(--iw) / 3.5556); }
.outside > img, .inside > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.inside > img { background: #120c08; }
.mouth { position: absolute; left: var(--mx); top: var(--my); width: var(--mw); height: var(--mh); pointer-events: none; }
.sign { position: absolute; left: var(--sx); top: var(--sy); width: var(--sw); height: var(--sh); display: flex; align-items: center; justify-content: center; gap: .6em; pointer-events: none;
  font-size: calc(var(--pw) * .028); color: #fff3e2; text-shadow: 0 0 .15em rgba(255, 170, 90, .95), 0 0 .6em rgba(255, 106, 26, .8), 0 0 1.4em rgba(255, 90, 20, .5); }
.sign-en { font: 900 1em/1 var(--cond); font-stretch: 72%; letter-spacing: .06em; }
.sign-ar { font: 900 .95em/1 var(--ar); }
.grill { position: absolute; left: 30.5%; top: 8.5%; width: 14.5%; height: 45%; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(closest-side, rgba(255, 90, 25, .55), rgba(255, 60, 10, .15) 60%, transparent); }
/* the spit: region in % of the counter image (x 525-720, y 88-492 of 1672x941) */
.spin { position: absolute; left: 31.4%; top: 9.35%; width: 11.66%; height: 42.93%; pointer-events: none; }
.vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55)); }
.film-text { position: absolute; z-index: 3; pointer-events: none; }
.t1 { left: clamp(20px, 6vw, 90px); top: 20vh; max-width: 26ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .8); }
html[dir="rtl"] .t1 { left: auto; right: clamp(20px, 6vw, 90px); }
.t1 .sub { color: #e2d3bf; }
.hint { position: absolute; z-index: 3; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font: 700 11px/1 var(--cond); letter-spacing: .26em; text-transform: uppercase; color: #e2d3bf; }
.hint i { width: 1px; height: 30px; background: linear-gradient(var(--ember), transparent); animation: drip 1.7s infinite; }
@keyframes drip { from { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } to { transform: scaleY(0); transform-origin: bottom; } }
html[lang="ar"] .hint { letter-spacing: 0; font: 700 14px/1 var(--ar); }

/* 2. counter carousel */
.counter { position: relative; height: 340vh; }
.cstage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cplate { --iw: max(100vw, 177.78vh); position: absolute; width: var(--iw); height: calc(var(--iw) / 1.7778); left: calc(50vw - var(--iw) / 2); top: calc(50% - var(--iw) / 3.5556); }
.cplate > img { width: 100%; height: 100%; display: block; background: #120c08; }
.cshade { position: absolute; inset: 0; background: linear-gradient(rgba(12, 10, 8, .55), transparent 30%, transparent 60%, rgba(12, 10, 8, .85)); }
.ctitle { position: absolute; z-index: 2; left: 0; right: 0; top: 13vh; text-align: center; text-shadow: 0 4px 40px rgba(0, 0, 0, .8); }
.ctitle .one { display: block; font: 800 clamp(18px, 2.2vw, 28px)/1 var(--cond); color: var(--ember-2); text-transform: lowercase; }
.ctitle .nm { display: block; font: 900 clamp(64px, 12vw, 170px)/.9 var(--cond); font-stretch: 70%; text-transform: lowercase; transition: opacity .3s; }
html[lang="ar"] .ctitle .one { font: 700 22px/1.4 var(--ar); }
html[lang="ar"] .ctitle .nm { font: 900 clamp(56px, 9vw, 130px)/1.2 var(--ar); }
.track { position: absolute; z-index: 2; inset: 0; }
.laffa { position: absolute; left: 50%; top: 66%; width: min(40vw, 46vh); aspect-ratio: 1; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s, filter .5s; }
.laffa img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .6)); }
.cfoot { position: absolute; z-index: 3; left: 0; right: 0; bottom: 5vh; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 0 20px; }
.cdesc { max-width: 42ch; text-align: center; color: #e2d3bf; min-height: 3.1em; }
.cdesc b { color: var(--paper); }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(244, 239, 228, .4); font-size: 20px; flex: none; transition: background .2s, border-color .2s; }
.arrow:hover, .arrow:focus-visible { background: var(--ember); border-color: var(--ember); color: var(--night); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }

/* 3. ticket machine */
.machine { padding: 130px 0; background: var(--night-2); border-block: 1px solid var(--line); }
.mgrid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.peek { margin-top: 34px; max-width: 360px; }
.peek label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.peek-row { display: flex; align-items: center; gap: 14px; }
.peek input { flex: 1; accent-color: var(--ember); height: 28px; }
.peek output { font: 400 28px/1 var(--led); color: var(--ember); min-width: 4ch; text-align: end; }
.box { background: linear-gradient(#2a2622, #1b1815); border: 1px solid #3a352f; border-radius: 14px; padding: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px rgba(0, 0, 0, .45); }
.led { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #070504; border-radius: 6px; padding: 14px 16px; font: 400 clamp(16px, 1.8vw, 22px)/1.2 var(--led); color: var(--ember); text-shadow: 0 0 8px rgba(255, 106, 26, .7); letter-spacing: .06em; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.key { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; text-align: start; padding: 12px 14px; min-height: 64px; border-radius: 8px; background: linear-gradient(#f6f2ea, #dcd6ca); color: #1a1612; box-shadow: 0 3px 0 #8f887c, inset 0 1px 0 #fff; transition: transform .08s, box-shadow .08s; }
.key:active, .key.down { transform: translateY(3px); box-shadow: 0 0 0 #8f887c, inset 0 1px 0 #fff; }
.key .no { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #1a1612; color: var(--ember-2); font: 400 15px/1 var(--led); }
.key .kn { font: 800 15px/1.15 var(--cond); }
html[lang="ar"] .key .kn { font: 700 15px/1.3 var(--ar); }
.key .ka { grid-column: 2; font: 600 12px/1.2 var(--ar); color: #6d6457; }
html[lang="ar"] .key .ka { font: 600 11px/1.2 var(--cond); }
.key .kp { grid-row: 1 / span 2; grid-column: 3; font: 800 15px/1 var(--cond); }
.key.out { opacity: .45; }
.slot { margin: 16px auto 0; width: 70%; height: 10px; border-radius: 6px; background: #070504; position: relative; overflow: visible; }
.ticket { position: absolute; left: 6%; right: 6%; top: 5px; padding: 0 16px; background: var(--paper); color: #1a1612; font: 400 14px/1.5 var(--led); border-radius: 0 0 4px 4px; max-height: 0; overflow: hidden; transition: max-height .6s cubic-bezier(.2, .8, .2, 1), padding .6s; box-shadow: 0 10px 20px rgba(0, 0, 0, .35); }
.ticket.on { max-height: 160px; padding: 12px 16px 14px; }
.ticket .tn { font-size: 26px; color: #c2410c; }
.box { padding-bottom: 150px; }

/* 4. visit */
.visit { padding: 120px 0; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vcard { border: 1px solid var(--line); border-radius: 6px; padding: clamp(26px, 4vw, 44px); background: var(--night-2); }
.vcard h3 { font: 900 clamp(30px, 3.4vw, 46px)/.95 var(--cond); font-stretch: 72%; text-transform: uppercase; margin-bottom: 12px; }
html[lang="ar"] .vcard h3 { font: 900 30px/1.3 var(--ar); text-transform: none; }
.vcard p { color: var(--muted); }
.contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }

/* 5. close */
.close { position: relative; height: 170vh; background: var(--night); }
.close-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.shutter { position: absolute; inset: 0; will-change: transform; background:
  linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, rgba(0,0,0,.5)),
  repeating-linear-gradient(180deg, #2b2825 0 3px, #3b3733 3px 12px, #1f1d1b 12px 15px, #34312d 15px 18px); }
.close-copy { position: relative; z-index: 2; text-align: center; padding: 0 20px; opacity: 0; }
.close .big { font: 900 clamp(70px, 15vw, 220px)/.85 var(--cond); font-stretch: 68%; letter-spacing: .02em; color: #fff3e2; text-shadow: 0 0 .08em rgba(255, 170, 90, .9), 0 0 .4em rgba(255, 106, 26, .6); }
.close .see { margin: 18px 0 28px; font: 700 clamp(20px, 2.6vw, 30px)/1.3 var(--cond); }
html[lang="ar"] .close .see { font: 700 24px/1.5 var(--ar); }
.credit { border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); padding: 22px 20px 28px; }

/* contact float + note */
.wa-float { position: fixed; z-index: 40; right: 20px; bottom: 20px; min-height: 52px; padding: 0 22px; border-radius: 99px; background: var(--ember); color: var(--night); font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s, transform .35s; }
.wa-float.on { opacity: 1; transform: none; pointer-events: auto; }
html[dir="rtl"] .wa-float { right: auto; left: 20px; }
.note { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(5, 3, 2, .72); backdrop-filter: blur(6px); }
.note[hidden] { display: none; }
.note-card { position: relative; width: min(440px, 100%); background: var(--night-2); border: 1px solid var(--line); border-radius: 8px; padding: 34px 30px 30px; }
.note-card h3 { font: 900 30px/1 var(--cond); font-stretch: 72%; text-transform: uppercase; margin-bottom: 12px; padding-inline-end: 30px; }
html[lang="ar"] .note-card h3 { font: 900 24px/1.4 var(--ar); }
.note-card p { color: var(--muted); }
.note-q { margin: 20px 0 14px; color: var(--paper) !important; font-weight: 700; }
.note-x { position: absolute; top: 10px; inset-inline-end: 12px; width: 44px; height: 44px; font-size: 28px; color: var(--muted); }

@media (max-width: 760px) {
  .logo-ar, .clock span { display: none; }
  .nav { padding: 0 14px; }
  .outside { --pw: 190vw; top: calc(42% - var(--pw) / 3.5556); }
  .outside > img { -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
  .t1, html[dir="rtl"] .t1 { top: auto; bottom: 10vh; left: 20px; right: 20px; text-align: center; max-width: none; }
  h1, h2 { font-size: 54px; }
  .hint { display: none; }
  .laffa { width: 74vw; top: 62%; }
  .ctitle { top: 12vh; }
  .ctitle .nm { font-size: 74px; }
  .cfoot { gap: 12px; }
  .cdesc { font-size: 14px; }
  .arrow { width: 46px; height: 46px; }
  .machine, .visit { padding: 80px 0; }
  .mgrid, .vgrid { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr; }
  .wa-float { right: 14px; bottom: 14px; }
  html[dir="rtl"] .wa-float { left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dot, .hint i { animation: none; }
  .laffa, .ticket { transition: none; }
}
