/* 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: auto; 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; }
/* Arabic display sits in Amiri Bold, as a deed heading would; English keeps Crimson's lighter cut. */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] .brand-word, html[lang="ar"] .roundel h3 { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::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; }
/* The khatm: one oval seal, green on cream inside a hairline gilt ring. It is the whole mark. */
.brand-emblem { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--gilt); border-radius: 50%; background: var(--ground); box-shadow: 0 0 0 3px var(--ground), 0 0 0 4px var(--gilt); color: var(--green); font-size: 25px; font-weight: 700; font-family: "Amiri", "Geeza Pro", serif; line-height: 1; padding-bottom: 3px; 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; }

/* Inherited light: the hero is one painted room. The interior wall carries the copy, the lattice window fills the art column, and the lit floor runs toward the reader. */
.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: start; padding-block: 58px 84px; }
.hero-atmosphere { position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; overflow: hidden; pointer-events: none; background: var(--ground); }
.light-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.light-canvas[hidden] { display: none; }
.hero-copy { position: relative; z-index: 2; padding-block: 22px 0; min-width: 0; }
.hero h1 { font-size: clamp(67px, 7.5vw, 116px); letter-spacing: -.055em; margin-top: 26px; 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(58px, 6.1vw, 96px); line-height: 1.24; letter-spacing: 0; margin-top: 25px; }
html[lang="ar"] .hero h1 em { font-style: normal; }
.hero-intro { max-width: 435px; margin-top: 26px; 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: 28px; 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: 24px; }
.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; grid-template-rows: 2% 79% 1fr; justify-items: center; min-height: 660px; min-width: 0; }
.light-window { position: relative; grid-row: 2; height: 100%; max-width: 100%; aspect-ratio: .82; }
.light-fallback { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--teak); }
.hero.is-lit .light-fallback { display: none; }
.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; }
/* The deed heading band: a narrow ink strip between two hairline gilt rules, never scrolled under a control. */
.heritage-ribbon { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; overflow: hidden; padding: 19px 36px; background: var(--ink); border-block: 1px solid var(--gilt); color: var(--paper); font-family: var(--display); font-size: 15px; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; }
.heritage-ribbon::before { content: ""; position: absolute; inset: 4px 0; border-block: 1px solid var(--gilt); opacity: .55; pointer-events: none; }
.heritage-ribbon span { display: inline-flex; align-items: center; gap: 30px; flex-shrink: 0; padding-inline-end: 30px; }
.heritage-ribbon span::after { content: ""; display: block; width: 5px; height: 5px; border: 1px solid var(--gilt); transform: rotate(45deg); }
.heritage-ribbon span:last-child { padding-inline-end: 0; }
.heritage-ribbon span:last-child::after { display: none; }
html[lang="ar"] .heritage-ribbon { font-size: 21px; font-weight: 700; letter-spacing: 0; text-transform: none; padding-block: 15px; }

