:root {
  --ink: #15171c;
  --paper: #fff;
  --ground: #15171c;
  --blue: #244cf4;
  --blue-dark: #1639c7;
  --yellow: #f4f640;
  --soft: #edf1ff;
  --muted: #565d68;
  --red: #a72b3b;
  --sans: Arial, Tahoma, "Noto Sans Arabic", "PingFang SC", sans-serif;
  --display-size: clamp(52px, 8.8vw, 127px);
  --heading-size: clamp(40px, 5vw, 62px);
  --lead-size: 23px;
  --body-size: 17px;
  --small-size: 14px;
  --folder-stack-height: 156px;
  --folder-tab-overhang: 38px;
  --reading-offset: calc(var(--folder-stack-height) + var(--folder-tab-overhang) + env(safe-area-inset-top, 0px) + 16px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--reading-offset); }
body { margin: 0; color: var(--ink); background: var(--ground); font: var(--body-size)/1.62 var(--sans); -webkit-font-smoothing: antialiased; }
body[data-language="en"] { direction: ltr; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 5px; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--yellow); }

.topbar { position: absolute; z-index: 5; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px clamp(18px, 3vw, 44px); color: var(--paper); direction: ltr; }
.wordmark { grid-column: 2; font-size: var(--body-size); font-weight: 800; text-decoration: none; }
.language-switch { grid-column: 3; justify-self: end; display: flex; gap: 6px; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 8px 12px; background: transparent; color: var(--paper); text-decoration: none; }
.language-switch a[aria-current="page"] { color: var(--ink); background: var(--yellow); font-weight: 800; }

.hero { position: relative; min-height: 100svh; overflow: hidden; color: var(--paper); background: var(--ground); }
.hero-photo, .hero-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: center 66%; animation: slow-drift 16s ease-in-out infinite alternate; }
.hero-scrim { background: rgb(21 23 28 / 58%); }
.hero-copy { position: relative; z-index: 2; width: min(1180px, calc(100% - 40px)); margin-inline: auto; padding-top: clamp(118px, 15vh, 180px); text-align: center; }
.hero h1 { max-width: 11ch; margin: 0 auto; font-size: var(--display-size); line-height: .94; letter-spacing: -.065em; }
.hero-copy p { max-width: 50ch; margin: 34px auto 0; font-size: var(--lead-size); line-height: 1.5; }
.hero-action { min-height: 52px; margin-top: 28px; padding: 11px 22px; border: 0; background: var(--yellow); color: var(--ink); font-weight: 800; cursor: pointer; }
.hero-copy .hero-credit { margin: 18px auto 0; font-size: var(--small-size); line-height: 1.5; }
.photo-credit { margin: 14px 0 0; font-size: var(--small-size); }
.source-fallback { grid-column: 1 / -1; color: var(--paper); }
.image-sources { margin: 32px auto 0; max-width: 1260px; padding: 28px; background: var(--soft); font-size: var(--small-size); }
.image-sources h2 { margin: 0 0 14px; font-size: var(--lead-size); }
.image-sources li + li { margin-top: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.next-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-top: 32px; }

.folder-slot { position: absolute; z-index: 10; right: 0; bottom: 0; left: 0; height: var(--folder-stack-height); }
.folder-stack { position: absolute; inset: 0; height: 100%; direction: ltr; }
.folder-slot.is-fixed .folder-stack { position: fixed; top: calc(var(--folder-tab-overhang) + env(safe-area-inset-top, 0px)); bottom: auto; height: var(--folder-stack-height); }
.folder-slot.is-fixed .folder-stack::before { content: ""; position: absolute; inset: calc(-1 * var(--folder-tab-overhang)) 0 0; background: var(--ground); }
.folder { position: absolute; left: 50%; display: block; width: min(88vw, 1260px); height: 52px; transform: translateX(-50%); color: var(--ink); text-decoration: none; }
.folder::before { content: ""; position: absolute; top: -38px; width: min(240px, 30vw); height: 40px; background: inherit; clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%); }
.folder span { position: absolute; top: -32px; z-index: 1; width: min(240px, 30vw); text-align: center; font-size: var(--body-size); font-weight: 800; }
.folder-blue { bottom: 104px; background: var(--blue); color: var(--paper); }
.folder-blue::before, .folder-blue span { left: 5%; }
.folder-yellow { bottom: 52px; background: var(--yellow); }
.folder-yellow::before, .folder-yellow span { left: 35%; }
.folder-white { bottom: 0; background: var(--paper); }
.folder-white::before, .folder-white span { left: 66%; }
.folder[aria-current="location"] span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.page-section { padding: clamp(96px, 12vw, 180px) clamp(18px, 5vw, 74px); }
.brief { background: var(--paper); }
.section-heading { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; align-items: end; }
.section-heading h2 { grid-column: 1 / span 6; margin: 0; font-size: var(--heading-size); line-height: .96; letter-spacing: -.055em; }
.section-heading p { grid-column: 10 / -1; margin: 0; max-width: 34ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 5vw, 80px); margin-top: 120px; }
.fact strong { display: block; font-size: var(--heading-size); line-height: 1; letter-spacing: -.055em; }
.fact p { margin: 16px 0 0; max-width: 32ch; }
.brief-photo { width: min(58%, 880px); margin: 96px 0 0 auto; }
[dir="rtl"] .brief-photo { margin-right: auto; margin-left: 0; }
.brief-photo img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.brief-photo figcaption { margin-top: 14px; color: var(--muted); font-size: var(--small-size); }

