/* ==========================================================
   Popeye Coffee: opening page
   Brand: black + cream, geometric sans, light/heavy weight mix
   ========================================================== */

@font-face {
  font-family: "Nastaleeq";
  src: url("../fonts/nastaleeq-400.woff2?v=daffcd91") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nastaleeq";
  src: url("../fonts/nastaleeq-700.woff2?v=daffcd91") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2?v=daffcd91") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --cream: #efe3cf;
  --cream-dim: rgba(239, 227, 207, 0.64);
  --cream-faint: rgba(239, 227, 207, 0.16);
  --crema: #d08a45;
  --pad: clamp(20px, 4vw, 56px);
  --font: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--crema); outline-offset: 4px; border-radius: 4px; }

/* ---------- Fixed stage ---------- */
.stage { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: var(--black); }
#cup {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

.steps { position: fixed; right: clamp(12px, 1.8vw, 26px); top: 50%; transform: translateY(-50%); z-index: 55; display: flex; flex-direction: column; gap: 10px; pointer-events: none; opacity: 0; }
.steps i { display: block; width: 6px; height: 6px; border-radius: 6px; background: rgba(239, 227, 207, 0.28); transition: height 0.5s var(--ease), background 0.4s; }
.steps i.on { height: 24px; background: var(--crema); }
body.is-loading .steps { visibility: hidden; }

.progress {
  position: fixed; left: 0; top: 0; height: 2px; width: 100%;
  z-index: 60; background: var(--crema);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px, 2.4vh, 26px) var(--pad);
  opacity: 0; transform: translateY(-12px);
  transition: opacity 0.9s var(--ease) 1.4s, transform 0.9s var(--ease) 1.4s;
}
body.is-ready .nav { opacity: 1; transform: none; }
.nav__brand { display: block; color: var(--cream); }
.nav__brand svg { display: block; height: 40px; aspect-ratio: 1593 / 1190; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 15px; font-weight: 400; }
.nav__links a:not(.pill) { color: var(--cream-dim); transition: color 0.3s; }
.nav__links a:not(.pill):hover { color: var(--cream); }
.pill {
  padding: 10px 20px; border-radius: 999px;
  background: var(--cream); color: #000; font-weight: 500;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.pill:hover { background: var(--crema); transform: translateY(-1px); }

/* ---------- Shared type ---------- */
main { position: relative; z-index: 5; }
.light { font-weight: 200; }
.heavy { font-weight: 800; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--black);
  display: grid; place-items: center;
  transition: opacity 0.8s var(--ease) 0.1s, visibility 0s linear 0.9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(78vw, 420px); text-align: center; }
.loader__logo { display: block; margin: 0 auto; height: clamp(96px, 16vh, 140px); aspect-ratio: 1597 / 1486; color: var(--cream); animation: logoIn 1.1s var(--ease) both; }
@keyframes logoIn { from { opacity: 0; transform: scale(0.94); } }
.loader__bar { margin: 28px 0 14px; height: 1px; background: var(--cream-faint); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--cream); transform: scaleX(0); transform-origin: 0 50%; }
.loader__count { font-size: 13px; color: var(--cream-dim); font-variant-numeric: tabular-nums; }

