/* ==========================================================
   KOOJEH · كوجه
   Palette taken from the restaurant itself:
   lajvard doors, glazed kashi tiles, sand plaster walls,
   firouzeh carpet, saffron.
   ========================================================== */
:root {
  --lajvard: #1F3E9E;
  --lajvard-deep: #152C75;
  --plaster: #F1E5CF;
  --plaster-2: #E6D3B3;
  --cream: #FBF5EA;
  --kashi: #A9441F;
  --firouzeh: #1E7C82;
  --saffron: #E0A11B;
  --ink: #1B2140;

  --pad: clamp(1.1rem, 5vw, 5.5rem);
  --header-h: 72px;
  /* the mobile booking bar and the scroll cue reserve their own bands in the
     hero so the headline can never be laid on top of them */
  --fab-h: 3.4rem;
  --fab-gap: 1rem;
  --cue-h: 3.6rem;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .16 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Cg fill='none' stroke='%231F3E9E' stroke-opacity='.09' stroke-width='1.2'%3E%3Crect x='27' y='27' width='30' height='30'/%3E%3Crect x='27' y='27' width='30' height='30' transform='rotate(45 42 42)'/%3E%3Cpath d='M0 42h12M72 42h12M42 0v12M42 72v12'/%3E%3C/g%3E%3C/svg%3E");
  --star-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Cg fill='none' stroke='%23FBF5EA' stroke-opacity='.1' stroke-width='1.2'%3E%3Crect x='27' y='27' width='30' height='30'/%3E%3Crect x='27' y='27' width='30' height='30' transform='rotate(45 42 42)'/%3E%3Cpath d='M0 42h12M72 42h12M42 0v12M42 72v12'/%3E%3C/g%3E%3C/svg%3E");
}

html[lang="ar"] {
  --f-display: "Aref Ruqaa", "Noto Naskh Arabic", serif;
  --f-body: "Noto Naskh Arabic", "Segoe UI", Tahoma, serif;
  --lh-body: 1.95;
  --lh-display: 1.4;
}
html[lang="en"] {
  --f-display: "Gloock", Georgia, serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --lh-body: 1.65;
  --lh-display: 1.08;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  /* in-page links have to clear the fixed header */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--plaster) var(--noise);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, .35vw + .9rem, 1.15rem);
  line-height: var(--lh-body);
  /* clip rather than hidden: hidden makes body a scroll container, which
     upsets pinned sections on mobile */
  overflow-x: hidden;
  overflow-x: clip;
}
html.is-locked, html.is-locked body { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button, input { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
p { margin: 0 0 1em; max-width: 36em; }
[lang="fa"] { font-family: "Aref Ruqaa", serif; }

.skip { position: absolute; top: -100px; inset-inline-start: 1rem; z-index: 200; background: var(--lajvard); color: var(--cream); padding: .5rem 1rem; }
.skip:focus { top: 1rem; }

h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  line-height: var(--lh-display);
  color: var(--lajvard);
  margin: 0 0 .35em;
  letter-spacing: -.01em;
}
h3 { font-family: var(--f-display); font-weight: 400; margin: 0; }

.logo-mark {
  display: block;
  aspect-ratio: 462 / 409;
  background: currentColor;
  -webkit-mask: url("../assets/img/logo-mask.png") center / contain no-repeat;
          mask: url("../assets/img/logo-mask.png") center / contain no-repeat;
}

/* Tiles — the glazed kashi from the facade */
.tiles {
  background-color: var(--kashi);
  background-image:
    linear-gradient(90deg, rgba(255, 215, 170, .38) 1.5px, transparent 1.5px),
    linear-gradient(rgba(255, 215, 170, .38) 1.5px, transparent 1.5px),
    linear-gradient(125deg, rgba(255, 255, 255, .16), transparent 35%, rgba(0, 0, 0, .1) 80%);
  background-size: 46px 46px, 46px 46px, 100% 100%;
}
.lattice { position: absolute; inset: 0; background-image: var(--star); pointer-events: none; }
.lattice-light { background-image: var(--star-light); }

/* Rosettes */
.rosette-svg { width: 100%; height: auto; overflow: visible; display: block; }
.ro-line { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ro-dot { fill: var(--ro-dot, currentColor); }

/* Arches — the recurring frame */
.arch { position: relative; overflow: hidden; border-radius: 999px 999px 0 0; margin: 0; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 var(--bw, 10px) var(--frame, var(--lajvard));
}

/* Buttons: arch-topped, like the restaurant's doorways */
.btn-book {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lajvard); color: var(--cream);
  text-decoration: none; font-weight: 600; white-space: nowrap;
  padding: .6em 1.35em .5em;
  border-radius: 999px 999px 8px 8px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .16);
  transition: background .3s, transform .3s, color .3s;
}
.btn-book.lg { font-size: 1.08rem; padding: .95em 2em .8em; }
.btn-book.saffron { background: var(--saffron); color: var(--ink); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .55em;
  color: var(--cream); text-decoration: none; font-weight: 500;
  padding: .85em 1.5em .75em;
  border: 1.5px solid rgba(251, 245, 234, .5);
  border-radius: 999px 999px 8px 8px;
  transition: background .3s, color .3s;
}
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; color: var(--lajvard); font-size: 1rem; }

