/* Weisender AI Solutions – corporate site
   Palette taken from the corporate logo: deep navy, metallic gold, metallic silver, white.
   No external fonts or resources. */

:root {
  --navy-950: #00112b; /* logo artwork background */
  --navy-900: #071931; /* emblem background */
  --navy-800: #0d2444;
  --navy-700: #17345d;
  --gold: #e3a72f;
  --gold-light: #f7d683;
  --gold-deep: #8a5d00; /* gold for text on white (AA) */
  --silver: #c9d1dc;
  --silver-light: #eef1f5;
  --ink: #0a1a33;
  --text: #25334b;
  --muted: #55627a;
  --bg: #ffffff;
  --tint: #f3f6fa;
  --line: #dde4ed;
  --metal: linear-gradient(90deg, #c98a14 0%, #f7d683 28%, #e3a72f 48%, #eef1f5 72%, #9aa6b5 100%);
  --radius: 14px;
  --wrap: 1120px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", "Noto Serif", serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.25em; }
address { font-style: normal; margin: 0 0 1em; }

a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gold-deep); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: 0.75rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--navy-950); font-weight: 700;
  padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
}
.lead { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.55; max-width: 46rem; }
.intro { max-width: 48rem; font-size: 1.125rem; }
.muted { color: var(--muted); font-size: 0.9375rem; }
.after { margin-top: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.8rem 1.5rem; border-radius: 999px;
  background: linear-gradient(180deg, #f3c452, var(--gold)); color: var(--navy-950);
  border: 2px solid transparent; font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: filter 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { filter: brightness(1.07); color: var(--navy-950); }
.btn--ghost { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn--ghost:hover { background: var(--navy-800); color: #fff; filter: none; }
.btn--ghost-light { background: transparent; border-color: var(--silver); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy-950); filter: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900); color: #fff;
  border-bottom: 1px solid rgba(227, 167, 47, 0.35);
}
.bar { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: #fff; padding: 0.4rem 0; }
.brand img { height: 2.25rem; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; letter-spacing: 0.14em; font-size: 1.0625rem; color: #fff; }
.brand-sub { font-size: 0.6875rem; letter-spacing: 0.34em; color: var(--silver); }
.brand:hover .brand-name { color: var(--gold-light); }

.nav-area { display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav { gap: 0.25rem; }
.nav a {
  display: block; padding: 0.6rem 0.7rem; color: #e8edf5; text-decoration: none;
  font-weight: 600; font-size: 0.9375rem; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { color: var(--gold-light); }
.nav a[aria-current="page"] { color: var(--gold-light); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

/* Language menu: works without JavaScript (details/summary); 13 languages by their own names. */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 0.45rem;
  border: 1px solid rgba(201, 209, 220, 0.45); border-radius: 999px;
  padding: 0.4rem 0.9rem; color: #e8edf5; font-size: 0.875rem; font-weight: 600;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: ""; width: 0.4rem; height: 0.4rem; margin-inline-start: 0.2rem; margin-top: -0.2rem;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.lang-menu[open] summary, .lang-menu summary:hover { color: var(--gold-light); border-color: var(--gold); }
.lang-code { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: var(--gold-light); }
.lang-list {
  list-style: none; margin: 0; padding: 0.5rem;
  position: absolute; z-index: 60; top: calc(100% + 0.6rem); inset-inline-end: 0;
  display: grid; grid-template-columns: repeat(2, minmax(9.5rem, 1fr)); gap: 0.15rem;
  background: var(--navy-900); border: 1px solid rgba(227, 167, 47, 0.45); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.lang-list a {
  display: flex; align-items: baseline; gap: 0.6rem; padding: 0.55rem 0.75rem; border-radius: 8px;
  color: #e8edf5; text-decoration: none; font-size: 0.9375rem; font-weight: 600; white-space: nowrap;
}
.lang-list a:hover { background: rgba(255, 255, 255, 0.08); color: var(--gold-light); }
.lang-list a[aria-current="true"] { background: var(--silver-light); color: var(--navy-950); }
.lang-list a[aria-current="true"] .lang-code { color: var(--gold-deep); }

.nav-toggle {
  display: none; margin-inline-start: auto; align-items: center; gap: 0.6rem;
  background: transparent; color: #fff; border: 1px solid rgba(201, 209, 220, 0.45);
  border-radius: 10px; padding: 0.55rem 0.8rem; font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 1.15rem; height: 2px; background: currentColor; border-radius: 2px; content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 1280px) {
  /* Six languages and six navigation entries need the room: collapse earlier.
     Without JavaScript the navigation simply wraps below the brand and stays usable. */
  .nav-area { width: 100%; margin-inline-start: 0; flex-wrap: wrap; justify-content: space-between; padding-bottom: 0.75rem; gap: 0.75rem; }
  .nav { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-area { display: none; }
  .js .nav-area.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .js .nav { flex-direction: column; align-items: stretch; }
  .js .nav a { padding: 0.85rem 0.25rem; font-size: 1.0625rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .js .nav a[aria-current="page"] { box-shadow: none; border-inline-start: 3px solid var(--gold); padding-inline-start: 0.85rem; }
  .js .nav-area nav:last-child { margin-top: 0.5rem; }
  .nav-area nav:last-child { width: 100%; }
  .lang-menu summary { display: inline-flex; }
  .lang-list { position: static; margin-top: 0.6rem; box-shadow: none; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
}

@media (max-width: 480px) {
  /* keep brand and menu button on one row on narrow phones */
  .bar { gap: 0.5rem; }
  .brand { gap: 0.55rem; }
  .brand img { height: 1.75rem; }
  .brand-name { font-size: 0.9375rem; letter-spacing: 0.11em; }
  .brand-sub { font-size: 0.625rem; letter-spacing: 0.28em; }
  .nav-toggle { padding: 0.6rem 0.7rem; min-width: 2.75rem; min-height: 2.75rem; justify-content: center; }
  .nav-toggle-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  h1, h2 { hyphens: auto; -webkit-hyphens: auto; }
}

/* ---------- Home hero ---------- */
.hero { background: var(--bg); }
.hero-logo { background: var(--navy-950); border-bottom: 3px solid transparent; border-image: var(--metal) 1; }
.hero-logo img { width: min(100%, 1151px); margin-inline: auto; }
.hero-copy { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem); text-align: center; }
.hero-copy h1 { max-width: 20ch; margin-inline: auto; }
.hero-copy .lead { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.75rem; }

/* ---------- Sub-page hero ---------- */
.page-hero {
  background: radial-gradient(120% 140% at 85% 0%, var(--navy-700) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: #e8edf5; padding-block: clamp(3rem, 8vw, 5.5rem);
  border-bottom: 3px solid transparent; border-image: var(--metal) 1;
}
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero .lead { margin-bottom: 0; color: var(--silver); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.25rem, 8vw, 6rem); }
.section--tint { background: var(--tint); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-950) 100%);
  color: #dfe6f0;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: var(--gold-light); }
.section--navy h2 { letter-spacing: 0.1em; }
.section--cta { background: var(--navy-950); color: #dfe6f0; text-align: center; border-top: 3px solid transparent; border-image: var(--metal) 1; }
.section--cta h2 { color: #fff; }
.cta p { max-width: 38rem; margin-inline: auto; }
.cta p:last-child { margin: 1.75rem auto 0; }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(16.5rem, 100%), 1fr)); margin-top: 2.25rem; }
.cards--four { grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.25rem; overflow: hidden;
  box-shadow: 0 1px 2px rgba(10, 26, 51, 0.04), 0 8px 24px rgba(10, 26, 51, 0.05);
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--metal); }
.card--plain { box-shadow: none; }
.card p:last-child { margin-bottom: 0.5rem; }

.split { display: grid; gap: 2.5rem; grid-template-columns: 1.2fr 1fr; align-items: center; }
.duo { display: grid; gap: 2.5rem 3.5rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) { .split, .duo { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.ticks li {
  position: relative; padding: 0.9rem 1rem; padding-inline-start: 3rem; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(201, 209, 220, 0.22); color: #fff; font-weight: 600;
}
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 1.15rem; top: 1.15rem; width: 0.55rem; height: 0.95rem;
  border: solid var(--gold); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.ticks--dark li { background: #fff; border-color: var(--line); color: var(--ink); }
.ticks--dark li::before { border-color: var(--gold-deep); }
.ticks--cols { grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); margin-top: 2rem; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 2.25rem 0 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 1.25rem; position: relative; }
.steps li::before {
  content: "0" counter(step); display: block; margin-bottom: 0.6rem;
  font-size: 0.875rem; font-weight: 800; letter-spacing: 0.16em; color: var(--gold-deep);
}
.steps li::after { content: ""; position: absolute; top: -2px; inset-inline-start: 0; width: 3.5rem; height: 2px; background: var(--gold); }
.steps p { margin: 0; }

.facts { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 14rem 1fr; gap: 0.5rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; }
@media (max-width: 620px) { .facts > div { grid-template-columns: 1fr; gap: 0.15rem; } }

.notice { border-inline-start: 4px solid var(--gold); background: var(--tint); border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); padding: 1.5rem 1.5rem 0.75rem; }
.notice h2 { font-size: 1.1875rem; }
.notice--soft { margin-top: 2.5rem; }

.pending {
  border: 2px dashed #b77a00; background: #fff7e0; color: #4d3500;
  border-radius: 10px; padding: 0.85rem 1rem; font-size: 0.9375rem;
}

.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem 1rem; position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--metal); }
.contact-card h2 { font-size: 1.1875rem; }
.mail { font-size: 1.25rem; font-weight: 700; }

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.3125rem; margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 0.35rem; }

/* ---------- Founding story (home teaser) ---------- */
.founding {
  background: radial-gradient(120% 160% at 15% 0%, var(--navy-700) 0%, var(--navy-900) 50%, var(--navy-950) 100%);
  color: #dfe6f0; text-align: center;
  border-block: 3px solid transparent; border-image: var(--metal) 1;
}
.founding .eyebrow { color: var(--gold-light); }
.founding h2 { color: #fff; letter-spacing: 0.06em; }
.founding-thought {
  max-width: 44rem; margin: 1.5rem auto 2rem;
  font-family: var(--serif); font-size: clamp(1.1875rem, 1.05rem + 0.8vw, 1.5rem); line-height: 1.55; color: #fff;
}

/* ---------- About page ---------- */
.page-hero--about h1 { letter-spacing: 0.04em; }
.story h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem); letter-spacing: 0.04em; margin-bottom: 1.25rem; }
.story h3 { margin-top: 2rem; }
.story h3:first-child { margin-top: 0; }
.story--wide > h2, .story--wide > p { max-width: 46rem; }
.story-key {
  margin-block: 1.5rem; padding-inline-start: 1.25rem; border-inline-start: 4px solid var(--gold);
  font-family: var(--serif); font-size: clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--ink);
}
.poem-wrap > h2 { color: #fff; text-align: center; letter-spacing: 0.06em; }
.poem-wrap > h3 { color: var(--gold-light); text-align: center; font-weight: 600; margin-bottom: 1.75rem; }
.poem-wrap > p:not(.pending) { color: var(--silver-light); }
.poem-wrap > .poem { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(201, 209, 220, 0.25); }

.about-presentation { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.about-presentation .story section + section { margin-block-start: 2.5rem; }
.about-presentation .story p { max-width: 62ch; }
.about-presentation .about-inspiration {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--silver-light);
  overflow-wrap: anywhere;
}
.about-inspiration > h2 {
  color: var(--gold-light);
  text-align: center;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}
.about-inspiration .poem-title { font-size: clamp(1.25rem, 1rem + 0.7vw, 1.65rem); }
.about-inspiration .poem-body { font-size: 1.0625rem; }
.about-inspiration .poem-poet::after { content: none; }
.about-closing-slogan { color: var(--gold-light); font-weight: 700; letter-spacing: 0.12em; }

@media (min-width: 48rem) {
  .about-presentation { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
}
@media (min-width: 64rem) {
  .about-presentation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.75rem, 2.5vw, 2.5rem);
  }
  .about-presentation .story p { font-size: 1.125em; }
  .about-presentation .story section + section { margin-block-start: 3rem; }
}

/* The poem: a literary block in the navy / gold / silver identity. */
.poem-section {
  background: linear-gradient(170deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--silver-light);
  border-block: 3px solid transparent; border-image: var(--metal) 1;
}
.poem-section .eyebrow { color: var(--gold-light); text-align: center; }
.poem-wrap { max-width: 46rem; }
.poem-intro { text-align: center; color: var(--silver); margin-bottom: 2.5rem; }
.poem { margin: 0; }
.poem-title {
  color: var(--gold-light); text-align: center; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.375rem, 1.1rem + 1.4vw, 2rem); letter-spacing: 0.08em; margin-bottom: 0.4rem;
}
.poem-poet { text-align: center; color: var(--silver); font-style: italic; margin-bottom: 2.25rem; }
.poem-poet::after {
  content: ""; display: block; width: 4.5rem; height: 2px; margin: 1.25rem auto 0; background: var(--metal);
}
.poem-body { font-family: var(--serif); font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem); line-height: 1.7; }
.stanza { margin: 0 0 1.75em; }
.stanza:last-child { margin-bottom: 0; }
/* One verse per line; a verse that has to wrap on a narrow screen is indented, so the
   line structure of the stanza stays visible. */
.line { display: block; padding-inline-start: 1.5em; text-indent: -1.5em; }
.stanza .line:last-child { color: var(--gold-light); }
.poem figcaption {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(201, 209, 220, 0.25);
  font-size: 0.875rem; line-height: 1.55; color: var(--silver);
}
.poem-section .pending { margin-top: 1.5rem; }
.poem-original { margin-top: 1.5rem; border: 1px solid rgba(201, 209, 220, 0.3); border-radius: var(--radius); }
.poem-original summary { cursor: pointer; padding: 0.9rem 1.25rem; font-weight: 600; color: #fff; }
.poem-original summary:hover { color: var(--gold-light); }
.poem-original .poem-body { padding: 0.5rem 1.25rem 1.5rem; text-align: left; }
.poem-original-title { color: var(--gold-light); letter-spacing: 0.08em; margin-bottom: 1.25rem; }

.principles {
  list-style: none; counter-reset: principle; padding: 0; margin: 2.25rem 0 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}
.principles li {
  counter-increment: principle; display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; font-weight: 700; color: var(--ink);
}
.principles li::before {
  content: counter(principle); flex: none; display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-light); font-size: 0.9375rem;
}

.principles--full { grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr)); }
.principles--full li { align-items: flex-start; font-weight: 400; color: var(--text); padding: 1.35rem 1.25rem; }
.principles--full h3 { margin: 0.3rem 0 0.4rem; }
.principles--full p { margin: 0; }

