:root {
  color-scheme: light;
  --navy-deep: #0e1626; --navy: #16233d; --gold: #cba35c; --gold-bright: #e7c989;
  --gold-text: #7a5416; --ivory: #fbf7ef; --paper: #f2ecdd; --muted: #4a5568;
  --on-navy-muted: #d5dbe6; --red: #a8402f; --rule: rgba(22, 35, 61, .16);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 72rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ivory); color: var(--navy); font: 400 1.0625rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .18em; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px var(--gold-bright); }
.site-header :focus-visible, .hero :focus-visible, .band-navy :focus-visible { outline-color: var(--gold-bright); box-shadow: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: .5rem; top: -4rem; z-index: 20; background: var(--gold-bright); color: var(--navy-deep); padding: .75rem 1rem; font-weight: 700; }
.skip:focus { top: .5rem; }
.label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .75rem; }
[lang="ja"] .label, [lang="zh"] .label, [lang="ko"] .label, [lang="ar"] .label, [lang="fa"] .label, [lang="he"] .label { letter-spacing: 0; text-transform: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.18; margin: 0 0 .75rem; text-wrap: balance; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .8rem 1.5rem; text-decoration: none;
  font-weight: 700; font-size: 1rem; border: 2px solid transparent; border-radius: .25rem; transition: background .2s ease, border-color .2s ease; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-line { border-color: var(--on-navy-muted); color: var(--ivory); }
.btn-line:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* Header */
.site-header { background: var(--navy-deep); color: var(--ivory); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; min-height: 4.25rem; padding-top: .35rem; padding-bottom: .35rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-inline-end: auto; min-height: 2.75rem; }
.brand img { width: 2.5rem; height: 2.5rem; }
.brand span { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .02em; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; }
.site-nav > a { text-decoration: none; font-size: .95rem; min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--ivory); }
.site-nav > a:hover { color: var(--gold-bright); text-decoration: underline; }
.site-header .btn { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: .95rem; }
@media (max-width: 640px) { .site-nav .nav-section, .site-header .btn { display: none; } }

/* Language menu: a disclosure of plain links, works without scripts */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; min-height: 2.75rem; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .9rem;
  border: 1px solid var(--on-navy-muted); border-radius: 999px; font-size: .95rem; color: var(--ivory); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: .5rem; height: .5rem; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lang-menu[open] summary { border-color: var(--gold-bright); }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); margin: 0; padding: .5rem; list-style: none; background: var(--ivory); color: var(--navy);
  border: 1px solid var(--rule); box-shadow: 0 12px 32px rgba(14, 22, 38, .28); width: min(26rem, calc(100vw - 2rem)); max-height: 70vh; overflow: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0; z-index: 30; }
.lang-menu a { display: flex; align-items: center; min-height: 2.75rem; padding: .25rem .75rem; text-decoration: none; color: var(--navy); }
.lang-menu a:hover { background: var(--paper); text-decoration: underline; }
.lang-menu a[aria-current="true"] { font-weight: 700; background: var(--paper); }
.lang-menu :focus-visible { outline-color: var(--navy); box-shadow: none; }

/* Hero and bands */
.hero { background: radial-gradient(90% 90% at 80% 10%, #233250 0%, var(--navy) 45%, var(--navy-deep) 100%); color: var(--ivory); padding: clamp(3rem, 8vw, 6rem) 0; }
.hero .label { color: var(--gold-bright); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); max-width: 18ch; }
.hero p.lead { font-size: 1.2rem; max-width: 40rem; color: var(--on-navy-muted); margin: 0 0 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band-paper { background: var(--paper); }
.band-navy { background: var(--navy); color: var(--ivory); }
.band-navy .label { color: var(--gold-bright); }
.band-navy p { color: var(--on-navy-muted); }
.band h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); max-width: 28ch; }
.band .lead { max-width: 42rem; color: var(--muted); }
.band-navy .lead { color: var(--on-navy-muted); }

