/* ==========================================================================
   Bifrost Investment Management
   main.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Core palette — sampled from the logo artwork */
  --navy:        #192637;
  --navy-deep:   #0D1A29;
  --navy-soft:   #22364D;
  --ink:         #16263A;
  --ink-muted:   #5B6878;
  --ink-faint:   #8A94A1;

  --paper:       #FFFFFF;
  --paper-warm:  #F6F5F2;
  --paper-cool:  #EEF0F2;

  --rule:        #DCD9D2;
  --rule-dark:   rgba(255, 255, 255, 0.16);

  --on-navy:         #F2F1ED;
  --on-navy-muted:   rgba(242, 241, 237, 0.62);
  --on-navy-faint:   rgba(242, 241, 237, 0.38);

  /* The bridge — a muted spectral hairline, used sparingly */
  --bridge: linear-gradient(
    90deg,
    #6E8FB0 0%,
    #7FA394 28%,
    #C2B183 55%,
    #BC8B76 78%,
    #9B7C90 100%
  );

  /* Type */
  --display: "Cormorant Garamond", "EB Garamond", Garamond, Georgia,
             "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
          Arial, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.5rem, 5vw, 6rem);
  --measure: 34rem;
  --section-y: clamp(5rem, 11vw, 10.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0;
}

p { margin: 0 0 1.35em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--navy); color: var(--on-navy); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 56rem; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

.section--warm { background: var(--paper-warm); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy .eyebrow { color: var(--on-navy-faint); }
.section--navy .lede { color: var(--on-navy-muted); }

.measure { max-width: var(--measure); }

/* Editorial two-column: a sticky label rail beside a text column */
.editorial {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 62rem) {
  .editorial { grid-template-columns: 14rem minmax(0, 1fr); }
  .editorial__rail { position: sticky; top: 9rem; align-self: start; }
}

/* --------------------------------------------------------------------------
   4. Type utilities
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.5rem;
}

.eyebrow--num::before {
  content: attr(data-num);
  display: inline-block;
  margin-right: 0.9em;
  color: var(--ink-faint);
}

.display {
  font-size: clamp(2.25rem, 5.4vw, 4rem);
  letter-spacing: -0.008em;
}

.headline {
  font-size: clamp(1.875rem, 3.6vw, 2.875rem);
  margin-bottom: 1.4rem;
}

.subhead {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  line-height: 1.72;
  color: var(--ink-muted);
}

.prose { max-width: var(--measure); }

/* Landing intro: the whole block reads as one lede, not a lede plus body copy */
.prose--lede > p {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  line-height: 1.72;
  color: var(--ink-muted);
}
.prose p + h3 { margin-top: 2.75rem; }
.prose h3 {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pull {
  font-family: var(--display);
  font-size: clamp(1.625rem, 3.2vw, 2.5rem);
  line-height: 1.28;
  font-weight: 300;
  max-width: 44rem;
  margin: 0;
}

.footnote {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   5. The bridge rule
   -------------------------------------------------------------------------- */

.bridge {
  height: 1px;
  width: 100%;
  border: 0;
  margin: 0;
  background: var(--bridge);
  opacity: 0.85;
}

.bridge--short { width: 4.5rem; }
.bridge--inline { margin-bottom: 2.25rem; }

hr.rule {
  height: 1px;
  border: 0;
  background: var(--rule);
  margin: 0;
}

.section--navy hr.rule { background: var(--rule-dark); }

/* --------------------------------------------------------------------------
   6. Mark & wordmark
   -------------------------------------------------------------------------- */

/* The logo artwork is applied as a CSS mask and filled with currentColor, so a
   single asset renders correctly on both light and navy grounds. */

.mark,
.wordmark-img,
.lockup-img {
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

.mark {
  aspect-ratio: 800 / 744;
  -webkit-mask-image: url("../img/bifrost-mark-mask.png");
          mask-image: url("../img/bifrost-mark-mask.png");
}

.wordmark-img {
  aspect-ratio: 1200 / 165;
  height: 1rem;
  width: auto;
  -webkit-mask-image: url("../img/bifrost-wordmark-mask.png");
          mask-image: url("../img/bifrost-wordmark-mask.png");
}

.wordmark-img--sm { height: 0.8125rem; }

.lockup-img {
  aspect-ratio: 1400 / 962;
  width: 100%;
  max-width: clamp(19rem, 52vw, 36rem);
  -webkit-mask-image: url("../img/bifrost-lockup-mask.png");
          mask-image: url("../img/bifrost-lockup-mask.png");
}

/* Horizontal lockup — mark beside the wordmark, as in the masthead */
.lockup-h {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 1.9rem);
}

.lockup-h .mark { width: clamp(2.5rem, 8vw, 5.5rem); }
.lockup-h .wordmark-img { height: clamp(1.55rem, 5vw, 3.4rem); }

/* --------------------------------------------------------------------------
   7. Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
              backdrop-filter 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 5.5rem;
  transition: height 0.45s var(--ease);
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--on-navy);
  transition: color 0.45s var(--ease);
}

.masthead__brand .mark { width: 1.9rem; flex: none; }

.masthead__lead {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.status-tag {
  font-family: var(--sans);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.32rem 0.5rem 0.28rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--on-navy-faint);
  transition: color 0.45s var(--ease);
  white-space: nowrap;
}

.masthead.is-stuck .status-tag { color: var(--ink-faint); }

@media (max-width: 26rem) { .status-tag { display: none; } }

/* Pre-launch banner in the footer */
.footer__status {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule-dark);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--on-navy-muted);
}

.footer__status .status-tag { color: var(--on-navy-faint); flex: none; }

/* Scrolled state */
.masthead.is-stuck {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--rule);
}