/* ---------------- DOORS (entrance) ---------------- */
.doors { display: none; }
html.js .doors {
  display: grid; grid-template-rows: 20vh 1fr; grid-template-rows: 20svh 1fr;
  position: fixed; inset: 0; z-index: 120;
  perspective: 2200px; overflow: hidden;
}
.doors-transom { position: relative; z-index: 2; display: grid; place-items: center; background: inherit; }
.doors-transom { background-color: var(--kashi); background-image: linear-gradient(90deg, rgba(255,215,170,.38) 1.5px, transparent 1.5px), linear-gradient(rgba(255,215,170,.38) 1.5px, transparent 1.5px); background-size: 46px 46px; border-bottom: 14px solid var(--lajvard-deep); }
.doors-transom .logo-mark { width: min(28vw, 150px); color: var(--cream); }
.door-leaves { display: grid; grid-template-columns: 1fr 1fr; direction: ltr; background: #F3D9A7; }
.door {
  position: relative; background: var(--lajvard);
  box-shadow: inset 0 0 0 clamp(10px, 1.6vw, 22px) var(--lajvard-deep);
  will-change: transform;
}
.door-a { transform-origin: left center; }
.door-b { transform-origin: right center; }
.door-glass {
  position: absolute; inset: 9% 16% 12%;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(16.66% - 4px), var(--lajvard) calc(16.66% - 4px) 16.66%),
    linear-gradient(transparent 0 32%, var(--lajvard) 32% calc(32% + 5px), transparent 0 66%, var(--lajvard) 66% calc(66% + 5px), transparent 0),
    linear-gradient(160deg, #F8E3B6, #E9B266);
  box-shadow: inset 0 0 0 5px var(--lajvard);
}
.door-handle { position: absolute; top: 50%; width: 7px; height: 22%; background: linear-gradient(#E9C46A, #B88A2C); border-radius: 4px; }
.door-a .door-handle { right: 7%; }
.door-b .door-handle { left: 7%; }
.doors-rosette {
  position: absolute; z-index: 3; left: 50%; top: 58%;
  width: clamp(120px, 18vw, 210px); transform: translate(-50%, -50%);
  color: var(--cream); --ro-dot: var(--saffron);
  filter: drop-shadow(0 6px 18px rgba(21, 44, 117, .5));
}
.doors-rosette.draw .ro-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.doors-enter {
  position: absolute; z-index: 3; left: 50%; bottom: 7vh; bottom: 7svh; transform: translateX(-50%);
  background: var(--cream); color: var(--lajvard); border: 0; cursor: pointer;
  font-family: var(--f-body); font-weight: 600; padding: .6em 1.8em .5em;
  border-radius: 999px 999px 8px 8px;
}
.doors.opening { opacity: 0; transition: opacity .7s ease .2s; }

/* ---------------- HEADER ---------------- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-inline: var(--pad);
  transition: background .4s, box-shadow .4s;
}
.site-header.scrolled { background: rgba(241, 229, 207, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(31, 62, 158, .14); }
.brand { width: 58px; color: var(--lajvard); }
.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a { text-decoration: none; position: relative; padding-block: .3em; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--kashi); transform: scaleX(0); transition: transform .35s; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang-toggle {
  height: 44px; min-width: 54px; padding: 0 .9rem; cursor: pointer;
  border: 1.5px solid var(--lajvard); border-radius: 999px; background: transparent; color: var(--lajvard);
  font-weight: 600; transition: background .3s, color .3s;
}
html[lang="ar"] .lang-toggle { font-family: "Hanken Grotesk", sans-serif; }
html[lang="en"] .lang-toggle { font-family: "Noto Naskh Arabic", serif; }
.ig {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--lajvard); border-radius: 999px 999px 8px 8px;
  transition: background .3s, color .3s;
}

/* ---------------- HERO ---------------- */
.hero-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero-title {
  position: absolute; inset: 0; margin: 0; z-index: 3; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--pad); padding-bottom: 8svh;
  font-family: var(--f-display); font-weight: 400; color: var(--lajvard);
  font-size: clamp(3.4rem, 8.4vw, 9rem); line-height: 1.25;
}
html[lang="en"] .hero-title { font-size: clamp(2.6rem, 4.8vw, 5.6rem); line-height: 1.1; }
.ht { display: block; overflow: hidden; padding: .1em .05em; white-space: nowrap; max-width: calc((100vw - min(34vw, 440px)) / 2 - var(--pad)); }
.ht-in { display: block; }
.portal-frame {
  --bw: 12px; --r: 220px;
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: min(34vw, 440px); height: min(70vh, 640px); height: min(70svh, 640px);
  transform: translate(-50%, -50%);
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden; background: var(--lajvard);
  /* keep the scrubbed resize from touching anything else's layout */
  contain: layout paint;
}
.portal-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 var(--bw) var(--lajvard); pointer-events: none; }
.portal-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.portal-tiles {
  position: absolute; left: 50%; top: 58%; z-index: 1;
  width: min(46vw, 600px); height: min(40vh, 360px); height: min(40svh, 360px);
  transform: translate(-50%, -30%);
  border-bottom: 12px solid var(--lajvard-deep);
  overflow: hidden;
}
.portal-tiles::after {
  content: ""; position: absolute; inset: -20% -60%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 240, 220, .45) 50%, transparent 58%);
  transform: translateX(-60%);
}
.portal-tiles.shine::after { transition: transform 1.8s cubic-bezier(.6, 0, .2, 1); transform: translateX(60%); }
.rosette-float { position: absolute; z-index: 1; width: clamp(70px, 9vw, 140px); }
.r1 { top: 16%; inset-inline-start: 7%; color: var(--firouzeh); --ro-dot: var(--saffron); }
.r2 { bottom: 38%; inset-inline-end: 9%; color: var(--kashi); --ro-dot: var(--lajvard); width: clamp(54px, 6vw, 96px); }
.hero-inside {
  position: absolute; left: 50%; top: 50%; z-index: 4; margin: 0; max-width: none;
  transform: translate(-50%, -50%); opacity: 0; white-space: nowrap; pointer-events: none;
  font-family: var(--f-display); color: var(--cream); font-size: clamp(2.8rem, 8vw, 8rem); line-height: 1.3;
  text-shadow: 0 6px 40px rgba(15, 20, 50, .45);
}
.hero-sub { position: absolute; z-index: 3; bottom: clamp(1.5rem, 6svh, 3.5rem); inset-inline-start: var(--pad); max-width: min(22em, 22vw); margin: 0; font-size: .98rem; }
.hero-cta { position: absolute; z-index: 3; bottom: clamp(1.5rem, 6svh, 3.5rem); inset-inline-end: var(--pad); display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .9rem; color: var(--lajvard); }
.scroll-cue i { width: 2px; height: 34px; background: linear-gradient(var(--lajvard) 50%, transparent 50%); background-size: 2px 12px; animation: cue 1.4s linear infinite; }
@keyframes cue { to { background-position: 0 12px; } }