.stats { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.stats li { background: var(--ivory); padding: 1.25rem 1rem; }
.stats b { display: block; font-family: var(--serif); font-size: 2.1rem; font-weight: 500; line-height: 1.1; }
.stats span { color: var(--muted); font-size: .95rem; }
.features { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.75rem 2rem; }
.features h3 { font-size: 1.25rem; padding-top: 1rem; border-top: 2px solid var(--gold); }
.features p { margin: 0; color: var(--muted); }
.levels { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
.levels li { background: var(--navy-deep); border: 1px solid rgba(231, 201, 137, .35); padding: 1.1rem; }
.levels b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--gold-bright); }
.levels span { color: var(--on-navy-muted); }
.stores { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.5rem 0 .75rem; }
.store { display: inline-flex; align-items: center; min-height: 3rem; padding: .6rem 1.2rem; border: 2px dashed var(--on-navy-muted); color: var(--on-navy-muted); border-radius: .25rem; font-weight: 600; }
.note { font-size: .95rem; color: var(--on-navy-muted); margin: 0; }

/* Text pages */
.doc { max-width: 46rem; margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 2.5rem) 5rem; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 .6rem; }
.doc .date { color: var(--muted); margin: 0 0 2rem; font-size: .95rem; }
.doc .intro { font-size: 1.1rem; }
.doc h2 { font-size: 1.4rem; margin: 2.4rem 0 .6rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.doc p, .doc li { overflow-wrap: break-word; }
.doc p { margin: 0 0 1rem; }
.doc ul.plain { list-style: none; padding: 0; margin: 0; }
.doc ul.plain li { padding: .7rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.doc .doc-nav { border-top: 1px solid var(--rule); margin-top: 3rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.doc .doc-nav a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.doc-body a { font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--paper); color: var(--muted); padding: 2rem 0; font-size: .95rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; }
.site-footer nav a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.site-footer p { margin: .75rem 0 0; }
.app-landing { text-align: center; }
.app-landing .code { border: 2px solid var(--gold); padding: 1.1rem; margin: 1.5rem auto; max-width: 24rem; background: var(--paper); color: var(--navy); }
.app-landing .code[hidden] { display: none; }
.app-landing .code strong { display: block; font-size: 1.8rem; letter-spacing: .14em; user-select: all; }

/* Home: editorial layout (arched portrait, hairline grids, colour mosaic) */
.hero-home { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; overflow: hidden; position: relative; }
.hero-grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 3.5rem; } }
.hero-home .hero-text { padding-bottom: 2.5rem; }
@media (min-width: 900px) { .hero-home .hero-text { align-self: center; padding-bottom: 4.5rem; } }
.hero-home h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.02; letter-spacing: -.02em; max-width: 14ch; font-weight: 400; }
.hero-home p.lead { max-width: 33rem; }
.hero-stats { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 30rem; }
.hero-stats li { border-inline-start: 1px solid var(--gold); padding-inline-start: .9rem; }
.hero-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.1; }
.hero-stats span { display: block; font-size: .8rem; color: var(--on-navy-muted); margin-top: .4rem; line-height: 1.4; }
.portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 26rem); }
@media (min-width: 900px) { .portrait { justify-self: end; } }
.arch { border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid rgba(231, 201, 137, .5); border-bottom: 0; background: var(--navy); }
.arch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 45% 12%; }
.namecard { position: absolute; inset-inline-start: -1rem; bottom: 2.5rem; background: var(--paper); color: var(--navy); padding: .9rem 1.5rem 1rem;
  border-inline-start: 3px solid var(--gold); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
@media (max-width: 560px) { .namecard { inset-inline-start: 0; bottom: 1.25rem; } }
.namecard span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.namecard strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.2; }
.seal { position: absolute; inset-inline-end: -1.25rem; bottom: .75rem; width: 5.75rem; height: 5.75rem; color: var(--gold-bright); }
@media (max-width: 560px) { .seal { inset-inline-end: .25rem; width: 4.75rem; height: 4.75rem; } }
.seal svg { width: 100%; height: 100%; animation: turn 40s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

.section-head { display: grid; gap: .6rem; margin-bottom: 2.5rem; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 2fr 1.5fr; gap: 2.5rem; align-items: start; } }
.section-head h2 { margin: 0; font-weight: 400; max-width: none; }
.section-head p:last-child { color: var(--muted); margin: 0; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillars li { position: relative; padding: 2rem 1.6rem 2.2rem; border-top: 1px solid var(--rule); }
.pillars li:first-child { border-top: 0; }
@media (min-width: 700px) { .pillars li { border-top: 0; border-inline-start: 1px solid var(--rule); } .pillars li:nth-child(3n + 1) { border-inline-start: 0; } .pillars li:nth-child(n + 4) { border-top: 1px solid var(--rule); } }
.pillars .num { position: absolute; top: 1.6rem; inset-inline-end: 1.6rem; font-size: .8rem; color: var(--muted); }
.pillars h3 { font-weight: 400; font-size: 1.45rem; margin: 0 0 .6rem; padding-top: 0; border: 0; }
.pillars p { margin: 0; color: var(--muted); font-size: .98rem; }

.meet-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .meet-grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; } }
.meet-text h2 { font-weight: 400; }
.ai-note { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1rem; margin: 1.5rem 0 0; max-width: 30rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; }
@media (min-width: 700px) { .gallery { gap: 1.25rem; } .gallery figure:nth-child(even) { transform: translateY(1.75rem); } }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .25rem; background: var(--navy); }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; line-height: 1.4; }

