@charset "UTF-8";

:root {
  --forest-950: #071a33;
  --forest-900: #0b2a4a;
  --forest-800: #123f68;
  --forest-700: #1d527f;
  --cream-50: #ffffff;
  --cream-100: #f4f8fc;
  --cream-200: #dce8f2;
  --cream-300: #bfd2e4;
  --gold-500: #2d6ea3;
  --gold-400: #8db7d9;
  --rust-600: #164a73;
  --rust-500: #21608f;
  --ink: #0c223a;
  --muted: #53677b;
  --white: #ffffff;
  --line: rgba(12, 34, 58, 0.14);
  --shadow-sm: 0 12px 30px rgba(7, 26, 51, 0.09);
  --shadow-lg: 0 35px 90px rgba(7, 26, 51, 0.22);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --shell: min(1180px, calc(100% - 48px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-50);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
blockquote,
figure {
  margin-top: 0;
}

::selection {
  color: var(--white);
  background: var(--rust-600);
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  color: var(--white);
  background: var(--forest-950);
  border-radius: 7px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--rust-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--gold-400);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 750;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button svg,
.text-link svg,
.contact-band .button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-gold {
  color: var(--forest-950);
  background: var(--gold-400);
}

.button-gold:hover {
  background: #a9c9e2;
}

.button-ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.button-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.button-ink {
  color: var(--white);
  background: var(--forest-900);
}

.button-ink:hover {
  background: var(--forest-700);
}

.button-light {
  color: var(--forest-950);
  background: var(--cream-100);
}

.button-light:hover {
  background: var(--white);
}

.button-text {
  min-height: auto;
  color: var(--forest-800);
  background: transparent;
}

.button-text:hover {
  background: rgba(18, 63, 104, 0.07);
}

.button-outline-ink {
  color: var(--forest-950);
  background: transparent;
  border-color: rgba(7, 26, 51, 0.42);
}

.button-outline-ink:hover {
  color: var(--white);
  background: var(--forest-900);
  border-color: var(--forest-900);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--white);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(12, 34, 58, 0.1);
  box-shadow: 0 8px 30px rgba(7, 26, 51, 0.07);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  line-height: 1.05;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--gold-400);
  border-radius: 50%;
  color: var(--gold-400);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-copy span {
  opacity: 0.7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav > a {
  position: relative;
  padding-block: 8px;
  font-size: 0.82rem;
  font-weight: 680;
}

.primary-nav > a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 11px 17px;
  cursor: pointer;
  color: var(--forest-950);
  background: var(--gold-400);
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 750;
  transition: background 180ms ease, transform 180ms ease;
}

.nav-cta:hover {
  background: #9fc2df;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 900px;
  padding-top: 78px;
  color: var(--white);
  background: var(--forest-900);
}

.hero::before {
  position: absolute;
  top: -22%;
  right: -14%;
  width: 650px;
  aspect-ratio: 1;
  border: 1px solid rgba(141, 183, 217, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 95px rgba(141, 183, 217, 0.025), 0 0 0 190px rgba(141, 183, 217, 0.018);
  content: "";
}

.hero-texture {
  position: absolute;
  inset: 0;
  opacity: 0.27;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 700px;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 72px;
  padding-block: 76px 108px;
}

.hero-copy {
  max-width: 570px;
}

.hero h1 {
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: clamp(3.45rem, 6.6vw, 6.7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.hero h1 em {
  color: var(--gold-400);
  font-weight: 400;
}

.hero-lede {
  max-width: 550px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 570px);
}

.hero-photo-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 14px;
  color: var(--ink);
  background: #e7f0f8;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.8deg);
}

.hero-photo-frame::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  content: "";
  pointer-events: none;
}

.hero-photo-frame img {
  width: 100%;
  height: 515px;
  object-fit: cover;
  object-position: 48% center;
  filter: saturate(0.86) contrast(1.03);
}

.hero-photo-frame figcaption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 7px 5px;
}