.closing-name { letter-spacing: 0.2em; font-weight: 800; color: var(--gold-light); margin-bottom: 1rem; }
.oath { max-width: 46rem; }
.oath-list { list-style: none; counter-reset: oath; padding: 0; margin: 0 0 2.5rem; border-top: 1px solid var(--line); }
.oath-list li {
  counter-increment: oath; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 1.125rem;
}
.oath-list li::before { content: counter(oath) "."; color: var(--gold-deep); font-weight: 800; }
.oath .closing-actions { justify-content: flex-start; }

.closing-message { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25em 0.9em; font-family: var(--serif); font-weight: 600; }
.closing-message span { max-inline-size: 100%; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- Right-to-left (Arabic) ----------
   Layout mirrors through the logical properties above. Arabic script is cursive:
   letter-spacing would break the joins, and it has no capital letters. */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif; line-height: 1.8; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] .eyebrow, [dir="rtl"] .poem-title, [dir="rtl"] .founding h2, [dir="rtl"] .section--navy h2 { letter-spacing: 0; }
[dir="rtl"] .eyebrow { font-size: 0.9375rem; }
[dir="rtl"] .poem-poet { font-style: normal; }
[dir="rtl"] .story h2, [dir="rtl"] .poem-wrap > h2, [dir="rtl"] .about-inspiration > h2 { letter-spacing: 0; }
[dir="rtl"] .about-link-arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .oath-list li::before { content: counter(oath, arabic-indic) "."; }
[dir="rtl"] .closing-name { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .ticks li::before { transform: rotate(45deg) scaleX(1); }
[dir="rtl"] .brand-text, [dir="rtl"] .footer-brand, [dir="rtl"] .footer-slogan { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .footer-brand, [dir="rtl"] .footer-slogan { text-align: right; }
[dir="rtl"] .poem-original .poem-body { direction: ltr; }
/* German postal addresses keep their own order ("45468 Mülheim an der Ruhr"). */
[dir="rtl"] address { direction: ltr; text-align: right; }

/* ---------- Chinese, Japanese, Korean ----------
   System fonts only (no font service). The lang attribute selects the right glyph forms. */
html:lang(zh) {
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Source Han Serif SC", serif;
}
html:lang(ja) {
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", "Noto Serif JP", serif;
}
html:lang(ko) {
  --font: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif;
  --serif: "AppleMyungjo", "Nanum Myeongjo", Batang, "Noto Serif KR", serif;
}
html:lang(zh) body, html:lang(ja) body, html:lang(ko) body { line-height: 1.8; line-break: strict; }
html:lang(ko) body { word-break: keep-all; }
html:lang(zh) :is(h1, h2, h3), html:lang(ja) :is(h1, h2, h3), html:lang(ko) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
html:lang(zh) .eyebrow, html:lang(ja) .eyebrow, html:lang(ko) .eyebrow { letter-spacing: 0.08em; font-size: 0.875rem; }
html:lang(zh) .poem-poet, html:lang(ja) .poem-poet, html:lang(ko) .poem-poet { font-style: normal; }
html:lang(zh) .poem-title, html:lang(ja) .poem-title, html:lang(ko) .poem-title { letter-spacing: 0.04em; }
/* Latin brand lettering keeps the Latin system font in every script */
.brand-text, .footer-brand, .footer-slogan, .closing-name, .lang-code { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--silver); font-size: 0.9375rem; padding-top: clamp(2.5rem, 6vw, 4rem); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; gap: 2rem 2.5rem; grid-template-columns: 1.6fr 1.3fr 0.8fr 0.8fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-brand { margin-bottom: 0.25rem; }
.footer-slogan { letter-spacing: 0.32em; font-size: 0.75rem; color: var(--gold-light); margin-bottom: 1rem; }
.footer-base {
  margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid rgba(201, 209, 220, 0.2);
  display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; justify-content: space-between; font-size: 0.8125rem;
}
.footer-base p { margin: 0; }

/* ---------- Language entry and 404 ---------- */
.entry { background: var(--navy-950); color: var(--silver); min-height: 100vh; display: grid; place-items: center; }
.entry-main { width: min(100%, 1151px); text-align: center; padding-bottom: 3rem; }
.entry-main--text { width: min(100% - 2.5rem, 36rem); padding-block: 4rem; }
.entry-main--text h1, .entry-main--text h2 { color: #fff; }
.entry-main--text h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.entry-main--text .eyebrow { color: var(--gold-light); }
.entry-langs { list-style: none; padding: 0 1.25rem; margin: 2rem auto 0; max-width: 46rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .nav-toggle, .skip, .hero-actions, .section--cta { display: none; }
  .site-header { position: static; }
  body { font-size: 11pt; }
  .page-hero, .section--navy, .site-footer { background: none; color: #000; }
  .page-hero h1, .section--navy h2 { color: #000; }
}
