:root {
  --navy: #071d31;
  --navy-2: #0c2a43;
  --ink: #10283d;
  --gold: #b98c42;
  --gold-light: #d8b06a;
  --paper: #f8f6f1;
  --white: #fff;
  --muted: #68727c;
  --line: rgba(185, 140, 66, .35);
  --shadow: 0 24px 70px rgba(3, 20, 34, .16);
  --shell: min(1220px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.9;
}
body.lang-en { direction: ltr; font-family: Georgia, "Times New Roman", serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.skip-link {
  position: fixed; inset-inline-start: 20px; top: -60px; z-index: 1000;
  background: var(--white); color: var(--navy); padding: 10px 16px;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7, 29, 49, .96); color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.header-shell {
  width: var(--shell); min-height: 88px; margin: auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; min-width: max-content; }
.brand-mark { width: 58px; height: 67px; fill: none; stroke: var(--gold-light); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy { display: grid; line-height: 1.35; }
.brand-copy strong { font-size: 1.18rem; letter-spacing: .01em; }
.brand-copy small { color: var(--gold-light); font-family: Georgia, serif; letter-spacing: .12em; font-size: .68rem; }

.primary-nav { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 2vw, 32px); }
.primary-nav a { position: relative; color: rgba(255,255,255,.86); text-decoration: none; font-size: .88rem; white-space: nowrap; }
.primary-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -13px; height: 1px; background: var(--gold-light); transform: scaleX(0); transition: transform .25s ease; }
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }
.primary-nav a.active { color: var(--gold-light); }
.header-actions { display: flex; align-items: center; }
.language-toggle { border: 0; background: transparent; color: var(--white); cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: .75rem; }
.language-toggle i { width: 1px; height: 22px; background: rgba(255,255,255,.28); }
.language-toggle .en-label { font-family: Georgia, serif; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.22); background: transparent; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 1px; background: white; margin: 6px 0; }

.hero {
  min-height: 790px; position: relative; display: grid; place-items: center;
  background-image: url("assets/hero-background.jpg"); background-size: cover; background-position: center;
  padding: 160px 20px 90px; overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248,246,241,.32), rgba(248,246,241,.82) 33%, rgba(248,246,241,.82) 68%, rgba(248,246,241,.26)); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.15), transparent 45%, rgba(7,29,49,.24)); }
.hero-shade { position: absolute; width: min(820px, 90vw); height: 540px; background: rgba(248,246,241,.68); filter: blur(40px); border-radius: 50%; }
.hero-content { position: relative; z-index: 2; max-width: 820px; text-align: center; }
.eyebrow, .kicker { color: var(--gold); font-weight: 700; letter-spacing: .14em; font-size: .78rem; margin: 0 0 12px; }
.hero h1 { margin: 0; color: var(--navy); font-size: clamp(2.15rem, 4.6vw, 4.6rem); line-height: 1.35; font-weight: 700; }
body.lang-en .hero h1 { font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 1.08; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--gold); margin: 24px auto; width: 240px; }
.ornament span { height: 1px; background: var(--gold); flex: 1; }
.ornament b { font-size: .8rem; }
.hero-lede { max-width: 670px; margin: 0 auto 30px; font-size: 1.04rem; color: #24394b; }
.primary-button, .outline-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 50px; padding: 0 28px; text-decoration: none; letter-spacing: .04em;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.primary-button { background: var(--navy); color: white; border: 1px solid var(--gold); box-shadow: 0 12px 30px rgba(7,29,49,.18); }
.primary-button:hover { transform: translateY(-3px); background: var(--navy-2); }
.scroll-cue { position: absolute; z-index: 3; bottom: 26px; width: 28px; height: 42px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; }
.scroll-cue span { position: absolute; width: 4px; height: 4px; background: white; border-radius: 50%; left: 50%; top: 9px; transform: translateX(-50%); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%,0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,15px); } }

.section { padding: 100px 20px; }
.section-heading { width: var(--shell); margin: 0 auto 48px; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.45; }
.section-heading.light { color: white; }
.section-heading.light .kicker { color: var(--gold-light); }

