/* Under the Spotlight · home page. The look is the project's identity: cream paper, the UTS blue, red four-point stars. */
@font-face { font-family: 'The Year of Handicrafts'; src: url('../fonts/TheYearofHandicrafts-Regular.woff2') format('woff2'), url('../fonts/TheYearofHandicrafts-Regular.otf') format('opentype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Cabin'; src: url('../fonts/Cabin-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-400-arabic.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('../fonts/IBMPlexSansArabic-600-arabic.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --cream: #F8F4E1; --paper: #FFFDF4; --blue: #313D91; --ink: #1C2354; --red: #D73B32; --red-text: #C4322A; /* the red, a shade darker where it is small text */ --sand: #E9E1C3;
  --rule: rgba(49, 61, 145, 0.24);
  --font-en: 'Gill Sans', 'Gill Sans MT', 'Cabin', 'Segoe UI', system-ui, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Geeza Pro', 'Segoe UI', sans-serif;
  --font-ar-display: 'The Year of Handicrafts', 'IBM Plex Sans Arabic', 'Geeza Pro', sans-serif;
  --font: var(--font-en); --display: var(--font-en);
  --gut: 20px;
}
html[lang="ar"] { --font: var(--font-ar); --display: var(--font-ar-display); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); line-height: 1.55; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
a { color: inherit; }
.star path { fill: var(--red); }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red-text); font-weight: 600; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 0.95rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left)); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar-logo { width: 58px; padding: 7px 9px; background: var(--paper); border: 2px solid var(--blue); border-radius: 12px; opacity: 0; transform: translateY(-140%); transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.3s; }
.bar.past .bar-logo { opacity: 1; transform: none; }
.bar-nav { display: flex; gap: 8px; margin-inline-start: auto; }
.pill { min-width: 44px; height: 44px; padding: 0 16px; display: inline-grid; place-items: center; border-radius: 999px; border: 2px solid var(--blue); background: var(--paper); color: var(--blue);
  font: 600 0.95rem var(--font); text-decoration: none; cursor: pointer; transition: transform 0.15s; }
.pill:active { transform: scale(0.94); }
.pill-solid { background: var(--blue); color: var(--paper); }
#lang { font-family: var(--font-ar); padding: 0; }
html[lang="ar"] #lang { font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.06em; }

/* ---------- 1 · hero ---------- */
.hero { position: relative; height: 100svh; min-height: 540px; overflow: hidden; display: grid; place-items: center; background: var(--blue); touch-action: pan-y; isolation: isolate; }
.wall { position: absolute; inset: -4% -2%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wall-col { display: grid; gap: 6px; align-content: start; }
.wall-col:nth-child(even) { transform: translateY(-11%); }
.wall img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
/* the wash: grey photos, darks pushed to the blue, lights to the cream */
.wall-wash img { filter: grayscale(1) contrast(1.15) brightness(0.92); }
.wall-wash::before, .wall-wash::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.wall-wash::before { background: var(--blue); mix-blend-mode: screen; }
.wall-wash::after { background: #C9CCE6; mix-blend-mode: multiply; }
/* the light: the same wall in full colour, seen only through a soft round hole that follows the finger */
@property --r { syntax: '<length>'; inherits: true; initial-value: 150px; }
.hero.press .wall-lit { --r: 215px; }
.wall-lit { --x: 50%; --y: 46%; --r: 150px; transition: --r 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0 62%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0 62%, transparent 100%); }
@media (min-width: 720px) { .wall { grid-template-columns: repeat(6, 1fr); } .wall-lit { --r: 220px; } }

.hero-card { position: relative; z-index: 2; width: min(76vw, 340px); padding: 26px 26px 22px; background: var(--paper); border-radius: 22px; text-align: center;
  box-shadow: 0 18px 50px rgba(20, 26, 70, 0.45); animation: card-in 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15) both 0.15s; }
.hero-card .mn { width: 74%; margin: 0 auto 14px; }
.hero-card .uts { width: 100%; }
.hero-card .star { position: absolute; top: 50%; width: 34px; margin-top: -17px; animation: twinkle 3.2s ease-in-out infinite; }
.hero-card .star-l { left: -17px; } .hero-card .star-r { right: -17px; animation-delay: 1.6s; }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) scale(0.92) rotate(-2deg); } }
@keyframes twinkle { 50% { transform: scale(0.72) rotate(45deg); } }