/* ---------- Brand pieces ---------- */
.hero__mark { display: block; height: clamp(38px, 6vh, 56px); aspect-ratio: 1593 / 1190; color: var(--cream); margin: 0 auto clamp(12px, 2vh, 20px); }
.badge { position: absolute; left: var(--pad); bottom: clamp(60px, 11vh, 110px); width: clamp(100px, 10.5vw, 156px); aspect-ratio: 1; color: var(--cream); will-change: transform; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 32s linear infinite; }
.badge__ring text { font-family: var(--font); font-size: 15px; font-weight: 500; letter-spacing: 0.18em; fill: rgba(239, 227, 207, 0.78); }
.badge__mark { position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1593 / 1190; transform: translate(-50%, -50%); }
@keyframes spin { to { transform: rotate(360deg); } }
.chip {
  position: absolute; right: var(--pad); bottom: clamp(84px, 14vh, 132px);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(239, 227, 207, 0.24); background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px);
  font-size: 14px; color: var(--cream);
}
.chip em { font-style: normal; color: var(--cream-dim); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: #7bd88f; animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(123, 216, 143, 0.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(123, 216, 143, 0); } }

/* ---------- 1. Hero ---------- */
.hero { position: relative; height: 370vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__hint { position: absolute; inset: 0; pointer-events: none; }
.hero__hintin { position: absolute; inset: 0; }
.hero__head {
  position: absolute; left: 0; right: 0; top: clamp(64px, 10vh, 120px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 var(--pad);
}
.hero__title {
  text-transform: uppercase;
  font-size: clamp(26px, 4.1vw, 74px); line-height: 1; letter-spacing: -0.025em;
}
.hero__sub { margin-top: clamp(14px, 2.2vh, 24px); max-width: 54ch; font-size: clamp(14px, 1.25vw, 19px); color: var(--cream-dim); }
.hero__title { position: relative; }
.hero__title .line { display: block; }
.hx { display: flex; flex-direction: column; align-items: center; }
.ttl--en { display: block; }
.ttl--ur {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  font-family: "Nastaleeq", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  text-transform: none; letter-spacing: 0; line-height: 1.9; font-size: 0.98em; pointer-events: none;
}
.ttl--ur .line--light { font-weight: 400; }
.ttl--ur .line--heavy { font-weight: 700; }
.uw { display: inline-block; opacity: 0; }

.line--light { font-weight: 200; }
.line--heavy { font-weight: 800; }
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0; margin: -0.04em 0; }
.word { display: inline-block; transform: translateY(112%); }
body.is-ready .word { transform: none; transition: transform 1.25s var(--ease); }
body.is-ready .line--light .mask:nth-child(1) .word { transition-delay: 0.15s; }
body.is-ready .line--light .mask:nth-child(2) .word { transition-delay: 0.23s; }
body.is-ready .line--light .mask:nth-child(3) .word { transition-delay: 0.31s; }
body.is-ready .line--heavy .mask:nth-child(1) .word { transition-delay: 0.42s; }
body.is-ready .line--heavy .mask:nth-child(2) .word { transition-delay: 0.50s; }
body.is-ready .line--heavy .mask:nth-child(3) .word { transition-delay: 0.58s; }
body.is-ready .line--b .mask:nth-child(1) .word { transition-delay: 0.68s; }
body.is-ready .line--b .mask:nth-child(2) .word { transition-delay: 0.76s; }
body.is-ready .line--b .mask:nth-child(3) .word { transition-delay: 0.84s; }

.hero__meta {
  position: absolute; bottom: clamp(26px, 6vh, 56px);
  font-size: clamp(14px, 1.2vw, 17px); color: var(--cream-dim);
}
.hero__meta--left { left: var(--pad); }
.hero__meta--right { right: var(--pad); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13px; color: var(--cream-dim);
}
.scroll-cue span { display: none; }
.scroll-cue i { width: 1px; height: 34px; background: var(--cream-faint); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--cream);
  animation: drip 2s var(--ease) infinite;
}
@keyframes drip { 0% { top: -50%; } 100% { top: 110%; } }
.reveal-load { opacity: 0; transition: opacity 1s ease 1.3s; }
body.is-ready .reveal-load { opacity: 1; }

/* ---------- 2. Story ---------- */
.story { position: relative; height: 320vh; }
.story__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 var(--pad);
}
.statement {
  position: absolute; right: var(--pad); width: min(48vw, 720px);
  opacity: 0; will-change: opacity, transform;
}
.statement h2 {
  font-size: clamp(28px, 3.5vw, 64px); line-height: 1; letter-spacing: -0.025em; text-transform: uppercase;
}
.statement h2 .light, .statement h2 .heavy { display: block; }
.statement p { margin-top: clamp(14px, 2.2vh, 24px); max-width: 36ch; font-size: clamp(15px, 1.3vw, 19px); color: var(--cream-dim); }