/* ---------------- STORY ---------------- */
.story {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(2.5rem, 7vw, 8rem);
  max-width: 1400px; margin-inline: auto;
  padding: clamp(5rem, 12vw, 11rem) var(--pad);
}
.word-morph { position: relative; height: 1.45em; font-size: clamp(3.4rem, 7vw, 6.4rem); line-height: 1.3; margin-bottom: .1em; color: var(--kashi); }
.wm { position: absolute; top: 0; inset-inline-start: 0; }
.wm-fa, .wm-ar { font-family: "Aref Ruqaa", serif; }
.wm-en { font-family: "Gloock", serif; font-style: italic; }
html.has-gsap .wm-ar, html.has-gsap .wm-en { opacity: 0; }
html:not(.has-gsap) .wm-ar, html:not(.has-gsap) .wm-en { display: none; }
.tile-reveal { margin: 0; }
.tile-reveal-inner { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 3px; box-shadow: 0 30px 60px -30px rgba(27, 33, 64, .45); }
.tile-reveal img { width: 100%; height: 100%; object-fit: cover; }
.tile-grid { position: absolute; inset: 0; display: none; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); }
html.has-gsap .tile-grid { display: grid; }
.tile-grid i { background: var(--plaster-2); box-shadow: inset 0 0 0 1px rgba(169, 68, 31, .22); }
.tile-reveal figcaption { margin-top: .8rem; font-size: .88rem; opacity: .75; }