.hero-photo-frame figcaption span {
  color: var(--rust-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-photo-frame figcaption strong {
  font-family: var(--serif);
  font-size: 1.03rem;
  font-style: italic;
  font-weight: 500;
}

.hero-seal {
  position: absolute;
  z-index: 2;
  right: -46px;
  bottom: -32px;
  display: grid;
  width: 138px;
  height: 138px;
  place-content: center;
  padding: 18px;
  border: 1px solid var(--gold-400);
  border-radius: 50%;
  color: var(--forest-950);
  background: var(--gold-400);
  box-shadow: 0 18px 40px rgba(7, 26, 51, 0.28);
  text-align: center;
  transform: rotate(-8deg);
}

.hero-seal::before {
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(7, 26, 51, 0.52);
  border-radius: 50%;
  content: "";
}

.hero-seal span {
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-seal strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.05;
}

.legacy-strip {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  color: var(--ink);
  background: var(--cream-100);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.legacy-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.legacy-strip-inner > div {
  display: flex;
  min-height: 122px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.legacy-strip-inner > div:first-child {
  border-left: 1px solid var(--line);
}

.legacy-strip strong {
  color: var(--rust-600);
  font-family: var(--serif);
  font-size: 2.45rem;
  font-weight: 500;
  line-height: 1;
}

.legacy-strip span {
  max-width: 100px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.section {
  padding-block: 122px;
}

.section-heading h2,
.tree-heading h2,
.portrait-copy h2,
.share-copy h2,
.contact-band h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 90px;
  margin-bottom: 70px;
}

.heading-note {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: start;
  gap: 22px;
  padding-bottom: 8px;
}

.heading-note .ornament {
  width: 52px;
  height: 1px;
  margin-top: 13px;
  background: var(--rust-600);
}

.heading-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.story-section {
  position: relative;
  overflow: hidden;
  background: var(--cream-50);
}

.story-section::after {
  position: absolute;
  right: -120px;
  bottom: 120px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(22, 74, 115, 0.12);
  border-radius: 50%;
  content: "";
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.76fr);
  gap: 90px;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 20px;
  bottom: 22px;
  left: 31px;
  width: 1px;
  background: var(--cream-300);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  padding-bottom: 52px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--rust-600);
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.94rem;
}

.timeline-era {
  margin-bottom: 5px;
  color: var(--rust-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline h3 {
  margin-bottom: 11px;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.2;
}

.timeline p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.story-aside {
  position: relative;
}

.document-card {
  position: relative;
  margin: 0 0 36px;
  padding: 14px;
  background: #e5eef7;
  box-shadow: var(--shadow-sm);
  transform: rotate(1.5deg);
}

.document-card img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center top;
}

.document-expand,
.brother-center figure button,
.portrait-stack figure button {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  cursor: pointer;
  color: var(--white);
  background: rgba(7, 26, 51, 0.86);
  border-radius: 50%;
  transition: transform 180ms ease, background 180ms ease;
}

.document-expand:hover,
.brother-center figure button:hover,
.portrait-stack figure button:hover {
  background: var(--rust-600);
  transform: scale(1.06);
}

.document-expand svg,
.brother-center figure button svg,
.portrait-stack figure button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-aside blockquote {
  position: relative;
  margin-bottom: 30px;
  padding: 10px 5px 5px 34px;
  color: var(--forest-900);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.45;
}

.story-aside blockquote::before {
  position: absolute;
  top: -14px;
  left: 0;
  color: var(--gold-500);
  content: "“";
  font-family: var(--serif);
  font-size: 4.6rem;
  font-style: normal;
  line-height: 1;
}

.mission-card {
  padding: 25px 28px;
  color: var(--white);
  background: var(--forest-900);
  border-left: 4px solid var(--gold-400);
}

.mission-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-400);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mission-card p {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 1.13rem;
  line-height: 1.45;
}

.ancestors-section {
  color: var(--white);
  background: var(--rust-600);
}

.centered {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.ancestors-section .eyebrow {
  color: var(--cream-200);
}

.section-intro {
  max-width: 590px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.76);
}

.brother-grid {
  display: grid;
  grid-template-columns: 1fr 0.78fr 1fr;
  align-items: center;
  gap: 22px;
}

.brother-card {
  min-height: 525px;
  padding: 42px 40px;
  color: var(--ink);
  background: var(--cream-100);
  border-radius: 2px;
  box-shadow: 0 22px 55px rgba(7, 26, 51, 0.16);
}

.branch-monogram {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 27px;
  color: var(--rust-600);
  border: 1px solid var(--cream-300);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.55rem;
}

.card-kicker {
  margin-bottom: 3px;
  color: var(--rust-600);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brother-card h3 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: 2.05rem;
  font-weight: 600;
}

.branch-label {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.name-list {
  display: grid;
  gap: 8px;
  margin: 0 0 31px;
  padding: 0;
  list-style: none;
}

.name-list.two-column {
  grid-template-columns: 1fr 1fr;
}

.name-list li {
  position: relative;
  padding-left: 16px;
  font-family: var(--serif);
  font-size: 1.03rem;
}

.name-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--gold-500);
  content: "";
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  cursor: pointer;
  color: var(--forest-800);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 800;
}

.text-link svg {
  transition: transform 180ms ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

.brother-center {
  position: relative;
  z-index: 1;
}

.brother-center figure {
  position: relative;
  margin: 0;
  padding: 10px;
  background: #e8f1f8;
  box-shadow: 0 28px 55px rgba(7, 26, 51, 0.22);
  transform: rotate(-2.5deg);
}

.brother-center figure img {
  width: 100%;
  height: 335px;
  object-fit: cover;
  object-position: center top;
}

.center-caption {
  display: block;
  max-width: 230px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--serif);
  font-size: 0.91rem;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.tree-section {
  color: var(--white);
  background: var(--forest-950);
}

.tree-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 48px;
}

.tree-heading p:last-child {
  max-width: 490px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.68);
}

