/* Abu Numay — an architectural frontispiece and a living family archive. */
:root {
  color-scheme: light;
  --ground: #f4efe6;
  --paper: #e9dcc3;
  --ink: #1c1a17;
  --teak: #5a3e2b;
  --green: #14503c;
  --gilt: #b08d3e;
  --muted: #625c52;
  --rule: #cfc4b2;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  --display: "Crimson Pro", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --direction: 1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; overflow-x: clip; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
html[lang="ar"] { --body: "Amiri", "Geeza Pro", "Traditional Arabic", Tahoma, serif; --display: "Amiri", "Geeza Pro", "Traditional Arabic", serif; }
html[dir="rtl"] { --direction: -1; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }
a:hover { text-decoration-color: var(--green); }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; }
::selection { background: var(--green); color: var(--ground); }
.skip { position: fixed; inset-block-start: 12px; inset-inline-start: 20px; z-index: 99; padding: 10px 16px; background: var(--ground); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.wrap { width: min(1400px, calc(100% - 112px)); margin-inline: auto; }
.reading-progress { position: fixed; inset: 0 0 auto; z-index: 50; height: 2px; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--gilt); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .reading-progress span { transform-origin: right; }

/* Navigation is intentionally quiet around the moving artwork. */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 96px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; white-space: nowrap; }
.brand-emblem { display: grid; place-items: center; width: 38px; height: 48px; border: 1px solid var(--gilt); border-radius: 50% 50% 3px 3px; color: var(--green); font-size: 27px; font-family: "Amiri", "Geeza Pro", serif; line-height: 1; transition: background .45s, color .45s; }
.brand:hover .brand-emblem { background: var(--green); border-color: var(--green); color: var(--ground); }
.brand-word { font-size: 29px; font-family: var(--display); line-height: 1.1; }
.brand-sub { display: block; margin-top: 7px; color: var(--muted); font-family: var(--body); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
html[lang="ar"] .brand-sub { font-size: 12px; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-inline-start: auto; font-size: 14px; }
.main-nav a { position: relative; padding-block: 12px; text-decoration: none; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; inset: auto 0 6px; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
html[dir="rtl"] .main-nav a::after { transform-origin: right; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
html[lang="ar"] .main-nav { font-size: 16px; }
.language { font-size: 14px; text-decoration: none; white-space: nowrap; }
.language:hover { text-decoration: underline; }
.header-portal { display: flex; align-items: center; gap: 18px; padding: 11px 17px; border: 1px solid var(--green); color: var(--green); font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .3s, color .3s; }
.header-portal:hover { background: var(--green); color: var(--ground); }
html[lang="ar"] .header-portal { font-size: 15px; }
.arrow { display: inline-block; font-family: Arial, sans-serif; transition: translate .4s var(--ease); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
a:hover .arrow { translate: calc(4px * var(--direction)) -3px; }
.motion-toggle { display: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; white-space: nowrap; }
.motion-ready .motion-toggle { display: inline-flex; }
.motion-icon { position: relative; display: block; width: 12px; height: 12px; }
.motion-icon::before, .motion-icon::after { content: ""; position: absolute; top: 1px; width: 2px; height: 10px; background: currentColor; }
.motion-icon::before { left: 2px; }
.motion-icon::after { right: 2px; }
.motion-toggle[aria-pressed="true"] .motion-icon::before { left: 2px; top: 0; width: 0; height: 0; background: none; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid currentColor; }
.motion-toggle[aria-pressed="true"] .motion-icon::after { display: none; }
.motion-toggle:disabled { cursor: default; opacity: .75; }
html[lang="ar"] .motion-toggle { font-size: 13px; }
.menu-toggle { display: none; border: 0; background: none; width: 44px; height: 44px; padding: 10px; color: var(--ink); align-items: center; justify-content: center; }
.menu-lines { position: relative; width: 21px; height: 13px; border-block: 1px solid currentColor; }
.menu-lines::after { content: ""; position: absolute; inset-inline: 0; top: 5px; border-top: 1px solid currentColor; }

/* Architectural frontispiece: a drawn roshan, halo and measured archive marks. */
.eyebrow { display: flex; align-items: center; gap: 15px; color: var(--green); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 31px; height: 1px; background: var(--gilt); flex-shrink: 0; }
html[lang="ar"] .eyebrow { font-size: 15px; letter-spacing: 0; font-weight: 400; }
.hero { position: relative; isolation: isolate; min-height: min(970px, calc(100svh - 96px)); display: grid; grid-template-columns: 1.13fr 1fr; gap: 25px; align-items: center; padding-block: 66px 82px; }
.hero-atmosphere { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.hero-orbit { position: absolute; inset-inline-end: 1%; inset-block-start: 9%; width: 43%; height: 78%; border: 1px solid rgba(176, 141, 62, .19); border-radius: 50% 50% 0 0; }
.orbit-two { inset-inline-end: 3.5%; inset-block-start: 12%; width: 38%; height: 73%; transform: rotate(5deg); border-color: rgba(90, 62, 43, .12); }
.hero-grid { position: absolute; inset-inline-end: 0; inset-block: 13% 8%; width: 46%; opacity: .15; background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px), linear-gradient(to bottom, var(--rule) 1px, transparent 1px); background-size: 64px 64px; clip-path: polygon(8% 0, 100% 0, 100% 100%, 28% 100%); }
.hero-light { position: absolute; inset-inline-end: 7%; inset-block-start: 18%; width: 28%; aspect-ratio: 1; border-radius: 50%; background: #e5d8bd; opacity: .27; }
.hero-copy { position: relative; z-index: 2; padding-block: 18px; min-width: 0; }
.hero h1 { font-size: clamp(67px, 7.5vw, 116px); letter-spacing: -.055em; margin-top: 32px; max-width: 780px; line-height: .96; }
.hero-line { display: block; }
.hero-line + .hero-line { margin-top: .075em; }
.hero-line:nth-child(2) { color: var(--green); font-style: italic; }
html[lang="ar"] .hero-line:nth-child(2) { font-style: normal; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--green); }
html[lang="ar"] .hero h1 { font-size: clamp(63px, 6.6vw, 104px); line-height: 1.22; letter-spacing: -.025em; margin-top: 25px; }
html[lang="ar"] .hero h1 em { font-style: normal; }
.hero-intro { max-width: 435px; margin-top: 30px; color: var(--teak); font-size: 16px; line-height: 1.9; }
html[lang="ar"] .hero-intro { font-size: 22px; max-width: 480px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 33px; flex-wrap: wrap; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 56px; background: var(--green); color: var(--ground); padding: 17px 23px; text-decoration: none; font-size: 14px; border: 1px solid var(--green); transition: background .4s, box-shadow .4s, translate .4s var(--ease); }
.button:hover { background: #0b3b2c; color: white; box-shadow: 5px 5px 0 var(--gilt); translate: -2px -2px; }
.text-link { position: relative; display: inline-flex; align-items: center; gap: 13px; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--teak); padding-block: 8px; }
.text-link > span { transition: translate .4s var(--ease); }
.text-link:hover > span { translate: 0 4px; }
html[lang="ar"] .button { font-size: 18px; }
html[lang="ar"] .text-link { font-size: 17px; }
.hero-aside { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 28px; }
.hero-aside::before { content: ""; display: block; width: 5px; height: 5px; border: 1px solid var(--gilt); transform: rotate(45deg); }
html[lang="ar"] .hero-aside { font-size: 14px; }
.hero-art { position: relative; align-self: stretch; display: grid; align-items: center; justify-items: center; min-height: 620px; perspective: 1200px; min-width: 0; }
.art-stage { position: relative; width: 100%; transform-style: preserve-3d; }
.roshan { position: relative; z-index: 1; width: 100%; height: auto; max-height: 720px; color: var(--teak); overflow: visible; }
.art-halo { position: absolute; z-index: -1; inset: 12% 12% 8%; border: 1px solid rgba(176, 141, 62, .5); border-radius: 50% 50% 0 0; transform: translate(-10px, -20px); }
.art-halo::after { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(176, 141, 62, .18); border-radius: inherit; }
.art-coordinate { position: absolute; z-index: 2; color: var(--teak); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; }
.c-one { inset-inline-start: 3%; top: 36%; }
.c-two { inset-inline-end: 2%; bottom: 22%; }
html[lang="ar"] .art-coordinate { font-size: 12px; letter-spacing: 0; }
.art-caption { position: absolute; bottom: 0; display: flex; align-items: center; gap: 13px; font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.art-caption::before { content: ""; height: 1px; width: 38px; background: var(--gilt); }
html[lang="ar"] .art-caption { font-size: 13px; letter-spacing: 0; }
.hero-index { position: absolute; bottom: 25px; inset-inline-start: 0; display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 12px; letter-spacing: .14em; }
.hero-index span { width: 64px; height: 1px; background: var(--rule); }
html[lang="ar"] .hero-index { font-size: 12px; letter-spacing: 0; }
.heritage-ribbon { display: flex; align-items: center; justify-content: space-around; gap: 36px; overflow: hidden; padding: 24px 36px; border-block: 1px solid var(--rule); color: var(--teak); font-size: 12px; line-height: 1.2; letter-spacing: .19em; text-transform: uppercase; }
.heritage-ribbon span { display: inline-flex; align-items: center; gap: 36px; flex-shrink: 0; }
.heritage-ribbon span::after { content: ""; display: block; width: 4px; height: 4px; border: 1px solid var(--gilt); transform: rotate(45deg); }
html[lang="ar"] .heritage-ribbon { font-size: 15px; letter-spacing: 0; }

/* A single continuous history thread. The aside anchors the long reading experience. */
.history-section { position: relative; padding-block: 125px 115px; background: var(--ink); color: var(--ground); overflow: clip; }
.history-section::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7%; right: 7%; border-inline: 1px solid rgba(244, 239, 230, .045); pointer-events: none; }
.history-intro { position: relative; display: grid; grid-template-columns: .45fr 1fr; column-gap: 70px; }
.history-section .eyebrow { color: #c4b797; }
.history-intro > .eyebrow { align-self: start; padding-top: 10px; }
.history-intro h2 { max-width: 800px; font-size: clamp(48px, 6vw, 89px); letter-spacing: -.04em; }
.history-intro .section-lead { grid-column: 2; color: #c2b7a6; margin-top: 30px; max-width: 640px; font-size: 17px; }
html[lang="ar"] .history-intro h2 { letter-spacing: 0; font-size: clamp(48px, 5.4vw, 82px); }
html[lang="ar"] .history-intro .section-lead { font-size: 22px; }
.history-layout { position: relative; display: grid; grid-template-columns: .45fr 1fr; gap: 70px; align-items: start; margin-top: 110px; }
.history-aside { position: sticky; top: 90px; padding-top: 20px; }
.history-monogram { color: #c1a66d; font-family: "Amiri", "Geeza Pro", serif; font-size: clamp(65px, 7.6vw, 118px); line-height: 1.3; opacity: .78; }
.history-aside-copy { max-width: 220px; margin-top: 27px; color: #afa493; font-size: 14px; line-height: 1.9; }
html[lang="ar"] .history-aside-copy { font-size: 18px; }
.history-current { display: inline-block; min-width: 100px; margin-top: 45px; padding-top: 20px; border-top: 1px solid #59503f; color: #b6a07a; font-family: var(--display); font-size: 70px; font-variant-numeric: tabular-nums; line-height: 1; }
.timeline { position: relative; min-width: 0; padding-inline-start: 48px; }
.timeline-track { position: absolute; inset-block: 15px 20px; inset-inline-start: 0; width: 1px; background: #494135; }
.timeline-track > span { display: block; width: 100%; height: 100%; background: #bfa373; transform: scaleY(0); transform-origin: top; }
.milestone { position: relative; display: grid; grid-template-columns: 125px 1fr; gap: 28px; min-height: 280px; padding-block: 0 76px; margin-bottom: 54px; border-bottom: 1px solid rgba(244, 239, 230, .13); }
.milestone:last-child { margin-bottom: 0; padding-bottom: 28px; border-bottom: 0; }
.milestone::before { content: ""; position: absolute; width: 7px; height: 7px; inset-inline-start: -51px; top: 11px; border: 1px solid #b59b70; background: var(--ink); transform: rotate(45deg); transition: background .5s, box-shadow .5s; }
.milestone.is-current::before { background: #c3a76e; box-shadow: 0 0 0 5px rgba(193, 166, 109, .13); }
.milestone-date { display: flex; flex-direction: column; gap: 6px; padding-top: 1px; color: #c3a76e; font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.milestone-date small { font-size: 12px; color: #c4bbab; }
html[lang="ar"] .milestone-date { font-size: 16px; }
html[lang="ar"] .milestone-date small { font-size: 13px; }
.milestone-copy { min-width: 0; }
.milestone-copy h3 { font-size: clamp(32px, 3vw, 44px); letter-spacing: -.02em; }
.milestone-copy p { margin-top: 20px; color: #c8bdad; font-size: 16px; line-height: 1.95; }
html[lang="ar"] .milestone-copy h3 { font-size: clamp(32px, 2.8vw, 44px); letter-spacing: 0; }
html[lang="ar"] .milestone-copy p { font-size: 22px; line-height: 1.85; }
.source-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 23px; color: #c9b68d; font-size: 14px; text-decoration: none; border-bottom: 1px solid #6b5d43; padding-bottom: 4px; }
.source-link > span { display: inline-block; font-family: Arial, sans-serif; transition: translate .4s var(--ease); }
html[dir="rtl"] .source-link > span { transform: scaleX(-1); }
.source-link:hover > span { translate: calc(3px * var(--direction)) -3px; }
html[lang="ar"] .source-link { font-size: 14px; }
.milestone-number { position: absolute; inset-inline-end: 0; bottom: 18px; color: #ab9676; font-size: 12px; letter-spacing: .16em; }
.milestone:last-child .milestone-number { bottom: 0; }
.history-section a:focus-visible { outline-color: #c3a76e; }

/* The family line reads across the page; on a phone it follows a vertical thread. */
.lineage-section { padding-block: 115px 100px; }
.section-heading { display: grid; grid-template-columns: .45fr 1fr; gap: 70px; align-items: start; }
.section-heading h2, .lineage-section h2, .sources-section h2 { font-size: clamp(42px, 4.6vw, 69px); letter-spacing: -.035em; }
html[lang="ar"] .section-heading h2, html[lang="ar"] .lineage-section h2 { font-size: clamp(43px, 4.2vw, 65px); letter-spacing: 0; }
.section-lead { max-width: 650px; margin-top: 27px; color: var(--teak); font-size: 17px; line-height: 1.95; }
html[lang="ar"] .section-lead { font-size: 22px; }
.lineage-chain { display: flex; list-style: none; margin: 67px 0 0; padding: 0; border-top: 1px solid var(--gilt); }
.lineage-node { position: relative; flex: 1 1 0; min-width: 0; padding-top: 29px; padding-inline-end: 27px; }
.lineage-node::before { content: ""; position: absolute; inset-inline-start: 0; top: -4px; width: 7px; height: 7px; border: 1px solid var(--gilt); background: var(--ground); border-radius: 50%; }
.lineage-index { display: block; margin-bottom: 21px; color: var(--muted); font-family: Georgia, serif; font-size: 12px; letter-spacing: .1em; }
.lineage-node h3 { font-size: clamp(25px, 2.3vw, 35px); line-height: 1.2; letter-spacing: -.02em; }
.lineage-node p { margin-top: 12px; max-width: 250px; font-size: 14px; line-height: 1.8; color: var(--teak); }
html[lang="ar"] .lineage-node h3 { font-size: clamp(27px, 2.2vw, 36px); letter-spacing: 0; }
html[lang="ar"] .lineage-node p { font-size: 18px; }
.lineage-node .source-link { color: var(--green); border-color: var(--rule); margin-top: 18px; }
.lineage-note { max-width: 900px; margin-top: 46px; padding-inline-start: 20px; border-inline-start: 1px solid var(--gilt); color: var(--muted); font-size: 14px; line-height: 1.9; }
html[lang="ar"] .lineage-note { font-size: 18px; }
.sources-section { padding-block: 0 88px; }
.sources-details { border-block: 1px solid var(--rule); }
.sources-details summary { position: relative; display: block; padding-block: 24px; padding-inline-end: 40px; font-size: 12px; color: var(--green); cursor: pointer; list-style: none; }
.sources-details summary > span { display: none; }
.sources-details summary::-webkit-details-marker { display: none; }
.sources-details summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 16px; font-size: 23px; color: var(--gilt); }
.sources-details[open] summary::after { content: "−"; }
html[lang="ar"] .sources-details summary { font-size: 18px; }
.source-list { margin: 0; padding: 0 0 30px; padding-inline-start: 24px; columns: 2; column-gap: 65px; }
.source-list li { break-inside: avoid; padding-block: 10px 13px; padding-inline-start: 10px; font-size: 12px; }
.source-list li::marker { color: var(--gilt); font-family: Georgia, serif; font-size: 12px; }
.source-list a { color: var(--green); overflow-wrap: anywhere; }
.source-list p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.8; }
html[lang="ar"] .source-list li { font-size: 18px; }
html[lang="ar"] .source-list p { font-size: 16px; }

/* The present follows the historical archive. */
.section { padding-block: 100px; border-top: 1px solid var(--rule); }
.section h2 { font-size: clamp(42px, 4.6vw, 69px); letter-spacing: -.035em; }
html[lang="ar"] .section h2 { letter-spacing: 0; font-size: clamp(43px, 4.2vw, 65px); }
.purpose { position: relative; }
.purpose .section-heading { align-items: center; }
.purpose-note { font-family: var(--display); font-size: 33px; line-height: 1.3; max-width: 275px; color: var(--teak); margin-top: 70px; }
.purpose-note span { display: block; color: var(--green); }
.purpose-mark { display: block; margin-top: 27px; width: 50px; height: 1px; background: var(--gilt); }
.steps { margin-top: 65px; border-top: 1px solid var(--teak); }
.step { position: relative; display: grid; grid-template-columns: .15fr .42fr 1fr; gap: 38px; align-items: baseline; padding-block: 35px; border-bottom: 1px solid var(--rule); }
.step-number { font-family: Georgia, serif; color: var(--green); font-size: 12px; }
.step h3 { font-size: 34px; letter-spacing: -.02em; }
html[lang="ar"] .step h3 { font-size: 34px; letter-spacing: 0; }
.step p { color: var(--teak); font-size: 16px; max-width: 500px; line-height: 1.9; }
html[lang="ar"] .step p { font-size: 21px; }
.records { display: grid; grid-template-columns: 1fr 1fr; gap: 95px; align-items: center; }
.record-illustration { position: relative; min-height: 425px; display: flex; align-items: center; justify-content: center; background: var(--paper); overflow: hidden; }
.record-illustration::before, .record-illustration::after { content: ""; position: absolute; inset: 25px; border: 1px solid var(--gilt); opacity: .45; pointer-events: none; }
.record-illustration::after { inset: 31px; border-color: var(--teak); opacity: .22; }
.record-sheet { width: 62%; max-width: 330px; padding-block: 26px; transform: rotate(-4deg); border: 1px solid var(--teak); background: var(--ground); box-shadow: 14px 17px 0 0 #d6c5a5; }
.record-sheet-head { padding: 0 22px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--teak); }
.record-sheet-mark { width: 30px; height: 38px; flex-shrink: 0; border: 1px solid var(--green); border-radius: 50% 50% 3px 3px; display: grid; place-items: center; font-size: 22px; color: var(--green); font-family: "Amiri", serif; }
.record-sheet-name { color: var(--teak); font-size: 12px; }
.record-line { height: 32px; margin-inline: 22px; border-bottom: 1px solid #d5cbbd; position: relative; }
.record-line:nth-child(2)::after, .record-line:nth-child(4)::after { content: ""; position: absolute; inset-inline-start: 0; width: 44%; bottom: 8px; border-top: 1px solid #b5a68d; }
.record-line:nth-child(4)::after { width: 63%; }
.record-seal { width: 52px; height: 52px; border: 1px solid var(--green); border-radius: 50%; margin: 24px 22px 0; display: grid; place-items: center; color: var(--green); font-size: 18px; font-family: var(--display); }
.records h2 { margin-top: 26px; }
.record-details { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--green); letter-spacing: .03em; }
html[lang="ar"] .record-details { font-size: 15px; letter-spacing: 0; }
.record-details span { display: flex; gap: 9px; align-items: center; }
.record-details span::before { content: ""; width: 4px; height: 4px; background: var(--gilt); border-radius: 50%; }
.portal-section { position: relative; isolation: isolate; background: var(--green); color: var(--ground); padding-block: 100px; overflow: hidden; }
.portal-section::before, .portal-section::after { content: ""; position: absolute; z-index: -1; width: 380px; height: 600px; inset-inline-end: -40px; top: -90px; border: 1px solid rgba(244, 239, 230, .1); border-radius: 50% 50% 0 0; transform: rotate(18deg); }
.portal-section::after { inset-inline-end: -15px; top: -70px; }
.portal-inner { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.portal-section .eyebrow { color: #d4ddce; }
.portal-section h2 { font-size: clamp(47px, 5.4vw, 78px); margin-top: 24px; letter-spacing: -.04em; max-width: 760px; }
html[lang="ar"] .portal-section h2 { letter-spacing: 0; }
.portal-section p { color: #d8dfd3; margin-top: 20px; max-width: 550px; font-size: 16px; line-height: 1.9; }
html[lang="ar"] .portal-section p { font-size: 22px; }
.portal-section .button { background: var(--ground); border-color: var(--ground); color: var(--green); flex-shrink: 0; min-width: 230px; }
.portal-section .button:hover { background: var(--paper); }
.portal-section a:focus-visible { outline-color: var(--ground); }
.site-footer { padding-block: 42px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-name { font-family: var(--display); font-size: 28px; }
.footer-note { display: block; font-family: var(--body); font-size: 12px; color: var(--muted); margin-top: 6px; }
html[lang="ar"] .footer-note { font-size: 14px; }
.footer-links { display: flex; align-items: center; gap: 25px; font-size: 14px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
html[lang="ar"] .footer-links { font-size: 15px; }
.privacy-main { max-width: 770px; margin-inline: auto; padding-block: 85px 110px; }
.privacy-main h1 { font-size: clamp(48px, 6vw, 76px); margin-top: 25px; letter-spacing: -.035em; }
html[lang="ar"] .privacy-main h1 { letter-spacing: 0; }
.privacy-main .intro { font-size: 20px; line-height: 1.8; color: var(--teak); margin-top: 25px; }
.privacy-main section { margin-top: 45px; padding-top: 28px; border-top: 1px solid var(--rule); }
.privacy-main h2 { font-size: 34px; margin-bottom: 15px; }
.privacy-main section p { font-size: 16px; color: var(--teak); }
html[lang="ar"] .privacy-main section p { font-size: 22px; }
.privacy-main .return { margin-top: 45px; }

/* Motion is opt-out progressive enhancement. Without JS all text and artwork are visible. */
[data-motion="on"] .reveal { opacity: 0; transform: translateY(38px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
[data-motion="on"] .reveal.is-visible { opacity: 1; transform: none; }
[data-motion="on"] .reveal:focus-within { opacity: 1; transform: none; transition-delay: 0ms; }
[data-motion="on"] .hero-copy > .eyebrow { animation: enter-soft 1.1s var(--ease) .1s both; }
[data-motion="on"] .hero-line { animation: enter-title 1.6s var(--ease) both; }
[data-motion="on"] .hero-line:nth-child(1) { animation-delay: .18s; }
[data-motion="on"] .hero-line:nth-child(2) { animation-delay: .32s; }
[data-motion="on"] .hero-line:nth-child(3) { animation-delay: .46s; }
[data-motion="on"] .hero-intro { animation: enter-soft 1.4s var(--ease) .55s both; }
[data-motion="on"] .hero-actions { animation: enter-soft 1.4s var(--ease) .7s both; }
[data-motion="on"] .hero-aside, [data-motion="on"] .hero-index { animation: enter-soft 1.4s var(--ease) .9s both; }
[data-motion="on"] .roshan { animation: reveal-architecture 2s var(--ease) .15s both; }
[data-motion="on"] .drawn-line { stroke-dasharray: 1; animation: draw-line 3.5s var(--ease) var(--draw-delay, .4s) both; }
[data-motion="on"] .art-halo { animation: arch-arrival 2.6s var(--ease) .25s both; }
[data-motion="on"] .art-coordinate, [data-motion="on"] .art-caption { animation: enter-soft 1.4s var(--ease) 1.4s both; }
[data-motion="on"] .hero-orbit { animation: orbit-breathe 16s ease-in-out infinite alternate; }
[data-motion="on"] .orbit-two { animation-delay: -8s; animation-direction: alternate-reverse; }
[data-motion="on"] .hero-light { animation: light-breathe 12s ease-in-out infinite alternate; }
[data-motion="on"] .art-stage { transform: translate3d(var(--pointer-x, 0px), calc(var(--art-lift, 0px) + var(--pointer-y, 0px)), 0) rotateY(var(--pointer-turn, 0deg)); }
[data-motion="on"] .hero-grid { transform: translateY(var(--grid-lift, 0px)); }
[data-motion="on"] .record-sheet { transform: translateY(var(--record-lift, 0px)) rotate(var(--record-turn, -4deg)); }
[data-motion="on"] .lineage-node.is-visible::before { animation: lineage-point .9s var(--ease) var(--reveal-delay, 0ms) both; }
[data-motion="on"] .heritage-ribbon span::after { animation: diamond-turn 8s ease-in-out infinite; animation-delay: var(--ribbon-delay, 0s); }
@keyframes enter-soft { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes enter-title { from { opacity: 0; transform: translateY(55px) rotate(1.5deg); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(-20% -5% -25% -5%); } }
@keyframes reveal-architecture { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes arch-arrival { from { opacity: 0; transform: translate(15px, 20px) rotate(-4deg); } to { opacity: 1; transform: translate(-10px, -20px); } }
@keyframes orbit-breathe { from { translate: 0 0; rotate: -2deg; } to { translate: 0 -16px; rotate: 3deg; } }
@keyframes light-breathe { from { scale: .92; opacity: .22; } to { scale: 1.12; opacity: .37; } }
@keyframes lineage-point { 0% { box-shadow: 0 0 0 0 rgba(176, 141, 62, .25); background: var(--ground); } 55% { box-shadow: 0 0 0 8px rgba(176, 141, 62, .12); } 100% { box-shadow: 0 0 0 0 transparent; background: var(--gilt); } }
@keyframes diamond-turn { 0%, 72%, 100% { transform: rotate(45deg); } 86% { transform: rotate(225deg); } }

@media (min-width: 1600px) {
  .hero { min-height: 910px; }
  .hero-art { min-height: 715px; }
  .roshan { max-height: 750px; }
}
@media (max-width: 1200px) {
  .wrap { width: calc(100% - 72px); }
  .header-inner { gap: 21px; }
  .main-nav { gap: 21px; }
  .motion-label { display: none; }
  .motion-toggle { width: 44px; }
  .hero { gap: 15px; padding-block: 60px 75px; min-height: 800px; }
  .hero-art { min-height: 570px; }
  .hero h1 { font-size: clamp(68px, 8.2vw, 96px); }
  html[lang="ar"] .hero h1 { font-size: clamp(63px, 7.4vw, 88px); }
  .hero-actions { gap: 22px; }
  .hero .button { padding-inline: 19px; gap: 24px; }
  .section-heading, .history-intro, .history-layout { grid-template-columns: .4fr 1fr; gap: 48px; }
  .records { gap: 62px; }
  .milestone { grid-template-columns: 105px 1fr; gap: 22px; }
}
@media (max-width: 1000px) {
  .header-portal { display: none; }
  .main-nav { margin-inline-start: auto; }
  .hero { grid-template-columns: 1.2fr 1fr; min-height: 735px; }
  .hero-art { min-height: 500px; }
  .hero h1 { font-size: 77px; }
  html[lang="ar"] .hero h1 { font-size: 70px; }
  .hero-intro { font-size: 16px; }
  html[lang="ar"] .hero-intro { font-size: 21px; }
  .history-intro, .history-layout, .section-heading { grid-template-columns: .34fr 1fr; gap: 35px; }
  .history-monogram { font-size: 73px; }
  .timeline { padding-inline-start: 31px; }
  .milestone::before { inset-inline-start: -34px; }
  .milestone { grid-template-columns: 1fr; gap: 15px; padding-bottom: 53px; }
  .milestone-date { flex-direction: row; align-items: baseline; gap: 14px; }
  .lineage-node { padding-inline-end: 20px; }
  .lineage-node h3 { font-size: 27px; }
  .lineage-node p { font-size: 14px; }
  .portal-inner { gap: 40px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 44px); }
  .header-inner { min-height: 84px; gap: 15px; flex-wrap: wrap; }
  .brand { margin-inline-end: auto; gap: 10px; }
  .brand-word { font-size: 27px; }
  .brand-emblem { width: 32px; height: 41px; font-size: 24px; }
  .brand-sub { font-size: 12px; }
  .language { font-size: 14px; padding-block: 10px; }
  .motion-toggle { width: 44px; }
  .nav-ready .menu-toggle { display: flex; }
  .main-nav { order: 5; flex-basis: 100%; margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 20px; }
  .nav-ready .main-nav { display: none; }
  .nav-ready .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 8px; border-top: 1px solid var(--rule); font-size: 14px; }
  .main-nav a::after { display: none; }
  .main-nav .mobile-portal { display: flex; align-items: center; justify-content: space-between; }
  .hero { grid-template-columns: 1fr; gap: 12px; padding-block: 54px 42px; min-height: 0; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(62px, 12.4vw, 92px); margin-top: 25px; max-width: 650px; }
  html[lang="ar"] .hero h1 { font-size: clamp(61px, 10.5vw, 87px); line-height: 1.22; }
  .hero-intro { max-width: 510px; font-size: 16px; margin-top: 26px; }
  html[lang="ar"] .hero-intro { font-size: 22px; max-width: 540px; }
  .hero-actions { margin-top: 28px; gap: 23px; }
  .hero-aside { margin-top: 23px; }
  .hero-art { width: min(100%, 500px); justify-self: center; min-height: 0; padding-block: 0 25px; margin-block: 8px 23px; }
  .art-stage { width: 100%; }
  .roshan { max-height: 520px; width: 100%; }
  .art-caption { bottom: 0; font-size: 12px; }
  .hero-index { bottom: 13px; font-size: 12px; }
  .hero-orbit { top: auto; bottom: 7%; width: 80%; height: 45%; inset-inline-end: 8%; }
  .orbit-two { bottom: 8%; width: 73%; height: 42%; inset-inline-end: 11%; }
  .hero-grid { top: auto; bottom: 6%; height: 40%; width: 100%; }
  .hero-light { top: auto; bottom: 18%; width: 60%; inset-inline-end: 20%; }
  .heritage-ribbon { padding: 20px 22px; gap: 25px; justify-content: flex-start; font-size: 12px; }
  .heritage-ribbon span { gap: 25px; }
  .history-section { padding-block: 75px 68px; }
  .history-intro { display: block; }
  .history-intro h2 { font-size: clamp(48px, 9.5vw, 74px); margin-top: 25px; }
  html[lang="ar"] .history-intro h2 { font-size: clamp(47px, 8.5vw, 70px); }
  .history-intro .section-lead { margin-top: 25px; font-size: 16px; }
  .history-layout { display: block; margin-top: 49px; }
  .history-aside { position: relative; top: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 25px; padding-block: 0 33px; margin-bottom: 36px; border-bottom: 1px solid rgba(244, 239, 230, .14); }
  .history-monogram { font-size: 69px; }
  .history-aside-copy { margin-top: 0; max-width: 200px; font-size: 14px; }
  .history-current { display: none; }
  .timeline { padding-inline-start: 28px; }
  .milestone { grid-template-columns: 1fr; min-height: 0; padding-block: 0 47px; margin-bottom: 34px; gap: 16px; }
  .milestone::before { inset-inline-start: -31px; top: 8px; }
  .milestone-copy h3 { font-size: 38px; }
  .milestone-copy p { font-size: 16px; }
  .milestone-date { font-size: 12px; }
  .milestone-date small { font-size: 12px; }
  .lineage-section { padding-block: 72px 65px; }
  .section-heading { display: block; }
  .section-heading > div:last-child { margin-top: 25px; }
  .section-heading h2, .lineage-section h2 { font-size: 48px; }
  html[lang="ar"] .section-heading h2, html[lang="ar"] .lineage-section h2 { font-size: 47px; }
  .section-lead { font-size: 16px; margin-top: 23px; }
  .lineage-chain { display: block; border-top: 0; border-inline-start: 1px solid var(--gilt); margin-top: 38px; margin-inline-start: 4px; }
  .lineage-node { padding: 0; padding-inline-start: 28px; padding-block: 0 33px; display: grid; grid-template-columns: 30px 1fr; gap: 8px 15px; }
  .lineage-node:last-child { padding-bottom: 0; }
  .lineage-node::before { inset-inline-start: -4px; top: 8px; }
  .lineage-index { grid-row: span 2; margin: 0; padding-top: 5px; font-size: 12px; }
  .lineage-node h3 { font-size: 33px; }
  .lineage-node p { grid-column: 2; margin: 0; font-size: 14px; max-width: 100%; }
  .lineage-node .source-link { grid-column: 2; justify-self: start; margin-top: 3px; }
  .lineage-note { margin-top: 32px; font-size: 14px; }
  .sources-section { padding-block: 0 60px; }
  .source-list { columns: 1; }
  .section { padding-block: 72px; }
  .section h2 { font-size: 48px; max-width: 590px; }
  html[lang="ar"] .section h2 { font-size: 47px; }
  .purpose-note { display: none; }
  .steps { margin-top: 40px; }
  .step { grid-template-columns: 32px 1fr; gap: 9px 20px; padding-block: 27px; }
  .step-number { grid-row: span 2; align-self: start; padding-top: 6px; }
  .step h3 { font-size: 32px; }
  .step p { grid-column: 2; font-size: 16px; }
  .records { display: flex; flex-direction: column; align-items: stretch; gap: 40px; }
  .record-illustration { min-height: 390px; order: 2; }
  .records h2 { margin-top: 22px; }
  .record-sheet { max-width: 280px; }
  .portal-section { padding-block: 66px; }
  .portal-inner { display: block; }
  .portal-section h2 { font-size: 51px; }
  .portal-section p { font-size: 16px; }
  .portal-section .button { margin-top: 30px; min-width: 230px; }
  .footer-inner { align-items: flex-start; }
  .footer-links { gap: 18px; flex-wrap: wrap; max-width: 200px; justify-content: flex-end; }
  .site-footer { padding-block: 30px; }
  .privacy-main { padding-block: 55px 75px; }
  .privacy-main h1 { font-size: 55px; }
  .privacy-main .intro { font-size: 19px; }
}
@media (min-width: 801px) { .main-nav .mobile-portal { display: none; } }
@media (max-width: 420px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { gap: 10px; }
  .brand-sub { display: none; }
  .brand-word { font-size: 25px; }
  .hero h1 { font-size: clamp(54px, 14.6vw, 64px); }
  html[lang="ar"] .hero h1 { font-size: clamp(53px, 14vw, 61px); }
  .hero-actions { align-items: flex-start; gap: 17px; }
  .hero .button { font-size: 12px; padding-inline: 16px; gap: 23px; }
  html[lang="ar"] .hero .button { font-size: 17px; }
  .hero .text-link { font-size: 12px; }
  html[lang="ar"] .hero .text-link { font-size: 15px; }
  .hero-art { margin-top: 15px; }
  .roshan { max-height: 415px; }
  .history-monogram { font-size: 62px; }
  .history-aside-copy { max-width: 150px; }
  html[lang="ar"] .history-aside-copy { font-size: 16px; }
  .history-intro h2, .section h2, .lineage-section h2 { font-size: 43px; }
  html[lang="ar"] .history-intro h2, html[lang="ar"] .section h2, html[lang="ar"] .lineage-section h2 { font-size: 43px; }
  .milestone-copy h3 { font-size: 33px; }
  .milestone-copy p { font-size: 16px; }
  .footer-inner { flex-direction: column; gap: 21px; }
  .footer-links { max-width: 100%; justify-content: flex-start; }
  .record-illustration { min-height: 355px; }
  .portal-section h2 { font-size: 45px; }
}

/* Pausing stops ornaments and interactions immediately. */
[data-motion="off"] { scroll-behavior: auto; }
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; transition: none !important; }
[data-motion="off"] .reveal { opacity: 1; transform: none; }
[data-motion="off"] .reading-progress { display: none; }
[data-motion="off"] .drawn-line { stroke-dasharray: none; stroke-dashoffset: 0; }
[data-motion="off"] a:hover .arrow, [data-motion="off"] .text-link:hover > span, [data-motion="off"] .source-link:hover > span, [data-motion="off"] .button:hover { translate: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .art-stage, .hero-grid { transform: none !important; }
  .drawn-line { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  a:hover .arrow, .text-link:hover > span, .source-link:hover > span, .button:hover { translate: none; }
}
@media print {
  .site-header, .site-footer, .hero-art, .hero-actions, .hero-atmosphere, .portal-section, .record-illustration, .reading-progress, .heritage-ribbon, .history-aside { display: none; }
  .wrap { width: 100%; }
  .hero, .section, .history-section, .lineage-section { display: block; min-height: 0; padding-block: 25px; }
  .history-section { background: white; color: black; }
  .history-intro, .history-layout { display: block; }
  .history-intro p, .milestone-copy p { color: #333; }
  .hero h1 { font-size: 48px; }
  .reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