.masthead.is-stuck .masthead__inner { height: 4.25rem; }
.masthead.is-stuck .masthead__brand { color: var(--navy); }
.masthead.is-stuck .nav__link { color: var(--ink-muted); }
.masthead.is-stuck .nav__link:hover,
.masthead.is-stuck .nav__link[aria-current="page"] { color: var(--navy); }
.masthead.is-stuck .burger span { background: var(--navy); }

/* Nav */
.nav { display: none; }

@media (min-width: 56rem) {
  .nav { display: flex; align-items: center; gap: clamp(1.35rem, 2.4vw, 2.25rem); }
}

.nav__link {
  position: relative;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  padding-block: 0.35rem;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--bridge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover { color: var(--on-navy); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--on-navy); }

/* Burger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--on-navy);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease),
              background 0.45s var(--ease);
}

@media (min-width: 56rem) { .burger { display: none; } }

body.is-menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.is-menu-open .burger span:nth-child(2) { opacity: 0; }
body.is-menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.is-menu-open .masthead .burger span { background: var(--on-navy); }

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--on-navy);
  display: flex;
  align-items: center;
  padding: 6rem var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease),
              visibility 0.45s;
}

body.is-menu-open { overflow: hidden; }
body.is-menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
body.is-menu-open .masthead { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
body.is-menu-open .masthead__brand { color: var(--on-navy); }

.drawer__nav { display: flex; flex-direction: column; gap: 0.35rem; width: 100%; }

.drawer__link {
  font-family: var(--display);
  font-size: clamp(2rem, 10vw, 3rem);
  font-weight: 300;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--rule-dark);
}

.drawer__link:last-child { border-bottom: 0; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  background: var(--navy);
  color: var(--on-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

/* Looping drone plate behind the lockup */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* poster and video both sit under the scrim */
}

/* Neutral vignette, no colour cast: just enough to seat the lockup */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(95% 70% at 50% 42%, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.06) 35%, rgba(0, 0, 0, 0.10) 65%, rgba(0, 0, 0, 0.40) 100%);
}

/* The lockup carries its own shadow so it reads over snow and cloud */
.hero__lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 1.7vw, 1.35rem);
}

.hero__tagline {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(0.5625rem, 1.05vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(242, 241, 237, 0.55);
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.65);
  /* optical centring against the tracked-out letters */
  text-indent: 0.34em;
  white-space: nowrap;
}

.hero .lockup-h .mark,
.hero .lockup-h .wordmark-img {
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55))
    drop-shadow(0 4px 22px rgba(0, 0, 0, 0.5));
}

.hero__scroll {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
  color: rgba(242, 241, 237, 0.72);
}

.hero__scroll svg { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7)); }


/* A faint arc — the bridge, abstracted */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: 50%;
  bottom: -58vw;
  width: 132vw;
  height: 132vw;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(242, 241, 237, 0.07);
  box-shadow: 0 0 0 1px rgba(242, 241, 237, 0.03) inset;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 1px;
  background: var(--bridge);
  opacity: 0.5;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 6rem;
}

.hero .lockup-img { margin-inline: auto; }

.hero__divider {
  width: clamp(4rem, 10vw, 7rem);
  margin: clamp(2rem, 4.5vw, 3rem) 0 clamp(1.75rem, 4vw, 2.5rem);
}