.hero-hint { position: absolute; z-index: 2; bottom: calc(86px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; background: rgba(28, 35, 84, 0.72); color: var(--paper); font-size: 0.92rem; backdrop-filter: blur(6px); transition: opacity 0.5s; }
.hero.touched .hero-hint { opacity: 0; }
.hint-dot { width: 12px; height: 12px; border-radius: 50%; background: #FFE9A8; box-shadow: 0 0 0 5px rgba(255, 233, 168, 0.28); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(255, 233, 168, 0); } }
.hero-down { position: absolute; z-index: 2; bottom: calc(22px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--blue); animation: bob 1.8s ease-in-out infinite; }
.hero-down svg { width: 22px; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- 2 · story ---------- */
.story { position: relative; padding: 96px var(--gut) 88px; max-width: 760px; margin: 0 auto; text-align: center; }
.story-star { width: 30px; margin: 0 auto 26px; display: block; }
.slogan { font: 400 clamp(2.1rem, 9.4vw, 4rem)/1.08 var(--display); color: var(--blue); text-wrap: balance; }
html[lang="en"] .slogan { text-transform: uppercase; letter-spacing: 0.02em; font-weight: 600; font-size: clamp(1.9rem, 8.4vw, 3.6rem); }
html[lang="ar"] .slogan { line-height: 1.35; }
.slogan .w { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(3deg); transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3); transition-delay: calc(var(--i) * 55ms); }
.slogan.in .w { opacity: 1; transform: none; }
.slogan-other { margin-top: 16px; color: var(--red-text); font: 600 1.05rem var(--font-ar); }
html[lang="ar"] .slogan-other { font: 600 0.82rem var(--font-en); letter-spacing: 0.16em; text-transform: uppercase; }
.about { margin-top: 34px; font-size: 1.08rem; text-wrap: pretty; }
.about::before { content: ''; display: block; width: 2px; height: 46px; margin: 0 auto 26px; background: var(--red); }

.rise { opacity: 0; transform: translateY(22px); transition: opacity 0.6s, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1); }
.rise.in { opacity: 1; transform: none; }
.slogan.rise { opacity: 1; transform: none; }

/* ---------- 3 · street ---------- */
.street { position: relative; background: var(--paper); border-block: 2px solid var(--blue); }
.street-pin { position: relative; height: min(100svh, 900px); min-height: 560px; overflow: hidden; --px: min(4.5svh, 42px); /* one metre of shopfront */ --ground: max(26svh, 215px);
  touch-action: pan-y; /* up and down stays the phone's own scrolling; only sideways drags move the shops */ user-select: none; -webkit-user-select: none; cursor: grab; }
.street-pin.dragging { cursor: grabbing; }
.street-head { position: absolute; z-index: 3; top: calc(70px + env(safe-area-inset-top)); inset-inline: var(--gut); text-align: center; }
.street-head h2 { font: 400 clamp(1.7rem, 7vw, 2.6rem)/1.15 var(--display); color: var(--blue); }
html[lang="en"] .street-head h2 { text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; font-size: clamp(1.4rem, 6vw, 2.2rem); }
/* the light from above, on whichever shop is in the middle */
.beam { position: absolute; z-index: 1; left: 50%; top: 0; bottom: calc(var(--ground) - 8px); width: min(120vw, 620px); translate: -50% 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 226, 140, 0.0), rgba(255, 226, 140, 0.5)); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); }
/* the row of shopfronts is dragged sideways with a finger (or the arrows, or the dots); each shop stops in the middle.
   It is moved by the page's own code, not a scrolling box: a scrolling box here swallowed up-and-down swipes on iPhones. */