.tree-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.search-control {
  display: flex;
  min-width: 280px;
  flex: 1;
  align-items: center;
  gap: 12px;
  padding-inline: 8px;
}

.search-control svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 1.8;
}

.search-control input {
  width: 100%;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-control input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.tree-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tree-toolbar .button {
  min-height: 46px;
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  cursor: pointer;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
  transition: background 180ms ease;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tree-status {
  min-height: 26px;
  padding: 15px 4px 0;
  color: var(--gold-400);
  font-size: 0.78rem;
}

.family-tree {
  padding-block: 24px 44px;
}

.tree-root {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 66px;
}

.tree-root::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 55px;
  background: rgba(141, 183, 217, 0.65);
  content: "";
}

.tree-root-card {
  position: relative;
  display: flex;
  min-width: 320px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 24px;
  color: var(--forest-950);
  background: var(--gold-400);
  border-radius: var(--radius-sm);
  text-align: left;
}

.tree-root-card .tree-avatar {
  color: var(--forest-950);
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(7, 26, 51, 0.17);
}

.tree-root-card strong,
.tree-person strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.2;
}

.tree-root-card small,
.tree-person small {
  display: block;
  margin-top: 3px;
  opacity: 0.66;
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tree-branches {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.tree-branches::before {
  position: absolute;
  top: -1px;
  right: 25%;
  left: 25%;
  height: 1px;
  background: rgba(141, 183, 217, 0.65);
  content: "";
}

.tree-branch {
  position: relative;
  padding-top: 42px;
}

.tree-branch::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 42px;
  background: rgba(141, 183, 217, 0.65);
  content: "";
}

.tree-branch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--forest-800);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-sm);
}

.tree-person-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tree-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--gold-400);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(141, 183, 217, 0.32);
  border-radius: 50%;
  font-family: var(--serif);
}

.tree-edit {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease;
}

.tree-edit:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.tree-edit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tree-children {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 28px 10px 0;
}

.tree-children::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 27px;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.tree-person {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.tree-person:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(141, 183, 217, 0.34);
}

.tree-person.is-match {
  background: rgba(141, 183, 217, 0.13);
  border-color: var(--gold-400);
}

.tree-person.is-dimmed,
.tree-branch.is-dimmed {
  opacity: 0.22;
}

.tree-person.is-pending {
  border-style: dashed;
}

.pending-badge {
  display: inline-flex;
  margin-top: 5px;
  padding: 2px 6px;
  color: var(--gold-400);
  background: rgba(141, 183, 217, 0.1);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tree-empty {
  grid-column: 1 / -1;
  padding: 20px;
  color: rgba(255, 255, 255, 0.57);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  text-align: center;
}

.tree-subbranches {
  margin: 20px 10px 0;
}

.tree-subbranch {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(141, 183, 217, 0.28);
  border-radius: var(--radius-md);
}

.tree-subbranch-heading {
  padding: 20px 22px;
  background: rgba(141, 183, 217, 0.11);
  border-bottom: 1px solid rgba(141, 183, 217, 0.22);
}

.tree-subbranch-heading span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-400);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tree-subbranch-heading strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
}

.tree-subbranch-heading small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
}

