/* The "events" template (lib/sites/events), first made for IQIDS. Layout: a production-studio site (after layrmedia.com) for an event. Off-white paper, near-black bands, one hard red.
   Giant condensed caps for the Latin brand words, a bold Kufi for the Arabic, a plain sans for reading.
   Scroll drives the story: the hero video lifts away as a row of event photos rises and keeps sliding, a line-drawn
   camera zooms into its own screen and opens onto the gallery, cards stack. Only transforms and opacity move.
   One deliberate light look. */
:root {
  --ink: #171717;
  --paper: #f8f7f6;
  --red: #ff0033;
  --grey: #8d8b88;
  --line: #d9d6d2;
  --on-dark: #f8f7f6;
  --on-dark-soft: #a9a6a2;

  --display: "Koulen", "Changa", Impact, "Arial Narrow", sans-serif;
  --display-ar: "Changa", "Koulen", "Segoe UI", Tahoma, sans-serif;
  --body: "Work Sans", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --gutter: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@media (min-width: 900px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; direction: rtl; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.7; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.lat { font-family: var(--display); direction: ltr; unicode-bidi: isolate; font-weight: 400; letter-spacing: 0.01em; }
.sq { display: inline-block; width: 0.17em; height: 0.17em; background: var(--red); vertical-align: 0.02em; margin-inline-start: 0.05em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* bracket buttons: a small pill inside four corner marks */
.bk { position: relative; display: inline-flex; padding: 8px; }
.bk::before, .bk::after, .bk > i::before, .bk > i::after { content: ""; position: absolute; width: 10px; height: 10px; border: 1.5px solid currentColor; transition: transform 0.3s var(--ease); }
.bk > i { position: absolute; inset: 0; }
.bk::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.bk::after { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.bk > i::before { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.bk > i::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.bk:hover::before { transform: translate(-3px, -3px); } .bk:hover::after { transform: translate(3px, -3px); }
.bk:hover > i::before { transform: translate(-3px, 3px); } .bk:hover > i::after { transform: translate(3px, 3px); }
.bk span { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 500; padding: 7px 16px; border-radius: 3px; white-space: nowrap; }
.bk .arr { color: var(--red); font-size: 15px; }
.bk.on-light span { background: var(--ink); color: var(--paper); }

/* ---------------- header ---------------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 0; pointer-events: none; color: var(--on-dark); transition: color 0.3s ease; }
.hdr > * { pointer-events: auto; }
.hdr[data-tone="light"] { color: var(--ink); }
.hdr-start { display: flex; align-items: center; gap: 18px; }
.hdr-start .dot { width: 24px; height: 24px; background: var(--red); flex: none; }
.hdr-end { display: flex; align-items: center; gap: 12px; }
.cta-red { display: none; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; padding: 9px 16px; border-radius: 3px; }
@media (min-width: 900px) { .hdr .cta-red { display: inline-flex; } }
.menu-btn { width: 52px; height: 52px; display: grid; place-items: center; position: relative; }
.menu-btn i { position: absolute; inset: 0; pointer-events: none; }
.menu-btn::before, .menu-btn::after, .menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; width: 11px; height: 11px; border: 1.5px solid currentColor; }
.menu-btn::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.menu-btn::after { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.menu-btn i::before { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.menu-btn i::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }
.menu-btn span { display: grid; gap: 5px; }
.menu-btn span b { width: 22px; height: 2px; background: currentColor; display: block; transition: transform 0.35s var(--ease), opacity 0.2s ease; }
.menu-btn[aria-expanded="true"] span b:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span b:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span b:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 40; overflow: hidden; background: var(--ink); color: var(--on-dark); display: flex; flex-direction: column; justify-content: space-between; padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease); }
.menu.open { clip-path: inset(0 0 0 0); }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu li a { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-family: var(--display-ar); font-weight: 800; font-size: clamp(32px, 8.4vw, 84px); line-height: 1.2; max-width: 100%; }
.menu li a .bkt { color: var(--red); font-family: var(--display); font-weight: 400; }
.menu li a:hover { color: var(--red); }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--on-dark-soft); }
.menu-foot .cta-red { display: inline-flex; }

/* ---------------- hero ---------------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
.stage { position: absolute; inset: 0; }
.intro { position: relative; height: 100svh; min-height: 560px; max-height: 1000px; overflow: hidden; background: var(--paper); }
.title { position: absolute; z-index: 2; top: calc(76px + env(safe-area-inset-top, 0px)); inset-inline-start: var(--gutter); font-family: var(--display); font-size: clamp(110px, 33vw, 300px); line-height: 0.8; direction: ltr; text-align: left; color: var(--ink); pointer-events: none; }
@media (min-width: 900px) { .title { font-size: clamp(130px, 17vw, 300px); top: 110px; } }
.title .l2 { display: block; }
/* the video lifts away: the box moves up while its contents move down by the same amount (transforms only) */
.media { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
/* a light parallax as the hero scrolls away: the picture drifts slower than the page */
.media-in { position: absolute; inset: 0; transform: translate3d(0, var(--px, 0px), 0); will-change: transform; }
.media video, .media .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media video { opacity: 0; transition: opacity 0.6s ease; }
.media video.ready { opacity: 1; }
.media-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.4), rgb(0 0 0 / 0) 35%, rgb(0 0 0 / 0) 52%, rgb(0 0 0 / 0.6)); }
.media .title { color: var(--on-dark); z-index: 2; }
.hero-foot { position: absolute; z-index: 2; inset: auto var(--gutter) calc(22px + env(safe-area-inset-bottom, 0px)) var(--gutter); display: grid; gap: 14px; color: var(--on-dark); }
.hero-foot .kicker { font-family: var(--display); font-size: clamp(26px, 6vw, 44px); line-height: 1; direction: ltr; text-align: right; }
.hero-foot .line { font-family: var(--display-ar); font-weight: 700; font-size: clamp(19px, 4.4vw, 30px); line-height: 1.35; max-width: 19em; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.14em; font-weight: 600; direction: ltr; }
.scroll-cue i { width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
@media (min-width: 900px) { .hero-foot { grid-template-columns: 1fr auto; align-items: end; } .hero-foot .kicker { grid-column: 2; grid-row: 1; } .hero-foot .line { grid-column: 1; grid-row: 1; } }

/* the row of photos: rises as the video lifts, then keeps sliding with more photos */
.rise { position: absolute; z-index: 1; inset: auto 0 0 0; height: 62%; direction: ltr; }
@media (min-width: 900px) { .rise { height: 60%; } }
.rise-track { display: flex; align-items: flex-end; height: 100%; width: max-content; animation: rowSlide 90s linear infinite; animation-play-state: paused; }
.rise.run .rise-track { animation-play-state: running; }
/* a margin, not a gap: the two copies are then exactly the same width, so the loop never jumps */
.rise figure { margin-right: 8px !important; }
@media (min-width: 900px) { .rise figure { margin-right: 14px !important; } }
@keyframes rowSlide { to { transform: translate3d(-50%, 0, 0); } }
.rise figure { margin: 0; flex: none; width: 34vw; overflow: hidden; background: #e6e3df; transform: translate3d(0, calc((1 - var(--p, 0)) * 105%), 0); will-change: transform; }
.rise figure img { width: 100%; height: 100%; object-fit: cover; }
.rise figure:nth-child(5n+1) { height: 36%; width: 24vw; }
.rise figure:nth-child(5n+2) { height: 66%; width: 32vw; }
.rise figure:nth-child(5n+3) { height: 86%; width: 40vw; }
.rise figure:nth-child(5n+4) { height: 54%; width: 30vw; }
.rise figure:nth-child(5n+5) { height: 74%; width: 36vw; }
@media (min-width: 900px) {
  .rise figure:nth-child(5n+1) { width: 13vw; } .rise figure:nth-child(5n+2) { width: 17vw; } .rise figure:nth-child(5n+3) { width: 21vw; }
  .rise figure:nth-child(5n+4) { width: 16vw; } .rise figure:nth-child(5n+5) { width: 19vw; }
}

/* ---------------- statement (fills in as you scroll) ---------------- */
.statement { padding: 18vh var(--gutter) 6vh; display: grid; gap: 28px; }
.statement p { font-family: var(--display-ar); font-weight: 800; font-size: clamp(30px, 7vw, 76px); line-height: 1.2; max-width: 14em; }
.statement p.b { justify-self: end; }
.statement .w { color: #cfccc8; transition: color 0.35s ease; }
.statement .w.on { color: var(--ink); }
.statement .w.red.on { color: var(--red); }
.statement .tag { font-family: var(--display); font-size: 15px; letter-spacing: 0.08em; color: var(--grey); direction: ltr; }

/* ---------------- camera to gallery ---------------- */
.cam-sec { position: relative; height: 165svh; background: color-mix(in srgb, #0c0c0c calc(var(--dark, 0) * 100%), var(--paper)); }
.cam-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.cam .screen { fill: var(--ink); fill-opacity: var(--solid, 0); }
.cam { position: absolute; left: 50%; top: 50%; width: min(92vw, 860px); transform: translate(-50%, -50%) scale(var(--s, 1)); transform-origin: 53.4% 54.2%; will-change: transform; color: color-mix(in srgb, #77736f calc(var(--solid, 0) * 100%), var(--ink)); }
.cam .fill { fill: var(--ink); fill-opacity: var(--solid, 0); }
.cam .soft { fill: var(--ink); fill-opacity: calc(var(--solid, 0) * 0.85); }
.cam .lbl { fill: currentColor; font-family: "Work Sans", sans-serif; font-size: 11px; letter-spacing: 1.4px; }
.cam .rec { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.cam-hint { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: var(--hint, 1); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; padding: 10px 14px; border-radius: 4px; transition: background-color 0.2s ease, color 0.2s ease; }
.cam-hint:hover { background: var(--ink); color: var(--paper); }
.cam-hint.gone { pointer-events: none; }

.gallery-sec { position: relative; background: #0c0c0c; overflow: hidden; }
.wall { position: relative; min-height: 100svh; padding: 90px 0 60px; color: var(--on-dark); display: grid; align-content: center; justify-items: center; overflow: hidden; }
/* the wall behind the player: soft, dark and tinted red, so the eye stays on the picture in the screen */
.wall-rows { position: absolute; inset: -12% -25%; display: grid; gap: 12px; align-content: center; transform: rotate(-4deg); direction: ltr; }
.wall-row { display: flex; width: max-content; animation: rowSlide 70s linear infinite; animation-play-state: paused; }
.wall-row:nth-child(2n) { animation-direction: reverse; animation-duration: 85s; }
.wall.shown .wall-row { animation-play-state: running; }
.wall-row img { width: 200px; height: 130px; object-fit: cover; flex: none; background: #1d1d1d; margin-right: 12px; }
@media (min-width: 900px) { .wall-row img { width: 260px; height: 165px; } }
.wall::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 60% at 50% 50%, rgb(12 12 12 / 0.55), rgb(12 12 12 / 0.88)), linear-gradient(rgb(255 0 51 / 0.12), rgb(255 0 51 / 0.12)); }
.player { position: relative; z-index: 2; width: min(calc(100vw - 2 * var(--gutter)), 900px); display: grid; gap: 12px; }
.player-top, .player-bot { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; direction: ltr; }
.player-top b, .player-bot b { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.player-top b::before { content: ""; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid var(--red); }
.player-bot b::before { content: ""; width: 7px; height: 7px; background: var(--red); }
.screen-box { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgb(0 0 0 / 0.6); }
@media (min-width: 700px) { .screen-box { aspect-ratio: 16 / 9; } }
.screen-box::before, .screen-box::after { content: ""; position: absolute; z-index: 3; width: 14px; height: 14px; border: 1.5px solid var(--on-dark); pointer-events: none; }
.screen-box::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.screen-box::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.slide.cur { opacity: 1; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; }
.slide.cur img { animation: kb 4.4s ease-out both; }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.progress { position: absolute; z-index: 3; inset: auto 0 0 0; height: 3px; background: rgb(255 255 255 / 0.15); }
.progress i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.progress i.go { animation: bar var(--dur, 3.4s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; direction: ltr; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: none; width: 74px; height: 74px; overflow: hidden; opacity: 0.45; outline: 2px solid transparent; outline-offset: -2px; transition: opacity 0.3s ease, outline-color 0.3s ease; }
.thumbs button.cur { opacity: 1; outline-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .thumbs button { width: 96px; height: 64px; } }

/* ---------------- dark band: who we are, the quote ---------------- */
.dark { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.we { padding: 120px var(--gutter) 80px; display: grid; gap: 22px; }
@media (min-width: 900px) { .we { grid-template-columns: 1fr 1fr; align-items: end; padding-top: 160px; } }
.we h2 { font-size: clamp(56px, 12vw, 120px); line-height: 0.9; }
.we p { color: #dcd9d5; max-width: 34em; font-size: 17px; }
.we .bk { margin-top: 6px; justify-self: start; }
.quote { position: relative; padding: 140px var(--gutter) 180px; text-align: center; display: grid; justify-items: center; gap: 28px; }
.qbars { position: absolute; display: flex; gap: 16px; transform: scaleY(var(--q, 1)); transform-origin: bottom; }
.qbars i { width: 34px; height: 92px; background: var(--red); transform: skewX(-8deg); }
@media (min-width: 900px) { .qbars i { width: 52px; height: 140px; } }
.qbars.top { top: 40px; inset-inline-end: var(--gutter); }
.qbars.bot { bottom: 40px; inset-inline-start: var(--gutter); }
.quote p { font-family: var(--display-ar); font-weight: 700; font-size: clamp(26px, 5.4vw, 52px); line-height: 1.35; max-width: 18em; }
.organizer { display: grid; justify-items: center; gap: 10px; }
.organizer small { font-size: 11px; letter-spacing: 0.2em; color: var(--on-dark-soft); direction: ltr; }
.organizer img { width: min(62vw, 260px); height: auto; }

/* ---------------- red marquee ---------------- */
.band { background: var(--red); color: var(--ink); overflow: hidden; padding-block: 14px; }
.band-track { display: flex; width: max-content; animation: slideX 26s linear infinite; }
.band.paused .band-track { animation-play-state: paused; }
@keyframes slideX { to { transform: translate3d(50%, 0, 0); } }
.band-item { display: inline-flex; align-items: center; gap: 22px; padding-inline: 22px; font-family: var(--display-ar); font-weight: 800; font-size: clamp(40px, 9vw, 84px); line-height: 1.1; white-space: nowrap; }
.band-item .n { font-family: var(--display); font-weight: 400; }

/* ---------------- stacked cards ---------------- */
.cards { background: var(--ink); padding: 0 0 40px; }
.card { position: sticky; top: calc(var(--k) * 18px); min-height: 92svh; color: var(--on-dark); overflow: hidden; border-top: 1px solid rgb(255 255 255 / 0.12); display: flex; flex-direction: column; justify-content: space-between; padding: 90px var(--gutter) 30px; background: #1b1b1b; isolation: isolate; }
.card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.6) contrast(1.05); opacity: 0.55; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #1b1b1b 0%, rgb(27 27 27 / 0.6) 45%, rgb(27 27 27 / 0.2) 100%); }
.card .eb { color: var(--red); font-size: 11.5px; letter-spacing: 0.16em; direction: ltr; text-align: right; }
.card h3 { font-family: var(--display-ar); font-weight: 800; font-size: clamp(34px, 7vw, 64px); line-height: 1.15; margin-top: 6px; }
.card p { color: #d4d1cd; max-width: 30em; margin-top: 12px; font-size: 15.5px; }
.card .more { margin-top: 18px; display: inline-flex; gap: 8px; font-size: 12.5px; letter-spacing: 0.12em; font-weight: 600; }
.card .more span { color: var(--red); }
.card .num { font-family: var(--display); font-size: clamp(110px, 28vw, 240px); line-height: 0.8; color: var(--red); align-self: flex-end; direction: ltr; }
@media (min-width: 900px) {
  .cards { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; }
  .card { position: relative; top: 0; min-height: 88svh; border-top: 0; border-inline-start: 1px solid rgb(255 255 255 / 0.12); }
  .card > img { transition: opacity 0.5s ease; }
  .card:hover > img { opacity: 0.75; }
  .card .num { -webkit-text-stroke: 1.5px var(--red); color: transparent; transition: color 0.4s ease; }
  .card:hover .num { color: var(--red); }
}

/* ---------------- more photos: a free row (swipe it, or watch it drift) ---------------- */
.side { padding: 96px 0 72px; display: grid; gap: 28px; overflow: hidden; }
.side-head { padding-inline: var(--gutter); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.side-head h2 { font-family: var(--display-ar); font-weight: 800; font-size: clamp(30px, 6vw, 56px); line-height: 1.15; }
.track { display: flex; align-items: center; gap: 12px; padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; direction: ltr; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }
.track img { height: min(52svh, 460px); width: auto; flex: none; object-fit: cover; background: #e6e3df; }
.track img:nth-child(3n+2) { height: min(40svh, 350px); }
.track img:nth-child(4n) { height: min(46svh, 410px); filter: grayscale(1); }
.ruler { margin-inline: var(--gutter); height: 26px; position: relative; background: repeating-linear-gradient(90deg, var(--grey) 0 1px, transparent 1px 9px); -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 40%); mask-image: linear-gradient(180deg, transparent 40%, #000 40%); direction: ltr; }
.ruler i { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--red); transform: translateX(var(--rx, 0px)); }

/* ---------------- next edition ---------------- */
.next { padding: 80px 0 40px; overflow: hidden; }
.giant { position: relative; font-family: var(--display); font-size: clamp(110px, 27vw, 380px); line-height: 0.8; white-space: nowrap; direction: ltr; padding-inline: var(--gutter); width: max-content; transform: translate3d(var(--gx, 0px), 0, 0); will-change: transform; }
.tagx { position: absolute; z-index: 1; font-family: var(--body); font-size: clamp(11px, 1.4vw, 15px); font-weight: 600; background: var(--red); color: #fff; padding: 4px 10px; border-radius: 2px; white-space: nowrap; direction: rtl; transform: rotate(var(--r)); }
.facts { display: grid; gap: 14px; padding: 40px var(--gutter) 0; }
@media (min-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { border: 1.5px dashed var(--line); padding: 16px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .fact { grid-template-columns: 180px 1fr; } }
.fact img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 560px) { .fact img { aspect-ratio: 3 / 4; height: 100%; } }
.fact .body { display: grid; align-content: space-between; gap: 18px; }
.fact .txt { font-family: var(--display-ar); font-weight: 700; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; }
.fact .who { font-size: 12px; color: var(--grey); direction: ltr; text-align: right; }
.fact .stat { display: grid; justify-items: end; }
.fact .stat b { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 7vw, 80px); line-height: 0.9; color: var(--red); direction: ltr; }
.fact .stat span { font-size: 12.5px; color: var(--grey); }

/* ---------------- contact + footer ---------------- */
.contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; padding: 90px var(--gutter) 40px; border-bottom: 1px solid var(--line); }
.contact p { font-size: 18px; line-height: 1.5; }
.contact p small { display: block; color: var(--grey); font-size: 15px; }
.foot { padding: 40px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 30px; overflow: hidden; }
.foot-top { display: grid; gap: 30px; align-items: end; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1fr auto; } }
.foot-brand { font-family: var(--display); font-size: clamp(96px, 26vw, 300px); line-height: 0.8; direction: ltr; text-align: left; min-width: 0; }
.foot-card { width: min(56vw, 300px); height: auto; aspect-ratio: 1; align-self: end; object-fit: cover; transform: rotate(-6deg); box-shadow: 0 10px 30px rgb(0 0 0 / 0.18); justify-self: end; transition: transform 0.5s var(--ease); }
.foot-card:hover { transform: rotate(-2deg) scale(1.03); }
.foot-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; }
.foot-cols h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.12em; color: var(--grey); font-weight: 500; }
.foot-cols a:hover { color: var(--red); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-ruya img { width: 200px; height: auto; margin-top: 8px; }
.legal { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--grey); }
.legal a { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .band-track, .cam .rec, .scroll-cue i, .rise-track, .wall-row { animation: none !important; }
  .slide.cur img { animation: none; }
}

/* the editor's preview: everything shown at once, no waiting for scroll */
.preview .rise figure { transform: none !important; }
.preview .statement .w { color: var(--ink); }
.preview .statement .w.red { color: var(--red); }