.path-split { display: grid; }
@media (min-width: 900px) { .path-split { grid-template-columns: 1fr 1fr; } }
.path-panel { background: var(--navy-deep); color: var(--ivory); padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.path-panel .label { color: var(--gold-bright); }
.path-panel h2 { font-weight: 400; font-size: clamp(2rem, 4.4vw, 3rem); max-width: 18ch; }
.path-panel p { color: var(--on-navy-muted); max-width: 32rem; }
.path-panel .note { margin-top: 1.5rem; }
.mosaic { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .mosaic { grid-template-columns: 1fr 1fr; } }
.tile { min-height: 12rem; padding: 1.75rem; display: flex; flex-direction: column; justify-content: space-between; }
.tile b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.tile span { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.t1 { background: var(--ivory); color: var(--navy); } .t2 { background: var(--paper); color: var(--navy); }
.t3 { background: var(--gold); color: var(--navy-deep); } .t4 { background: var(--navy); color: var(--ivory); }

.quote-band .wrap { display: grid; gap: 1.5rem; border-bottom: 1px solid var(--rule); padding-bottom: clamp(3rem, 7vw, 5rem); }
@media (min-width: 900px) { .quote-band .wrap { grid-template-columns: 7rem 1fr 18rem; align-items: end; } }
.quote-band .mark { font-family: var(--serif); font-size: 6.5rem; line-height: .6; color: var(--gold); opacity: .8; align-self: start; }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4.8vw, 3.3rem); line-height: 1.12; margin: 0 0 1.2rem; }
.quote-band cite { font-style: normal; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.quote-band .translation { margin: 0; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1rem; }

.langs { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
@media (min-width: 640px) { .langs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .langs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.langs a { display: flex; align-items: center; gap: .8rem; min-height: 3.25rem; padding: .6rem 1rem; text-decoration: none; font-size: .95rem; border-inline-end: 1px solid var(--rule); border-bottom: 1px solid var(--rule); height: 100%; }
.langs a:hover { background: var(--paper); }
.langs a[aria-current="page"] { background: var(--navy); color: var(--ivory); }
.langs code { font: 700 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); min-width: 2.2rem; }
.langs a[aria-current="page"] code { color: var(--gold-bright); }

.cta-box { background: var(--navy); color: var(--ivory); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-box { grid-template-columns: 1.4fr 1fr; } }
.cta-box h2 { font-weight: 400; }
.cta-box p { color: var(--on-navy-muted); }