/* ---------- 3. Journey (map) ---------- */
.journey { position: relative; height: 560vh; }
.journey__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.jgrid {
  height: 100%; padding: clamp(72px, 10vh, 100px) var(--pad) clamp(24px, 4vh, 44px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 5vw, 90px);
  opacity: 0; visibility: hidden;
}
.jtext { max-width: 34rem; display: flex; flex-direction: column; gap: clamp(28px, 6vh, 56px); }
.jstages { position: relative; min-height: clamp(150px, 26vh, 230px); }
.jstage { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; will-change: opacity, transform; }
.jstage h3 { margin: 0; font-size: clamp(30px, 3.6vw, 62px); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; }
.jstage p { margin-top: clamp(12px, 2vh, 20px); max-width: 36ch; font-size: clamp(15px, 1.3vw, 19px); color: var(--cream-dim); }

.jbranches { display: flex; flex-wrap: wrap; gap: 8px; max-width: 34rem; }
.jbranches li { font-size: 13px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--cream-faint); color: rgba(239, 227, 207, 0.4); transition: color 0.4s, border-color 0.4s, background 0.4s; }
.jbranches li.on { color: var(--cream); border-color: rgba(239, 227, 207, 0.45); background: rgba(239, 227, 207, 0.06); }
.jbranches li.is-lhr.on { color: #1a0f06; background: var(--crema); border-color: var(--crema); font-weight: 500; }
.jmeter { max-width: 26rem; }
.jmeter__num { display: flex; align-items: baseline; gap: 10px; font-weight: 200; font-size: clamp(44px, 5vw, 84px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.jmeter__num small { font-size: 0.34em; font-weight: 400; color: var(--cream-dim); letter-spacing: 0; }
.jmeter__cap { margin-top: 10px; font-size: 14px; color: var(--cream-dim); }
.jline { position: relative; margin-top: 22px; height: 2px; background: var(--cream-faint); border-radius: 2px; }
.jline i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, #f6d9a8, var(--crema)); transform: scaleX(0); transform-origin: 0 50%; border-radius: 2px; box-shadow: 0 0 14px rgba(208, 138, 69, 0.7); }
.jline b { position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #000; border: 2px solid var(--cream-dim); }
.jline .n1 { left: 0; border-color: var(--cream); }
.jline .n2 { right: 0; transition: border-color 0.5s, box-shadow 0.5s, background 0.5s; }
.jline .n2.on { border-color: var(--crema); background: var(--crema); box-shadow: 0 0 16px rgba(208, 138, 69, 0.9); }
.jline__labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; color: var(--cream-dim); }

.jmap { width: min(57vw, 98svh * 0.9); aspect-ratio: 9 / 10; perspective: 1700px; margin-right: calc(var(--pad) * -0.6); }
.jmap__frame {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  transform-origin: 50% 55%; will-change: transform;
  /* no card edge: the map dissolves into the black page on every side */
  -webkit-mask-image: radial-gradient(ellipse 66% 62% at 50% 52%, #000 66%, rgba(0, 0, 0, 0.55) 82%, transparent 100%), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: radial-gradient(ellipse 66% 62% at 50% 52%, #000 66%, rgba(0, 0, 0, 0.55) 82%, transparent 100%), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-composite: intersect;
}
.jmap__cam { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; }
.jmap__img, .jmap__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.jmap__img { object-fit: fill; user-select: none; }
.jmap__svg .r-base { fill: none; stroke: rgba(239, 227, 207, 0.4); stroke-dasharray: 3 11; stroke-linecap: round; }
.jmap__svg .r-glow { fill: none; stroke: #ff9d3c; stroke-linecap: round; opacity: 0.42; }
.jmap__svg .r-glow2 { fill: none; stroke: #ff9d3c; stroke-linecap: round; opacity: 0.16; }
.jmap__svg .r-line { fill: none; stroke: url(#rg); stroke-linecap: round; }
.jmap__svg .r-flow { fill: none; stroke: #fff; stroke-linecap: round; opacity: 0; }
.jmap__svg .lab text { font-family: var(--font); paint-order: stroke; stroke: rgba(4, 8, 12, 0.78); stroke-width: 3.5px; stroke-linejoin: round; }
.jmap__svg .lab--c text { font-size: 13px; font-weight: 400; letter-spacing: 0.34em; fill: rgba(250, 244, 232, 0.72); }
.jmap__svg .lab--s text { font-size: 12px; font-weight: 300; letter-spacing: 0.4em; fill: rgba(190, 215, 235, 0.7); }
.jmap__svg .lab--jk text { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; fill: rgba(255, 214, 160, 0.95); }
.jmap__svg .lab--jk2 text { font-size: 11px; font-weight: 400; letter-spacing: 0.08em; fill: rgba(255, 214, 160, 0.85); }
.jmap__svg .lab--t text { font-size: 13px; font-weight: 500; fill: rgba(255, 250, 240, 0.92); }
.jmap__svg .lab__dot { fill: #fff6e6; stroke: rgba(0, 0, 0, 0.55); stroke-width: 1.5; }
.jmap__svg .pin { opacity: 0; }
.jmap__svg .pin__in, .jmap__svg .dpin .pin__in { will-change: transform; }
.jmap__svg .tear { fill: #e8923a; stroke: #2b1608; stroke-width: 2.4; stroke-linejoin: round; }
.jmap__svg .tdot { fill: #fff3df; }
.jmap__svg .chipbg { fill: rgba(10, 8, 6, 0.86); stroke: rgba(239, 227, 207, 0.32); stroke-width: 1.6; }
.jmap__svg .chiptx { font-family: var(--font); font-weight: 500; font-size: 22px; fill: #f6ecd9; }
.jmap__svg .leader { stroke: rgba(255, 214, 160, 0.9); stroke-width: 1.8; fill: none; }
.jmap__svg .ddot { fill: #fff3df; stroke: #e8923a; stroke-width: 3.5; }
.jmap__svg .dpin { opacity: 0; }
.jmap__svg .gbadge { fill: #e8923a; stroke: #2b1608; stroke-width: 2.4; }
.jmap__svg .gnum { font-family: var(--font); font-weight: 700; font-size: 26px; fill: #1a0f06; text-anchor: middle; }
.jmap__svg .ring { fill: none; stroke: #ffb35c; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.jmap__svg .pin--b.on .ring, .jmap__svg .pin--g.on .ring { animation: pulse 2.8s ease-out infinite; }
.jmap__svg .pin--b.on .ring2 { animation-delay: 0.93s; }
.jmap__svg .pin--b.on .ring3 { animation-delay: 1.86s; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.95; } 100% { transform: scale(5.2); opacity: 0; } }
.jmap__svg .head { opacity: 0; }
.jmap__svg .head__glow { fill: url(#hg); }
.jmap__svg .head__core { fill: #fff6e6; stroke: #ffb35c; stroke-width: 3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--cream); color: #000; }
.btn--solid:hover { background: var(--crema); }
.btn--ghost { border: 1px solid rgba(239, 227, 207, 0.36); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(239, 227, 207, 0.08); }
.hero__cta { margin-top: clamp(16px, 2.6vh, 26px); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- 4. Signature drinks (splash + callouts) ---------- */
.pour { position: relative; height: 400vh; }
.pour__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sig__title {
  position: absolute; left: var(--pad); right: auto; top: clamp(84px, 13vh, 130px); margin: 0; text-align: left;
  font-size: clamp(26px, 3vw, 52px); line-height: 1; letter-spacing: -0.025em; text-transform: uppercase; opacity: 0;
}
.callout {
  position: absolute; display: flex; align-items: center; gap: 14px;
  width: calc(37vw - var(--pad)); transform: translateY(-50%); opacity: var(--o, 0);
}
.callout--l { left: var(--pad); }
.callout--r { right: var(--pad); }
.co__text { flex: 0 0 min(17rem, 21vw); transform: translateY(calc((1 - var(--o, 0)) * 14px)); }
.callout--l .co__text { text-align: right; }
.callout--r .co__text { text-align: left; }
.co__text h3 { margin: 0; font-size: clamp(18px, 1.6vw, 26px); font-weight: 600; letter-spacing: -0.01em; }
.co__text p { margin-top: 6px; font-size: clamp(13px, 1.05vw, 16px); line-height: 1.45; color: var(--cream-dim); text-shadow: 0 1px 14px #000, 0 0 3px #000; }
.co__line { flex: 1; height: 1px; transform: scaleX(var(--o, 0)); }
.callout--l .co__line { background: linear-gradient(90deg, transparent, rgba(239, 227, 207, 0.6)); transform-origin: 100% 50%; }
.callout--r .co__line { background: linear-gradient(270deg, transparent, rgba(239, 227, 207, 0.6)); transform-origin: 0 50%; }
.co__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--crema); box-shadow: 0 0 12px rgba(208, 138, 69, 0.95); }

/* ---------- 5. Menu ---------- */
.menu { position: relative; padding: clamp(90px, 16vh, 180px) var(--pad) clamp(60px, 10vh, 120px); }
.menu__wrap {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 7vw, 120px); align-items: start;
}
.menu__head { position: sticky; top: clamp(90px, 14vh, 140px); }
.sec__title { font-size: clamp(32px, 4.2vw, 72px); line-height: 1; letter-spacing: -0.025em; text-transform: uppercase; }
.sec__title .light, .sec__title .heavy { display: block; }
.sec__lead { margin-top: 20px; max-width: 36ch; font-size: clamp(15px, 1.25vw, 18px); color: var(--cream-dim); }
.tabs { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button {
  font: inherit; font-size: 14px; font-weight: 400; color: var(--cream-dim); background: transparent; cursor: pointer;
  border: 1px solid var(--cream-faint); padding: 10px 18px; border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.tabs button:hover { border-color: var(--cream-dim); color: var(--cream); }
.tabs button[aria-selected="true"] { background: var(--cream); color: #000; border-color: var(--cream); font-weight: 500; }
.menu__list li { padding: 22px 0; border-top: 1px solid var(--cream-faint); }
.menu__list li:last-of-type { border-bottom: 1px solid var(--cream-faint); }
.menu__list li[hidden] { display: none; }
.menu__list h3 { margin: 0; font-size: clamp(20px, 1.9vw, 30px); font-weight: 500; letter-spacing: -0.01em; }
.menu__list p { margin-top: 6px; max-width: 44ch; font-size: 15px; color: var(--cream-dim); }
.menu__list li:not([hidden]) { animation: itemIn 0.7s var(--ease) both; animation-delay: calc(var(--n, 0) * 55ms); }
@keyframes itemIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 6. Gallery ---------- */
.gallery {
  position: relative; max-width: 1320px; margin: 0 auto; padding: clamp(40px, 8vh, 100px) var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px);
}
.g { margin: 0; position: relative; overflow: hidden; border-radius: 18px; background: #0b0a09; aspect-ratio: 4 / 5;
  clip-path: inset(14% 0 0 0 round 18px); opacity: 0; transition: clip-path 1.2s var(--ease), opacity 0.9s ease; }
.g.in { clip-path: inset(0 0 0 0 round 18px); opacity: 1; }
.g img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.g:hover img { transform: scale(1.04); }
.g::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.55)); }
.g figcaption { position: absolute; z-index: 1; left: 18px; bottom: 16px; font-size: 14px; color: var(--cream); }

/* ---------- 7. Visit ---------- */
.visit {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--pad) * 2) var(--pad) 26px;
}
.visit__copy { max-width: min(46vw, 640px); margin-top: auto; margin-bottom: auto; }
.visit__title { font-size: clamp(28px, 3.9vw, 68px); line-height: 1; letter-spacing: -0.025em; text-transform: uppercase; }
.visit__title .light, .visit__title .heavy { display: block; }
.visit__lead { margin-top: clamp(14px, 2.4vh, 24px); max-width: 40ch; font-size: clamp(15px, 1.25vw, 18px); color: var(--cream-dim); }
.cta { margin-top: clamp(22px, 3.6vh, 34px); display: flex; flex-wrap: wrap; gap: 12px; }
.facts { margin-top: clamp(24px, 4vh, 40px); display: grid; gap: 10px; font-size: 16px; }
.facts span { display: inline-block; min-width: 4.6em; color: var(--cream-dim); }

.foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--cream-faint); font-size: 14px; color: var(--cream-dim);
}
.foot__logo { display: block; height: 64px; aspect-ratio: 1597 / 1486; color: var(--cream); margin-bottom: 12px; }
.foot__links { display: flex; gap: 22px; }
.foot__links a { transition: color 0.3s; }
.foot__links a:hover { color: var(--cream); }
.foot__copy { width: 100%; font-size: 13px; opacity: 0.8; }

/* ---------- Mobile / portrait ---------- */
@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .nav__links a:not(.pill) { display: none; }
  .hero__head { top: clamp(64px, 11vh, 120px); }
  .hero__title { font-size: clamp(24px, 7vw, 56px); }
  .hero__sub { max-width: 32ch; }
  .hero__cta .btn { padding: 12px 20px; font-size: 14px; }
  .statement {
    right: auto; left: var(--pad); width: calc(100% - var(--pad) * 2);
    top: auto; bottom: clamp(36px, 8vh, 80px);
  }
  .statement h2 { font-size: clamp(26px, 7.6vw, 52px); }
  .story__sticky { align-items: flex-end; }

  .sig__title { top: 74px; left: var(--pad); font-size: clamp(22px, 6.4vw, 34px); }
  .callout, .callout--l, .callout--r {
    top: auto !important; bottom: clamp(36px, 8vh, 80px); left: var(--pad); right: var(--pad); width: auto;
    transform: none; display: block;
  }
  .co__line, .co__dot { display: none; }
  .co__text, .callout--l .co__text, .callout--r .co__text { text-align: left; transform: translateY(calc((1 - var(--o, 0)) * 14px)); }
  .co__text h3 { font-size: clamp(22px, 6.2vw, 32px); }
  .co__text p { font-size: 15px; max-width: 34ch; }

  .menu__wrap { grid-template-columns: 1fr; gap: 28px; }
  .menu__head { position: static; }
  .gallery { grid-template-columns: 1fr; }
  .g { aspect-ratio: 4 / 3.4; }
  .g--a { aspect-ratio: 4 / 4.6; }
  .g--c { aspect-ratio: 4 / 5; }

  .visit { justify-content: flex-end; padding-top: 50vh; }
  .visit__lead { margin-top: 12px; font-size: 15px; }
  .cta { margin-top: 18px; }
  .facts { margin-top: 18px; gap: 6px; font-size: 15px; }
  .visit__copy { max-width: none; margin: 0; }
  .visit__title { font-size: clamp(26px, 7.8vw, 52px); }
  .foot { margin-top: 32px; padding-top: 24px; }

  .jgrid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; justify-items: center; gap: 18px; padding-top: 66px; }
  .jmap { grid-row: 1; width: min(100%, 52svh * 0.9); }
  .jtext { grid-row: 2; max-width: none; width: 100%; gap: 14px; }
  .jstages { min-height: 150px; }
  .jstage h3 { font-size: clamp(26px, 7.4vw, 44px); }
  .jstage p { font-size: 15px; }
  .jline, .jline__labels, .jbranches { display: none; }
  .jmeter__num { font-size: 40px; }
  .jmeter__cap { margin-top: 6px; font-size: 13px; }
  .hero__meta--right { display: none; }
  .badge { width: 88px; bottom: 7vh; }
  .badge__ring text { font-size: 14px; }
  .chip { bottom: calc(7vh + 24px); padding: 8px 14px; font-size: 13px; }
  .chip em { display: none; }
  .nav__brand svg { height: 34px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .word { transform: none; transition: none !important; }
  .reveal-load, .nav { opacity: 1; transform: none; transition: none; }
  .scroll-cue i::after, .badge__ring, .chip i, .loader__logo { animation: none; }
  .g { clip-path: none; opacity: 1; transition: none; }
  .menu__list li:not([hidden]) { animation: none; }
}

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