/* 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; }
.history-intro .section-lead > p { line-height: inherit; }
html[lang="ar"] .history-intro h2 { letter-spacing: 0; font-size: clamp(46px, 5vw, 76px); }
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: flex; align-items: baseline; gap: 14px; 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; }
.history-current small { font-family: var(--body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9d917f; }
html[lang="ar"] .history-current small { font-size: 15px; letter-spacing: 0; text-transform: none; }
/* On phones the chapter counter travels with the reader instead of living in the aside. */
.history-chapter { display: none; }
.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(30px, 2.6vw, 40px); font-weight: 700; letter-spacing: 0; }
html[lang="ar"] .milestone-copy p { font-size: 22px; line-height: 1.85; }
html[lang="ar"] .milestone-date > span { font-family: var(--display); font-weight: 700; font-size: 19px; }
/* Source notes open in place beside the claim they support. The external link is inside the note. */
.source-note { margin-top: 22px; max-width: 560px; }
.source-note summary { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; list-style: none; cursor: pointer; color: #c9b68d; font-size: 14px; }
.source-note summary::-webkit-details-marker { display: none; }
.source-note-label { border-bottom: 1px solid #6b5d43; padding-bottom: 3px; transition: border-color .3s; }
.source-note summary:hover .source-note-label { border-color: #c9b68d; }
.source-note-mark { position: relative; width: 11px; height: 11px; flex-shrink: 0; }
.source-note-mark::before, .source-note-mark::after { content: ""; position: absolute; background: var(--gilt); transition: transform .4s var(--ease); }
.source-note-mark::before { left: 0; top: 5px; width: 11px; height: 1px; }
.source-note-mark::after { left: 5px; top: 0; width: 1px; height: 11px; }
.source-note[open] .source-note-mark::after { transform: scaleY(0); }
.source-note-body { margin-top: 14px; padding: 16px 20px; border-inline-start: 1px solid var(--gilt); background: rgba(244, 239, 230, .045); font-size: 14px; line-height: 1.8; }
.source-note-kind { display: block; margin-bottom: 6px; color: #ab9676; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.source-note-body a { color: #e6d9bd; text-decoration-color: #6b5d43; overflow-wrap: anywhere; }
.source-note-body a:hover { text-decoration-color: #e6d9bd; }
.source-note-body p { margin-top: 8px; color: #bfb3a1; font-size: 14px; line-height: 1.8; }
html[lang="ar"] .source-note summary, html[lang="ar"] .source-note-body, html[lang="ar"] .source-note-body p { font-size: 17px; }
html[lang="ar"] .source-note-kind { font-size: 13px; letter-spacing: 0; text-transform: none; }
[data-motion="on"] .source-note[open] .source-note-body { animation: note-in .5s var(--ease) both; }
@keyframes note-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.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; }
/* Epigraphic roundels on a thread. Between houses the thread is dotted: those generations are not drawn. */
.lineage-chain { --roundel: clamp(98px, 8vw, 128px); display: flex; align-items: flex-start; list-style: none; margin: 64px 0 0; padding: 0; }
.lineage-node { position: relative; display: grid; grid-template-columns: minmax(22px, 1fr) var(--roundel); grid-template-rows: auto auto auto; flex: 1 1 0; min-width: 0; align-items: start; }
.lineage-node:first-child { grid-template-columns: var(--roundel); flex: 0 0 auto; }
.lineage-gap { position: relative; display: block; grid-column: 1; grid-row: 1; height: 1px; margin-top: calc(var(--roundel) / 2); border-top: 2px dotted var(--gilt); }
.lineage-gap > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lineage-node > .roundel, .lineage-node > p, .lineage-node > .lineage-references { grid-column: -2 / -1; }
.roundel { position: relative; display: grid; place-items: center; grid-row: 1; width: var(--roundel); height: var(--roundel); padding: 10px; border: 1px solid var(--gilt); border-radius: 50%; background: var(--ground); text-align: center; }
.roundel::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--teak); border-radius: 50%; opacity: .42; }
.roundel--dashed, .roundel--dashed::before { border-style: dashed; }
.roundel h3 { font-size: clamp(14px, 1.15vw, 17px); line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
html[lang="ar"] .roundel h3 { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.35; letter-spacing: 0; }
.lineage-index { position: absolute; top: -9px; inset-inline-end: 8px; padding: 0 6px; background: var(--ground); color: var(--muted); font-family: var(--display); font-size: 12px; letter-spacing: .1em; }
html[lang="ar"] .lineage-index { font-size: 14px; letter-spacing: 0; }
.lineage-node > p { width: var(--roundel); margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--teak); text-align: center; }
html[lang="ar"] .lineage-node > p { font-size: 16px; }
.lineage-node > .lineage-references { position: relative; width: var(--roundel); margin-top: 6px; display: flex; flex-direction: column; align-items: center; }
.lineage-node .source-note summary { color: var(--green); font-size: 13px; min-height: 40px; }
.lineage-node .source-note-label { border-color: var(--rule); }
/* On the wide thread the note floats as a paper slip beneath its roundel; on the vertical thread it flows in place. */
.lineage-node .source-note-body { position: absolute; top: 100%; inset-inline-start: 50%; transform: translateX(calc(-50% * var(--direction))); z-index: 4; width: 250px; padding: 14px 16px; text-align: start; border: 1px solid var(--rule); border-inline-start: 2px solid var(--gilt); background: var(--paper); box-shadow: 8px 10px 0 0 rgba(90, 62, 43, .08); }
.lineage-node .source-note-kind { color: var(--muted); }
.lineage-node .source-note-body a { color: var(--green); text-decoration-color: var(--rule); }
.lineage-node .source-note-body p { color: var(--teak); }
.lineage-node--today .roundel h3 { color: var(--green); }
.lineage-node--today > p { color: var(--muted); }
.lineage-legend { display: flex; align-items: center; gap: 14px; margin-top: 34px; color: var(--muted); font-size: 13px; }
.lineage-legend i { display: block; width: 40px; border-top: 2px dotted var(--gilt); }
html[lang="ar"] .lineage-legend { font-size: 16px; }
[data-motion="on"] .lineage-node .roundel { opacity: 0; transform: scale(.9); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
[data-motion="on"] .lineage-node.is-visible .roundel { opacity: 1; transform: none; }
[data-motion="on"] .lineage-node .lineage-gap { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
html[dir="rtl"][data-motion="on"] .lineage-node .lineage-gap { transform-origin: right; }
[data-motion="on"] .lineage-node.is-visible .lineage-gap { transform: none; }
.lineage-note { max-width: 900px; margin-top: 30px; 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); }
/* Footer: three quiet columns under one rule, the seal on the start side, the small print beneath. */
.site-footer { border-top: 1px solid var(--rule); background: var(--ground); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 48px; padding-block: 58px 44px; }
.footer-brand { display: flex; align-items: flex-start; gap: 20px; }
.footer-brand .brand-emblem { width: 48px; height: 48px; font-size: 27px; margin-top: 2px; }
.footer-name { font-family: var(--display); font-size: 31px; line-height: 1.1; }
.footer-note { max-width: 330px; margin-top: 10px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-heading { margin-bottom: 12px; color: var(--green); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.footer-col a { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding-block: 6px; border-bottom: 1px solid transparent; font-size: 14px; text-decoration: none; transition: border-color .3s, color .3s; }
.footer-col a:hover, .footer-col a:focus-visible { border-color: var(--gilt); color: var(--green); }
.footer-base { display: flex; align-items: center; gap: 18px; padding-block: 18px 36px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-base::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border: 1px solid var(--gilt); transform: rotate(45deg); }
html[lang="ar"] .footer-name { font-size: 33px; }
html[lang="ar"] .footer-note { font-size: 16px; }
html[lang="ar"] .footer-heading { font-size: 14px; letter-spacing: 0; font-weight: 400; }
html[lang="ar"] .footer-col a { font-size: 17px; }
html[lang="ar"] .footer-base { 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"] .art-caption { animation: enter-soft 1.6s var(--ease) 3s both; }
[data-motion="on"] .record-sheet { transform: translateY(var(--record-lift, 0px)) rotate(var(--record-turn, -4deg)); }
[data-motion="on"] .heritage-ribbon span::after { animation: diamond-turn 8s ease-in-out infinite; animation-delay: var(--ribbon-delay, 0s); }
/* A gilt hairline is drawn before each section title, like a ruled line before a heading. */
[data-motion="on"] .reveal .eyebrow::before, [data-motion="on"] .eyebrow.reveal::before { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .15s; }
html[dir="rtl"][data-motion="on"] .reveal .eyebrow::before, html[dir="rtl"][data-motion="on"] .eyebrow.reveal::before { transform-origin: right; }
[data-motion="on"] .reveal.is-visible .eyebrow::before, [data-motion="on"] .eyebrow.reveal.is-visible::before { transform: none; }
@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 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; }
}
@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: 580px; }
  .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; }
  /* The thread turns vertical: roundels down the start edge, captions beside them, dotted gaps between. */
  .lineage-chain { --roundel: 104px; display: block; margin-top: 44px; }
  .lineage-node, .lineage-node:first-child { grid-template-columns: var(--roundel) minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 24px; padding-bottom: 26px; }
  .lineage-gap { grid-column: 1; grid-row: 1; justify-self: center; width: 1px; height: 44px; margin: 0 0 12px; border-top: 0; border-inline-start: 2px dotted var(--gilt); }
  .lineage-node > .roundel { grid-column: 1; grid-row: 2; }
  .lineage-node > p { grid-column: 2; grid-row: 2; width: auto; align-self: center; margin-top: 0; text-align: start; font-size: 15px; }
  .lineage-node > .lineage-references { grid-column: 2; grid-row: 3; width: auto; align-items: flex-start; margin-top: 2px; }
  .lineage-node .source-note-body { position: static; transform: none; width: auto; max-width: 420px; }
  .roundel h3 { font-size: 15px; }
  html[lang="ar"] .roundel h3 { font-size: 18px; }
  html[lang="ar"] .lineage-node > p { font-size: 17px; }
  [data-motion="on"] .lineage-node .lineage-gap { transform: scaleY(0); transform-origin: top; }
  html[dir="rtl"][data-motion="on"] .lineage-node .lineage-gap { transform-origin: top; }
  .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: 100%; height: min(560px, 124vw); min-height: 0; grid-template-rows: 3% 64% 1fr; margin-block: 10px 0; }
  .art-caption { bottom: 0; font-size: 12px; }
  .hero-index { bottom: 13px; font-size: 12px; }
  .heritage-ribbon { flex-wrap: wrap; justify-content: center; padding: 13px 18px; gap: 4px 0; font-size: 12px; }
  .heritage-ribbon span { gap: 18px; padding-inline-end: 18px; }
  html[lang="ar"] .heritage-ribbon { font-size: 19px; padding-block: 10px; }
  .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: 44px; }
  .section-lead { font-size: 16px; margin-top: 23px; }
  .lineage-chain { --roundel: 92px; }
  .lineage-node, .lineage-node:first-child { column-gap: 18px; padding-bottom: 22px; }
  .lineage-gap { height: 36px; }
  .lineage-node > p { font-size: 14px; }
  .lineage-note { margin-top: 26px; font-size: 14px; }
  .lineage-legend { margin-top: 22px; font-size: 12px; }
  /* The chapter chip rides the thread at the bottom of the screen, above the login bar, so it never covers the line being read. */
  .history-chapter { display: inline-flex; position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 3; align-items: baseline; gap: 8px; margin: -34px 0 0; margin-inline-start: -44px; padding: 7px 14px 8px; border: 1px solid #6b5d43; border-radius: 999px; background: #26221e; color: #c3a76e; font-family: var(--display); font-size: 15px; font-variant-numeric: tabular-nums; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
  .history-chapter-of { font-family: var(--body); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9d917f; }
  html[lang="ar"] .history-chapter { font-size: 17px; font-weight: 700; }
  html[lang="ar"] .history-chapter-of { font-size: 13px; letter-spacing: 0; text-transform: none; }
  .portal-bar { display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(244, 239, 230, .96); border-top: 1px solid var(--rule); transform: translateY(115%); transition: transform .5s var(--ease); }
  .nav-ready .portal-bar.is-visible, html:not(.nav-ready) .portal-bar { transform: none; }
  .portal-bar-link { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 6px 16px 6px 8px; border: 1px solid var(--green); background: var(--green); color: var(--ground); text-decoration: none; font-size: 15px; }
  html[dir="rtl"] .portal-bar-link { padding: 6px 8px 6px 16px; }
  .portal-bar .brand-emblem { width: 38px; height: 38px; font-size: 21px; box-shadow: 0 0 0 2px var(--green), 0 0 0 3px var(--gilt); }
  .portal-bar-label { flex: 1; }
  html[lang="ar"] .portal-bar-link { font-size: 18px; }
  body.home-page { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .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; }
  .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: 12px; height: min(470px, 128vw); }
  .history-monogram { font-size: 62px; }
  .history-aside-copy { max-width: 150px; }
  .heritage-ribbon { font-size: 12px; }
  html[lang="ar"] .heritage-ribbon { font-size: 18px; }
  .lineage-chain { --roundel: 84px; }
  .lineage-node, .lineage-node:first-child { column-gap: 14px; }
  .roundel h3 { font-size: 13px; }
  html[lang="ar"] .roundel h3 { font-size: 16px; }
  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; }
  .record-illustration { min-height: 355px; }
  .portal-section h2 { font-size: 45px; }
}