/* ---------------- BAND ---------------- */
.band { background: var(--lajvard); color: var(--cream); overflow: hidden; padding: 1rem 0 .7rem; border-block: 8px solid var(--kashi); }
.band-track { will-change: transform; display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); width: max-content; white-space: nowrap; font-family: var(--f-display); font-size: clamp(1.7rem, 3.2vw, 2.9rem); line-height: 1.4; }
.band-track .wf { font-family: "Aref Ruqaa", serif; }
.band-track .rs { width: .9em; color: var(--saffron); --ro-dot: var(--cream); flex: none; }

/* ---------------- ALLEY ---------------- */
.alley { position: relative; background: var(--plaster) var(--noise); }
.alley-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.alley-track {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; gap: clamp(2rem, 4.5vw, 4.5rem);
  width: max-content; padding-inline: var(--pad); padding-bottom: calc(11svh + 2rem);
  will-change: transform;
}
.alley-intro { width: min(30rem, 78vw); align-self: center; padding-bottom: 8svh; }
.door-card { width: clamp(230px, 21vw, 310px); flex: none; }
.dc-arch { height: clamp(290px, 50svh, 470px); }
.door-card:nth-of-type(even) .dc-arch { height: clamp(250px, 42svh, 400px); --frame: var(--kashi); }
.dc-fa { display: block; margin-top: .9rem; color: var(--kashi); font-size: 1.15rem; line-height: 1.4; }
.door-card h3 { font-size: clamp(1.5rem, 2vw, 2rem); color: var(--lajvard); line-height: var(--lh-display); margin-bottom: .15em; }
.door-card p { font-size: .93rem; margin: 0; }
.alley-end { width: min(24rem, 78vw); flex: none; align-self: center; padding-bottom: 6svh; text-align: center; display: flex; flex-direction: column; align-items: center; }
.alley-end p { margin-inline: auto; }
.alley-end-rosette { width: 90px; color: var(--firouzeh); --ro-dot: var(--saffron); margin-bottom: 1rem; }
.alley-ground { position: absolute; inset-inline: 0; bottom: 0; height: 11svh; z-index: 1; border-top: 12px solid var(--lajvard); }