.tree-subbranch-members {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.tree-subbranch-members::before {
  display: none;
}

.tree-note {
  display: flex;
  max-width: 620px;
  align-items: start;
  gap: 16px;
  margin: 0 auto;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.tree-unplaced {
  margin-top: 36px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
}

.tree-unplaced .tree-children {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

.tree-unplaced .tree-children::before {
  display: none;
}

.tree-branch.branch-highlight .tree-branch-head {
  animation: branch-pulse 1.5s ease;
}

@keyframes branch-pulse {
  0%, 100% { box-shadow: none; }
  35% { box-shadow: 0 0 0 5px rgba(141, 183, 217, 0.23); border-color: var(--gold-400); }
}

.tree-note > svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tree-note strong {
  font-family: var(--serif);
  font-size: 1.02rem;
}

.tree-note p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.8rem;
}

.portrait-section {
  background: var(--cream-100);
}

.portrait-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 110px;
}

.portrait-stack {
  position: relative;
  min-height: 645px;
}

.portrait-main,
.portrait-small {
  position: absolute;
  margin: 0;
  padding: 11px;
  background: #ddeaf4;
  box-shadow: var(--shadow-lg);
}

.portrait-main {
  top: 0;
  left: 0;
  width: 72%;
  transform: rotate(-2deg);
}

.portrait-main img {
  width: 100%;
  height: 530px;
  object-fit: cover;
  object-position: center top;
  filter: sepia(0.1);
}

.portrait-small {
  right: 0;
  bottom: 0;
  width: 49%;
  transform: rotate(3deg);
}

.portrait-small img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
}

.portrait-copy h2 em {
  color: var(--rust-600);
  font-weight: 400;
}

.lead-quote {
  max-width: 600px;
  margin: 30px 0 22px;
  color: var(--forest-800);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.55;
}

.portrait-copy > p:not(.eyebrow):not(.lead-quote) {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--muted);
}

.reunion-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--forest-950) 0%, var(--forest-800) 100%);
}

.reunion-section::before {
  position: absolute;
  top: -250px;
  right: -180px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025), 0 0 0 160px rgba(255, 255, 255, 0.018);
  content: "";
}

.reunion-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 80px;
}

.reunion-copy h2 {
  max-width: 760px;
  margin: 14px 0 24px;
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.98;
}

.reunion-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.reunion-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
}

.reunion-note {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
}

.reunion-year {
  display: grid;
  width: min(100%, 340px);
  aspect-ratio: 1;
  place-content: center;
  justify-self: end;
  padding: 34px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.035);
}

.reunion-year span,
.reunion-year small {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reunion-year span {
  color: var(--gold-400);
  font-size: 0.8rem;
  font-weight: 800;
}

.reunion-year strong {
  margin: 5px 0;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  line-height: 1;
}

.reunion-year small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 700;
}

.archive-section {
  background: var(--cream-50);
}

.archive-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-button {
  padding: 9px 14px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  background: var(--forest-900);
  border-color: var(--forest-900);
}

.archive-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 255px;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.archive-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--cream-200);
}

.archive-item.archive-wide {
  grid-column: span 2;
}

.archive-item.archive-tall {
  grid-row: span 2;
}

.archive-item[hidden] {
  display: none;
}

.archive-item::after {
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(7, 26, 51, 0.92));
  content: "";
  pointer-events: none;
}

.archive-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

.archive-item[data-category="records"] img {
  object-position: center top;
}

.archive-item:hover img {
  transform: scale(1.035);
}

.archive-item figcaption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  color: var(--white);
  pointer-events: none;
}

.archive-item figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.archive-item figcaption span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.archive-item > button {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  cursor: zoom-in;
  background: transparent;
}

.share-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-800);
}

.share-section::after {
  position: absolute;
  right: -140px;
  bottom: -240px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(141, 183, 217, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(141, 183, 217, 0.025), 0 0 0 160px rgba(141, 183, 217, 0.018);
  content: "";
}

.share-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 100px;
}

.share-copy h2 {
  max-width: 640px;
}

.share-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 28px 0 30px;
  color: rgba(255, 255, 255, 0.71);
}

.cloud-cards {
  display: grid;
  gap: 12px;
}

.cloud-card {
  display: grid;
  grid-template-columns: 50px 1fr 22px;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 20px 22px;
  cursor: pointer;
  color: var(--ink);
  background: var(--cream-50);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-align: left;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.cloud-card:hover {
  background: var(--white);
  border-color: var(--gold-400);
  transform: translateX(4px);
}

.cloud-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
}