.claims { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: clamp(48px, 7vw, 110px); min-height: 100svh; overflow: hidden; background: var(--blue); }
.claim-sheet { align-self: start; padding: clamp(34px, 5vw, 70px); background: var(--paper); transform: rotate(-1deg); }
[dir="rtl"] .claim-sheet { transform: rotate(1deg); }
.claim-sheet h2 { margin: 0; text-align: center; font-size: var(--heading-size); letter-spacing: -.045em; }
.sheet-note { margin: 18px auto 52px; max-width: 44ch; text-align: center; color: var(--muted); }
.claim-index { display: grid; gap: 10px; }
.claim-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; width: 100%; min-height: 84px; padding: 18px 20px; border: 0; background: var(--soft); text-align: start; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.claim-row:hover { transform: translateY(-3px); }
.claim-row.active { background: var(--yellow); }
.claim-row span { font-size: var(--body-size); font-weight: 700; }
.claim-row strong { font-size: var(--small-size); color: var(--blue-dark); }
.claim-preview { position: sticky; top: var(--reading-offset); align-self: start; direction: rtl; color: var(--paper); }
body[data-language="en"] .claim-preview { direction: ltr; }
.claim-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.preview-copy { max-width: 620px; padding-top: 30px; }
.preview-copy h3 { max-width: 17ch; margin: 12px 0 0; font-size: var(--heading-size); line-height: 1.02; letter-spacing: -.04em; }
.preview-copy > p { max-width: 48ch; margin: 26px 0 0; }
.preview-copy a { display: inline-flex; align-items: center; min-height: 52px; margin-top: 28px; padding: 10px 18px; background: var(--paper); color: var(--ink); font-weight: 800; }

.lenses { display: grid; grid-template-columns: 1fr 1fr; min-height: 92svh; padding: 0; background: var(--soft); }
.lens-photo { align-self: center; padding: 40px; }
.lens-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lens-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(54px, 7vw, 110px); }
.lens-copy h2 { max-width: 12ch; margin: 0; font-size: var(--heading-size); line-height: .98; letter-spacing: -.05em; }
.lens-copy > p { max-width: 45ch; margin: 28px 0 0; }
.lens-tabs { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 56px; }
.lens-tabs button { min-height: 48px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-size: var(--body-size); cursor: pointer; }
.lens-tabs button[aria-selected="true"] { color: var(--blue); font-weight: 800; }
.lens-copy blockquote { margin: 52px 0 0; font-size: var(--lead-size); line-height: 1.34; font-weight: 700; }
.lens-panel { display: flex; flex-direction: column; }
#lens-context { margin-top: 22px; color: var(--muted); }
#lens-link { align-self: flex-start; margin-top: 28px; color: var(--blue); font-weight: 800; }

.next { background: var(--ground); }
.next-sheet { width: min(680px, 100%); margin-inline: auto; padding: clamp(42px, 6vw, 76px); background: var(--paper); clip-path: polygon(0 18px, 3% 0, 6% 18px, 9% 0, 12% 18px, 15% 0, 18% 18px, 21% 0, 24% 18px, 27% 0, 30% 18px, 33% 0, 36% 18px, 39% 0, 42% 18px, 45% 0, 48% 18px, 51% 0, 54% 18px, 57% 0, 60% 18px, 63% 0, 66% 18px, 69% 0, 72% 18px, 75% 0, 78% 18px, 81% 0, 84% 18px, 87% 0, 90% 18px, 93% 0, 96% 18px, 100% 0, 100% 100%, 0 100%); }
.next-sheet > h2 { margin: 0; text-align: center; font-size: var(--heading-size); line-height: 1; letter-spacing: -.045em; }
.next-sheet > p { margin: 20px auto 56px; max-width: 42ch; text-align: center; color: var(--muted); }
.next-group { margin-top: 48px; text-align: center; }
.next-group h3 { margin: 0; font-size: var(--lead-size); }
.next-group p { margin: 12px auto 0; max-width: 46ch; }
.next-sheet .last-checked { margin: 66px 0 0; font-size: var(--small-size); }

