/* Yeaney.com: site styles (from the approved homepage mockup) */
/* Layout: a film title sequence. Full-bleed photography, widescreen frames,
   one high-contrast serif for the big lines, a quiet sans for everything else. */
:root {
  --black: #0b0b0a;
  --black-2: #141412;
  --white: #f3f0ea;
  --dim: #9b978e;
  --line: rgba(243, 240, 234, .14);
  --gold: #ffb81c;
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-ui: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--black); color: var(--white); font-family: var(--font-ui); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { display: block; }
.wrap { max-width: 82rem; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.label { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.label--gold { color: var(--gold); }
.rule { width: 56px; height: 1px; background: var(--gold); }

/* film grain over the whole page */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }

.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--white); transition: background-color .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--white); color: var(--black); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--white); border-color: var(--white); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav { position: absolute; inset: 0 0 auto; z-index: 10; padding-top: env(safe-area-inset-top, 0px); }
.nav__inner { display: flex; align-items: center; gap: 14px 40px; flex-wrap: wrap; padding-block: 28px; }
.wordmark { font-size: 15px; font-weight: 800; letter-spacing: .5em; text-decoration: none; text-transform: uppercase; }
.nav__menu { display: flex; align-items: center; gap: 14px 40px; margin-left: auto; }
.nav__links { display: flex; flex-wrap: wrap; gap: 6px 30px; }
.nav__links a { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-decoration: none; opacity: .82; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__signin { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-decoration: none; padding: 9px 18px; border: 1px solid var(--line); }
.nav__signin:hover { border-color: var(--gold); color: var(--gold); }
.nav__toggle { display: none; }

/* phones and small tablets: a Menu button and a full-width panel */
@media (max-width: 56rem) {
  .nav__inner { padding-block: 20px; }
  .nav__menu { flex-direction: column; align-items: stretch; gap: 24px; width: 100%; margin-left: 0; }
  .nav__links { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .nav__links a { padding: 14px 0; font-family: var(--font-display); font-size: 26px; font-weight: 400; letter-spacing: 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav__links a[aria-current="page"] { color: var(--gold); }
  .nav__signin { align-self: flex-start; padding: 12px 22px; }

  .nav--js .nav__toggle { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; min-height: 44px; padding: 0 2px; background: none; border: 0; color: var(--white); font: 700 13px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
  .nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .25s, background-color .25s; }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -7px; }
  .nav__bars::after { top: 7px; }
  .nav.is-open .nav__bars { background: transparent; }
  .nav.is-open .nav__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav--js .nav__menu { display: none; }
  .nav--js.is-open { position: fixed; bottom: 0; overflow-y: auto; background: var(--black); }
  .nav--js.is-open .nav__menu { display: flex; padding-bottom: 32px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(56rem, 94svh); display: grid; align-items: end; overflow: hidden; padding-top: calc(104px + env(safe-area-inset-top, 0px)); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.08) brightness(.62); transform-origin: 60% 40%; animation: push 24s ease-out forwards; }
@keyframes push { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--black) 0%, rgba(11,11,10,.55) 38%, rgba(11,11,10,.15) 70%, rgba(11,11,10,.55) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding-block: 0 64px; }
.hero__title { margin: 12px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(76px, 15vw, 220px); line-height: .86; letter-spacing: -0.035em; animation: titlein 2.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes titlein { from { letter-spacing: .04em; opacity: .25; } to { letter-spacing: -0.035em; opacity: 1; } }
.hero__sub { margin: 18px 0 0; max-width: 34rem; font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; color: var(--white); }
.hero__meta { display: grid; gap: 6px; text-align: right; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.hero__meta b { color: var(--white); font-weight: 700; }
@media (max-width: 48rem) { .hero__inner { grid-template-columns: minmax(0, 1fr); } .hero__meta { text-align: left; } }
/* landscape phones: short screen, so scale the shield and title to the height */
@media (orientation: landscape) and (max-height: 32rem) {
  .hero__inner { padding-bottom: 40px; }
  .hero .hero__arms { width: 64px; margin-bottom: 12px; }
  .hero__title { font-size: clamp(64px, 24vh, 120px); }
  .hero__sub { font-size: 20px; }
}

/* ---------- statement ---------- */
.statement { padding-block: 9rem 7rem; }
.statement__grid { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 48px; }
@media (max-width: 52rem) { .statement__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.statement__side { display: grid; gap: 16px; align-content: start; padding-top: 14px; }
.statement h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5.4vw, 74px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; max-width: 18ch; }
.statement h2 em { color: var(--gold); }
.statement__body { margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 52rem; color: #cfcac0; }
.statement__body p { margin: 0; }
@media (max-width: 40rem) { .statement__body { grid-template-columns: minmax(0, 1fr); } }

/* ---------- three places: widescreen stills ---------- */
.places { padding-block: 2rem 8rem; }
.places__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.places__head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.015em; }
.stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 56rem) { .stills { grid-template-columns: minmax(0, 1fr); } }
.still { display: grid; gap: 16px; text-decoration: none; }
.still__frame { position: relative; aspect-ratio: 2.39 / 1; max-width: 100%; overflow: hidden; background: var(--black-2); }
.still__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) brightness(.85); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; }
.still:hover .still__frame img { transform: scale(1.06); filter: grayscale(0) brightness(1); }
.still__frame::after { content: attr(data-tc); position: absolute; left: 12px; bottom: 10px; font-size: 11px; letter-spacing: .16em; color: rgba(243,240,234,.75); text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.still__cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: baseline; }
.still__year { grid-row: span 2; font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--gold); letter-spacing: -0.02em; }
.still__place { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.still__line { font-size: 15px; color: var(--dim); line-height: 1.5; }

/* ---------- the line ---------- */
.line { padding-block: 9rem 8rem; }
.line__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
@media (max-width: 60rem) { .line__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.line__intro { display: grid; gap: 22px; position: sticky; top: 40px; }
@media (max-width: 60rem) { .line__intro { position: static; } }
.line__intro h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.line__intro p { margin: 0; color: #cfcac0; max-width: 28rem; }
.gens { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gen { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left .3s, background-color .3s; }
a.gen:hover { padding-left: 12px; background: linear-gradient(90deg, rgba(255,184,28,.07), rgba(255,184,28,0)); }
.gen__num { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--gold); }
.gen__name { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.01em; }
.gen__name small { display: block; margin-top: 4px; font-family: var(--font-ui); font-size: 13px; letter-spacing: .04em; color: var(--dim); }
.gen__years { font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gen--private .gen__name { color: var(--dim); font-style: italic; }
.lock { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lock svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.line__foot { margin-top: 28px; font-size: 14px; color: var(--dim); }
.line__sources { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--dim); opacity: .85; }

/* ---------- arms ---------- */
.arms { padding-block: 7rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 50%, #17150f, var(--black) 70%); }
.arms__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 72px; align-items: center; max-width: 64rem; margin: 0 auto; }
@media (max-width: 48rem) { .arms__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 36px; } }
.arms__shield { width: 260px; height: auto; filter: drop-shadow(0 24px 48px rgba(0,0,0,.7)); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark img { width: 26px; height: auto; }
.hero__arms { width: clamp(84px, 9vw, 120px); height: auto; margin-bottom: 18px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.8)); }
.arms__text { display: grid; gap: 18px; }
.arms__text h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.05; letter-spacing: -0.015em; }
.arms__text p { margin: 0; color: #cfcac0; max-width: 34rem; }
.arms__key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 8px; }
@media (max-width: 48rem) { .arms__key { grid-template-columns: minmax(0, 1fr); } }
.arms__key div { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
.arms__key b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.arms__key span { font-size: 14px; color: var(--dim); line-height: 1.5; }

/* ---------- gather ---------- */
.gather { padding-block: 8rem 6rem; }
.gather__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 52rem) { .gather__grid { grid-template-columns: minmax(0, 1fr); } }
.card { position: relative; overflow: hidden; isolation: isolate; min-height: 30rem; display: grid; align-content: end; gap: 14px; padding: 36px; text-decoration: none; }
.card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.8); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.card:hover img { transform: scale(1.05); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11,11,10,.92), rgba(11,11,10,0) 65%); }
.card h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.015em; }
.card p { margin: 0; color: #d9d4ca; max-width: 28rem; }
.card__go { display: inline-flex; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.card__credit { position: absolute; top: 14px; right: 16px; font-size: 11px; color: rgba(243,240,234,.55); }

/* ---------- join ---------- */
.join { padding-block: 8rem 9rem; text-align: center; }
.join__inner { display: grid; justify-items: center; gap: 26px; }
.join h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 7vw, 104px); line-height: .98; letter-spacing: -0.03em; text-wrap: balance; max-width: 14ch; }
.join h2 em { color: var(--gold); }
.join p { margin: 0; max-width: 34rem; color: #cfcac0; }

.foot { border-top: 1px solid var(--line); padding-block: 36px 44px; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.foot small { color: var(--dim); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  body::after, .hero__img, .hero__title { animation: none; }
  .still__frame img, .card img, .btn, .gen { transition: none; }
}

/* ---------- WordPress admin bar ---------- */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* ---------- coming soon ---------- */
.soon { position: relative; min-height: min(48rem, 100svh); display: grid; align-items: center; overflow: hidden; padding-block: 9rem 6rem; }
.soon__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(.32); }
.soon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--black), rgba(11,11,10,.4) 60%, rgba(11,11,10,.7)); }
.soon__inner { position: relative; z-index: 2; display: grid; justify-items: start; gap: 22px; }
.soon__arms { width: 72px; height: auto; }
.soon h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(56px, 10vw, 140px); line-height: .9; letter-spacing: -0.035em; }
.soon h1 em { display: block; color: var(--gold); font-size: .42em; letter-spacing: -0.01em; margin-top: 14px; }
.soon p { margin: 0; max-width: 34rem; font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; color: #d9d4ca; }

/* ---------- family tree ---------- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tree { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 32rem; padding-top: calc(96px + env(safe-area-inset-top, 0px)); background: radial-gradient(ellipse at 50% 0%, #1a1916, var(--black) 70%); }
.admin-bar .tree { height: calc(100svh - 32px); }
.tree__bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; padding: 0 var(--gutter-r) 18px var(--gutter-l); border-bottom: 1px solid var(--line); }
.tree__title h1 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -0.02em; }
.tree__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tree__search input { width: min(16rem, 60vw); min-height: 40px; padding: 0 14px; background: var(--black-2); border: 1px solid var(--line); color: var(--white); font: 500 14px var(--font-ui); }
.tree__search input:focus { border-color: var(--gold); outline: none; }
.tree__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 10px; background: none; border: 1px solid var(--line); color: var(--white); font: 600 18px var(--font-ui); text-decoration: none; cursor: pointer; }
.tree__btn--text { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 0 14px; }
.tree__btn:hover { border-color: var(--gold); color: var(--gold); }
.tree__view { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: grab; outline: none; }
.tree__view:active { cursor: grabbing; }
.tree__view:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.tree__stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.tree__lines { position: absolute; inset: 0; overflow: visible; }
.tree__lines line { stroke: rgba(243,240,234,.32); stroke-width: 1.5; }
.tree__lines line.is-couple { stroke: var(--gold); stroke-width: 2; }
.tree__lines line.is-dashed { stroke-dasharray: 5 5; }
.tree__lines line.is-ended { stroke: rgba(243,240,234,.28); stroke-dasharray: 4 4; }
.tree__empty[hidden] { display: none; }
.tree__empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--dim); font-family: var(--font-display); font-style: italic; font-size: 22px; padding: 20px; text-align: center; }

.tcard { position: absolute; width: 184px; height: 76px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--black-2); border: 1px solid rgba(255,184,28,.55); color: var(--white); text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tcard:hover { border-color: var(--gold); transform: translateY(-2px); }
.tcard.is-selected { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 14px 40px rgba(0,0,0,.6); }
.tcard--partner { border-color: var(--line); }
.tcard--unsure { border-style: dashed; }
.tcard__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #24231f; color: var(--gold); font: 700 15px var(--font-ui); letter-spacing: .06em; }
.tcard__avatar img, .tpanel__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tcard--past .tcard__avatar img { filter: grayscale(1); }
.tcard__text { display: grid; gap: 2px; min-width: 0; }
.tcard__name { font-family: var(--font-display); font-size: 17px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tcard__years { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--dim); }
.tcard__up { position: absolute; top: 4px; right: 7px; font-size: 12px; color: var(--gold); }

.tree__panel { position: absolute; z-index: 5; top: calc(96px + env(safe-area-inset-top, 0px)); right: 0; bottom: 0; width: min(24rem, 100%); overflow-y: auto; padding: 28px 24px 32px; background: rgba(20,20,18,.97); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0,0,0,.5); }
.tpanel__close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; background: none; border: 0; color: var(--dim); font-size: 28px; cursor: pointer; }
.tpanel__close:hover { color: var(--white); }
.tpanel__head { display: flex; gap: 16px; align-items: center; padding-right: 36px; }
.tpanel__avatar { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #24231f; color: var(--gold); font: 700 22px var(--font-ui); border: 1px solid rgba(255,184,28,.55); }
.tpanel__name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.1; }
.tpanel__sub { margin: 6px 0 0; color: var(--dim); font-size: 14px; }
.tpanel__facts { margin: 24px 0 0; display: grid; gap: 10px; }
.tpanel__fact { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; }
.tpanel__fact dt { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); padding-top: 4px; }
.tpanel__fact dd { margin: 0; font-size: 15px; }
.tpanel__bio { margin: 20px 0 0; font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 1.45; color: #d9d4ca; }
.tpanel__group { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.tpanel__h { width: 100%; margin: 0 0 4px; font: 700 11px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.tpanel__link { padding: 7px 12px; background: none; border: 1px solid var(--line); color: var(--white); font: 500 14px var(--font-ui); cursor: pointer; }
.tpanel__link:hover { border-color: var(--gold); color: var(--gold); }
.tpanel__sources { margin-top: 22px; color: var(--dim); font-size: 14px; }
.tpanel__sources summary { cursor: pointer; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.tpanel__sources p { white-space: pre-line; }
.tpanel__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.tpanel__actions .btn { min-height: 44px; padding: 0 18px; font-size: 11px; background: none; color: var(--white); cursor: pointer; }
.tpanel__actions .btn:hover { background: var(--white); color: var(--black); }

@media (max-width: 56rem) {
  .tree { padding-top: calc(108px + env(safe-area-inset-top, 0px)); }
  .tree__bar { padding-bottom: 12px; }
  .tree__title .label { display: none; }
  .tree__title h1 { margin: 0; font-size: 30px; }
  .tree__tools { width: 100%; flex-wrap: nowrap; }
  .tree__search { flex: 1; min-width: 0; }
  .tree__search input { width: 100%; }
  .tree__panel { top: auto; left: 0; width: 100%; max-height: 50%; border-left: 0; border-top: 1px solid rgba(255,184,28,.55); box-shadow: 0 -20px 60px rgba(0,0,0,.6); }
}
.tpanel__suggest { margin-top: 18px; display: grid; gap: 10px; }
.tpanel__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpanel__field { display: grid; gap: 4px; }
.tpanel__field span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.tpanel__suggest input { width: 100%; min-width: 0; padding: 9px 10px; background: var(--black); border: 1px solid var(--line); color: var(--white); font: 15px/1.4 var(--font-ui); }
.tpanel__suggest input:focus { border-color: var(--gold); outline: none; }
.tpanel__suggest textarea { width: 100%; padding: 12px; background: var(--black); border: 1px solid var(--line); color: var(--white); font: 15px/1.5 var(--font-ui); resize: vertical; }
.tpanel__suggest textarea:focus { border-color: var(--gold); outline: none; }
.tpanel__suggest .btn { justify-self: start; min-height: 44px; padding: 0 22px; font-size: 11px; cursor: pointer; }
.tpanel__note { margin: 0; font-size: 14px; color: var(--dim); }
.tpanel__note:empty { display: none; }
.tree__lines line.is-halo { stroke: #121210; stroke-width: 9; stroke-dasharray: none; }
.ttag { position: absolute; transform: translate(-50%, -50%); padding: 3px 10px; background: var(--black-2); border: 1px solid rgba(243,240,234,.28); border-radius: 999px; color: var(--dim); font: 600 11px/1.4 var(--font-ui); letter-spacing: .04em; white-space: nowrap; cursor: pointer; }
.ttag:hover { color: var(--gold); border-color: var(--gold); }
.tree__stage.is-gliding { transition: transform .55s cubic-bezier(.22,.7,.2,1); }
.tree__stage.has-focus .tcard:not(.is-related) { opacity: .35; }
.tree__stage.has-focus .tree__lines { opacity: .55; }
.tree__stage .tcard { transition: border-color .2s, box-shadow .2s, transform .2s, opacity .3s; }


/* ---------- ventures ---------- */
.ventures__hero { position: relative; overflow: hidden; padding: 11rem 0 4.5rem; }
.ventures__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.35); }
.ventures__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--black), rgba(11,11,10,.35) 70%, rgba(11,11,10,.7)); }
.ventures__intro { position: relative; z-index: 2; display: grid; gap: 20px; justify-items: start; }
.ventures__intro h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 8vw, 112px); line-height: .92; letter-spacing: -0.03em; }
.ventures__intro h1 em { display: block; color: var(--gold); font-size: .4em; letter-spacing: -0.01em; margin-top: 14px; }
.ventures__intro p { margin: 0; max-width: 36rem; font-family: var(--font-display); font-style: italic; font-size: clamp(19px, 2vw, 24px); line-height: 1.45; color: #d9d4ca; }
.ventures__list { padding-top: 3rem; padding-bottom: 6rem; }
.ventures__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 20px; }
.ventures__h { margin: 4.5rem 0 1.5rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); }
.ventures__empty { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--dim); }
.venture { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 24px; background: var(--black-2); border: 1px solid var(--line); transition: border-color .25s; }
.venture:hover { border-color: rgba(255,184,28,.55); }
.venture__logo { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #24231f; display: grid; place-items: center; }
.venture__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.venture__logo span { font-family: var(--font-display); font-size: 34px; color: var(--gold); }
.venture__body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.venture h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.15; }
.venture__meta { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.venture__tagline { margin: 4px 0 0; font-size: 16px; }
.venture__about { margin: 0; font-size: 15px; color: #cfcac0; }
.venture__owners { margin: 4px 0 0; font-size: 14px; color: var(--dim); }
.venture__owners a { color: var(--gold); text-decoration: none; }
.venture__links { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.venture__links .btn { min-height: 42px; padding: 0 18px; font-size: 11px; }
.venture__contact { font-size: 14px; color: #cfcac0; overflow-wrap: anywhere; }
.venture--past { background: none; }
.venture--past .venture__logo img { filter: grayscale(1) sepia(.25); }
.ventures__cta { margin-top: 5rem; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid rgba(255,184,28,.45); }
.ventures__cta h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 32px; }
.ventures__cta p { margin: 6px 0 0; color: #cfcac0; }
@media (max-width: 40rem) { .venture { grid-template-columns: 56px 1fr; gap: 14px; padding: 18px; } .venture__logo { width: 56px; height: 56px; } }
/* ---------- photos ---------- */
.photos__hero { position: relative; overflow: hidden; padding: 11rem 0 4.5rem; }
.photos__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.35); }
.photos__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--black), rgba(11,11,10,.35) 70%, rgba(11,11,10,.7)); }
.photos__intro { position: relative; z-index: 2; display: grid; gap: 20px; justify-items: start; }
.photos__intro h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 8vw, 112px); line-height: .92; letter-spacing: -0.03em; }
.photos__intro h1 em { display: block; color: var(--gold); font-size: .4em; letter-spacing: -0.01em; margin-top: 14px; }
.photos__intro p { margin: 0; max-width: 36rem; font-family: var(--font-display); font-style: italic; font-size: clamp(19px, 2vw, 24px); line-height: 1.45; color: #d9d4ca; }
.photos__body { padding-top: 3rem; padding-bottom: 6rem; }
.photos__empty { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--dim); }
.photos__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.album { padding-top: 3rem; }
.album__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.album__when { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.album__head h2 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.015em; }
.album__head p { margin: 8px 0 0; color: #cfcac0; }
.album__edit { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.album__edit:hover { color: var(--gold); }
/* even tiles, cropped; the viewer shows the whole photo */
.album__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 14px; }
.album__photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #141412; }
.album__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.9); }
.album__photo:hover img, .album__photo:focus-visible img { transform: scale(1.03); filter: none; }
.album__photo:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.album__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(to top, rgba(11,11,10,.85), transparent); font-size: 13px; line-height: 1.4; color: #e6e1d7; opacity: 0; transition: opacity .3s; }
.album__photo:hover .album__cap, .album__photo:focus-visible .album__cap { opacity: 1; }
@media (hover: none) { .album__cap { opacity: 1; } }
@media (max-width: 560px) { .album__grid { grid-template-columns: 1fr 1fr; gap: 8px; } .album__photo { aspect-ratio: 1; } .album__cap { display: none; } }
.has-viewer { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 100000; display: grid; grid-template-columns: auto 1fr auto; align-items: center; background: rgba(11,11,10,.96); }
.viewer[hidden] { display: none; }
.viewer__fig { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 56px 0 20px; min-width: 0; }
.viewer__fig img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; }
.viewer figcaption { display: grid; gap: 4px; text-align: center; padding: 0 16px; }
.viewer__cap { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--white); }
.viewer__cap:empty { display: none; }
.viewer__count { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.viewer__btn { width: 52px; height: 52px; margin: 0 12px; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--white); font-size: 22px; cursor: pointer; }
.viewer__btn:hover, .viewer__btn:focus-visible { border-color: var(--gold); color: var(--gold); outline: none; }
.viewer__close { position: absolute; top: 14px; right: 2px; }
.viewer.is-single .viewer__prev, .viewer.is-single .viewer__next { visibility: hidden; }
@media (max-width: 700px) {
  .viewer { grid-template-columns: 1fr; }
  .viewer__prev, .viewer__next { position: absolute; bottom: 14px; }
  .viewer__prev { left: 16px; }
  .viewer__next { right: 16px; }
  .viewer__fig { padding: 64px 0 84px; }
  .viewer__fig img { max-height: calc(100dvh - 190px); }
}