.cloud-icon svg {
  width: 25px;
  height: 25px;
}

.google-icon {
  background: #f1f6fb;
}

.google-icon svg path:nth-child(1) {
  fill: #34a853;
}

.google-icon svg path:nth-child(2) {
  fill: #4285f4;
}

.google-icon svg path:nth-child(3) {
  fill: #fbbc04;
}

.dropbox-icon {
  color: #2867cc;
  background: #e5efff;
}

.dropbox-icon svg {
  fill: currentColor;
}

.cloud-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.cloud-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.cloud-card .arrow {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--forest-800);
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.cloud-card:hover .arrow {
  transform: translateX(3px);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 5px 4px 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.75rem;
}

.privacy-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 1.6;
}

.connected-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-950);
}

.connected-section::before {
  position: absolute;
  top: -260px;
  left: -220px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(141, 183, 217, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(141, 183, 217, 0.025), 0 0 0 160px rgba(141, 183, 217, 0.015);
  content: "";
}

.connected-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 90px;
}

.connected-copy h2 {
  max-width: 560px;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.connected-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin: 26px 0;
  color: rgba(255, 255, 255, 0.72);
}

.connected-benefits {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.connected-benefits li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.85);
}

.connected-benefits li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 16px;
  height: 8px;
  border-bottom: 2px solid var(--gold-400);
  border-left: 2px solid var(--gold-400);
  content: "";
  transform: rotate(-45deg);
}

.connected-form-card {
  padding: clamp(28px, 5vw, 48px);
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(141, 183, 217, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(1, 11, 25, 0.35);
}

.connected-form-heading {
  margin-bottom: 26px;
}

.connected-form-heading > span {
  color: var(--gold-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.connected-form-heading h3,
.connected-success h3 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
}

.connected-form-card form > label:not(.checkbox-label),
.connected-form-card .form-row label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.connected-form-card label > span {
  color: var(--forest-900);
  font-size: 0.78rem;
  font-weight: 760;
}

.connected-form-card input[type="text"],
.connected-form-card input[type="email"],
.connected-form-card input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.connected-form-card input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(45, 110, 163, 0.15);
}

.connected-consent {
  margin: 5px 0 22px;
}

.connected-form-card .button {
  width: 100%;
}

.form-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: #a12d2d;
  font-size: 0.82rem;
  font-weight: 700;
}

.connected-privacy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.connected-success {
  padding-block: 15px;
  text-align: center;
}

.connected-success > p:not(.eyebrow) {
  max-width: 500px;
  margin: 16px auto 26px;
  color: var(--muted);
}

.contact-band {
  padding-block: 70px;
  background: var(--gold-400);
}

.contact-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact-band .eyebrow {
  color: var(--forest-900);
}

.contact-band h2 {
  max-width: 690px;
  font-size: clamp(2rem, 3.8vw, 3.65rem);
}

.site-footer {
  color: rgba(255, 255, 255, 0.71);
  background: #07182b;
}

.footer-main {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr 0.85fr;
  align-items: center;
  gap: 60px;
  padding-block: 70px;
}

.footer-brand {
  color: var(--white);
}

.footer-main > p {
  max-width: 430px;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-style: italic;
  text-align: center;
}

.footer-main nav {
  display: grid;
  justify-content: end;
  gap: 7px;
  font-size: 0.79rem;
  text-align: right;
}

.footer-main nav a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

.modal,
.lightbox {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 34px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--cream-50);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px rgba(7, 26, 51, 0.4);
}

.modal::backdrop,
.lightbox::backdrop {
  background: rgba(4, 15, 31, 0.76);
  backdrop-filter: blur(8px);
}