.hero__quote {
  margin: 0;
  max-width: 46rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.375rem, 2.9vw, 2.25rem);
  line-height: 1.42;
  letter-spacing: 0.002em;
  color: var(--on-navy);
  text-wrap: balance;
}

.hero__quote em {
  font-style: normal;
  color: var(--on-navy-muted);
}

.hero__scroll {
  position: absolute;
  transition: color 0.3s var(--ease);
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--on-navy-faint);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.hero__scroll svg {
  width: 0.9rem;
  height: 1.35rem;
  animation: drift 2.6s var(--ease) infinite;
}

.hero__scroll:hover { color: var(--on-navy); }

@keyframes drift {
  0%, 100% { opacity: 0.45; transform: translateY(-2px); }
  50%      { opacity: 1;    transform: translateY(3px); }
}

/* Statement band directly under the hero, full height */
.statement {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.statement__quote {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.75rem, 4.2vw, 3.4rem);
  line-height: 1.3;
  max-width: 52rem;
  margin: 0;
  color: var(--on-navy);
  text-wrap: balance;
}

/* Compact page header for interior pages */
.pagehead {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(9rem, 16vw, 13rem) clamp(3.5rem, 7vw, 6rem);
  position: relative;
}

.pagehead::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--bridge);
  opacity: 0.5;
}

.pagehead .eyebrow { color: var(--on-navy-faint); }
.pagehead__lede {
  margin-top: 1.75rem;
  max-width: 40rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--on-navy-muted);
}

/* --------------------------------------------------------------------------
   9. Columns / cards
   -------------------------------------------------------------------------- */

.cols {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem)  { .cols--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem)  { .cols--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 48rem)  { .cols--2 { grid-template-columns: repeat(2, 1fr); } }

.col__num {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 1.1rem;
}

.col h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.85rem;
}

.col p { font-size: 0.9375rem; color: var(--ink-muted); }

.col--ruled { border-top: 1px solid var(--rule); padding-top: 1.75rem; }
.section--navy .col--ruled { border-top-color: var(--rule-dark); }
.section--navy .col p { color: var(--on-navy-muted); }
.section--navy .col__num { color: var(--on-navy-faint); }

/* --------------------------------------------------------------------------
   10. Principles list
   -------------------------------------------------------------------------- */

.principles { list-style: none; margin: 0; padding: 0; }

.principle {
  display: grid;
  gap: 0.4rem 2.5rem;
  grid-template-columns: 1fr;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
}

.principle:last-child { border-bottom: 1px solid var(--rule); }

@media (min-width: 52rem) {
  .principle { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); }
}

.principle__title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
}