/* ---------- Our family: the visitors' page ---------- */
.portal-bar { display: none; }
.main-nav a[aria-current="page"] { color: var(--green); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--gilt); }
.family-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; padding-block: 78px 84px; }
.family-hero h1 { margin-top: 26px; font-size: clamp(56px, 6.6vw, 104px); line-height: .98; letter-spacing: -.045em; max-width: 720px; }
.family-lead { max-width: 560px; margin-top: 28px; color: var(--teak); font-size: 18px; line-height: 1.9; }
.family-epigraph { margin: 40px 0 0; padding-inline-start: 22px; border-inline-start: 1px solid var(--gilt); }
.family-epigraph p { font-family: var(--display); font-size: 24px; font-style: italic; line-height: 1.4; color: var(--green); }
.family-epigraph cite { display: block; margin-top: 10px; font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* The jadwal: a ruled frame in the manner of a manuscript's table, holding the page in four lines. */
.jadwal { position: relative; margin: 26px 0 0; padding: 34px 32px 30px; border: 1px solid var(--gilt); background: var(--paper); box-shadow: 10px 12px 0 0 rgba(90, 62, 43, .08); }
.jadwal::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--teak); opacity: .38; pointer-events: none; }
.glance-title { position: absolute; top: -11px; inset-inline-start: 26px; padding: 0 10px; background: var(--paper); color: var(--green); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.glance > div:not(.glance-title) { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding-block: 14px; border-bottom: 1px solid rgba(90, 62, 43, .18); }
.glance > div:last-child { border-bottom: 0; padding-bottom: 4px; }
.glance-title { display: block; }
.glance dt { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.glance dd { margin: 0; font-family: var(--display); font-size: 20px; line-height: 1.35; color: var(--ink); }
.family-page .section-heading p.section-lead { max-width: 760px; }
.family-name .section-lead { font-size: 18px; }
/* Branches: each house drawn inside the one before it, stepping in from the start edge. */
.nest { list-style: none; margin: 56px 0 0; padding: 0; }
.nest-item { position: relative; margin-inline-start: calc(var(--depth) * 34px); padding-inline-start: 26px; padding-bottom: 18px; border-inline-start: 1px solid var(--gilt); }
.nest-item::before { content: ""; position: absolute; top: 30px; inset-inline-start: -4px; width: 7px; height: 7px; border: 1px solid var(--gilt); background: var(--ground); transform: rotate(45deg); }
.nest-item:last-child { border-inline-start-color: transparent; padding-bottom: 0; }
.nest-item:last-child::before { background: var(--gilt); }
.nest-card { max-width: 720px; padding: 22px 26px 24px; border: 1px solid var(--rule); background: var(--ground); }
.nest-item:last-child .nest-card { border-color: var(--gilt); background: var(--paper); }
.nest-card h3 { font-size: clamp(24px, 2.2vw, 31px); letter-spacing: -.02em; }
.nest-card p { margin-top: 10px; color: var(--teak); font-size: 15px; line-height: 1.85; }
/* The thread of descent: one ruled column per era, numbered, with the sources folded beside each name. */
.tree-section { position: relative; padding-block: 100px 90px; border-top: 1px solid var(--rule); background: var(--paper); overflow: clip; }
.tree-section::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7%; right: 7%; border-inline: 1px solid rgba(90, 62, 43, .1); pointer-events: none; }
.tree-legend { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.tree-legend span { display: inline-flex; align-items: center; gap: 12px; }
.tree-legend i { display: block; width: 40px; border-top: 2px solid var(--gilt); }
.tree-legend .legend-dotted { border-top-style: dotted; }
.tree { margin-top: 64px; }
.era { display: grid; grid-template-columns: .34fr 1fr; gap: 48px; align-items: start; padding-top: 40px; margin-top: 8px; border-top: 1px solid rgba(90, 62, 43, .2); }
.era--today { border-top: 0; padding-top: 0; }
.era-head { position: sticky; top: 24px; }
.era-head h3 { font-size: clamp(30px, 2.8vw, 40px); letter-spacing: -.025em; }
.era-head p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 320px; }
.nasab { position: relative; list-style: none; margin: 0; padding: 0; grid-column: 2; }
.nasab::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 23px; border-inline-start: 1px solid var(--gilt); }
.era--today .nasab::before { border-inline-start-style: dotted; border-inline-start-width: 2px; bottom: auto; height: 100%; }
.nasab-node { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 22px; align-items: start; padding-block: 14px 18px; }
.nasab-node + .nasab-node { border-top: 1px solid rgba(90, 62, 43, .14); }
.nasab-n { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-top: 2px; border: 1px solid var(--gilt); border-radius: 50%; background: var(--ground); font-family: var(--display); font-size: 16px; color: var(--green); }
.nasab-n::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--teak); border-radius: 50%; opacity: .35; }
.nasab-body { min-width: 0; padding-top: 8px; }
.nasab-body h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(21px, 1.7vw, 25px); line-height: 1.25; letter-spacing: -.015em; }
.nasab-flag { padding: 2px 8px 3px; border: 1px solid var(--rule); border-radius: 2px; background: var(--ground); font-family: var(--body); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nasab-body p { margin-top: 6px; color: var(--teak); font-size: 14px; line-height: 1.8; max-width: 640px; }
.nasab-body .notes { margin-top: 4px; }
.nasab-node--today .nasab-n, .nasab-node--today .nasab-n::before { border-style: dashed; }
.nasab-node--today h4 { color: var(--green); }
.nasab-node--today .text-link { margin-top: 12px; }
/* What survives: roshan cards under a double gilt rule; the coin is lettered, not drawn. */
.artifacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 56px; }
.artifact-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.artifact.artifact--coin { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 44px; padding: 34px 40px; background: var(--paper); }
.artifact--coin .artifact-copy p { max-width: 640px; }
.coin-figure { flex: 0 0 auto; width: 210px; }
.artifact { display: flex; flex-direction: column; padding: 28px 28px 30px; border: 1px solid var(--rule); border-top: 4px double var(--gilt); background: var(--ground); }
.artifact h3 { font-size: clamp(23px, 1.9vw, 28px); letter-spacing: -.02em; }
.artifact p { margin-top: 12px; color: var(--teak); font-size: 15px; line-height: 1.85; }
.artifact .notes { margin-top: auto; padding-top: 14px; }
.roundel--coin { width: 168px; height: 168px; margin: 0 auto 16px; padding: 16px; background: var(--paper); box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px rgba(90, 62, 43, .25); }
.roundel--coin::before { inset: 9px; opacity: .55; }
.roundel--coin q { quotes: none; font-family: "Amiri", "Geeza Pro", serif; font-weight: 700; font-size: 23px; line-height: 1.45; color: var(--teak); }
.coin-caption { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
/* Places: a numbered list, three abreast. */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 40px; list-style: none; margin: 56px 0 0; padding: 0; counter-reset: place; }
.places li { position: relative; padding-top: 18px; border-top: 1px solid var(--rule); counter-increment: place; }
.places li::before { content: counter(place, decimal-leading-zero); display: block; margin-bottom: 14px; color: var(--muted); font-family: var(--display); font-size: 13px; letter-spacing: .14em; }
html[lang="ar"] .places li::before { content: counter(place, arabic-indic); letter-spacing: 0; font-size: 16px; }
.places h3 { font-size: clamp(24px, 2vw, 29px); letter-spacing: -.02em; }
.places p { margin-top: 10px; color: var(--teak); font-size: 15px; line-height: 1.85; }
.source-list--open { margin-top: 48px; }
/* Source notes on light ground, grouped in one labelled row. */
.notes { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 22px; margin-top: 8px; }
.notes-label { align-self: center; min-height: 40px; display: inline-flex; align-items: center; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.notes .source-note { margin-top: 0; max-width: none; }
.notes .source-note[open] { flex-basis: 100%; }
.notes .source-note summary { min-height: 40px; font-size: 13px; }
.notes .source-note-body { max-width: 560px; margin-top: 6px; margin-bottom: 10px; }
html[lang="ar"] .notes-label { font-size: 15px; letter-spacing: 0; text-transform: none; }
html[lang="ar"] .notes .source-note summary { font-size: 16px; }
.source-note--light summary { color: var(--green); }
.source-note--light .source-note-label { border-color: var(--rule); }
.source-note--light summary:hover .source-note-label { border-color: var(--green); }
.source-note--light .source-note-body { border: 1px solid var(--rule); border-inline-start: 2px solid var(--gilt); background: var(--ground); }
.source-note--light .source-note-kind { color: var(--muted); }
.source-note--light .source-note-body a { color: var(--green); text-decoration-color: var(--rule); }
.source-note--light .source-note-body a:hover { text-decoration-color: var(--green); }
.source-note--light .source-note-body p { color: var(--teak); }
.source-note-title { color: var(--ink); }
.tree-section .source-note--light .source-note-body { background: var(--ground); }
.nest-item:last-child .source-note--light .source-note-body { background: var(--ground); }
html[lang="ar"] .family-lead { font-size: 22px; line-height: 1.85; }
html[lang="ar"] .family-epigraph p { font-size: 27px; font-style: normal; }
html[lang="ar"] .family-epigraph cite { font-size: 14px; letter-spacing: 0; text-transform: none; }
html[lang="ar"] .glance-title { font-size: 14px; letter-spacing: 0; font-weight: 400; }
html[lang="ar"] .glance dt { font-size: 15px; letter-spacing: 0; text-transform: none; }
html[lang="ar"] .glance dd { font-size: 22px; }
html[lang="ar"] .family-name .section-lead { font-size: 21px; }
html[lang="ar"] .nest-card p, html[lang="ar"] .artifact p, html[lang="ar"] .places p { font-size: 18px; }
html[lang="ar"] .era-head p { font-size: 17px; }
html[lang="ar"] .nasab-n { font-size: 18px; }
html[lang="ar"] .nasab-body h4 { font-size: clamp(23px, 1.9vw, 28px); }
html[lang="ar"] .nasab-body p { font-size: 17px; }
html[lang="ar"] .nasab-flag { font-size: 13px; letter-spacing: 0; text-transform: none; }
html[lang="ar"] .tree-legend { font-size: 16px; }
html[lang="ar"] .coin-caption { font-size: 15px; }
@media (max-width: 1200px) {
  .family-hero { gap: 44px; }
  .era { grid-template-columns: .38fr 1fr; gap: 34px; }
  .artifacts { gap: 20px; }
  .footer-grid { gap: 36px; }
}
@media (max-width: 1000px) {
  .family-hero { grid-template-columns: 1fr; gap: 40px; padding-block: 60px 70px; }
  .family-hero h1 { font-size: clamp(56px, 8.6vw, 84px); }
  .jadwal { max-width: 640px; margin-top: 0; }
  .era { grid-template-columns: 1fr; gap: 26px; }
  .era-head { position: static; }
  .nasab { grid-column: 1; }
  .artifacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 40px; padding-block: 48px 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .family-hero { padding-block: 44px 56px; }
  .family-hero h1 { font-size: clamp(50px, 12vw, 70px); }
  html[lang="ar"] .family-hero h1 { font-size: clamp(48px, 11vw, 66px); }
  .family-lead { font-size: 17px; }
  html[lang="ar"] .family-lead { font-size: 21px; }
  .family-epigraph p { font-size: 21px; }
  .jadwal { padding: 28px 22px 24px; }
  .glance > div:not(.glance-title) { grid-template-columns: 82px 1fr; gap: 14px; }
  .glance dd { font-size: 18px; }
  .nest { margin-top: 40px; }
  .nest-item { margin-inline-start: calc(var(--depth) * 14px); padding-inline-start: 18px; }
  .nest-card { padding: 18px 20px 20px; }
  .tree-section { padding-block: 66px 60px; }
  .tree { margin-top: 44px; }
  .nasab::before { inset-inline-start: 19px; }
  .nasab-node { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  .nasab-n { width: 40px; height: 40px; font-size: 14px; }
  html[lang="ar"] .nasab-n { font-size: 16px; }
  .nasab-body { padding-top: 5px; }
  .artifacts { grid-template-columns: 1fr; margin-top: 40px; }
  .artifact { padding: 24px 22px 26px; }
  .artifact.artifact--coin { flex-direction: column; align-items: stretch; gap: 20px; padding: 26px 22px; }
  .coin-figure { width: auto; }
  .places { grid-template-columns: 1fr; gap: 26px; margin-top: 40px; }
  .source-list--open { margin-top: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; padding-block: 40px 30px; }
  .footer-name { font-size: 27px; }
  .footer-base { padding-block: 16px 28px; }
}
@media (max-width: 420px) {
  .family-hero h1 { font-size: clamp(46px, 14vw, 56px); }
  html[lang="ar"] .family-hero h1 { font-size: clamp(46px, 13.5vw, 54px); }
  .family-epigraph { margin-top: 30px; }
  .glance > div:not(.glance-title) { grid-template-columns: 1fr; gap: 4px; }
  .nest-item { margin-inline-start: calc(var(--depth) * 9px); padding-inline-start: 16px; }
  .nest-card h3, .artifact h3, .places h3 { font-size: 24px; }
  .era-head h3 { font-size: 30px; }
  .nasab-body h4 { font-size: 21px; }
  html[lang="ar"] .nasab-body h4 { font-size: 23px; }
  .roundel--coin { width: 140px; height: 140px; }
  .roundel--coin q { font-size: 19px; }
  .footer-grid { gap: 24px 18px; }
  .footer-col a { font-size: 13px; }
  html[lang="ar"] .footer-col a { font-size: 16px; }
  .footer-brand .brand-emblem { width: 40px; height: 40px; font-size: 23px; }
}

/* 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"] .lineage-node .roundel, [data-motion="off"] .lineage-node .lineage-gap { opacity: 1; transform: none; }
[data-motion="off"] .reading-progress { display: none; }
[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, .lineage-node .roundel, .lineage-node .lineage-gap { opacity: 1 !important; transform: none !important; }
  a:hover .arrow, .text-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, .portal-bar, .history-chapter { display: none; }
  .lineage-node .roundel, .lineage-node .lineage-gap { opacity: 1 !important; transform: none !important; }
  .lineage-node .source-note-body { position: static; transform: none; width: auto; }
  .wrap { width: 100%; }
  .hero, .section, .history-section, .lineage-section { display: block; min-height: 0; padding-block: 25px; }
  .family-hero, .tree-section, .era { display: block; min-height: 0; padding-block: 25px; background: white; }
  .jadwal { margin-top: 36px; box-shadow: none; }
  .era-head { position: static; }
  .artifacts, .places { display: block; }
  .artifact, .places li { margin-bottom: 18px; }
  .footer-grid, .footer-base { display: none; }
  .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; }
}

/* A clear frontispiece: the roshan has its own room; the reading index follows below. */
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr); gap: clamp(28px, 4vw, 64px); align-items: center; min-height: 0; padding-block: 58px 64px; }
.hero-copy { padding-block: 0; }
.hero-art { position: relative; isolation: isolate; display: block; align-self: center; width: 100%; height: clamp(520px, 46vw, 660px); min-height: 0; min-width: 0; margin: 0; padding: 0; }
.hero-atmosphere { inset: 0; }
.light-window { position: absolute; inset: 6% auto auto 50%; transform: translateX(-50%); height: 66%; width: auto; max-width: 78%; aspect-ratio: .82; }
.art-caption { inset-inline: 22px; bottom: 4px; justify-content: center; text-align: center; font-size: 12px; line-height: 1.65; letter-spacing: .09em; }
.art-caption::before { width: 24px; flex-shrink: 0; }
html[lang="ar"] .art-caption { font-size: 16px; }
.heritage-index { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: 72px 80px; }
.register-intro { padding-top: 18px; }
.register-heading { margin-top: 22px; font-size: clamp(36px, 3.4vw, 48px); line-height: 1.15; }
.register-provenance { margin-top: 18px; color: var(--teak); font-size: 16px; line-height: 1.8; max-width: 320px; }
.register-intro .text-link { margin-top: 24px; }
.register-sheet { width: 100%; min-width: 0; transform: none; }
.register-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; list-style: none; padding: 0; margin: 0; }
.register-rows > li { min-width: 0; border-top: 1px solid var(--rule); }
.register-row { display: flex; flex-direction: column; gap: 9px; height: 100%; min-height: 134px; padding-block: 20px 24px; text-decoration: none; }
.register-date { font: 600 16px/1.5 var(--display); color: var(--green); }
.register-entry { display: block; min-width: 0; }
.register-name { font: 400 24px/1.3 var(--display); }
.register-rule { display: none; }
.register-qualifier { display: block; margin-top: 7px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.register-row:hover .register-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.register-row:focus-visible { outline-offset: 4px; }
.register-today { padding-block: 20px 24px; color: var(--green); }
.register-today > span { font: 400 24px/1.3 var(--display); }
.register-today p { margin-top: 10px; font-size: 14px; line-height: 1.75; color: var(--muted); }
html[lang="ar"] .register-heading { font-size: clamp(38px, 3.4vw, 48px); font-weight: 700; }
html[lang="ar"] .register-date { font-size: 20px; }
html[lang="ar"] .register-name, html[lang="ar"] .register-today > span { font-size: 26px; line-height: 1.5; }
html[lang="ar"] .register-provenance, html[lang="ar"] .register-qualifier, html[lang="ar"] .register-today p { font-size: 20px; line-height: 1.7; }
.lineage-node--coin { --roundel: 152px; }
.lineage-node--coin .roundel { display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.lineage-node--coin .roundel h3 { font-size: 16px; }
html[lang="ar"] .lineage-node--coin .roundel h3 { font-size: 24px; line-height: 1.15; }
.coin-inscription { display: block; font: 400 24px/1.05 "Amiri", serif; quotes: none; }
.coin-inscription span { display: block; }
.coin-inscription::before, .coin-inscription::after { content: none; }
.lineage-coin-note { max-width: 800px; margin-top: 32px; padding-inline-start: 22px; border-inline-start: 1px solid var(--gilt); }
.lineage-coin-note .coin-caption { color: var(--teak); font-size: 16px; line-height: 1.7; text-align: start; }
html[lang="ar"] .lineage-coin-note .coin-caption { font-size: 24px; }
.lineage-coin-note .source-note summary { color: var(--green); }
.lineage-coin-note .source-note-body { background: var(--paper); }
.lineage-coin-note .source-note-body a { color: var(--green); }
.lineage-coin-note .source-note-body p { color: var(--teak); }
html[lang="ar"] .lineage-coin-note .source-note summary, html[lang="ar"] .lineage-coin-note .source-note-body, html[lang="ar"] .lineage-coin-note .source-note-body p { font-size: 24px; }
.lineage-references > .source-note { width: 100%; }
/* This optional mark is rendered only in an isolated, unpublishable report copy. */
.seal-graft { display: flex; flex-direction: column; justify-content: center; width: 165px; height: 165px; margin: 24px auto; border: 1px solid var(--green); border-radius: 50%; text-align: center; font: 400 24px/1.5 "Amiri", serif; color: var(--green); outline: 1px dotted var(--green); outline-offset: -7px; }
/* The brief restricts motion to the existing daylight and the register's hairlines.
   Controls, chapter tracking and disclosures remain functional without decorative motion. */
.home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; }
.home-page .reveal, .home-page .lineage-node .roundel, .home-page .lineage-node .lineage-gap { opacity: 1 !important; transform: none !important; }
.home-page .record-sheet { transform: rotate(-4deg) !important; }
.home-page a:hover .arrow, .home-page .text-link:hover > span, .home-page .button:hover { translate: none; }
.home-page .eyebrow::before { transform: none !important; }
@media (max-width: 1200px) {
 .hero h1 { font-size: clamp(62px, 7.4vw, 90px); }
 html[lang="ar"] .hero h1 { font-size: clamp(54px, 6.6vw, 80px); }
 .lineage-node--coin { --roundel: 134px; }
 .register-rows { column-gap: 24px; }
}
@media (max-width: 1000px) {
 .lineage-chain, .lineage-node--coin { --roundel: 152px; }
 .lineage-references { gap: 8px; }
 .heritage-index { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 32px; }
 .register-rows { grid-template-columns: 1fr; }
 .register-row { min-height: 0; }
}
@media (max-width: 800px) {
 .hero { grid-template-columns: 1fr; gap: 38px; padding-block: 44px 28px; }
 .hero h1 { font-size: clamp(60px, 12.4vw, 92px); }
 html[lang="ar"] .hero h1 { font-size: clamp(55px, 10.5vw, 87px); }
 .hero-art { height: clamp(400px, 90vw, 580px); max-width: 620px; margin-inline: auto; }
 .light-window { height: 65%; max-width: 74%; }
 .art-caption { bottom: 0; inset-inline: 12px; font-size: 12px; }
 .heritage-index { grid-template-columns: 1fr; gap: 32px; padding-block: 42px 52px; }
 .register-intro { padding-top: 0; }
 .register-heading { margin-top: 16px; }
 .register-provenance { max-width: 520px; margin-top: 12px; }
 .register-intro .text-link { margin-top: 16px; }
 .register-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .lineage-node .source-note-body { max-width: 100%; }
}
@media (max-width: 540px) {
 .register-rows { grid-template-columns: 1fr; }
 .register-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: baseline; column-gap: 16px; padding-block: 20px; }
 .register-name { font-size: 22px; }
 .register-today { padding-block: 20px 0; }
}
@media (max-width: 420px) {
 .hero h1 { font-size: clamp(53px, 14.1vw, 62px); }
 html[lang="ar"] .hero h1 { font-size: clamp(49px, 13.4vw, 60px); }
 .hero-art { height: 400px; }
 .light-window { height: 63%; }
 .art-caption { letter-spacing: .04em; }
 .art-caption::before { display: none; }
 .lineage-chain, .lineage-node--coin { --roundel: 138px; }
 .lineage-node--coin .roundel h3 { font-size: 15px; }
}
@media print {
 .hero { display: block; padding-block: 25px; }
 .hero-art { display: none; }
 .heritage-index { display: block; padding-block: 25px; }
 .register-intro .text-link { display: none; }
 .register-rows { margin-top: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .register-rows > li { break-inside: avoid; }
}

@media (min-width: 1001px) {
 .lineage-chain { --thread-row: 152px; }
 .lineage-node { grid-template-rows: var(--thread-row) auto auto; }
 .lineage-node .roundel { align-self: center; }
 .lineage-node .lineage-gap { margin-top: calc(var(--thread-row) / 2); }
}