.track { position: absolute; z-index: 2; bottom: var(--ground); inset-inline-start: 0; display: flex; align-items: flex-end; gap: calc(var(--px) * 2.2); width: max-content; will-change: transform; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.25, 1); }
.street-pin.dragging .track { transition: none; }
.track img { -webkit-user-drag: none; pointer-events: none; }
.shop { position: relative; flex: none; display: block; text-decoration: none; transition: filter 0.45s, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); transform-origin: 50% 100%; filter: grayscale(0.9) brightness(1.02) opacity(0.6); }
.shop img { height: min(calc(var(--h) * var(--px)), calc(90vw * var(--h) / var(--w))); /* a very wide shop still fits the phone */ width: auto; max-width: none; box-shadow: 0 0 0 1.5px rgba(28, 35, 84, 0.35); }
.shop.lit { filter: none; transform: scale(1.04); }
.shop-tag { position: absolute; top: calc(100% + 26px); left: 50%; translate: -50% 0; width: max-content; max-width: 78vw; display: grid; justify-items: center; gap: 2px; text-align: center; color: var(--ink); opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s; }
.shop.lit .shop-tag { opacity: 1; transform: none; }
.shop-tag b { font: 600 1.12rem/1.25 var(--font); color: var(--blue); }
.shop-tag span { font-size: 0.9rem; }
.shop-tag i { font-style: normal; margin-top: 6px; padding: 5px 13px; border-radius: 999px; background: var(--blue); color: var(--paper); font-size: 0.82rem; font-weight: 600; }
.shop-end { align-self: flex-end; display: grid; gap: 14px; justify-items: center; text-align: center; width: 78vw; max-width: 380px; filter: none; margin-bottom: 14svh; }
.shop-end p { font: 400 1.7rem/1.2 var(--display); color: var(--blue); }
.shop-end .pill { height: 52px; padding: 0 26px; font-size: 1.05rem; }
.ground { position: absolute; z-index: 1; inset: auto 0 0 0; height: var(--ground); background: var(--sand); border-top: 2px solid var(--ink); overflow: hidden; }
.dashes { position: absolute; top: 12px; left: -50vw; right: -50vw; height: 7px; background: repeating-linear-gradient(90deg, var(--red) 0 44px, transparent 44px 84px); will-change: transform; }
.stops { position: absolute; z-index: 3; bottom: env(safe-area-inset-bottom); left: 50%; translate: -50% 0; margin: 0; padding: 0; list-style: none; display: flex; }
.stops li { width: 30px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.stops li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--blue); transition: background 0.3s, transform 0.3s; }
.stops li.on::before { background: var(--red); border-color: var(--red); transform: scale(1.35); }

/* ---------- 4 · doors ---------- */
.doors { padding: 92px var(--gut) 96px; text-align: center; }
.doors h2 { margin-top: 8px; font: 400 clamp(2rem, 9vw, 3.2rem)/1.15 var(--display); color: var(--blue); }
html[lang="en"] .doors h2 { text-transform: uppercase; font-weight: 600; letter-spacing: 0.03em; font-size: clamp(1.8rem, 8vw, 2.9rem); }
.door-row { margin: 40px auto 0; max-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; perspective: 900px; }
.door { --c: var(--blue); position: relative; aspect-ratio: 10 / 17; border-radius: 999px 999px 6px 6px; border: 5px solid var(--c); background: var(--ink); overflow: hidden; text-decoration: none; color: var(--paper); display: block; -webkit-tap-highlight-color: transparent; }
.door-red { --c: var(--red); }
.door-inside { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 12px; background: radial-gradient(circle at 50% 38%, rgba(255, 226, 140, 0.34), transparent 62%); }
.door-inside b { font: 400 clamp(3rem, 15vw, 4.6rem)/1 var(--display); color: #FFE9A8; }
html[lang="en"] .door-inside b { font-weight: 600; }
.door-inside span { font-weight: 600; font-size: 1.02rem; }
.door-inside i { font-style: normal; margin-top: 8px; padding: 6px 13px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.82rem; font-weight: 600; }
/* the leaves: painted wood with rows of studs, like the old doors of Muharraq */
.leaf { position: absolute; top: 0; bottom: 0; width: 50%; background:
    radial-gradient(circle, rgba(255, 233, 168, 0.95) 0 2.6px, transparent 3.4px) 50% 0 / 100% 46px,
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 22% 78%, rgba(0, 0, 0, 0.16)), var(--c);
  transition: transform 0.75s cubic-bezier(0.3, 0.7, 0.2, 1); backface-visibility: hidden; }
.leaf-l { left: 0; transform-origin: 0 50%; border-right: 1.5px solid rgba(0, 0, 0, 0.3); }
.leaf-r { right: 0; transform-origin: 100% 50%; border-left: 1.5px solid rgba(0, 0, 0, 0.3); }
.door.ajar .leaf-l { transform: perspective(700px) rotateY(-24deg); } .door.ajar .leaf-r { transform: perspective(700px) rotateY(24deg); }
.door.open .leaf-l, .door:hover .leaf-l { transform: perspective(700px) rotateY(-78deg); } .door.open .leaf-r, .door:hover .leaf-r { transform: perspective(700px) rotateY(78deg); }

