:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --ink: #172a2a;
  --muted: #475b59;
  --rule: #bac3b9;
  --sea: #194b4f;
  --sea-ink: #eaf3e9;
  --sand: #e7e4d7;
  --note: #885037;
  --lab: #101111;
  --lime: #baff2c;
  --body: "Golos Text", Arial, sans-serif;
  --display: "Spectral", Georgia, serif;
  --gutter: clamp(1.3rem, 3.8vw, 4.5rem);
  --section-pad: clamp(3.75rem, 7.5vw, 7.25rem);
  font-family: var(--body);
}
html[dir=rtl] { --body: "Noto Sans Arabic", "Golos Text", Tahoma, sans-serif; --display: "Noto Naskh Arabic", Georgia, serif; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1.032rem; line-height: 1.6; }
h1,h2,h3,p,figure,fieldset { margin: 0; }
h1,h2,h3 { font-weight: 400; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .075em; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #2877ad; outline-offset: 4px; }
.site-header :focus-visible,.site-footer :focus-visible,.invest :focus-visible { outline-color: #e3b349; }
[hidden] { display: none !important; }
input,button,summary { font: inherit; }
summary { cursor: pointer; }
.wrap { width: min(100%, 96rem); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; top: .6rem; left: .65rem; z-index: 20; transform: translateY(-180%); background: #f9f8eb; color: #172a2a; padding: .5rem 1rem; }
.skip:focus { transform: none; }
.site-header,.site-footer { color: #f5f6ef; background: var(--lab); }
.header-in { max-width: 106rem; margin-inline: auto; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 1rem; padding: .9rem clamp(1rem, 2.45vw, 2.8rem); direction: ltr; min-height: 4.7rem; }
.identity,.header-actions { display: flex; align-items: center; }
.identity { gap: clamp(.55rem,1.05vw,1.1rem); }
.lab-mark { flex: 0 0 auto; display: flex; align-items: center; min-height: 44px; }
.lab-mark img { width: 3.1rem; height: auto; }
.wordmark { color: #f7f5e9; border-left: 1px solid #505553; padding: .3rem 0 .3rem clamp(.58rem,1vw,1.05rem); font: 400 clamp(1.06rem,1.5vw,1.44rem)/1.2 "Spectral", Georgia, serif; text-decoration: none; white-space: nowrap; }
.wordmark span { color: #c4c6bf; }
.main-nav { display: flex; align-items: center; border: 1px solid #303232; border-radius: 2rem; background: #191b1b; padding: 0 .35rem; }
.main-nav a,.lab-cta,.lang-switch,.mobile-menu summary { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border-radius: 2rem; text-decoration: none; font-size: .925rem; font-weight: 600; line-height: 1.4; }
.main-nav a { padding: .45rem .95rem; }
.main-nav a:hover,.site-footer a:hover { color: var(--lime); }
.header-actions { justify-self: end; gap: .55rem; }
.lab-cta { padding: .55rem 1rem; background: var(--lime); color: #162000; }
.lab-cta:hover { background: #d3ff7e; }
.lang-switch,.mobile-menu summary { padding: .44rem .9rem; border: 1px solid #6b706e; color: #fafbf3; }
.lang-switch[lang=ar] { font-family: "Noto Sans Arabic", Tahoma, sans-serif; }
.lang-switch:hover,.mobile-menu summary:hover { background: #2c302e; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary,.method summary { list-style: none; }
.mobile-menu summary::-webkit-details-marker,.method summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; z-index: 5; top: calc(100% + .55rem); right: 0; background: var(--lab); color: #fafbf3; width: max-content; min-width: 10.5rem; border: 1px solid #505553; padding: .3rem .9rem; }
.mobile-menu nav a { display: block; padding: .62rem 0; border-bottom: 1px solid #373b38; text-decoration: none; }
.mobile-menu nav a:last-child { border: 0; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.14fr); align-items: center; column-gap: clamp(2.2rem,4.7vw,5rem); padding-block: clamp(2.4rem,4.4vw,5.25rem) clamp(2.3rem,4.15vw,4.7rem); }
.hero-copy { min-width: 0; padding-block-end: 1.4rem; }
.kicker { display: flex; align-items: center; gap: .8rem; color: var(--note); font-size: .88rem; font-weight: 600; line-height: 1.5; }
.kicker::before { content: ""; flex: 0 0 2.1rem; height: 2px; background: currentColor; }
h1,h2 { text-wrap: balance; font-family: var(--display); letter-spacing: -.055em; }
.hero h1 { margin: 1.1rem 0 1.15rem; font-size: clamp(3.7rem,5.8vw,5.75rem); line-height: .96; }
.hero h1 span { display: block; }
.hero-lead { max-width: 36rem; color: var(--muted); font-size: clamp(1.02rem,1.35vw,1.33rem); line-height: 1.52; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; background: var(--sea); color: #fafbf3; padding: .78rem 1.4rem; border: 1px solid transparent; text-decoration: none; white-space: nowrap; font-weight: 600; font-size: .99rem; }
.button:active,.lab-cta:active,.lang-switch:active { box-shadow: inset 0 0 0 2px currentColor; }
.button:hover { background: #0a383b; }
.hero-button { margin-top: clamp(1.4rem,2.4vw,2.2rem); }
.photo-frame { position: relative; overflow: hidden; aspect-ratio: 1.46; }
.hero-photo img,.district img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame img { position: absolute; inset: 0; }
.hero-photo .main-photo { object-position: 52% 56%; }
.court-photo,.court-caption { display: none; }
.photo-caption { display: flex; justify-content: space-between; gap: .45rem 1.1rem; align-items: baseline; margin-top: .6rem; padding-top: .55rem; border-top: 1px solid var(--rule); font-size: .84rem; line-height: 1.4; color: var(--muted); }
.photo-caption .place-name,.district figcaption span:first-child { color: var(--ink); font-weight: 600; }
.section { padding-block: var(--section-pad); }
.services { position: relative; display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: clamp(2rem,6vw,5.5rem); }
.services::before { content: ""; position: absolute; inset-inline: var(--gutter); top: 0; height: 1px; background: var(--rule); }
h2 { font-size: clamp(2.55rem,4vw,4.5rem); line-height: 1.04; }
.section-copy p,.invest-copy>p:not(.kicker),.fees-copy>p:not(.kicker),.contact-body>p:first-child { margin-top: 1.1rem; }
.section-copy p { max-width: 22rem; color: var(--muted); }
.service-list article { display: grid; grid-template-columns: minmax(0,.73fr) minmax(0,1.15fr); gap: 1.7rem; border-top: 1px solid var(--rule); padding: 1.55rem 0 1.65rem; }
.service-list article:first-child { border-top: 2px solid var(--ink); }
.service-list article:last-child { border-bottom: 1px solid var(--rule); }
.service-list h3 { font-size: clamp(1.23rem,1.65vw,1.65rem); line-height: 1.22; font-weight: 600; letter-spacing: -.035em; }
.service-list p,.fees-copy>p { color: var(--muted); }
.text-link { display: inline-block; font-weight: 600; color: var(--sea); padding-block: .35rem; }
.service-list .text-link { margin-top: .4rem; font-size: .94rem; }
.invest { background: var(--sea); color: var(--sea-ink); padding-block: var(--section-pad); }
.invest-inner { display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.03fr); gap: clamp(3rem,8vw,8.5rem); align-items: start; }
.invest .kicker { color: #d6d3ac; }
.fees h2 { margin-top: 1rem; }
.invest h2 { max-width: 8.6em; }
.invest-copy>p:not(.kicker) { color: #ecf1e8; max-width: 36rem; }
.invest-copy>p.model-note { color: #d3ddd7; font-size: .95rem; }
.method { margin-top: 1.4rem; border-top: 1px solid #729093; }
.method summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 1.4rem; font-weight: 600; }
.method summary::after { content: "+"; font: 400 1.4rem/1 "Golos Text", sans-serif; }
.method[open] summary::after { content: "−"; }
.method>div { padding-bottom: .85rem; font-size: .96rem; }
.sources { margin-top: .75rem; }
.worksheet { background: #f5f4e9; color: #172a2a; padding: clamp(1.3rem,3.2vw,3rem); }
.field-label,legend { display: block; font-size: 1rem; font-weight: 600; }
.amount-entry { display: flex; gap: .8rem; align-items: center; border-bottom: 1px solid #506c67; margin: .2rem 0 1.35rem; }
.amount-entry:focus-within { border-bottom: 3px solid #1e6971; margin-bottom: calc(1.35rem - 2px); }
.amount-entry input { color: #172a2a; border: 0; background: transparent; padding: .35rem 0; width: 100%; min-width: 0; font-size: clamp(1.6rem,2.3vw,2.35rem); font-variant-numeric: tabular-nums; }
.amount-entry input:focus { outline: none; }
.amount-entry span,.res-total>span { white-space: nowrap; font-size: .9rem; color: #405958; }
.input-error { color: #8d2923; font-size: .93rem; margin: -.55rem 0 1.3rem; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .5rem; }
.scenario-set { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .35rem; }
.scenario-set label { position: relative; cursor: pointer; }
.scenario-set input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.scenario-set label>span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 4rem; padding: .4rem .1rem; border: 1px solid #94a49a; line-height: 1.3; }
.scenario-set small { font-size: .8rem; }
.scenario-set bdi { font-size: 1.1rem; font-weight: 600; }
.scenario-set input:checked+span { color: #fafbf3; background: #204e50; border-color: #204e50; }
.scenario-set input:focus-visible+span { outline: 3px solid #ab662c; outline-offset: 2px; }
.result { margin-top: 1.6rem; border-top: 1px solid #acb6a9; padding-top: .95rem; }
.result>p:first-child { font-size: .95rem; }
.res-total { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .55rem; }
.res-total output { font-family: var(--display); font-size: clamp(2.35rem,3.75vw,4.05rem); line-height: 1.15; letter-spacing: -.04em; }
.res-profit { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem .85rem; margin-top: .45rem; font-size: .93rem; }
.risk { color: #445953; margin-top: 1.1rem; font-size: .87rem; line-height: 1.5; }
.fees { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.1fr); align-items: start; gap: clamp(2.4rem,7vw,7.5rem); }
.district { padding-top: .4rem; }
.district img { aspect-ratio: .99; height: auto; object-fit: cover; }
.fees table { width: 100%; border-collapse: collapse; margin-block: 1.65rem 1.35rem; font-variant-numeric: tabular-nums; }
.fees caption { caption-side: bottom; text-align: start; padding-top: .6rem; color: var(--muted); font-size: .85rem; }
.fees th,.fees td { padding: .8rem .35rem; text-align: end; border-bottom: 1px solid var(--rule); line-height: 1.4; }
.fees tr>*:first-child { text-align: start; padding-inline-start: 0; }
.fees tr>*:last-child { padding-inline-end: 0; color: var(--sea); font-weight: 600; }
.fees thead th { font-size: .86rem; font-weight: 400; border-top: 2px solid var(--ink); }
.fees tbody th { font-weight: 400; }
.fees td { white-space: nowrap; }
.fees-copy .fine { margin-top: .75rem; font-size: .94rem; }
.reference { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; font-size: .85rem; }
.reference a,.status-text a { color: var(--sea); }
.contact { background: var(--sand); padding-block: clamp(3.25rem,6.2vw,6.2rem); }
.contact-inner { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.1fr); gap: clamp(2rem,7vw,7.5rem); }
.contact h2 { max-width: 8.5em; }
.contact-body>p:first-child { margin-top: 0; font-size: 1.12rem; }
.contact .button { margin: 1.1rem 0; }
.plain-email { display: inline-block; margin-inline-start: 1rem; font-size: .95rem; }
.status-text { font-size: .9rem; color: var(--muted); max-width: 42rem; }
.site-footer { padding-block: clamp(2.7rem,5vw,5rem) 1.25rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.95fr) minmax(0,1fr) minmax(0,1.25fr); gap: 2rem; align-items: start; }
.footer-grid>div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer-grid h2 { font: 600 .85rem/1.5 var(--body); color: #bac4b2; letter-spacing: 0; margin-bottom: .75rem; }
.footer-grid a { display: inline-block; text-decoration: none; padding-block: .28rem; }
.footer-grid a:hover,.footer-grid a[aria-current=page] { text-decoration: underline; }
.footer-grid .footer-name { font: 400 1.4rem/1.2 "Spectral",Georgia,serif; margin-top: .6rem; }
.footer-id p,.footer-base { color: #aeb8af; font-size: .87rem; }
.footer-base { display: flex; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid #434743; }
.legal-page { max-width: 54rem; padding-block: clamp(2.5rem,5vw,5rem) var(--section-pad); }
.legal-page>.kicker { margin-top: 1.8rem; }
.legal-page h1 { font-size: clamp(2.6rem,5vw,4.8rem); line-height: 1.06; margin: .75rem 0; overflow-wrap: anywhere; hyphens: auto; }
.legal-page section { border-top: 1px solid var(--rule); padding-top: 1.35rem; margin-top: 1.95rem; }
.legal-page section h2 { font-size: clamp(1.65rem,2.5vw,2.2rem); margin-bottom: .7rem; }
.legal-page a { color: var(--sea); overflow-wrap: anywhere; }
.legal-page ul { margin-block: .5rem; padding-inline-start: 1.25rem; }
.legal-page li { padding-block: .25rem; }
.revision { color: var(--muted); font-size: .93rem; }
.missing { min-height: 48vh; }
.missing .button { color: #fafbf3; margin-top: 1.2rem; }
html[dir=rtl] body { line-height: 1.8; }
html[dir=rtl] :is(h1,h2,h3,.res-total output) { letter-spacing: normal; }
html[dir=rtl] .hero h1 { line-height: 1.15; }
html[dir=rtl] h2 { line-height: 1.26; }
html[dir=rtl] .hero-lead { line-height: 1.85; }
html[dir=rtl] .main-nav,html[dir=rtl] .lab-cta,html[dir=rtl] .mobile-menu { font-family: var(--body); }
html[dir=rtl] .lang-switch { font-family: "Golos Text",sans-serif; }
html[dir=rtl] .amount-entry input { text-align: right; }
html[dir=rtl] .res-total output { line-height: 1.3; }

/* Five complete compositions share the AiiA header and footer. */
html[data-design=journal] { --paper: #fffdf8; --ink: #251e19; --sea: #70402b; --note: #853b29; --sand: #eee1d4; }
[data-design=journal] .hero { display: flex; flex-direction: column; align-items: stretch; gap: 1.7rem; }
[data-design=journal] .hero-copy { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: .4rem 5%; align-items: start; padding: 0; }
[data-design=journal] .hero-kicker { grid-column: 1/-1; }
[data-design=journal] .hero h1 { grid-column: 1; grid-row: 2/4; margin: .2rem 0 0; }
[data-design=journal] .hero-lead { grid-column: 2; margin-top: .35rem; }
[data-design=journal] .hero-button { grid-column: 2; justify-self: start; margin-top: .6rem; }
[data-design=journal] .photo-frame { aspect-ratio: 3.55; }
html[data-design=panorama] { --paper: #f0f3f5; --sea: #25465e; --sand: #dde4e7; --note: #36586e; }
[data-design=panorama] .hero { display: grid; grid-template-columns: minmax(0,1fr); align-items: end; max-width: none; padding: 0; background: #142a33; color: #edf2eb; }
[data-design=panorama] .hero-photo { grid-area: 1/1; }
[data-design=panorama] .photo-frame { aspect-ratio: auto; height: clamp(34rem,45vw,48rem); }
[data-design=panorama] .hero-photo figcaption { display: none; }
[data-design=panorama] .hero-copy { position: relative; z-index: 1; grid-area: 1/1; width: min(41rem,55%); background: #142c38; color: #fafbf3; margin: clamp(1.5rem,4vw,4.8rem) var(--gutter); padding: clamp(1.5rem,3vw,3.2rem); }
[data-design=panorama] .hero h1 span,[data-design=panorama] .hero-lead { color: #f4f4eb; }
[data-design=panorama] .hero-kicker { color: #c7dbdc; }
[data-design=panorama] .hero-button { background: #e8eee8; color: #183240; }
html[data-design=ledger] { --paper: #f3f4ed; --sea: #264c34; --note: #44613b; --sand: #e0e5d7; }
[data-design=ledger] .hero { grid-template-columns: minmax(0,.8fr) minmax(0,1.25fr); }
[data-design=ledger] .hero-photo { grid-row: 1; grid-column: 1; }
[data-design=ledger] .hero-copy { grid-row: 1; grid-column: 2; border-block: 2px solid var(--ink); padding-block: 1.7rem; }
[data-design=ledger] .hero h1,[data-design=ledger] .section h2 { font-family: var(--body); font-weight: 600; }
[data-design=ledger] .hero h1 { font-size: clamp(2.5rem,4.85vw,5.2rem); }
[data-design=ledger] .photo-frame { aspect-ratio: 1.08; }
[data-design=ledger] .service-list article { grid-template-columns: minmax(0,1fr); gap: .6rem; }
html[data-design=courtyard] { --paper: #f7eee2; --ink: #372b20; --sea: #72482e; --note: #815033; --sand: #e9d8bd; --rule: #c3ae98; }
[data-design=courtyard] .hero { grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: 8%; }
[data-design=courtyard] .hero-copy { padding-inline-start: clamp(0rem,3.2vw,3rem); }
[data-design=courtyard] .hero h1 span { font-size: .83em; }
[data-design=courtyard] .photo-frame { aspect-ratio: 1.05; }
[data-design=courtyard] .hero-photo picture,[data-design=courtyard] .hero-photo .photo-caption { display: none; }
[data-design=courtyard] .court-photo,[data-design=courtyard] .court-caption { display: block; }
.court-caption { color: var(--muted); padding-block: .5rem; font-size: .88rem; }
@media(max-width: 62rem) {
  .header-in { grid-template-columns: minmax(0,1fr) auto; }
  .main-nav { display: none; }
  .mobile-menu { display: block; }
  .hero { grid-template-columns: minmax(0,.98fr) minmax(0,1fr); gap: 2rem; }
  .hero h1 { font-size: clamp(2.9rem,5.8vw,4rem); }
  .service-list article { grid-template-columns: minmax(0,1fr); gap: .55rem; }
  .invest-inner,.fees,.contact-inner { gap: 2.3rem; }
  .footer-grid { gap: 1rem; }
}
@media(max-width: 45rem) {
  .header-in { min-height: 4.15rem; padding: .55rem max(1rem,4.2vw); gap: .45rem; }
  .identity { gap: .5rem; }
  .lab-mark img { width: 2.4rem; }
  .wordmark { font-size: 1.12rem; padding-inline-start: .55rem; }
  .header-actions { gap: .33rem; }
  .lab-cta { display: none; }
  .mobile-menu summary,.lang-switch { padding-inline: .65rem; font-size: .88rem; }
  .hero,.services,.invest-inner,.fees,.contact-inner { grid-template-columns: minmax(0,1fr); }
  .hero { gap: 1.5rem; padding-block: 2.05rem 2rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.9rem,9.25vw,4.5rem); margin-block: .85rem; }
  .legal-page h1 { font-size: clamp(1.86rem,8.25vw,2.65rem); }
  .hero-lead { max-width: 34em; font-size: 1.05rem; }
  .hero-button { margin-top: 1.1rem; }
  .photo-frame { aspect-ratio: 1.55; }
  .hero-photo .main-photo { object-position: 50% 56%; }
  .photo-caption { font-size: .8rem; }
  .section { padding-block: 3.2rem; }
  .services { gap: 1.5rem; }
  .section-copy p { margin-top: .75rem; max-width: 35em; }
  .service-list article { padding-block: 1.15rem; }
  .service-list h3 { font-size: 1.28rem; }
  .invest { padding-block: 3rem; }
  .invest-inner,.fees,.contact-inner { gap: 1.6rem; }
  .invest h2,.contact h2 { max-width: none; }
  .worksheet { padding: 1.2rem; }
  .fees .district { order: 2; padding-top: .3rem; }
  .district img { aspect-ratio: 1.7; }
  .contact-body>p:first-child { font-size: 1rem; }
  .footer-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.8rem 1.2rem; }
  .footer-grid a { font-size: .94rem; }
  .footer-id img { width: 3.3rem; height: auto; }
  .footer-grid .footer-name { font-size: 1.25rem; }
  [data-design=journal] .hero-copy { display: block; }
  [data-design=journal] .hero h1 { margin: .8rem 0; }
  [data-design=journal] .photo-frame { aspect-ratio: 1.8; }
  [data-design=panorama] .hero-copy { align-self: end; width: auto; margin: 1.1rem; padding: 1.15rem; }
  [data-design=panorama] .photo-frame { height: 34rem; }
  [data-design=ledger] .hero,[data-design=courtyard] .hero { grid-template-columns: minmax(0,1fr); }
  [data-design=ledger] .hero { gap: 1rem; }
  [data-design=ledger] .hero-copy,[data-design=ledger] .hero-photo { grid-area: auto; }
  [data-design=ledger] .hero-copy { padding-block: 1.05rem; }
  [data-design=ledger] .photo-frame { aspect-ratio: 2; }
  [data-design=courtyard] .hero { gap: 1.4rem; }
  [data-design=courtyard] .hero-copy { padding-inline: 0; }
  [data-design=courtyard] .photo-frame { aspect-ratio: 1.55; }
}
@media(max-width: 23rem) {
  .wordmark { font-size: .99rem; }
  .hero h1 { font-size: clamp(2.42rem,12.1vw,2.77rem); }
  .footer-grid { grid-template-columns: minmax(0,1fr); }
  .photo-caption { flex-wrap: wrap; }
  .header-in { padding-inline: .6rem; }
  .scenario-set small { font-size: .72rem; }
  .plain-email { display: block; margin-inline: 0; padding-bottom: .7rem; }
}
@media(prefers-reduced-motion:no-preference) {
  .button,.lang-switch,.lab-cta { transition: background-color .15s ease; }
}