.intro { background: white; }
.intro-grid { width: var(--shell); margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.intro-copy { font-size: 1.03rem; color: #3f4c57; }
.heritage-quote { margin: 0; border-inline-start: 1px solid var(--gold); padding: 30px 44px; position: relative; background: #fbfaf6; }
.heritage-quote > span { position: absolute; top: -20px; inset-inline-start: 22px; color: var(--gold-light); font-family: Georgia, serif; font-size: 6rem; line-height: 1; }
.heritage-quote p { position: relative; margin: 0; font-size: 1.35rem; line-height: 1.75; }

.family { background: var(--navy); }
.family-grid { width: var(--shell); margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: var(--shadow); }
.person-card { min-height: 450px; display: grid; grid-template-rows: 250px 1fr; overflow: hidden; }
.person-card img { width: 100%; height: 250px; object-fit: cover; object-position: center top; filter: grayscale(1); }
.person-copy { padding: 28px 30px 34px; }
.person-card.dark { background: #0b263e; color: white; }
.person-card.pale { background: #eee8dc; color: var(--navy); }
.person-card h3 { margin: 5px 0 12px; font-size: 1.35rem; }
.person-card p { margin: 0 0 16px; font-size: .93rem; line-height: 1.8; }
.generation { color: var(--gold-light); font-size: .72rem !important; letter-spacing: .11em; font-weight: 700; }
.person-card a { color: var(--gold-light); text-decoration: none; font-size: .82rem; }
.person-card.pale a, .person-card.pale .generation { color: #8f692d; }
.person-card:hover img { filter: grayscale(.3); transform: scale(1.025); transition: .45s ease; }
.asset-note { width: var(--shell); margin: 22px auto 0; color: rgba(255,255,255,.55); text-align: center; font-size: .73rem; }

.values { background: var(--paper); }
.value-grid { width: var(--shell); margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { background: white; border: 1px solid rgba(16,40,61,.08); min-height: 260px; padding: 40px 32px; text-align: center; box-shadow: 0 16px 40px rgba(16,40,61,.06); }
.value-card h3 { font-size: 1.15rem; margin: 20px 0 10px; }
.value-card p { margin: 0; color: var(--muted); }
.value-icon { width: 58px; height: 58px; display: inline-block; position: relative; }
.value-icon::before, .value-icon::after { content: ""; position: absolute; border: 2px solid var(--gold); }
.value-icon.doorway::before { inset: 5px 11px 0; border-radius: 27px 27px 0 0; }
.value-icon.doorway::after { width: 12px; height: 30px; left: 23px; bottom: 0; }
.value-icon.book::before { width: 25px; height: 42px; left: 3px; top: 8px; border-radius: 14px 0 0 0; }
.value-icon.book::after { width: 25px; height: 42px; right: 3px; top: 8px; border-radius: 0 14px 0 0; }
.value-icon.compass::before { inset: 5px; border-radius: 50%; }
.value-icon.compass::after { width: 8px; height: 36px; left: 24px; top: 11px; transform: rotate(35deg); }

.archive { background: white; }
.archive-panel { width: var(--shell); margin: auto; background: var(--navy); color: white; padding: 58px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; box-shadow: var(--shadow); }
.archive-panel h2 { margin: 4px 0 12px; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.archive-panel p { margin: 0; max-width: 760px; color: rgba(255,255,255,.72); }
.outline-button { border: 1px solid var(--gold-light); color: var(--gold-light); white-space: nowrap; }
.outline-button:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-3px); }

.site-footer { background: #04131f; color: white; padding: 50px 20px; }
.footer-shell { width: var(--shell); margin: auto; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.footer-brand strong { font-size: 1.25rem; }
.footer-brand p { color: rgba(255,255,255,.55); margin: 8px 0 0; }
.back-to-top { color: var(--gold-light); text-decoration: none; font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

body.lang-en .brand-copy strong, body.lang-en .primary-nav, body.lang-en .header-actions, body.lang-en h1, body.lang-en h2, body.lang-en h3 { font-family: Georgia, "Times New Roman", serif; }
body.lang-en .primary-button span:first-child, body.lang-en .outline-button { font-size: .74rem; }
body.lang-en .person-card a b { display: inline-block; transform: rotate(180deg); }
body.lang-en .primary-button span:last-child { display: inline-block; transform: rotate(180deg); }

@media (max-width: 1030px) {
  .header-shell { grid-template-columns: auto auto 1fr; gap: 18px; }
  .nav-toggle { display: block; justify-self: end; }
  .primary-nav { position: fixed; top: 88px; left: 0; right: 0; display: grid; justify-content: stretch; gap: 0; background: var(--navy); padding: 16px 24px 26px; transform: translateY(-130%); opacity: 0; pointer-events: none; transition: .3s ease; }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav a::after { display: none; }
  .header-actions { justify-self: end; }
  .family-grid { grid-template-columns: 1fr; max-width: 720px; }
  .person-card { grid-template-columns: 42% 58%; grid-template-rows: 1fr; min-height: 320px; }
  .person-card img { height: 100%; min-height: 320px; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 28px, 620px); }
  .header-shell { min-height: 76px; grid-template-columns: 1fr auto; }
  .brand-mark { width: 43px; height: 52px; }
  .brand-copy strong { font-size: .92rem; }
  .brand-copy small { font-size: .55rem; }
  .header-actions { display: none; }
  .primary-nav { top: 76px; }
  .hero { min-height: 700px; padding-top: 126px; }
  .hero::before { background: rgba(248,246,241,.72); }
  .section { padding: 74px 14px; }
  .intro-grid, .value-grid { grid-template-columns: 1fr; gap: 24px; }
  .heritage-quote { padding: 30px 24px; }
  .person-card { grid-template-columns: 1fr; grid-template-rows: 240px auto; }
  .person-card img { min-height: 240px; height: 240px; }
  .archive-panel { grid-template-columns: 1fr; padding: 36px 26px; }
  .outline-button { width: 100%; }
  .footer-shell { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