.ventures__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip { min-height: 38px; padding: 0 16px; background: none; border: 1px solid var(--line); border-radius: 999px; color: #cfcac0; font: 600 13px var(--font-ui); letter-spacing: .04em; cursor: pointer; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.is-on { background: var(--gold); border-color: var(--gold); color: var(--black); }
.venture[hidden] { display: none; }

/* ---------- events ---------- */
.events__list { padding-top: 3rem; padding-bottom: 6rem; display: grid; gap: 24px; }
.event { background: var(--black-2); border: 1px solid rgba(255,184,28,.4); overflow: hidden; }
.event__main { display: grid; grid-template-columns: 112px 1fr; gap: 32px; padding: 32px; }
.event__photo { position: relative; margin: 0; }
.event__photo img { display: block; width: 100%; height: clamp(14rem, 32vw, 26rem); object-fit: cover; }
.event__photo figcaption { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: rgba(243,240,234,.75); text-shadow: 0 1px 3px #000; }
.rsvp__people { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; }
.rsvp__people legend { margin-bottom: 6px; font-size: 14px; color: var(--dim); }
.rsvp__people label { display: inline-flex; align-items: center; gap: 6px; }
.rsvp__people input { margin: 0; min-height: 0; width: 18px; height: 18px; accent-color: var(--gold); }
.event__notes { margin-top: 10px; color: #cfcac0; font-size: 14px; }
.event__notes summary { cursor: pointer; color: var(--dim); }
.event__notes ul { margin: 8px 0 0; padding-left: 18px; }
.event--past { background: none; border-color: var(--line); }
.event__date { align-self: start; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 16px 8px; border: 1px solid rgba(255,184,28,.55); text-align: center; }
.event__month { font-size: 13px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.event__day { font-family: var(--font-display); font-size: 56px; line-height: 1; }
.event__year { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--dim); }
.event__body { display: grid; gap: 12px; align-content: start; min-width: 0; }
.event h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; }
.event__meta { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.event__teaser { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 21px; color: #d9d4ca; }
.event__locked { margin: 6px 0 0; color: #cfcac0; }
.event__locked a, .event__address a { color: var(--gold); }
.event__address { margin: 0; color: #cfcac0; }
.event__details { white-space: pre-line; color: #e4e0d8; line-height: 1.7; }
.rsvp { margin-top: 12px; padding: 22px; border: 1px solid var(--line); display: grid; gap: 14px; justify-items: start; }
.rsvp__q { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.rsvp__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.rsvp__choices .chip { display: inline-flex; align-items: center; }
.rsvp__choices input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp__choices .chip:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.rsvp__more { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; color: #cfcac0; font-size: 15px; }
.rsvp__more input { margin: 0 6px; min-height: 40px; padding: 0 10px; background: var(--black); border: 1px solid var(--line); color: var(--white); font: 15px var(--font-ui); }
.rsvp__more input[type="number"] { width: 4.5rem; }
.rsvp__note { display: flex; align-items: center; flex: 1 1 18rem; }
.rsvp__note input { flex: 1; min-width: 0; }
.rsvp .btn { min-height: 46px; cursor: pointer; }
.rsvp__msg { margin: 0; color: var(--dim); font-size: 14px; }
.rsvp__msg:empty { display: none; }
.event__who h3 { margin: 8px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.event__who h3 span { margin-left: 8px; color: var(--dim); letter-spacing: .1em; }
.event__who p { margin: 0 0 4px; color: #e4e0d8; }
@media (max-width: 40rem) { .event__main { grid-template-columns: 1fr; gap: 18px; padding: 22px; } .event__date { grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; padding: 10px 14px; } .event__day { font-size: 34px; } }
.tree__modes { display: inline-flex; border: 1px solid var(--line); }
.tree__mode { min-height: 40px; padding: 0 14px; background: none; border: 0; color: #cfcac0; font: 700 12px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.tree__mode + .tree__mode { border-left: 1px solid var(--line); }
.tree__mode.is-on { background: var(--gold); color: var(--black); }
@media (max-width: 56rem) { .tree__tools { flex-wrap: wrap; } .tree__modes { width: 100%; } .tree__mode { flex: 1; } }

/* ---------- request access ---------- */
.soon--form { align-items: start; }
.soon--form .soon__inner { align-content: start; }
.soon__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.access { display: grid; gap: 16px; align-content: start; width: min(34rem, 100%); text-align: left; }
.access label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.access input, .access textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: rgba(11,11,10,.85); border: 1px solid var(--line); color: var(--white); font: 16px/1.5 var(--font-ui); letter-spacing: 0; text-transform: none; }
.access input:focus, .access textarea:focus { border-color: var(--gold); outline: none; }
.access .btn { justify-self: start; cursor: pointer; }
.access__trap { position: absolute; left: -9999px; }
.access__alt { margin: 0; font-family: var(--font-ui); font-style: normal; font-size: 14px; color: var(--dim); }
.access__alt a { color: var(--gold); }
.access__error { margin: 0; padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(255,184,28,.08); font-family: var(--font-ui); font-style: normal; font-size: 15px; color: var(--white); }

/* ---------- family map ---------- */
.fmap { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 32rem; padding-top: calc(96px + env(safe-area-inset-top, 0px)); background: radial-gradient(ellipse at 50% 40%, #1a1916, var(--black) 70%); }
.admin-bar .fmap { height: calc(100svh - 32px); }
.fmap__filters .chip { min-height: 36px; }
.fmap__filters .chip:not(.is-on) { opacity: .55; }
.fmap__view { position: relative; flex: 1; overflow: hidden; touch-action: none; }
.fmap__globe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.fmap__globe:active { cursor: grabbing; }
.fmap__sphere { fill: #11110f; stroke: rgba(255,184,28,.35); stroke-width: 1; }
.fmap__grid { fill: none; stroke: rgba(243,240,234,.05); }
.fmap__land { fill: #24231f; stroke: rgba(243,240,234,.12); stroke-width: .5; }
.fmap__states { fill: none; stroke: rgba(243,240,234,.08); stroke-width: .5; }
.fmap__trip { fill: none; stroke: rgba(255,184,28,.45); stroke-width: 1.2; }
.fmap__pin { cursor: pointer; outline: none; }
.fmap__dot { fill: #f3f0ea; stroke: #0b0b0a; stroke-width: 1.5; }
.fmap__pin.is-living .fmap__dot { fill: var(--gold); }
.fmap__halo { fill: rgba(255,184,28,.12); stroke: none; }
.fmap__pin:hover .fmap__halo, .fmap__pin:focus .fmap__halo { fill: rgba(255,184,28,.35); }
.fmap__hint, .fmap__count { position: absolute; left: var(--gutter-l); margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); pointer-events: none; }
.fmap__hint { bottom: 16px; }
.fmap__count { bottom: 40px; color: #cfcac0; }
.fmap__panel .tpanel__name { padding-right: 36px; }
.fmap__panel .tpanel__link { text-decoration: none; }
@media (max-width: 56rem) { .fmap { padding-top: calc(108px + env(safe-area-inset-top, 0px)); } }
/* the map's details panel starts below its toolbar so the filters stay reachable */
@media (min-width: 56.01rem) { .fmap__panel { top: calc(200px + env(safe-area-inset-top, 0px)); } }

/* ---------- our story ---------- */
.story__hero { position: relative; min-height: min(46rem, 92svh); display: grid; align-items: end; overflow: hidden; padding: 10rem 0 4rem; }
.story__hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) brightness(.5); }
.story__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--black), rgba(11,11,10,.2) 60%, rgba(11,11,10,.6)); }
.story__intro { position: relative; z-index: 2; display: grid; gap: 20px; justify-items: start; }
.story__intro h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(50px, 8vw, 116px); line-height: .92; letter-spacing: -0.03em; }
.story__intro h1 em { display: block; margin-top: 14px; color: var(--gold); font-size: .36em; letter-spacing: -0.01em; }
.story__intro p { margin: 0; max-width: 38rem; font-family: var(--font-display); font-style: italic; font-size: clamp(19px, 2vw, 24px); line-height: 1.45; color: #e4e0d8; }
.story__credit { position: absolute; right: var(--gutter-r); bottom: 14px; z-index: 2; font-size: 11px; letter-spacing: .1em; color: rgba(243,240,234,.6); }

.story__timeline { position: sticky; top: 0; z-index: 8; background: rgba(11,11,10,.94); backdrop-filter: blur(6px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-bar .story__timeline { top: 32px; }
.story__timeline ol { list-style: none; margin: 0 auto; padding: 0 var(--gutter-r) 0 var(--gutter-l); max-width: 82rem; display: flex; overflow-x: auto; scrollbar-width: thin; }
.story__timeline li { flex: none; }
.story__timeline a { display: grid; gap: 2px; padding: 14px 22px 14px 0; margin-right: 22px; text-decoration: none; border-right: 1px solid var(--line); }
.story__timeline li:last-child a { border-right: 0; }
.story__year { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--gold); }
.story__place { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
.story__what { font-size: 12px; color: var(--dim); white-space: nowrap; }
.story__timeline a:hover .story__place { color: var(--gold); }

.chapter { padding: 6rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.chapter__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.chapter--flip .chapter__photo { order: 2; }
.chapter--text .chapter__grid { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.chapter__photo { margin: 0; position: sticky; top: 110px; }
.chapter__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(.15) contrast(1.05); }
.chapter__photo figcaption, .chapter__inset figcaption { margin-top: 10px; font-size: 12px; color: var(--dim); }
.chapter__text { display: grid; gap: 16px; align-content: start; }
.chapter__years { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--gold); }
.chapter__text h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.chapter__text p { margin: 0; font-size: 18px; line-height: 1.75; color: #e4e0d8; }
.chapter__text a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.chapter__events { display: grid; gap: 18px; border-left: 1px solid rgba(255,184,28,.5); padding-left: 24px; }
.chapter__events p { position: relative; }
.chapter__events p::before { content: ""; position: absolute; left: -29px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.chapter__events span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.chapter__inset { margin: 12px 0 0; }
.chapter__inset img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
#pittsburgh .chapter__photo img { transform: scale(1.06); }

.story__end { padding: 6rem 0 7rem; text-align: center; }
.story__end .wrap { display: grid; gap: 18px; justify-items: center; max-width: 46rem; }
.story__end-line { margin: 0; font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px); line-height: 1; }
.story__end-line em { display: block; margin-top: 8px; color: var(--gold); font-size: .45em; }
.story__end p { margin: 0; color: #cfcac0; }
.story__sources { margin-top: 24px !important; font-size: 13px; color: var(--dim) !important; }

@media (max-width: 52rem) {
  .chapter { padding: 4rem 0; }
  .chapter__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .chapter--flip .chapter__photo { order: 0; }
  .chapter__photo { position: static; }
  .story__timeline a { padding-right: 16px; margin-right: 16px; }
}


/* timeline: one stop per chapter, the current one centred with a filling gold line */
.story__timeline ol { gap: 0; scrollbar-width: none; }
.story__timeline ol::-webkit-scrollbar { display: none; }
.story__timeline li { flex: 0 0 auto; }
.story__timeline a { position: relative; min-width: 13rem; margin-right: 0; padding: 14px 24px 16px; border-right: 1px solid var(--line); }
.story__timeline .story__year { font-size: 20px; opacity: .5; transition: opacity .3s, color .3s; }
.story__timeline .story__place { transition: color .3s; }
.story__timeline a.is-past .story__year { opacity: .75; }
.story__timeline a.is-on .story__year { opacity: 1; }
.story__timeline a.is-on .story__place { color: var(--gold); }
.story__timeline a.is-on .story__what { color: var(--white); }
.story__timeline a.is-on { background: rgba(255,184,28,.06); }
.story__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
.story__timeline a.is-past .story__progress { opacity: .35; }
@media (max-width: 52rem) { .story__timeline a { min-width: 11rem; padding: 12px 18px 14px; } }
/* the admin bar is 46px tall on tablets and scrolls away on phones, so the strip follows suit */
@media (max-width: 782px) { .admin-bar .story__timeline { top: 46px; } }
@media (max-width: 600px) { .admin-bar .story__timeline { top: 0; } }
.chapter__edit { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim) !important; text-decoration: none !important; border: 1px solid var(--line); padding: 6px 12px; }
.chapter__edit:hover { color: var(--gold) !important; border-color: var(--gold); }
.to-top { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 20; width: 52px; height: 52px; display: grid; place-items: center; background: var(--gold); color: var(--black); font: 700 22px/1 var(--font-ui); text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.45); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, background-color .2s; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { background: var(--white); }

/* smooth scrolling for every jump within a page; sticky bars leave room above the target */
html { scroll-behavior: smooth; }
html:has(.story__timeline) { scroll-padding-top: 96px; }

/* phone toolbar: [Family | Whole tree] [Add person] on one row, then search and zoom */
@media (max-width: 56rem) {
  .tree__tools { flex-wrap: wrap; row-gap: 8px; }
  .tree__modes { order: 1; flex: 1 1 auto; width: auto; }
  .tree__tools a.tree__btn { order: 2; }
  .tree__search { order: 3; flex: 1 1 50%; }
  .tree__tools [data-zoom], .tree__tools [data-fit] { order: 4; }
}
@media (max-width: 56rem) {
  .tree__mode { padding: 0 10px; font-size: 11px; letter-spacing: .1em; white-space: nowrap; }
  .tree__tools .tree__btn--text { padding: 0 10px; font-size: 11px; letter-spacing: .1em; white-space: nowrap; }
}
