/* ===== base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: #030d29; color: #0b1a3a; font-family: "Fira Sans", "Segoe UI", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== 1. hero ===== */
.hero { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 100dvh; overflow: hidden;
  background: linear-gradient(#0a1f5e, #122b78 50%, #030d29); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero h1 { position: absolute; inset: 0; margin: 0; display: grid; place-items: center;
  font: 700 clamp(3rem, 16vw, 18rem)/1 Bahnschrift, "DIN Alternate", "Fira Sans", sans-serif; letter-spacing: .04em; color: rgba(130,155,232,.35); }
.hero.is-live h1 { color: transparent; user-select: none; }
.hero-next { position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); width: 44px; height: 44px; margin-left: -22px;
  display: grid; place-items: center; opacity: .35; transition: opacity .3s; }
.hero-next:hover, .hero-next:focus-visible { opacity: .9; }
.hero-next span { width: 12px; height: 12px; border-right: 2px solid #9db4ff; border-bottom: 2px solid #9db4ff; transform: rotate(45deg); animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px) rotate(45deg); } }

/* ===== 2. dashboard =====
   .dash-canvas is laid out at the picture's own size (1672 × 941) and scaled as a whole to the screen by js/site.js,
   so every card keeps the picture's position and proportions at any desktop size. */
.dash { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(#061127 0, #0d2350 9%, #8fa2c9 14%, #b4c0d9 42%, #a3b0cd 78%, #8998b9 100%); }
.dash-fit { position: relative; }
.dash-canvas { position: relative; width: 1672px; height: 941px; transform-origin: 0 0; font-size: 17px; line-height: 1.2;
  background:
    radial-gradient(900px 260px at 50% 78px, rgba(46,110,255,.55), transparent 70%),
    linear-gradient(#071226 0, #0a1d45 80px, #6f86b8 108px, #aebbd6 300px, #b5c1da 560px, #9aa8c6 830px, #8b9abb 941px); }
/* body copy is a narrower face than the headings, as in the picture */
.dash-canvas li, .dash-canvas p, .dash-canvas span, .dash-canvas small, .dash-canvas em, .dash-canvas input, .d-tabs a, .d-focus-grid a, .d-more { font-family: "Source Sans 3", "Fira Sans", sans-serif; }
.dash-canvas b, .dash-canvas strong { font-family: "Fira Sans", sans-serif; }
.d-checks li, .d-checks li b { font-family: "Fira Sans Condensed", "Fira Sans", sans-serif; }
.d-brand img { mix-blend-mode: lighten; }
.d-tags, .d-certs b, .d-focus-grid a, .d-checks.sm li { white-space: nowrap; }
.d-checks.sm li:nth-child(3) { white-space: normal; }
.d-card { position: absolute; background: linear-gradient(#fbfcfe, #f1f4fa); border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset, 0 6px 18px rgba(20,40,90,.28), 0 1px 3px rgba(20,40,90,.25); }
.d-card h3 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; color: #0b1a3a; letter-spacing: -.1px; }
.d-card h3 > svg { width: 34px; height: 34px; flex: none; }
svg.navy { color: #17358f; stroke-width: 1.9; }
svg.solid { fill: #17358f; stroke: none; }
svg.bars rect { fill: #1f5fe8; stroke: none; } svg.bars rect:nth-child(1) { fill: #1746b8; } svg.bars rect:nth-child(3) { fill: #2f7bff; }

/* nav */
.d-nav { position: absolute; inset: 0 0 auto 0; height: 76px; background: linear-gradient(#0a1730, #071226);
  border-bottom: 1px solid #1d3f8f; box-shadow: 0 2px 22px rgba(47,123,255,.55); color: #fff; }
.d-brand { position: absolute; left: 26px; top: 2px; display: flex; align-items: center; gap: 12px; }
.d-brand img { width: 114px; height: 72px; display: block; }
.d-brand b { font-size: 26px; line-height: 25px; font-weight: 600; letter-spacing: .1px; }
.d-search { position: absolute; left: 329px; top: 11px; width: 438px; height: 46px; display: flex; align-items: center; gap: 13px; padding: 0 18px;
  border: 1.5px solid #5a6f96; border-radius: 23px; background: rgba(10,22,48,.75); }
.d-search svg { width: 27px; height: 27px; stroke-width: 2; flex: none; }
.d-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font-size: 18.500px; }
.d-search input::placeholder { color: #f2f5fb; opacity: 1; }
.d-search:focus-within { border-color: #7fb0ff; box-shadow: 0 0 0 3px rgba(47,123,255,.3); }
.d-search-results { position: absolute; left: 329px; top: 62px; width: 438px; z-index: 5; background: #0c1b3d; border: 1px solid #2a4a94; border-radius: 12px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.d-search-results a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 16px; color: #e8eeff; }
.d-search-results a:hover, .d-search-results a:focus { background: #173a86; outline: 0; }
.d-search-results small { display: block; color: #9fb3e6; font-size: 13px; }
.d-tabs a { position: absolute; top: 0; height: 75px; width: 130px; margin-left: -65px; text-align: center; font-size: 18px; padding-top: 41px; color: #fff; }
.d-tabs a svg { position: absolute; left: 50%; top: 5px; width: 34px; height: 34px; margin-left: -17px; stroke-width: 1.6; }
.d-tabs a svg.fill { fill: #3d9bff; stroke: #3d9bff; }
.d-tabs a:nth-child(1) { left: 858px; } .d-tabs a:nth-child(2) { left: 977px; } .d-tabs a:nth-child(3) { left: 1096px; }
.d-tabs a:nth-child(4) { left: 1215px; } .d-tabs a:nth-child(5) { left: 1340px; } .d-tabs a:nth-child(6) { left: 1475px; } .d-tabs a:nth-child(7) { left: 1605px; }
.d-tabs a.is-active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; border-radius: 3px; background: #4aa3ff; box-shadow: 0 0 14px 3px rgba(74,163,255,.9); }
.d-tabs a:hover { color: #a9d0ff; }

/* profile */
.d-profile { left: 8px; top: 88px; width: 372px; height: 468px; overflow: hidden; background: #fff; }
.d-photo { height: 268px; overflow: hidden; border-radius: 14px 14px 0 0; border: 1px solid #55698f; border-bottom: 0; }
.d-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-profile-body { position: absolute; left: 0; right: 0; top: 266px; bottom: 0; background: linear-gradient(#fff, #f3f5fa); border-radius: 14px; padding: 6px 23px 0 24px; }
.d-profile h2 { margin: 0; font-size: 36px; font-weight: 700; letter-spacing: -.6px; color: #0b1a3a; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.d-profile h2 .verified { width: 26px; height: 26px; stroke: none; flex: none; margin-top: 3px; }
.d-loc { margin: 3px 0 0 7px; display: flex; align-items: center; gap: 12px; font-size: 19px; color: #16233f; }
.d-loc svg { width: 21px; height: 21px; stroke-width: 2; }
.d-tags { letter-spacing: .35px; margin: 3px 0 0 9px; padding-top: 9px; border-top: 1px solid #d6dbe6; font-size: 19px; line-height: 20.500px; color: #16233f; }
.d-actions { position: absolute; left: 23px; right: 20px; bottom: 9px; display: flex; gap: 15px; }
.d-btn { flex: 1; height: 50px; border-radius: 9px; display: flex; align-items: center; gap: 25px; padding-left: 36px; color: #fff; font-size: 18px; font-weight: 500;
  background: linear-gradient(#2f6df2, #1a47c8 55%, #123aab); box-shadow: 0 0 0 1px #0f2f8f, 0 3px 8px rgba(18,58,171,.5); transition: filter .2s; }
.d-btn svg { width: 27px; height: 27px; }
.d-btn:hover { filter: brightness(1.12); }
.d-btn-ghost { width: 66px; height: 50px; border-radius: 9px; border: 2px solid #1b2c57; display: grid; place-items: center; color: #0b1a3a; background: #fff; }
.d-btn-ghost svg { width: 30px; height: 30px; stroke-width: 2.2; }
.d-btn-ghost:hover { background: #e8eefc; }

/* core skills + check lists */
.d-skills { left: 8px; top: 566px; width: 372px; height: 332px; padding: 8px 20px 0 26px; }
.d-skills h3 { height: 37px; border-bottom: 1px solid #dfe3ec; }
.d-checks { list-style: none; margin: 0; padding: 0; }
.d-checks li { position: relative; padding: 4.500px 0 4.500px 44px; font-size: 17px; letter-spacing: -.15px; line-height: 17px; color: #0c1424; border-bottom: 1px solid #e6e9f0; }
.d-checks li:last-child { border-bottom: 0; line-height: 21px; padding-top: 6px; }
.d-checks li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 4px; background: #1f5fe8
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m5.500 11.300 3.700 3.700 7.300-7.800' fill='none' stroke='%23fff' stroke-width='2.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.d-checks.sm li { font-size: 16px; letter-spacing: -.2px; line-height: 19px; color: #0c1424; padding: 3px 0 3px 31px; border: 0; color: #121c30; }
.d-checks.sm li::before { left: 0; width: 18px; height: 18px; margin-top: -9px; border-radius: 3px; top: 12.500px; }
.d-checks.sm li.dark::before { background-color: #0d1a3a; }
.d-checks.sm b { font-weight: 600; }

/* banner */
.d-banner { position: absolute; left: 390px; top: 88px; width: 790px; height: 350px; border-radius: 16px; overflow: hidden; color: #fff;
  border: 1.5px solid #8fb4ee; box-shadow: 0 0 16px rgba(120,170,255,.55), 0 6px 18px rgba(20,40,90,.35); background: #0a1020; }
.d-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-banner h2 { position: absolute; left: 22px; top: 10px; margin: 0; font-size: 33px; font-weight: 600; letter-spacing: -.2px; text-shadow: 0 2px 8px rgba(0,0,20,.5); white-space: nowrap; }
.d-banner p { position: absolute; left: 24px; top: 47px; margin: 0; font-size: 22.500px; white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,20,.6); }
.d-chips { position: absolute; left: 22px; bottom: 13px; right: 12px; height: 57px; display: flex; align-items: center; }
.d-chips a { display: block; height: 57px; margin-right: 12px; transition: transform .2s, filter .2s; }
.d-chips a:hover { transform: translateY(-2px); filter: brightness(1.2); }
.d-chips img { height: 57px; width: auto; display: block; border-radius: 9px; }
.d-chip-text { margin-left: 8px; padding-left: 16px; border-left: 1.500px solid rgba(255,255,255,.75); font-size: 17.500px; line-height: 21.500px; white-space: nowrap; }

/* experience */
.d-exp { left: 390px; top: 446px; width: 790px; height: 310px; padding: 5px 21px 0 22px; }
.d-exp h3 { height: 40px; }
.d-more { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 16.500px; font-weight: 400; color: #1a4fd6; }
.d-more svg { width: 22px; height: 22px; stroke-width: 2; }
.d-more:hover { text-decoration: underline; }
.d-row { position: relative; display: flex; align-items: center; height: 80px; margin-top: 4.500px; border-radius: 9px; background: linear-gradient(#f7f9fc, #eef1f7);
  box-shadow: 0 1px 2px rgba(20,40,90,.22), 0 0 0 1px rgba(210,217,232,.9); transition: box-shadow .2s, transform .2s; }
.d-row:first-of-type { margin-top: 3px; }
.d-row:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(20,40,90,.3), 0 0 0 1px #9db8f5; }
.d-row img { width: 248px; height: 69px; margin-left: -1px; border-radius: 8px; object-fit: cover; flex: none; }
.d-row div { margin-left: 16px; display: flex; flex-direction: column; }
.d-row b { font-size: 20px; font-weight: 700; color: #0b1a3a; line-height: 21px; }
.d-row span { font-size: 17px; line-height: 19.800px; color: #17223b; white-space: nowrap; }
.d-row i { position: absolute; right: 1px; top: 50%; margin-top: -14px; width: 46px; height: 28px; border-radius: 7px; border: 1.500px solid #98a3ba; display: grid; place-items: center; background: #fff; color: #0b1a3a; }
.d-row i svg { width: 21px; height: 21px; stroke-width: 2.200; }

/* focus areas */
.d-focus { position: absolute; left: 390px; top: 766px; width: 791px; height: 147px; border-radius: 14px; color: #fff;
  background: linear-gradient(#0d2148, #071634 60%, #061230); border: 1.500px solid #7ea6e6; box-shadow: 0 0 14px rgba(110,160,255,.45), 0 6px 16px rgba(10,20,60,.4); }
.d-focus h3 { margin: 0; position: absolute; left: 18px; top: 4px; display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 600; }
.d-focus h3 svg { width: 36px; height: 36px; color: #cfe0ff; stroke-width: 1.500; }
.d-focus-grid { position: absolute; left: 8px; right: 6px; top: 49px; bottom: 6px; display: grid; grid-template-columns: 114fr 105fr 119fr 106fr 122fr 91fr 131fr; }
.d-focus-grid a { position: relative; text-align: center; font-size: 14.500px; line-height: 17px; padding-top: 44px; transition: color .2s, transform .2s; }
.d-focus-grid a + a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 6px; width: 1px; background: rgba(140,170,230,.35); }
.d-focus-grid svg { position: absolute; left: 50%; top: 0; width: 40px; height: 40px; margin-left: -20px; color: #4d8dff; stroke-width: 1.500; filter: drop-shadow(0 0 5px rgba(60,130,255,.8)); }
.d-focus-grid a.green svg { color: #37d67a; filter: drop-shadow(0 0 5px rgba(55,214,122,.7)); }
.d-focus-grid a:hover { color: #a9d0ff; transform: translateY(-2px); }

/* impact */
.d-impact { left: 1189px; top: 90px; width: 477px; height: 250px; padding: 4px 13px 0; }
.d-impact h3 { height: 41px; padding-left: 4px; border-bottom: 1px solid #dfe3ec; }
.d-impact h3 > svg { width: 32px; height: 32px; }
.d-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 10px; margin-top: 5px; }
.d-tile { display: flex; align-items: center; gap: 13px; height: 88px; padding: 0 12px; border-radius: 9px; background: linear-gradient(#f8fafd, #eef1f7);
  box-shadow: 0 2px 5px rgba(20,40,90,.2), 0 0 0 1px rgba(226,231,242,.9); }
.d-tile > svg { width: 54px; height: 54px; flex: none; }
.d-tile div { display: flex; flex-direction: column; white-space: nowrap; }
.d-tile strong { font-size: 30px; line-height: 30px; font-weight: 700; color: #1b3fb8; letter-spacing: -.3px; }
.d-tile span { font-size: 15px; line-height: 18px; color: #121c30; margin-top: 3px; }
.d-tile small { font-size: 10.500px; color: #121c30; line-height: 14px; } .d-tile small.lg { font-size: 12.500px; }
.d-tile b { font-size: 17.500px; line-height: 19px; font-weight: 700; color: #0b1a3a; }
.d-tile em { font-style: normal; font-size: 12.300px; line-height: 14.500px; color: #121c30; margin-top: 2px; }

/* leadership */
.d-lead { left: 1189px; top: 352px; width: 477px; height: 240px; padding: 3px 14px 0 27px; }
.d-lead h3 { height: 45px; margin-left: -6px; gap: 6px; border-bottom: 1px solid #dfe3ec; margin-bottom: 10px; }
.d-lead h3 > svg { width: 38px; height: 38px; }

/* education */
.d-edu { left: 1189px; top: 604px; width: 477px; height: 217px; padding: 6px 13px 0; }
.d-edu h3 { height: 44px; padding-left: 10px; border-bottom: 1px solid #dfe3ec; }
.d-edu h3 > svg { width: 40px; height: 40px; }
.d-school { height: 82px; margin-top: 5px; gap: 18px; padding-left: 24px; }
.d-school img { width: 68px; height: 60px; flex: none; }
.d-school b { font-size: 18px; } .d-school span { letter-spacing: .25px; font-size: 16.500px; line-height: 20px; margin-top: 0; }
.d-certs { height: 61px; margin-top: 7px; padding: 0 6px 0 18px; gap: 0; justify-content: space-between; }
.d-certs span { display: flex; align-items: center; gap: 8px; margin: 0; padding-right: 14px; }
.d-certs span + span { border-left: 1px solid #c9d0de; padding-left: 16px; }
.d-certs img { width: 44px; height: 42px; }
.d-certs b { font-size: 16.500px; line-height: 18.500px; font-weight: 600; }

/* section focus pulse (nav tabs) */
.d-card.is-pulse { animation: pulse 1.4s ease-out 1; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,123,255,.9), 0 6px 18px rgba(20,40,90,.28); } 100% { box-shadow: 0 0 0 16px rgba(47,123,255,0), 0 6px 18px rgba(20,40,90,.28); } }

/* --- mobile: same cards, one column (canvas is 430 wide and scaled to the phone) --- */
.dash.is-mobile { display: block; }
.dash.is-mobile .dash-canvas { width: 430px; height: auto; padding: 150px 10px 18px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(#071226 0, #0a1d45 150px, #6f86b8 190px, #aebbd6 420px, #9aa8c6 100%); }
.dash.is-mobile .d-card, .dash.is-mobile .d-banner, .dash.is-mobile .d-focus { position: relative; left: auto; top: auto; width: 100%; height: auto; }
.dash.is-mobile .d-nav { height: 140px; }
.dash.is-mobile .d-brand { left: 10px; } .dash.is-mobile .d-brand img { width: 84px; height: 53px; } .dash.is-mobile .d-brand b { font-size: 21px; line-height: 21px; }
.dash.is-mobile .d-search { left: 212px; top: 8px; width: 208px; height: 40px; padding: 0 12px; } .dash.is-mobile .d-search input { font-size: 15px; }
.dash.is-mobile .d-search-results { left: 10px; top: 54px; width: 410px; }
.dash.is-mobile .d-tabs { position: absolute; left: 0; right: 0; top: 62px; display: flex; justify-content: space-around; }
.dash.is-mobile .d-tabs a { position: relative; left: auto !important; margin: 0; width: auto; flex: 1; height: 76px; font-size: 11.500px; padding-top: 42px; }
.dash.is-mobile .d-tabs a svg { width: 28px; height: 28px; margin-left: -14px; top: 9px; }
.dash.is-mobile .d-profile { order: 1; height: 500px; } .dash.is-mobile .d-photo { height: 296px; } .dash.is-mobile .d-profile-body { top: 292px; }
.dash.is-mobile .d-banner { order: 2; height: 300px; } .dash.is-mobile .d-banner h2 { font-size: 23px; left: 14px; } .dash.is-mobile .d-banner p { font-size: 13.500px; left: 15px; top: 40px; white-space: normal; right: 10px; }
.dash.is-mobile .d-banner > img { object-position: 38% 50%; }
.dash.is-mobile .d-chips { left: 10px; right: 6px; flex-wrap: wrap; height: auto; bottom: 8px; gap: 6px 0; } .dash.is-mobile .d-chips a, .dash.is-mobile .d-chips img { height: 42px; } .dash.is-mobile .d-chips a { margin-right: 7px; }
.dash.is-mobile .d-chip-text { border: 0; padding: 0; margin: 0; font-size: 13px; line-height: 16px; width: 100%; white-space: normal; } .dash.is-mobile .d-chip-text br { display: none; }
.dash.is-mobile .d-impact { order: 3; padding-bottom: 12px; } .dash.is-mobile .d-tile { padding: 0 8px; gap: 8px; } .dash.is-mobile .d-tile > svg { width: 40px; height: 40px; }
.dash.is-mobile .d-tile strong { font-size: 25px; } .dash.is-mobile .d-tile span { font-size: 13px; } .dash.is-mobile .d-tile small, .dash.is-mobile .d-tile small.lg { font-size: 9.500px; } .dash.is-mobile .d-tile b { font-size: 15px; line-height: 17px; } .dash.is-mobile .d-tile em { font-size: 10.800px; }
.dash.is-mobile .d-exp { order: 4; padding: 8px 10px 12px; } .dash.is-mobile .d-exp h3 { font-size: 21px; flex-wrap: wrap; height: auto; gap: 8px; } .dash.is-mobile .d-more { font-size: 14px; width: 100%; margin: 0 0 4px 44px; }
.dash.is-mobile .d-row { height: auto; padding: 8px 46px 8px 8px; align-items: flex-start; } .dash.is-mobile .d-row img { width: 118px; height: 33px; margin-top: 2px; } .dash.is-mobile .d-row div { margin-left: 10px; }
.dash.is-mobile .d-row b { font-size: 16px; line-height: 18px; } .dash.is-mobile .d-row span { font-size: 13px; line-height: 17px; white-space: normal; } .dash.is-mobile .d-row i { width: 34px; right: 6px; }
.dash.is-mobile .d-skills { order: 5; padding-bottom: 10px; }
.dash.is-mobile .d-lead { order: 6; padding-bottom: 12px; }
.dash.is-mobile .d-focus { order: 7; height: auto; padding: 50px 6px 10px; } .dash.is-mobile .d-focus-grid { position: static; grid-template-columns: repeat(4, 1fr); row-gap: 14px; } .dash.is-mobile .d-focus-grid a { font-size: 12px; line-height: 14px; } .dash.is-mobile .d-focus-grid a::before { display: none; }
.dash.is-mobile .d-edu { order: 8; padding-bottom: 12px; } .dash.is-mobile .d-school { padding-left: 10px; gap: 10px; } .dash.is-mobile .d-school b { font-size: 16px; } .dash.is-mobile .d-school span { font-size: 14px; white-space: normal; }
.dash.is-mobile .d-certs { padding: 0 4px 0 8px; } .dash.is-mobile .d-certs img { width: 34px; height: 33px; } .dash.is-mobile .d-certs b { font-size: 14px; line-height: 16px; } .dash.is-mobile .d-certs span { padding-right: 6px; gap: 6px; } .dash.is-mobile .d-certs span + span { padding-left: 8px; }

/* ===== 3. library ===== */
.library { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 100dvh; overflow: hidden; background: #05070f; }
.library canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.lib-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.library.is-live .lib-fallback { display: none; }
.lib-label { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .25s; padding: 8px 14px 9px; border-radius: 10px; color: #fff;
  background: rgba(6,14,36,.88); border: 1px solid #3b6fd6; box-shadow: 0 6px 22px rgba(0,0,0,.5), 0 0 14px rgba(60,120,255,.45); transform: translate(-50%, -100%); white-space: nowrap; z-index: 3; }
.lib-label.on { opacity: 1; }
.lib-label b { display: block; font-size: 16px; font-weight: 600; } .lib-label span { font-size: 12.500px; color: #a8c0f5; }
.lib-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; padding: 7px 16px; border-radius: 20px; font-size: 14px; color: #cfdcff; background: rgba(6,14,36,.7); border: 1px solid rgba(90,130,220,.5); pointer-events: none; transition: opacity .4s; }
.lib-hint.off { opacity: 0; }
.lib-index { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* portrait phones: shelf picture on top, tappable list of every book underneath */
.library.is-portrait { height: auto; min-height: 0; }
.library.is-portrait canvas, .library.is-portrait .lib-fallback { position: relative; height: 56.3vw; }
.library.is-portrait .lib-hint { display: none; }
.library.is-portrait .lib-index { position: relative; width: auto; height: auto; clip-path: none; overflow: visible; display: block; padding: 18px 14px 26px; background: linear-gradient(#070d1f, #0a1838); color: #fff; }
.lib-index h2 { margin: 0 0 12px; font: 600 26px "Playfair Display", Georgia, serif; color: #e9eefc; }
.lib-index ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lib-index button { width: 100%; min-height: 54px; text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid #2c4c96; border-left: 5px solid var(--c, #2f6df2); background: #0c1b3d; color: #eaf0ff; font: 500 14px/1.25 "Fira Sans", sans-serif; cursor: pointer; }
.lib-index button:active { background: #173a86; }

/* ===== the open book ===== */
.book { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; opacity: 0; transition: opacity .5s; overflow: auto; -webkit-overflow-scrolling: touch; }
.book[hidden] { display: none; }
.book.on { opacity: 1; }
.book-env { position: fixed; inset: 0; width: 100%; height: 100%; background: #040a1c; }
.book-shade { position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(3,8,22,.05), rgba(3,8,22,.4)); pointer-events: none; }
.book-close { position: fixed; right: 22px; top: 18px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 24px; cursor: pointer;
  color: #fff; font: 500 15px "Fira Sans", sans-serif; background: rgba(8,18,44,.85); border: 1px solid #4c78d6; }
.book-close svg { width: 20px; height: 20px; stroke-width: 2.200; }
.book-close:hover { background: #173a86; }
.book-spread { position: relative; z-index: 2; width: min(1080px, 88vw); min-height: min(600px, 70vh); margin: 70px 0 64px; display: grid; grid-template-columns: 5fr 6fr; border-radius: 6px 14px 14px 6px;
  box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08); transform: perspective(1800px) rotateX(6deg) scale(.94); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.book.on .book-spread { transform: none; }
.book-page { position: relative; padding: 44px 46px 40px; background: #f6f3ec; color: #1a2238; }
.book-left { border-radius: 6px 0 0 6px; background: linear-gradient(90deg, #efebe2 0, #f7f4ed 80%, #e4dfd3 100%); display: flex; flex-direction: column; }
.book-right { border-radius: 0 14px 14px 0; background: linear-gradient(90deg, #dcd6c9 0, #f7f4ed 7%, #faf8f2 100%); }
.book-kicker { margin: 0 0 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent, #1a4fd6); font-weight: 600; }
.book h2 { margin: 0 0 16px; font: 600 clamp(30px, 3.400vw, 46px)/1.08 "Playfair Display", Georgia, serif; color: #0b1a3a; }
.book-lede { margin: 0; font-size: 18.500px; line-height: 1.55; color: #27314d; }
.book-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.book-stats div { padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #ddd6c6; }
.book-stats b { display: block; font-size: 25px; color: var(--accent, #1a4fd6); line-height: 1.1; } .book-stats span { font-size: 13.500px; color: #46506b; }
.book-sign { margin: auto 0 0; padding-top: 26px; font: 500 22px "Playfair Display", Georgia, serif; color: #58627c; font-style: italic; }
.book-right h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, #1a4fd6); }
.book-right h3:not(:first-child) { margin-top: 24px; }
.book-right p { margin: 0 0 10px; font-size: 16.500px; line-height: 1.6; }
.book-right ul { margin: 0; padding-left: 20px; } .book-right li { font-size: 16.500px; line-height: 1.5; margin-bottom: 8px; }
.book-right .book-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.book-right .book-links a { padding: 7px 13px; border-radius: 18px; border: 1px solid #b9c3dd; font-size: 14px; color: #17358f; background: #fff; } .book-right .book-links a:hover { background: #e8eefc; }
.book-nav { position: fixed; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: space-between; padding: 0 22px; pointer-events: none; }
.book-nav button { pointer-events: auto; max-width: 46vw; padding: 9px 16px; border-radius: 22px; cursor: pointer; color: #dbe6ff; font: 500 14px "Fira Sans", sans-serif; background: rgba(8,18,44,.85); border: 1px solid #36539a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-nav button:hover { background: #173a86; color: #fff; }
@media (max-width: 820px) {
  .book { place-items: start center; }
  .book-spread { grid-template-columns: 1fr; margin: 64px 0 70px; min-height: 0; }
  .book-page { padding: 28px 22px; } .book-left { border-radius: 10px 10px 0 0; } .book-right { border-radius: 0 0 10px 10px; background: #faf8f2; }
  .book-close span { display: none; } .book-close { padding: 9px; right: 12px; top: 12px; }
}

/* ===== footer ===== */
.site-foot { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding: 16px 22px; background: #030916; color: #8ea2cf; font-size: 14px; }
.site-foot a { color: #b9cbf5; } .site-foot a:hover { text-decoration: underline; }

/* --- contact gate --- */
.gate { width: min(440px, calc(100vw - 32px)); padding: 28px 28px 24px; border: 1px solid #23428c; border-radius: 16px; background: #0b1b3f; color: #e8eeff; font-family: "Source Sans 3", "Fira Sans", sans-serif; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.gate::backdrop { background: rgba(3, 9, 22, .72); backdrop-filter: blur(3px); }
.gate h2 { margin: 0 0 6px; font: 700 26px/1.2 "Fira Sans", sans-serif; color: #fff; }
.gate p { margin: 0 0 16px; color: #b9cbf5; font-size: 17px; line-height: 1.4; }
.gate label { display: block; margin-bottom: 12px; font-size: 15px; color: #b9cbf5; }
.gate input { display: block; width: 100%; box-sizing: border-box; margin-top: 5px; padding: 11px 12px; border: 1px solid #2c4f9f; border-radius: 9px; background: #071226; color: #fff; font: inherit; font-size: 17px; }
.gate input:focus { outline: 2px solid #4aa3ff; outline-offset: 1px; }
.gate-go { width: 100%; margin-top: 6px; padding: 12px; border: 0; border-radius: 9px; background: #2f7bff; color: #fff; font: 600 17px "Fira Sans", sans-serif; cursor: pointer; }
.gate-go:hover { background: #4a8dff; } .gate-go:disabled { opacity: .6; cursor: default; }
.gate small { display: block; margin-top: 12px; color: #8ea2cf; font-size: 13.5px; }
.gate .gate-err { margin: 0 0 10px; color: #ffb4a8; font-size: 15px; }
.gate-x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #b9cbf5; cursor: pointer; }
.gate-x:hover { background: #17306b; } .gate-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gate-row { display: block; margin-top: 10px; padding: 12px 14px; border: 1px solid #2c4f9f; border-radius: 9px; background: #0d2250; color: #fff; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.gate-row:hover { background: #14306e; } .gate-row[hidden] { display: none; }
.gate form[hidden] { display: none; } .gate small a { color: #9cc8ff; } .gate b { color: #fff; overflow-wrap: anywhere; }
.gate input[name="code"] { font-size: 26px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --- experience timeline (WebGL) --- */
html.tl-open { overflow: hidden; }
.tl { position: fixed; inset: 0; z-index: 60; background: #030a1c; color: #e8eeff; font-family: "Source Sans 3", "Fira Sans", sans-serif; }
.tl[hidden] { display: none; }
.tl canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tl-head { position: absolute; left: clamp(16px, 3vw, 44px); top: clamp(14px, 3vh, 34px); right: 120px; pointer-events: none; }
.tl-head h2 { margin: 0; font: 700 clamp(26px, 3.2vw, 44px)/1.1 "Fira Sans", sans-serif; color: #fff; }
.tl-head p { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 6px 12px 6px 9px; border: 1px solid #2c4f9f; border-radius: 999px; background: rgba(9, 24, 58, .82); color: #cfe0ff; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.3; }
.tl-head svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #7db9ff; stroke-width: 1.8; }
.tl-close { position: absolute; right: clamp(12px, 2.4vw, 34px); top: clamp(12px, 3vh, 32px); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #2c4f9f; border-radius: 999px; background: rgba(9, 24, 58, .86); color: #fff; font: 600 16px "Fira Sans", sans-serif; cursor: pointer; }
.tl-close:hover { background: #17306b; } .tl-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tl-card { position: absolute; left: clamp(16px, 3vw, 44px); bottom: clamp(76px, 11vh, 110px); width: min(500px, calc(100vw - 32px)); max-height: 52vh; overflow: auto; padding: 22px 24px; border: 1px solid #2c4f9f; border-radius: 16px; background: rgba(8, 21, 52, .9); backdrop-filter: blur(8px); box-shadow: 0 24px 60px rgba(0,0,0,.5); opacity: 0; transform: translateY(14px); }
.tl-card.is-in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
.tl-year { margin: 0 0 6px; font: 700 clamp(30px, 3vw, 42px)/1 "Fira Sans", sans-serif; color: #6fb6ff; letter-spacing: .5px; }
.tl-card h3 { margin: 0 0 4px; font: 600 clamp(19px, 1.6vw, 23px)/1.25 "Fira Sans", sans-serif; color: #fff; }
.tl-org { margin: 0 0 10px; color: #b9cbf5; font-size: 17px; }
.tl-card ul { margin: 0; padding-left: 20px; font-size: 16.5px; line-height: 1.45; color: #dbe6ff; } .tl-card li { margin: 5px 0; }
.tl-nav { position: absolute; left: clamp(16px, 3vw, 44px); bottom: clamp(16px, 3vh, 34px); display: flex; align-items: center; gap: 12px; }
.tl-nav button { padding: 11px 18px; border: 1px solid #2c4f9f; border-radius: 999px; background: #0d2250; color: #fff; font: 600 16px "Fira Sans", sans-serif; cursor: pointer; }
.tl-nav button:hover:not(:disabled) { background: #1a3a85; } .tl-nav button:disabled { opacity: .4; cursor: default; }
.tl-nav span { min-width: 64px; text-align: center; color: #9fb3e6; font-size: 15px; }
.tl-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tl.no-gl .tl-list { position: absolute; inset: 120px 16px 16px; width: auto; height: auto; overflow: auto; clip-path: none; font-size: 17px; line-height: 1.5; }
.tl.no-gl .tl-card, .tl.no-gl .tl-nav { display: none; }
@media (max-width: 700px) {
  .tl-head { right: 16px; top: 62px; } .tl-close { top: 12px; }
  .tl-card { left: 12px; right: 12px; width: auto; bottom: 74px; max-height: 44vh; padding: 16px 18px; }
  .tl-nav { left: 12px; right: 12px; bottom: 14px; justify-content: space-between; }
}

/* --- intro film: its own section, the video fills all of it --- */
.film { position: relative; height: 100vh; height: 100svh; padding: 0; background: #000; overflow: hidden; }
.film-in { position: absolute; inset: 0; max-width: none; margin: 0; }
.film h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; background: #000; }
@media (orientation: portrait) { .film { height: 56.25vw; } }   /* phones held upright: full width, nothing cropped */