/* swipe affordance — only ever shown on the mobile carousel */
.alley-cue { display: none; align-items: center; gap: .6rem; margin: .6rem 0 0; font-size: .85rem; line-height: 1.6; color: var(--kashi); }
.alley-cue i { width: 36px; height: 2px; border-radius: 2px; background: currentColor; animation: swipe 1.8s ease-in-out infinite; }
@keyframes swipe { 0%, 100% { transform: translateX(0); opacity: .35; } 50% { transform: translateX(-10px); opacity: 1; } }
html[dir="ltr"] .alley-cue i { animation-name: swipe-ltr; }
@keyframes swipe-ltr { 0%, 100% { transform: translateX(0); opacity: .35; } 50% { transform: translateX(10px); opacity: 1; } }

/* ---------------- SOFREH ---------------- */
.sofreh {
  display: grid; grid-template-columns: .8fr 1.2fr; align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 1500px; margin-inline: auto;
  padding: clamp(5rem, 11vw, 10rem) var(--pad);
}
.dish-card {
  margin-top: 2rem; padding: 1.5rem 1.8rem 1.3rem;
  background: var(--cream); border-radius: 3px;
  border-inline-start: 6px solid var(--kashi);
  box-shadow: 0 24px 50px -30px rgba(27, 33, 64, .35);
  min-height: 11rem;
}
.dish-fa { display: block; color: var(--kashi); font-size: 1.25rem; line-height: 1.4; }
.dish-card h3 { color: var(--lajvard); font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: var(--lh-display); margin-bottom: .2em; }
.dish-card p { margin: 0; }
.sofreh-stage { position: relative; padding-top: 14%; }
.carpet-sun { position: absolute; top: 0; left: 4%; right: 4%; height: 64%; border-radius: 999px 999px 0 0; overflow: hidden; }
.carpet-sun img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 45%; transform: scale(1.35); }
.sofreh-plate {
  position: relative; width: 86%; margin-inline: auto; aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 0 14px #CFC3AC, 0 0 0 17px #A89A80, 0 40px 70px -25px rgba(27, 33, 64, .5);
}
.sofreh-plate > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hotspot {
  position: absolute; left: var(--x); top: var(--y);
  width: 34px; height: 34px; transform: translate(-50%, -50%);
  border: 0; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--cream); box-shadow: 0 0 0 3px var(--lajvard), 0 6px 16px rgba(0, 0, 0, .35);
  transition: background .3s, transform .3s;
}
.hotspot::before { content: ""; position: absolute; inset: 9px; background: var(--lajvard); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); transition: background .3s; }
.hotspot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--cream); animation: ping 2.2s ease-out infinite; }
/* decorative loops idle while their section is off-screen */
.sofreh:not(.in-view) .hotspot::after { animation-play-state: paused; }
.hotspot.active { background: var(--saffron); }
.hotspot.active::after { animation: none; opacity: 0; }
@keyframes ping { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------------- TEA ---------------- */
.tea {
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  background: #F0D9AC var(--noise);
}
.tea-photo { height: min(82vh, 760px); --frame: var(--kashi); }
.tea-photo img { transform: scale(1.15); }
.estekan-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 1.5rem; width: fit-content; }
.estekan {
  width: clamp(180px, 18vw, 230px); cursor: grab; border-radius: 12px;
  /* pan-y keeps the page scrollable through the glass; sideways drags stir */
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.estekan svg { width: 100%; height: auto; overflow: visible; }
#nabat { transform-box: view-box; transform-origin: 120px 262px; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
#crystals { transform-box: view-box; transform-origin: 120px 60px; }
#swirl { transform-box: view-box; transform-origin: 120px 210px; }
.steam path { fill: none; stroke: rgba(27, 33, 64, .28); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 60; animation: steam 3.2s ease-in-out infinite; }
.tea:not(.in-view) .steam path { animation-play-state: paused; }
.steam path:nth-child(2) { animation-delay: .8s; }
.steam path:nth-child(3) { animation-delay: 1.6s; }
@keyframes steam { 0% { stroke-dashoffset: 60; opacity: 0; transform: translateY(8px); } 50% { opacity: 1; } 100% { stroke-dashoffset: -60; opacity: 0; transform: translateY(-12px); } }
.stir-hint { font-size: .9rem; text-align: center; max-width: 18em; margin-top: 1rem; opacity: .8; }
.stir-done { display: none; text-align: center; margin: .5rem 0 0; }
.stir-done span { display: block; font-family: var(--f-display); font-size: 2.2rem; color: var(--kashi); line-height: 1.4; }
.estekan-wrap.done .stir-hint { display: none; }
.estekan-wrap.done .stir-done { display: block; }

/* ---------------- DAY / NIGHT ---------------- */
.daynight {
  display: grid; grid-template-columns: .85fr 1.15fr; align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 1400px; margin-inline: auto;
  padding: clamp(5rem, 11vw, 10rem) var(--pad);
}
.dn-compare {
  --pos: 50%;
  position: relative; width: min(100%, 540px); aspect-ratio: 3 / 4; max-height: 86svh; margin-inline: auto;
  border-radius: 999px 999px 6px 6px; overflow: hidden;
  box-shadow: 0 0 0 10px var(--lajvard), 0 40px 70px -30px rgba(27, 33, 64, .5);
}
.dn-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dn-night { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.dn-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--cream); transform: translateX(-50%); pointer-events: none; z-index: 2; }
.dn-handle span { position: absolute; top: 55%; left: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); background: var(--cream); border-radius: 50%; padding: 10px; color: var(--lajvard); --ro-dot: var(--saffron); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.dn-label { position: absolute; z-index: 2; bottom: 1rem; padding: .25em .9em; border-radius: 999px; background: rgba(27, 33, 64, .6); color: var(--cream); font-size: .85rem; pointer-events: none; }
.dn-l-night { left: 1rem; }
.dn-l-day { right: 1rem; }
/* pan-y so a vertical swipe over the comparison scrolls the page instead of
   being swallowed by the range input */