.modal[open],
.lightbox[open] {
  animation: modal-in 220ms ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(15px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal-shell {
  position: relative;
  padding: 50px;
}

.modal-close,
.lightbox-close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  background: var(--cream-100);
  border-radius: 50%;
  transition: background 180ms ease, transform 180ms ease;
}

.modal-close:hover,
.lightbox-close:hover {
  background: var(--cream-200);
  transform: rotate(4deg);
}

.modal-close svg,
.lightbox-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.modal-header {
  max-width: 600px;
  margin-bottom: 28px;
}

.modal-header h2,
.success-panel h2 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.modal-header > p:last-child,
.success-panel > p:last-of-type {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal form label:not(.checkbox-label) {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.modal form label > span {
  color: var(--forest-900);
  font-size: 0.75rem;
  font-weight: 760;
}

.modal form label > span small {
  color: var(--muted);
  font-weight: 500;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(45, 110, 163, 0.15);
}

.modal textarea {
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: start;
  gap: 10px;
  margin: 3px 0 23px;
  color: var(--muted);
  font-size: 0.75rem;
}

.checkbox-label input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--forest-800);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.success-panel {
  padding-block: 25px 10px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin: 0 auto 22px;
  color: var(--white);
  background: var(--forest-800);
  border-radius: 50%;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-panel .form-actions {
  justify-content: center;
  margin-top: 25px;
}

.upload-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.upload-choice {
  display: block;
  min-height: 250px;
  padding: 28px;
  cursor: pointer;
  color: var(--ink);
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.upload-choice:hover {
  background: var(--white);
  border-color: var(--gold-500);
  transform: translateY(-3px);
}

.upload-choice-number {
  display: block;
  margin-bottom: 30px;
  color: var(--rust-600);
  font-family: var(--serif);
  font-size: 0.85rem;
}

.upload-choice > strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.upload-choice > p {
  min-height: 68px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.upload-fallback {
  margin-top: 24px;
  padding: 26px;
  background: var(--cream-100);
  border-radius: var(--radius-md);
}

.upload-fallback h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.55rem;
}

.upload-fallback ol {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.84rem;
}

.upload-fallback li + li {
  margin-top: 7px;
}

.lightbox {
  width: min(1080px, calc(100% - 32px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  color: var(--white);
  background: #061425;
}

.lightbox-close {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.lightbox figure {
  display: grid;
  min-height: 70vh;
  margin: 0;
  place-items: center;
  padding: 44px 70px 65px;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.42);
}

.lightbox figcaption {
  position: absolute;
  right: 70px;
  bottom: 22px;
  left: 70px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--serif);
  font-size: 0.92rem;
  text-align: center;
}

.lightbox-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 180ms ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

.toast {
  position: fixed;
  z-index: 300;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100% - 44px));
  padding: 14px 18px;
  color: var(--white);
  background: var(--forest-950);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

.reveal[data-delay="1"] { transition-delay: 110ms; }
.reveal[data-delay="2"] { transition-delay: 220ms; }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1050px) {
  :root { --shell: min(100% - 38px, 920px); }

  .primary-nav { gap: 18px; }
  .primary-nav > a { display: none; }
  .hero-inner { gap: 38px; }
  .hero-photo-frame img { height: 470px; }
  .story-grid { gap: 55px; }
  .brother-grid { grid-template-columns: 1fr 1fr; }
  .brother-center { display: none; }
  .portrait-grid { gap: 60px; }
  .reunion-card { gap: 50px; }
  .share-inner { gap: 60px; }
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > p { order: 3; grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 780px) {
  :root { --shell: min(100% - 30px, 640px); }
  html { scroll-padding-top: 70px; }
  .section { padding-block: 86px; }

  .header-inner { min-height: 70px; }
  .brand-mark { width: 42px; height: 42px; }
  .nav-toggle { display: grid; }
  .primary-nav {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    gap: 0;
    overflow: hidden;
    color: var(--ink);
    background: var(--cream-50);
    box-shadow: 0 20px 30px rgba(7, 26, 51, 0.1);
    transition: max-height 250ms ease;
  }
  .primary-nav.is-open { max-height: 520px; border-top: 1px solid var(--line); }
  .primary-nav > a {
    display: block;
    padding: 15px 24px;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav > a::after { display: none; }
  .primary-nav .nav-cta { margin: 14px 20px 20px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .hero { min-height: auto; padding-bottom: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 80px 110px; }
  .hero-copy { max-width: 630px; }
  .hero h1 { font-size: clamp(3.35rem, 15vw, 5.3rem); }
  .hero-visual { width: min(88%, 520px); margin-right: 25px; justify-self: center; }
  .hero-photo-frame img { height: 430px; }
  .hero-seal { right: -36px; width: 120px; height: 120px; }
  .legacy-strip { position: relative; }
  .legacy-strip-inner { width: 100%; grid-template-columns: 1fr 1fr; }
  .legacy-strip-inner > div { min-height: 105px; }

  .split-heading,
  .story-grid,
  .tree-heading,
  .portrait-grid,
  .reunion-card,
  .share-inner,
  .connected-grid {
    grid-template-columns: 1fr;
  }
  .split-heading { gap: 35px; margin-bottom: 55px; }
  .story-grid { gap: 60px; }
  .story-aside { max-width: 500px; margin-inline: auto; }
  .brother-grid { grid-template-columns: 1fr; }
  .brother-card { min-height: auto; }
  .tree-heading { gap: 28px; }
  .tree-branches { gap: 18px; }
  .tree-children { grid-template-columns: 1fr; }
  .tree-unplaced .tree-children { grid-template-columns: 1fr 1fr; }
  .tree-subbranch-members { grid-template-columns: 1fr; }
  .portrait-grid { gap: 70px; }
  .portrait-stack { width: min(100%, 500px); min-height: 590px; margin-inline: auto; }
  .portrait-main img { height: 475px; }
  .portrait-small img { height: 260px; }
  .reunion-year { width: min(76vw, 300px); justify-self: center; }
  .archive-heading { align-items: start; flex-direction: column; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-item.archive-wide { grid-column: span 2; }
  .share-inner { gap: 48px; }
  .connected-grid { gap: 48px; }
  .contact-band-inner { align-items: start; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; gap: 35px; }
  .footer-main > p { order: initial; grid-column: auto; text-align: left; }
  .footer-main nav { justify-content: start; text-align: left; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 24px); }
  .brand-copy strong { font-size: 0.9rem; }
  .brand-copy span { font-size: 0.75rem; }
  .hero-inner { padding-top: 70px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { width: calc(100% - 18px); margin-right: 10px; }
  .hero-photo-frame { padding: 9px; }
  .hero-photo-frame img { height: 350px; }
  .hero-photo-frame figcaption { align-items: start; flex-direction: column; gap: 4px; }
  .hero-seal { right: -15px; bottom: -50px; width: 108px; height: 108px; }
  .legacy-strip-inner > div { min-height: 92px; padding: 15px 8px; }
  .legacy-strip strong { font-size: 2rem; }
  .legacy-strip span { font-size: 0.75rem; }
  .section-heading h2,
  .tree-heading h2,
  .portrait-copy h2,
  .share-copy h2,
  .connected-copy h2 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .heading-note { grid-template-columns: 30px 1fr; gap: 15px; }
  .heading-note .ornament { width: 30px; }
  .timeline::before { left: 23px; }
  .timeline-item { grid-template-columns: 48px 1fr; gap: 18px; }
  .timeline-number { width: 48px; height: 48px; font-size: 0.78rem; }
  .brother-card { padding: 34px 28px; }
  .tree-toolbar { align-items: stretch; flex-direction: column; }
  .search-control { min-width: 0; min-height: 46px; }
  .tree-toolbar-actions { justify-content: space-between; }
  .tree-toolbar-actions .button { flex: 1; }
  .tree-root-card { min-width: 0; width: 90%; }
  .tree-branches { grid-template-columns: 1fr; }
  .tree-branches::before { display: none; }
  .tree-branch { padding-top: 30px; }
  .tree-branch::before { height: 30px; }
  .tree-unplaced .tree-children { grid-template-columns: 1fr; }
  .portrait-stack { min-height: 495px; }
  .portrait-main { width: 78%; }
  .portrait-main img { height: 400px; }
  .portrait-small { width: 48%; }
  .portrait-small img { height: 210px; }
  .archive-grid { grid-auto-rows: 230px; grid-template-columns: 1fr; }
  .archive-item.archive-wide { grid-column: auto; }
  .archive-item.archive-tall { grid-row: span 2; }
  .cloud-card { grid-template-columns: 46px 1fr 18px; gap: 12px; padding: 17px; }
  .cloud-icon { width: 46px; height: 46px; }
  .contact-band .button { max-width: 100%; font-size: 0.75rem; }
  .footer-bottom { align-items: start; flex-direction: column; }
  .modal-shell { padding: 52px 22px 28px; }
  .form-row,
  .upload-choice-grid { grid-template-columns: 1fr; }
  .upload-choice { min-height: 0; }
  .upload-choice > p { min-height: 0; }
  .lightbox figure { min-height: 65vh; padding: 50px 38px 70px; }
  .lightbox figcaption { right: 45px; left: 45px; }
  .lightbox-nav { width: 38px; height: 38px; }
}

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