.person-institution {
  --about-ink: #21172e;
  --about-violet: #6e2b98;
  --about-hot: #e4328d;
  --about-blue: #244ea0;
  --about-paper: #fffdf4;
  overflow: hidden;
  color: var(--about-ink);
  background: #7d8ba0;
}

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 38px;
  min-height: 650px;
  padding: 88px clamp(34px, 6vw, 78px) 54px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), transparent 8%, transparent 88%, rgba(0,0,0,.3)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, rgba(15,29,40,.04) 1px 3px, transparent 3px 6px),
    linear-gradient(115deg, #61788a 0%, #344b5c 31%, #1c3141 52%, #40586a 77%, #243b4c 100%);
  background-size: auto, 6px 100%, auto;
  border-bottom: 4px ridge #d9e6f4;
  box-shadow: inset 0 2px rgba(255,255,255,.48), inset 0 -2px rgba(4,16,27,.72);
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 44px 0 auto;
  height: 9px;
  background: linear-gradient(#cbd7df, #6f8595 42%, #334858 52%, #9bacb8);
  border-top: 1px solid rgba(255,255,255,.75);
  border-bottom: 1px solid #172b3a;
  box-shadow: 0 2px 0 rgba(255,255,255,.18);
}

.about-window-bar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(#dce7f2, #60748d 44%, #1f2e49 55%, #8fa5bb);
  border-bottom: 2px solid #fff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-shadow: 1px 1px #000;
}

.about-hero-copy { position: relative; z-index: 1; align-self: self-start; padding: 30px 34px; background: linear-gradient(180deg, rgba(17,36,50,.9), rgba(8,24,36,.82)); border: 1px solid #9aafbc; box-shadow: inset 0 1px rgba(255,255,255,.24), inset 0 -1px rgba(0,0,0,.6), 7px 9px 0 rgba(5,16,25,.22); }
.about-hero .route-breadcrumbs { display: flex; gap: 9px; margin: 0 0 25px; font-size: 11px; }
.about-hero .route-breadcrumbs a { color: #fff4b9; }
.hero-classification { margin: 0 0 18px; color: #cce6f4; font-size: 10px; font-weight: bold; letter-spacing: 2px; text-shadow: 1px 1px #07141d; }
.person-deck { max-width: 720px; margin: 20px 0 0; color: #f4f7f8; font: 19px/1.58 Georgia, serif; text-shadow: 1px 1px rgba(0,0,0,.65); }

.hero-dossier { position: relative; align-self: center; padding: 12px; color: #18233b; background: linear-gradient(145deg, #f7fbff, #abbcd0 48%, #eef5fb); border: 2px outset #fff; box-shadow: 12px 14px 0 rgba(28,13,43,.38); transform: rotate(1deg); }
.portrait-provisional { position: relative; display: grid; min-height: 240px; place-items: center; overflow: hidden; color: white; background: repeating-linear-gradient(135deg, #55306e 0 18px, #733f8d 18px 36px); border: 2px inset #708096; }
.portrait-provisional img { grid-area: 1 / 1; display: block; width: 100%; height: auto; aspect-ratio: 288 / 511; object-fit: cover; opacity: 0; transition: opacity 260ms ease; }
.portrait-provisional img.is-active { opacity: 1; }
.dossier-name { padding: 14px 8px 10px; }
.dossier-name h2 { margin: 0 0 6px; font-size: 30px; line-height: .95; }
.dossier-name span { font-size: 11px; line-height: 1.4; }
.dossier-stamp { margin: 3px 5px 7px; padding: 7px; color: #9c2145; border: 3px double #a23b55; font-size: 9px; font-weight: bold; letter-spacing: 1px; text-align: center; transform: rotate(-1deg); }

.about-commands { position: sticky; top: 0; z-index: 10; grid-template-columns: repeat(6, 1fr); }
.section-code, .record-heading > p, .identity-dossier header p, .gallery-heading > p { margin: 0 0 10px; color: #792b92; font-size: 10px; font-weight: bold; letter-spacing: 1.8px; text-transform: uppercase; }
.record-heading h2, .formation-main h2, .depth-record h2, .machine-record h2, .practice-record h2, .ordinary-record h2, .signal-record h2, .road-record h2, .change-record h2, .gallery-heading h2, .restraint-record h2, .titles-record h2, .identity-dossier h2 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: .94; letter-spacing: -2px; }

.identity-dossier { display: grid; grid-template-columns: 190px 1fr; gap: 28px; margin: 10px; padding: 38px; background: repeating-linear-gradient(0deg, transparent 0 25px, rgba(45,61,91,.055) 26px), var(--about-paper); border: 1px solid #5d687b; box-shadow: inset 0 1px #fff; }
.identity-dossier header { padding-right: 25px; border-right: 1px solid #b3aabc; }
.identity-dossier dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.identity-field { display: grid; grid-template-columns: 115px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dotted #a8a0ad; }
.identity-field dt { font-size: 9px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; }
.identity-field dd { margin: 0; font: 14px/1.35 Georgia, serif; }

.plains-record { position: relative; margin: 10px; padding: 48px; overflow: hidden; color: #302311; background: #e8d3a0; border: 1px solid #665439; box-shadow: inset 0 0 80px rgba(105,76,34,.22); }
.plains-record::before { content: "ARCHIVAL COPY"; position: absolute; top: 27px; right: -44px; width: 190px; padding: 5px; color: rgba(88,50,35,.65); border: 2px solid rgba(88,50,35,.45); font-size: 10px; font-weight: bold; letter-spacing: 1.5px; text-align: center; transform: rotate(34deg); }
.plains-record .record-heading { max-width: 850px; margin-bottom: 34px; }
.plains-record .record-heading > p { color: #704730; }
.plains-layout { max-width: 980px; }
.historical-copy p, .formation-main > p:not(.section-code), .depth-record > div:last-child > p, .practice-record > div:last-child > p, .ordinary-copy p, .road-record > div:last-child > p { font: 17px/1.72 Georgia, serif; }
.historical-copy p:first-child::first-letter { float: left; margin: 4px 8px 0 0; color: #713b25; font-size: 64px; line-height: .75; }
.plains-ending { margin: 28px 0 0; padding: 18px 20px; color: #fff3d9; background: #513e33; border-left: 8px solid #b97643; font: italic 17px/1.6 Georgia, serif; }

.certified-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 32px 0 0; }
.certified-event { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 12px; min-height: 106px; padding: 12px 82px 12px 12px; background: rgba(255,250,230,.72); border: 1px solid #907758; }
.certified-event > div strong, .certified-event > div span { display: block; }
.certified-event > div strong { color: #5e2f59; font-size: 20px; }
.certified-event > div span { margin-top: 3px; font-size: 8px; font-weight: bold; }
.certified-event p { margin: 0; font: 13px/1.45 Georgia, serif; }
.certified-event > b { position: absolute; top: 16px; right: 7px; padding: 4px; color: #a12f45; border: 2px solid #a12f45; font-size: 8px; transform: rotate(8deg); }
.certified-event > .event-status--certified { color: #742b8e; border-color: #742b8e; }
.certified-event > .event-status--documented { color: #2f694f; border-color: #2f694f; transform: rotate(-5deg); }

.formation-record { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 38px; margin: 10px; padding: 48px; background: #fffdf5; border: 1px solid #65738b; }
.formation-main > p:not(.section-code) { max-width: 710px; }
.credential-stack { display: grid; gap: 11px; align-content: start; }
.credential-stack article { position: relative; padding: 18px; color: #1e2a46; background: linear-gradient(135deg, #e8eff8, #c0cee0); border: 2px outset white; box-shadow: 5px 6px 0 rgba(27,39,65,.18); }
.credential-stack article > span { color: #742b8e; font-size: 9px; font-weight: bold; letter-spacing: 1px; }
.credential-stack article > strong { display: block; margin: 8px 0 2px; font-size: 29px; }
.credential-stack article p { margin: 0; font: 13px Georgia, serif; }
.credential-stack article b { position: absolute; right: 9px; bottom: 9px; color: #376052; font-size: 7px; letter-spacing: .7px; }
.certified-strip--paper { grid-column: 1 / -1; }
.certified-strip--paper .certified-event { background: #fff2c8; }

.depth-record { display: grid; grid-template-columns: .7fr 1.3fr; gap: 42px; align-items: center; min-height: 520px; padding: 56px; overflow: hidden; color: white; background: radial-gradient(circle at 20% 40%, #cd5c9a, transparent 28%), linear-gradient(135deg, #2d1748, #66327e 55%, #1d6078); border-top: 4px ridge #fff; border-bottom: 4px ridge #fff; }
.depth-record .section-code { color: #c8ffdc; }
.depth-wordart { color: #fff7a9; font: italic 900 clamp(58px, 8vw, 104px)/.78 "Arial Black", Impact, sans-serif; letter-spacing: -7px; text-align: center; text-shadow: 4px 4px 0 #e93192, 8px 8px 0 #3f1d61, 0 0 16px #fff; transform: rotate(-7deg); }
.depth-record > div:last-child > p { color: #f5eefa; }

.machine-record { margin: 10px; color: #d7ffe9; background: #061510; border: 2px solid #4d8471; box-shadow: inset 0 0 46px rgba(45,255,165,.08); }
.machine-console { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; padding: 10px 14px; color: #bbf8d8; background: #172a25; border-bottom: 1px solid #659886; font: 9px/1.3 "Courier New", monospace; letter-spacing: 1.2px; }
.machine-console b { color: #7dffb9; font-weight: normal; }
.machine-console i { grid-column: 1 / -1; color: #699483; font-style: normal; }
.machine-layout { padding: 52px; }
.machine-layout > div { max-width: 920px; margin: auto; }
.machine-record .section-code { color: #79f6b5; }
.machine-record .machine-theory-title { max-width: 820px; margin: 0 0 22px; color: #79f6b5; font: bold 11px/1.4 "Courier New", monospace; letter-spacing: 1.8px; text-transform: lowercase; }
.machine-record .voice-mixed { max-width: 850px; font: 16px/1.7 Georgia, serif; }
.practice-record { margin: 10px; padding: 50px; color: #352510; background: linear-gradient(135deg, #fff7d4, #ead4a7); border: 1px solid #725c37; }
.practice-record > div { max-width: 920px; margin: auto; }

.ordinary-record { margin: 10px; padding: 46px; background: #dfe7ef; border: 1px solid #58677d; }
.ordinary-record .record-heading { max-width: 900px; }
.ordinary-copy { columns: 2 320px; column-gap: 42px; margin-top: 28px; }
.ordinary-copy p { break-inside: avoid; margin-top: 0; }
.object-bricks { display: flex; max-width: 820px; gap: 7px; justify-content: center; margin: 25px auto 0; flex-wrap: wrap; }
.object-bricks span { padding: 8px 10px; color: #fff4b5; background: #52336d; border: 1px solid #bd9dcd; box-shadow: 2px 3px 0 rgba(33,23,46,.16); font-size: 8px; font-weight: bold; letter-spacing: 1px; }

.small-life-record { margin: 10px; padding: 50px; color: #2e2638; background: linear-gradient(135deg, #d8f2db, #fce0ed 65%, #fff3c6); border: 1px solid #8c7188; }
.small-life-record > div { max-width: 920px; margin: auto; }
.small-life-record .section-code { color: #70517c; }
.small-life-record > div:last-child > p { font: 16px/1.7 Georgia, serif; }

.signal-record { padding: 50px; color: #17233a; background: linear-gradient(145deg, #e8eff5, #bac9d8); border-top: 4px ridge #fff; border-bottom: 4px ridge #fff; text-align: center; }
.signal-record h2 { max-width: 930px; margin-right: auto; margin-left: auto; }
.buzzword-run { max-width: 980px; margin: 28px auto 0; color: #4b315c; font: italic 19px/1.8 Georgia, serif; }

.road-record { display: grid; grid-template-columns: 260px 1fr; gap: 46px; align-items: center; min-height: 390px; padding: 50px; color: white; background: linear-gradient(120deg, #233453, #4d416c 54%, #a24f69); }
.road-record .section-code { color: #c5f8db; }
.road-mileage { display: grid; place-items: center; min-height: 230px; align-content: center; color: #1c2942; background: #fff6bd; border: 5px double #4f3b4f; border-radius: 50%; box-shadow: 0 0 0 8px rgba(255,255,255,.18); text-align: center; transform: rotate(-3deg); }
.road-mileage strong { font-size: 54px; letter-spacing: -3px; }
.road-mileage span { font-size: 9px; font-weight: bold; letter-spacing: 1.5px; }

.change-record { margin: 10px; padding: 48px; color: #f2f6ff; background: linear-gradient(128deg, #263852, #493362 60%, #722c5d); border: 1px solid #8695aa; }
.change-record .section-code { color: #9df0c7; }
.change-record h2 { max-width: 880px; }
.change-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.change-ledger article { padding: 24px; color: #1d2940; background: #f7fbff; border: 2px outset #fff; box-shadow: 6px 7px 0 rgba(10,17,30,.23); }
.change-ledger article > span { color: #2e7459; font-size: 9px; font-weight: bold; letter-spacing: 1.5px; }
.change-ledger article p { margin: 14px 0 0; font: 15px/1.62 Georgia, serif; }
.change-ledger .change-fixed { background: #fff0ed; }
.change-ledger .change-fixed > span { color: #ad304c; }
.change-principle { margin: 24px 0 0; padding: 17px 20px; color: #fff5bd; border: 1px dotted #c6a8c7; font: italic 15px/1.55 Georgia, serif; }

.life-gallery { padding: 46px; background: #18253a; color: white; }
.gallery-heading { max-width: 900px; margin-bottom: 32px; }
.gallery-heading > p { color: #9cf2ca; }
.gallery-heading > span { display: inline-block; margin-top: 17px; padding: 6px 9px; color: #172039; background: #ffd27a; font-size: 9px; font-weight: bold; letter-spacing: 1px; }
.life-gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: start; }
.life-evidence { grid-column: span 4; margin: 0; padding: 10px; color: #172039; background: #f9f7ef; border: 1px solid #728096; box-shadow: 8px 10px 0 rgba(0,0,0,.26); transform: rotate(calc((var(--evidence-index) - 2) * .18deg)); }
.life-evidence:nth-child(5n + 1) { grid-column: span 7; }
.life-evidence:nth-child(5n + 2) { grid-column: span 5; }
.life-evidence a { display: block; color: inherit; background: #101827; }
.life-evidence a:focus-visible { outline: 4px solid #ffd27a; outline-offset: 2px; }
.life-evidence img { display: block; width: 100%; max-height: 620px; object-fit: contain; }
.life-evidence figcaption { min-height: 62px; padding: 12px 6px 5px; font: 14px/1.5 Georgia, serif; white-space: pre-wrap; }
.gallery-pending { grid-column: 1 / -1; padding: 48px; color: #cfd9e7; background: #23324a; border: 4px dashed #71819a; text-align: center; }
.gallery-pending strong { display: block; margin-bottom: 12px; color: #fff0a8; letter-spacing: 2px; }
.gallery-pending p { max-width: 580px; margin: auto; font: 15px/1.55 Georgia, serif; }

.restraint-record { display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: center; margin: 10px; padding: 50px; color: #3d2f25; background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(70,51,35,.06) 28px), #f3e5c8; border: 1px solid #72604d; box-shadow: inset 0 0 50px rgba(96,68,38,.12); }
.restraint-record .section-code { color: #7d3f53; }
.restraint-record > div:last-child > p { font: 16px/1.7 Georgia, serif; }
.restraint-stamp { padding: 30px 18px; color: #a0293d; border: 7px double #a0293d; font: 900 28px/1.05 "Arial Black", Impact, sans-serif; letter-spacing: -1px; text-align: center; transform: rotate(-7deg); opacity: .86; }

.titles-record { padding: 54px; color: #f8f3e6; background: radial-gradient(circle at 85% 10%, #7d315d, transparent 33%), #25162f; }
.titles-record .section-code { color: #a5f0c8; }
.titles-record h2 { max-width: 900px; }
.titles-warning { margin: 0 0 16px; color: #f0d9e8; font: 15px/1.5 Georgia, serif; }
.titles-record details { border: 2px ridge #e7ca69; }
.titles-record summary { padding: 18px 22px; color: #39240b; background: linear-gradient(#fff0a4, #d5a528 46%, #9d6a0e 52%, #efca58); border: 2px outset #f7dc7a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); font-size: 13px; font-weight: bold; letter-spacing: 1px; text-shadow: 0 1px rgba(255,255,255,.55); cursor: pointer; }
.titles-record ol { columns: 2 340px; column-gap: 40px; margin: 0; padding: 30px 30px 30px 55px; }
.titles-record li { margin: 0 0 12px; padding-left: 4px; break-inside: avoid; font: 14px/1.45 Georgia, serif; }
.closing-uncertainty { max-width: 820px; margin: 38px 0 0; color: #efdae9; font: italic 17px/1.65 Georgia, serif; }

@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr 240px; padding-right: 32px; padding-left: 32px; }
  .identity-dossier, .formation-record { grid-template-columns: 1fr; }
  .identity-dossier header { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid #b3aabc; }
  .certified-strip { grid-template-columns: 1fr; }
  .depth-record { grid-template-columns: 1fr; }
  .depth-wordart { font-size: 64px; }
  .machine-layout { padding: 38px; }
  .life-evidence, .life-evidence:nth-child(5n + 1), .life-evidence:nth-child(5n + 2) { grid-column: span 6; }
}

@media (max-width: 640px) {
  .person-institution { width: 100%; margin: 0; border-right: 0; border-left: 0; }
  .about-hero { display: flex; min-height: 0; padding: 72px 20px 35px; flex-direction: column; }
  .about-hero-copy { align-self: stretch; }
  .hero-dossier { width: min(100%, 310px); align-self: flex-start; }
  .portrait-provisional { min-height: 190px; }
  .about-commands { position: static; grid-template-columns: 1fr 1fr; }
  .identity-dossier, .plains-record, .formation-record, .machine-layout, .practice-record, .ordinary-record, .small-life-record, .signal-record, .road-record, .change-record, .life-gallery, .restraint-record, .titles-record { margin-right: 0; margin-left: 0; padding: 32px 20px; }
  .identity-dossier dl { grid-template-columns: 1fr; }
  .identity-field { grid-template-columns: 105px 1fr; }
  .plains-layout, .machine-layout, .practice-record, .small-life-record, .road-record, .restraint-record { grid-template-columns: 1fr; }
  .certified-event { grid-template-columns: 62px 1fr; padding-right: 68px; }
  .change-ledger { grid-template-columns: 1fr; }
  .road-mileage { width: 210px; min-height: 210px; }
  .life-gallery-grid { grid-template-columns: 1fr; }
  .life-evidence, .life-evidence:nth-child(5n + 1), .life-evidence:nth-child(5n + 2) { grid-column: 1; transform: none; }
  .titles-record ol { columns: 1; padding: 24px 24px 24px 46px; }
}


@media (prefers-reduced-motion: reduce) {
  .hero-dossier, .depth-wordart, .road-mileage, .life-evidence { transform: none; }
  .portrait-provisional img { transition: none; }
}