.footer { padding: 0 clamp(18px, 5vw, 74px) 80px; background: var(--ground); }
.footer-card { position: relative; display: grid; grid-template-columns: minmax(160px, .45fr) 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; min-height: 440px; padding: clamp(42px, 6vw, 82px); background: var(--soft); clip-path: polygon(0 18px, 4% 0, 8% 18px, 12% 0, 16% 18px, 20% 0, 24% 18px, 28% 0, 32% 18px, 36% 0, 40% 18px, 44% 0, 48% 18px, 52% 0, 56% 18px, 60% 0, 64% 18px, 68% 0, 72% 18px, 76% 0, 80% 18px, 84% 0, 88% 18px, 92% 0, 96% 18px, 100% 0, 100% 100%, 0 100%); }
.footer-card img { width: min(220px, 100%); aspect-ratio: 3 / 4; object-fit: cover; }
.footer-card h2 { max-width: 13ch; margin: 0; font-size: var(--heading-size); line-height: 1; letter-spacing: -.05em; }
.footer-card p { max-width: 52ch; margin: 24px 0 0; }
.footer-card a { display: inline-block; margin-top: 24px; color: var(--blue); font-weight: 800; }
.footer-card small { position: absolute; right: 28px; bottom: 22px; font-size: var(--small-size); }
[dir="rtl"] .footer-card small { right: auto; left: 28px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .62s ease, transform .62s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes slow-drift { from { transform: scale(1.02); } to { transform: scale(1.08); } }

@media (max-width: 860px) {
  :root { --folder-stack-height: 132px; --folder-tab-overhang: 31px; }
  .topbar { grid-template-columns: auto 1fr; }
  .wordmark { grid-column: 1; }
  .language-switch { grid-column: 2; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { order: 1; padding: 100px 0 32px; }
  .hero-photo { position: static; order: 2; width: 100%; height: auto; aspect-ratio: 1600 / 1067; object-fit: contain; animation: none; }
  .hero-scrim { display: none; }
  .hero h1 { max-width: 10ch; }
  .hero-copy p { max-width: 35ch; margin-top: 22px; font-size: var(--body-size); }
  .folder-slot { position: relative; inset: auto; order: 3; }
  .folder { width: 100%; height: 44px; }
  .folder::before { top: -31px; width: 34%; height: 33px; }
  .folder span { top: -31px; display: flex; align-items: center; justify-content: center; width: 34%; height: 32px; font-size: var(--small-size); line-height: 1.15; }
  .folder-blue { bottom: 88px; }
  .folder-blue::before, .folder-blue span { left: 2%; }
  .folder-yellow { bottom: 44px; }
  .folder-yellow::before, .folder-yellow span { left: 32%; }
  .folder-white { bottom: 0; }
  .folder-white::before, .folder-white span { left: 64%; }
  .brief { padding-top: 40px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 24px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; }
  .brief-photo { width: 100%; margin-top: 48px; }
  .brief-photo img, .claim-preview img, .lens-photo img { height: auto; aspect-ratio: auto; object-fit: contain; }
  .claims { grid-template-columns: 1fr; }
  .claim-sheet { transform: rotate(.7deg); }
  .claim-preview { position: static; }
  .lenses { grid-template-columns: 1fr; }
  .lens-photo { padding: 18px; }
  .lens-copy { padding: 54px 22px 80px; }
  .footer-card { grid-template-columns: 150px 1fr; }
}

@media (max-width: 560px) {
  :root { --display-size: clamp(40px, 11.5vw, 52px); --heading-size: 40px; --body-size: 16px; }
  .topbar { padding: 16px; }
  .language-switch a { min-width: 44px; padding-inline: 8px; }
  .hero-copy { width: calc(100% - 36px); padding-top: 96px; }
  .hero h1 { max-width: 9ch; }
  .page-section { padding: 64px 18px; }
  .brief { padding-top: 40px; }
  .facts { gap: 34px 18px; }
  .claims { padding-block: 64px; }
  .claim-sheet { padding: 30px 20px; }
  .claim-row { grid-template-columns: 1fr; gap: 8px; min-height: 104px; }
  .lenses { padding: 0; }
  .lens-copy { padding: 32px 18px 64px; }
  .lens-tabs { gap: 4px 18px; }
  .next-sheet { padding: 48px 24px; }
  .footer { padding-inline: 0; padding-bottom: 0; }
  .footer-card { grid-template-columns: 1fr; padding: 50px 22px 78px; }
  .footer-card img { width: 96px; justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .claim-row { transition: none; }
}