#dnRange { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
#dnRange:focus-visible + * , .dn-compare:focus-within { outline: 3px solid var(--saffron); outline-offset: 14px; }

/* ---------------- GALLERY ---------------- */
.gallery { max-width: 1400px; margin-inline: auto; padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(6rem, 12vw, 11rem); }
.gallery-head { margin-bottom: clamp(2rem, 5vw, 4rem); }
.g-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.4vw, 2rem); align-items: start; }
.g-item { display: block; width: 100%; padding: 0; border: 0; background: var(--plaster-2); overflow: hidden; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.g-arch { border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4; }
.g-plate { border-radius: 50%; aspect-ratio: 1; box-shadow: 0 0 0 10px #CFC3AC; }
.g-tile { border-radius: 3px; aspect-ratio: 4 / 5; }
.g-tile.sq { aspect-ratio: 1; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; }
.mt { margin-top: clamp(3rem, 8vw, 7rem); }

/* ---------------- VISIT ---------------- */
.visit { position: relative; background: var(--lajvard); color: var(--cream); overflow: hidden; }
.visit-inner {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem); max-width: 1400px; margin-inline: auto;
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
}
.visit h2 { color: var(--cream); }
.visit address { font-style: normal; font-size: clamp(1.15rem, 1.6vw, 1.45rem); margin-bottom: 2rem; max-width: 22em; }
.visit-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.visit-note { opacity: .75; font-size: .92rem; }
.visit-map { height: min(68vh, 560px); height: min(68svh, 560px); --frame: var(--cream); background: var(--lajvard-deep); }
.visit-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75) sepia(.12); }
.map-unlock { display: none; }

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--plaster); }
.footer-tiles { height: 46px; border-bottom: 8px solid var(--lajvard); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 2rem var(--pad) 2.5rem; }
.footer-inner p { margin: 0; font-size: .9rem; }
.footer-logo { width: 72px; color: var(--lajvard); }
.footer-links { display: flex; align-items: center; gap: 1rem; }