.principle__body { color: var(--ink-muted); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   11. Pillars table
   -------------------------------------------------------------------------- */

.pillars { width: 100%; }

.pillar {
  display: grid;
  gap: 0.35rem 2rem;
  grid-template-columns: 1fr;
  padding-block: 1.9rem;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}

.pillar:last-child { border-bottom: 1px solid var(--rule); }

@media (min-width: 52rem) {
  .pillar { grid-template-columns: 12rem 7rem minmax(0, 1fr); }
}

.pillar__name {
  font-family: var(--display);
  font-size: 1.4375rem;
  font-weight: 400;
}

.pillar__weight {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.pillar__role { color: var(--ink-muted); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   12. Team
   -------------------------------------------------------------------------- */

.people {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

.person {
  display: grid;
  gap: 1.25rem 3rem;
  grid-template-columns: 1fr;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--rule);
}

.person:last-child { border-bottom: 1px solid var(--rule); }

@media (min-width: 56rem) {
  .person { grid-template-columns: 9.5rem minmax(0, 17rem) minmax(0, 1fr); }
}

/* Group heading above each set of people */
.people-group + .people-group { margin-top: clamp(3.5rem, 7vw, 5.5rem); }

.people-group__label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.5rem;
}

.person__photo {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-warm);
  position: relative;
}

/* Fallback when there is no headshot yet */
.person__photo--initials {
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  background: var(--paper-warm);
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  transition: filter 0.5s var(--ease);
}

.person:hover .person__photo img { filter: none; }

.person__photo::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  padding: 1px;
  background: var(--bridge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.person:hover .person__photo::after { opacity: 1; }

.person__name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.person__role {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.person__bio { color: var(--ink-muted); font-size: 0.9375rem; }

/* Expandable bio — native <details>, no JS required */
.bio-more { margin-top: 1.1rem; }

.bio-more > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.3s var(--ease);
}

.bio-more > summary::-webkit-details-marker { display: none; }
.bio-more > summary::marker { content: ""; }

.bio-more > summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.4s var(--ease);
}

.bio-more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.bio-more > summary:hover { color: var(--navy); }

.bio-more > summary .bio-more__less,
.bio-more[open] > summary .bio-more__more { display: none; }
.bio-more[open] > summary .bio-more__less { display: inline; }

.bio-more__body { margin-top: 1.2rem; }
.bio-more__body > p + p { margin-top: 1.35em; }

@media (prefers-reduced-motion: no-preference) {
  .bio-more[open] .bio-more__body { animation: bio-in 0.45s var(--ease); }
}

@keyframes bio-in {
  from { opacity: 0; transform: translateY(-0.4rem); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   12b. Research library & PDF reader
   -------------------------------------------------------------------------- */

.library {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 64rem) {
  .library { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
  .library__index { position: sticky; top: 6.5rem; }
}

.papers { list-style: none; margin: 0; padding: 0; }

.paper { border-top: 1px solid var(--rule); }
.papers > .paper:last-child { border-bottom: 1px solid var(--rule); }

.paper__button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.4rem 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: opacity 0.3s var(--ease);
}

.paper__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}

.paper__title {
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  position: relative;
  display: inline-block;
}

.paper__title::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--bridge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.paper__button:hover .paper__title::after { transform: scaleX(1); }

.paper__flag {
  color: #9B6B5C;
  position: relative;
  padding-left: 0.85rem;
}

.paper__flag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

.paper__summary {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

.paper.is-active .paper__title::after { transform: scaleX(1); }
.paper.is-active .paper__meta { color: var(--navy); }

/* Reader */
.reader {
  border: 1px solid var(--rule);
  background: var(--paper-warm);
  display: flex;
  flex-direction: column;
  min-height: 26rem;
}

.reader__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.reader__title {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0;
}

.reader__actions {
  display: flex;
  gap: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.reader__actions a:hover { color: var(--navy); }
.reader[hidden] { display: none; }

.reader__frame {
  width: 100%;
  height: clamp(30rem, 78vh, 54rem);
  border: 0;
  display: block;
  background: var(--paper-cool);
}

.reader__empty {
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

/* Small screens can't render PDFs inline reliably — send them to the file */
.reader__fallback {
  display: none;
  padding: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

@media (max-width: 47.99rem) {
  .reader__frame { display: none; }
  .reader__fallback { display: block; }
}

/* --------------------------------------------------------------------------
   12c. Source links (book, archives, references)
   -------------------------------------------------------------------------- */

.sources {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

.sources__label {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.85rem;
}

.sources__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.source {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: color 0.3s var(--ease);
  width: fit-content;
}

.source svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
}

.source__text {
  position: relative;
  padding-bottom: 1px;
}

.source__text::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
  transition: opacity 0.3s var(--ease);
}

.source:hover { color: var(--navy); }
.source:hover .source__text::after { opacity: 1; }

.source--book  svg { color: #6E8FB0; }
.source--house svg { color: #7FA394; }
.source--gov   svg { color: #B08A5C; }
.source--soaa  svg { color: #BC8B76; }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 52rem) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-block h3 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}

.contact-block address {
  font-style: normal;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--bridge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.link-underline:hover::after { transform: scaleX(1); }
.link-underline--static::after { transform: scaleX(1); opacity: 0.6; }
.link-underline--static:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy-deep);
  color: var(--on-navy);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
}

.footer__top {
  display: grid;
  gap: 2.75rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 52rem) {
  .footer__top { grid-template-columns: minmax(0, 1fr) auto; }
}

.footer__brand { display: inline-flex; align-items: center; gap: 1.1rem; }
.footer__brand .mark { width: 2.4rem; flex: none; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.25rem;
}

.footer__nav a {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  transition: color 0.3s var(--ease);
}

.footer__nav a:hover { color: var(--on-navy); }

.footer__legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule-dark);
  display: grid;
  gap: 1.5rem;
}

.footer__disclaimer {
  font-size: 0.75rem;
  line-height: 1.75;
  color: var(--on-navy-faint);
  max-width: 52rem;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--on-navy-faint);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   15. Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   16. Accessibility
   -------------------------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--paper);
  color: var(--navy);
  padding: 0.85rem 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skip:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid #7FA394;
  outline-offset: 3px;
}

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