/* ---------- 5 · meet ---------- */
.meet { background: var(--blue); padding: 76px var(--gut) calc(76px + env(safe-area-inset-bottom)); }
.meet-card { position: relative; max-width: 520px; margin: 0 auto; padding: 44px 24px 30px; background: var(--paper); border-radius: 22px; text-align: center; }
.meet-card .star { position: absolute; top: 50%; width: 34px; margin-top: -17px; } .meet-card .star-l { left: -17px; } .meet-card .star-r { right: -17px; }
.meet h2 { font: 400 clamp(2rem, 9vw, 3rem)/1.2 var(--display); color: var(--blue); }
html[lang="en"] .meet h2 { text-transform: uppercase; font-weight: 600; letter-spacing: 0.08em; font-size: clamp(1.5rem, 6.6vw, 2.3rem); }
.meet-other { margin-top: 8px; color: var(--blue); font: 400 1.5rem var(--font-ar-display); }
html[lang="ar"] .meet-other { font: 600 0.85rem var(--font-en); letter-spacing: 0.18em; text-transform: uppercase; }
.thread { display: block; width: 2px; height: 54px; margin: 22px auto; background: var(--red); }
.tag-us { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 20px; border-radius: 16px; background: var(--blue); color: var(--paper); text-decoration: none; text-align: start; font-size: 0.95rem; line-height: 1.35; }
.tag-us svg { flex: none; width: 26px; fill: currentColor; }
.tag-us b { display: block; }
.meet-logos { margin-top: 34px; padding-top: 24px; border-top: 1.5px solid var(--rule); display: flex; align-items: center; justify-content: center; gap: 26px; }
.meet-logos img { width: auto; height: 46px; } .meet-logos img + img { height: 30px; }

@media (max-height: 620px) { .hero-card { width: min(60vw, 250px); padding: 18px; } .street-head { top: calc(58px + env(safe-area-inset-top)); } .street-pin { --px: 4.5svh; } }
@media (min-width: 720px) { :root { --gut: 40px; } .hero-card { width: 380px; } .about { font-size: 1.2rem; } .shop-tag { max-width: 420px; } .door-row { gap: 34px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .rise, .slogan .w { opacity: 1; transform: none; }
}


.more { margin-top: 30px; } .more .pill { height: 48px; padding: 0 22px; }

.pill-quiet { padding: 0 13px; }
@media (max-width: 359px) { .pill { padding: 0 11px; font-size: 0.88rem; } .bar-logo { width: 50px; } }

/* the street's swipe hint, and arrows for a mouse */
.street-head { pointer-events: none; }
.swipe-hint { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--ink); }
.swipe-hint svg { width: 30px; flex: none; color: var(--red); animation: nudge 1.6s ease-in-out infinite; }
html[dir="rtl"] .swipe-hint svg { scale: -1 1; }
@keyframes nudge { 50% { transform: translateX(7px); } }
.street-arrow { position: absolute; z-index: 4; top: 50%; width: 48px; height: 48px; padding: 0; display: none; place-items: center; border-radius: 50%; border: 2px solid var(--blue); background: var(--paper); color: var(--blue); cursor: pointer; }
.street-arrow svg { width: 22px; }
.street-arrow.prev { left: 18px; } .street-arrow.next { right: 18px; }
@media (hover: hover) and (pointer: fine) { .street-arrow { display: grid; } }

.nojs { margin: 90px 20px 0; padding: 16px; border: 2px solid var(--blue); border-radius: 14px; background: var(--paper); text-align: center; }
/* iPhones ask before a page may read the tilt: there the hint is a button, and asking waits for a tap on it */
.hero-hint { border: 0; font-family: inherit; }
.hero.ask-tilt .hero-hint { cursor: pointer; }
.hero.ask-tilt:not(.asked) .hero-hint { opacity: 1; }

.hero-hint:disabled { color: var(--paper); }
/* the same links at the foot of every page */
.foot { background: var(--ink); padding: 26px var(--gut) calc(30px + env(safe-area-inset-bottom)); }
.foot nav { max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.foot a { min-height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--paper); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.foot a:hover, .foot a:focus-visible { background: rgba(255, 253, 244, 0.14); }