/* ---------------- FAB / LIGHTBOX / CURTAIN ---------------- */
.fab-book { display: none; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; max-height: 100dvh; overflow: visible; }
.lightbox::backdrop { background: rgba(21, 44, 117, .88); }
.lb-inner { position: relative; display: block; }
.lightbox img { max-width: 92vw; max-height: 82vh; max-height: 82dvh; border-radius: 4px; }
.lb-close {
  position: absolute; top: .6rem; inset-inline-end: .6rem;
  background: var(--cream); color: var(--lajvard); border: 0;
  min-height: 44px; padding: .35em 1.2em; border-radius: 999px; cursor: pointer; font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.lang-curtain { position: fixed; inset: 0; z-index: 110; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(6, 1fr); pointer-events: none; }
.lang-curtain i { background: var(--lajvard); box-shadow: inset 0 0 0 1px rgba(251, 245, 234, .25); transform: scale(0); }

/* ---------------- POINTER CAPABILITY ---------------- */
/* Hover styling only where a real pointer exists — on a phone these stick
   after a tap and leave buttons looking permanently pressed. */
@media (hover: hover) and (pointer: fine) {
  .btn-book:hover { background: var(--kashi); transform: translateY(-2px); }
  .btn-book.saffron:hover { background: var(--cream); }
  .btn-ghost:hover { background: var(--cream); color: var(--lajvard); }
  .nav a:hover::after { transform: scaleX(1); }
  .lang-toggle:hover { background: var(--lajvard); color: var(--cream); }
  .ig:hover { background: var(--kashi); color: var(--cream); }
  .hotspot:hover { transform: translate(-50%, -50%) scale(1.15); }
  .g-item:hover img { transform: scale(1.06); }
}

/* Touch gets a press state instead, and the map waits to be asked before it
   starts eating swipes. */
@media (hover: none) {
  .btn-book:active, .btn-ghost:active, .lang-toggle:active, .ig:active, .fab-book:active,
  .g-item:active, .hotspot:active { transform: scale(.97); }
  .hotspot:active { transform: translate(-50%, -50%) scale(.92); }

  .visit-map iframe { pointer-events: none; }
  .visit-map.map-on iframe { pointer-events: auto; }
  .map-unlock {
    display: block; position: absolute; z-index: 2;
    left: 50%; bottom: 1.1rem; transform: translateX(-50%);
    background: var(--cream); color: var(--lajvard); border: 0;
    min-height: 44px; padding: .5em 1.3em; border-radius: 999px;
    font-family: var(--f-body); font-weight: 600; cursor: pointer; white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  }
  .visit-map.map-on .map-unlock { display: none; }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 899px) {
  :root {
    --header-h: 60px;
    --fab-h: 3.4rem;
    --fab-gap: max(.75rem, env(safe-area-inset-bottom));
    --cue-h: 3.4rem;
    /* everything the hero has to keep clear below the arch */
    --hero-foot: calc(var(--fab-h) + var(--fab-gap) + var(--cue-h) + 1.3rem);
  }
  .nav, .hide-sm { display: none; }
  .brand { width: 46px; }
  .site-header { gap: .6rem; }

  /* HERO — title, arch, cue and booking bar each get their own band, so the
     headline can no longer land on top of the scroll cue. */
  .hero-title {
    flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
    padding: calc(var(--header-h) + .5rem) 1rem var(--hero-foot);
    font-size: clamp(2.6rem, 12.5vw, 4.6rem);
  }
  html[lang="en"] .hero-title { font-size: clamp(2.3rem, 10vw, 3.8rem); }
  .ht { max-width: none; }
  .portal-frame { width: 74vw; height: 34vh; height: 34svh; top: 44%; --r: 37vw; }
  .portal-tiles { width: 94vw; height: 19vh; height: 19svh; top: 49%; }
  .hero-sub { display: none; }
  .hero-cta { inset-inline: 0; bottom: calc(var(--fab-h) + var(--fab-gap) + .7rem); }
  .hero-cta .btn-book { display: none; }
  .scroll-cue { height: var(--cue-h); justify-content: flex-end; gap: .3rem; font-size: .85rem; line-height: 1.3; }
  .scroll-cue i { height: 24px; }
  .r1 { top: 11%; inset-inline-start: 3%; }
  .r2 { bottom: 27%; inset-inline-end: 3%; }

  .story, .sofreh, .tea, .daynight, .visit-inner { grid-template-columns: 1fr; }
  .tile-reveal { order: -1; }

  /* ALLEY — a real snap carousel: every slide is the same height, the card
     text lives inside its own slide, and the swipe cannot trigger the
     browser's back gesture. */
  .alley-pin { height: auto; display: block; padding-top: 2.5rem; }
  .alley-track {
    width: auto; align-items: stretch;
    overflow-x: auto; overflow-y: hidden;
    /* contain stops a swipe past the last arch from triggering the browser's
       back gesture */
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    padding-bottom: calc(2.5rem + var(--fab-h) + var(--fab-gap));
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    /* drop the desktop promotion: this is a scroll container here */
    will-change: auto;
  }
  .alley-track::-webkit-scrollbar { display: none; }
  .alley-track > * { scroll-snap-align: center; }
  .door-card { width: 74vw; display: flex; flex-direction: column; }
  .dc-arch, .door-card:nth-of-type(even) .dc-arch { height: 32vh; height: 32svh; max-height: 330px; }
  .dc-fa { margin-top: .7rem; font-size: 1.05rem; }
  .door-card p { font-size: .9rem; }
  .alley-intro, .alley-end {
    width: 80vw; flex: none; align-self: stretch;
    display: flex; flex-direction: column; justify-content: center;
    padding-bottom: 0;
  }
  .alley-cue { display: inline-flex; }
  .alley-ground { height: 4rem; }

  /* SOFREH — the plate moves above the dish card, so tapping a hotspot no
     longer updates a description that is scrolled off the top of the screen. */
  .sofreh-copy { display: contents; }
  .sofreh-stage { padding-top: 8%; }
  .dish-card { order: 1; margin-top: 0; min-height: 12.5rem; padding: 1.3rem 1.4rem 1.1rem; }
  /* 40px taps instead of 34px */
  .hotspot { width: 40px; height: 40px; }
  .hotspot::before { inset: 11px; }

  .tea-photo { height: 46vh; height: 46svh; order: 1; }
  .estekan-wrap { margin-inline: auto; }
  .estekan { width: min(58vw, 210px); }

  .dn-compare { max-height: 64vh; max-height: 64svh; }
  .dn-handle span { width: 54px; height: 54px; padding: 8px; }

  /* GALLERY — nothing spans two columns any more, so the last row can no
     longer leave half the grid empty. */
  .g-grid { grid-template-columns: 1fr 1fr; }
  .s3, .s4, .s5, .g-tile.sq { grid-column: span 1; }
  .mt { margin-top: 2rem; }

  .visit-map { height: 42vh; height: 42svh; }
  .visit-inner { padding-bottom: 5rem; }
  .visit-actions { gap: .7rem; }
  /* full-width arches need a shallower crown, or they read as domes */
  .visit-actions > a { flex: 1 1 100%; justify-content: center; border-radius: 2.4rem 2.4rem 10px 10px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .fab-book {
    display: flex; align-items: center; justify-content: center; position: fixed; z-index: 55;
    inset-inline: 1rem; bottom: var(--fab-gap); min-height: var(--fab-h);
    background: var(--lajvard); color: var(--cream); text-decoration: none; font-weight: 600;
    padding: .5em 1.2em; border-radius: 2.4rem 2.4rem 10px 10px;
    box-shadow: 0 12px 30px -8px rgba(21, 44, 117, .6), inset 0 0 0 2px rgba(255, 255, 255, .15);
    transition: transform .4s, opacity .4s;
  }
  .fab-book.hidden { transform: translateY(150%); opacity: 0; }
}

/* Narrow phones: the hero has the least room to give, so it gives first. */
@media (max-width: 899px) and (max-height: 700px) {
  .portal-frame { height: 31vh; height: 31svh; }
  .portal-tiles { height: 17vh; height: 17svh; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 3.6rem); }
  html[lang="en"] .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .portal-frame img { transform: none; }
  html { scroll-behavior: auto; }
}
