/* C.J. Garbo: two registers.
   Dark = security and AI governance. Light = music and public service.
   One motif ties them together: the five-line staff, where filled and open notes mean "done" and "in progress". */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0d1a2b;
  --night-raise: #132339;
  --on-night: #eaf0f6;
  --on-night-muted: #a4b3c5;
  --brass: #c9a24d;
  --linen: #f1ece4;
  --ink: #17202e;
  --ink-muted: #565f6e;
  --wine: #7a2432;
  --hair-dark: rgba(234, 240, 246, 0.16);
  --hair-light: rgba(23, 32, 46, 0.18);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, calc(4 * var(--vw)), 3rem);
  --measure: 62ch;

  /* Type scale (each step is about 1.25 times the one before) and one spacing scale. */
  --t-sm: .875rem;    /* small print, labels */
  --t-base: 1.0625rem;
  --t-lg: 1.3125rem;  /* lede, row titles */
  --t-h2: clamp(1.9rem, calc(3 * var(--vw)), 2.6rem);
  --t-h1: clamp(2.2rem, calc(3.7 * var(--vw)), 3.3rem);
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2.5rem; --s-5: 4rem; --s-6: 6rem;
  --vw: 1vw;
  --vh: 1dvh;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--on-night);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
p { margin: 0 0 var(--s-2); max-width: var(--measure); }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gutter), 50rem); margin-left: var(--gutter); margin-right: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--brass); color: var(--night); padding: .6rem 1rem; border-radius: 3px;
}
.skip:focus { top: 1rem; }

a { color: inherit; }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px;
}
.light a:focus-visible { outline-color: var(--wine); }

/* ---------- Registers ---------- */
.dark  { background: var(--night); color: var(--on-night); }
.light { background: var(--linen); color: var(--ink); }

/* ---------- Shell: rail on the left, content on the right ---------- */
.shell { display: grid; grid-template-columns: 21rem minmax(0, 1fr); }
.pane { min-width: 0; }

.rail {
  position: sticky; top: 0; height: calc(100 * var(--vh));
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
  padding: 2rem 2rem 2rem 2.25rem;
  background: var(--night-raise); border-right: 1px solid var(--hair-dark);
}
.wordmark { font-family: var(--serif); font-size: 2.15rem; font-weight: 500; line-height: 1.1; letter-spacing: .005em; text-decoration: none; display: block; }
.wordmark__cred { font-size: .62em; font-weight: 400; color: var(--brass); letter-spacing: .02em; white-space: nowrap; }

.rail__photo { position: relative; aspect-ratio: 4 / 5; width: min(100%, calc(38 * var(--vh) * 0.8)); }
.rail__photo::after {
  content: ""; position: absolute; inset: 12px -12px -12px 12px; border: 1px solid var(--brass); pointer-events: none;
}
.rail__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 18%;
  opacity: 0; transition: opacity .35s ease; z-index: 1;
}
.rail__photo img.is-on { opacity: 1; }
.rail__photo { transition: opacity .35s ease; }
.rail__photo.is-empty { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .rail__photo, .rail__photo img { transition: none; } }

.rail__nav { display: flex; flex-direction: column; gap: .15rem; margin-top: .5rem; }
.rail__nav a {
  font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; text-decoration: none; color: var(--on-night-muted);
  padding: .3rem 0 .3rem 1rem; border-left: 2px solid transparent; transition: color .15s, border-color .15s;
}
.rail__nav a:hover, .rail__nav a:focus-visible, .rail__nav a[aria-current="true"] { color: var(--on-night); border-left-color: var(--brass); }

/* ---------- Hero ---------- */
.hero { padding: clamp(5rem, calc(11 * var(--vh)), 8rem) 0 4rem; overflow: hidden; }
h1 {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: var(--t-h1); line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 var(--s-3); max-width: 20ch; text-wrap: balance;
}
.hero__roles { font-size: var(--t-lg); line-height: 1.5; color: var(--on-night-muted); max-width: 44ch; }
.hero__roles span, .intro__roles span { white-space: nowrap; }
.hero__roles span:not(:last-child), .intro__roles span:not(:last-child) { margin-right: .3em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-4); }

.button {
  display: inline-block; background: var(--brass); color: var(--night); font-weight: 600;
  padding: .85rem 1.5rem; border-radius: 3px; text-decoration: none; font-size: var(--t-base); line-height: 1.2; transition: background-color .15s;
}
.button:hover { background: #d8b362; }
.textlink { color: var(--on-night); text-underline-offset: 5px; }


/* ---------- The staff: seven credentials as rising notes ---------- */
@font-face { font-family: "Treble Clef"; src: url("fonts/treble-clef.woff2") format("woff2"); font-display: swap; }
.staff { --sp: 1.12rem; --gut: 4rem; --gold: #d8b05a; margin-top: 4.2rem; }
.staff__graphic { position: relative; height: calc(var(--sp) * 4); margin: calc(var(--sp) * 3.8) 0 calc(var(--sp) * 1.3); }
.staff__line { position: absolute; left: 0; right: 0; top: calc(var(--n) * var(--sp)); height: 1px; background: rgba(216, 176, 90, .72); }
.staff__clef {
  position: absolute; left: .15rem; top: calc(var(--sp) * -.02); font-family: "Treble Clef", serif; font-size: calc(var(--sp) * 4.04);
  line-height: 1; color: var(--gold); filter: drop-shadow(0 0 .5rem rgba(216, 176, 90, .35));
}
.staff__sharp { /* G major key signature: one sharp (F#) on the top line, right after the clef */
  position: absolute; left: calc(var(--sp) * 3.55); top: calc(var(--sp) * -1.5); width: calc(var(--sp) * .9); height: calc(var(--sp) * 3);
  color: var(--gold); overflow: visible; filter: drop-shadow(0 0 .4rem rgba(216, 176, 90, .3));
}
.staff__note {
  position: absolute; width: 0; height: 0;
  left: calc(var(--gut) + (var(--c) - .5) * (100% - var(--gut)) / 7);
  top: calc((8 - var(--step)) * var(--sp) / 2);
  animation: note-in .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.4s + var(--i) * .14s);
}
.staff__note::before { /* the note head */
  content: ""; position: absolute; width: calc(var(--sp) * 1.2); height: calc(var(--sp) * .88); left: calc(var(--sp) * -.6); top: calc(var(--sp) * -.44);
  border-radius: 50%; transform: rotate(-22deg); background: var(--gold);
}
.staff__note::after { /* the stem */
  content: ""; position: absolute; width: max(1.5px, calc(var(--sp) * .1)); height: calc(var(--sp) * 3.3);
  left: calc(var(--sp) * .5); bottom: calc(var(--sp) * .12); background: var(--gold);
}
.staff__note--done::before { box-shadow: 0 0 .9rem rgba(224, 178, 80, .6); }
.staff__note--open::before { box-sizing: border-box; background: var(--night); border: max(2px, calc(var(--sp) * .15)) solid var(--gold); }
.staff__note--open::after { z-index: 1; }

.staff__list { display: grid; grid-template-columns: var(--gut) repeat(7, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.staff__list li:first-child { grid-column: 2; }
.staff__list li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  animation: label-in .7s ease both; animation-delay: calc(.5s + var(--i) * .14s);
}
.staff__list li::before { content: ""; width: 1px; height: 1.1rem; margin-bottom: .75rem; background: rgba(216, 176, 90, .55); }
.staff__name { font-family: "Cormorant Garamond", var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.2; letter-spacing: .03em; color: #f6f2ea; white-space: nowrap; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.staff__name::after { content: ""; display: block; width: 1px; height: 1.1rem; margin: .7rem auto .75rem; background: rgba(216, 176, 90, .55); }
.staff__status { font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.staff__list .is-open .staff__status { color: var(--on-night-muted); }

@container screen (max-width: 44rem) {
  .staff { --sp: .92rem; --gut: 2.8rem; }
  .staff__list { grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; margin-top: .4rem; }
  .staff__list li:first-child { grid-column: auto; }
  .staff__list li { align-items: flex-start; text-align: left; }
  .staff__list li::before { width: .6rem; height: .6rem; border-radius: 50%; margin-bottom: .45rem; background: var(--gold); }
  .staff__list li.is-open::before { background: transparent; border: 1.5px solid var(--gold); }
  .staff__name::after { display: none; }
  .staff__name { font-size: 1.15rem; }
  .staff__status { margin-top: .2rem; }
}

@keyframes note-in  { from { opacity: 0; transform: translateY(8px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes label-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .staff__note, .staff__list li { animation: none; }
}

/* ---------- Sections ---------- */
/* Every section is built the same way: a title, an optional one-line summary, then the content, all on one left edge. */
.section { padding: var(--s-6) 0; }
.section--rule { border-top: 1px solid var(--hair-dark); }
.light.section--rule { border-top-color: var(--hair-light); }

.split, .split--wide { display: block; }
.split__head { margin-bottom: var(--s-4); }

h2 {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: var(--t-h2); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 var(--s-2); max-width: 24ch; text-wrap: balance;
}
.lede { font-size: var(--t-lg); line-height: 1.5; color: var(--on-night-muted); max-width: 44ch; margin: 0; }
.light .lede { color: var(--ink-muted); }
.light h2 { color: var(--ink); }

/* Small label that introduces a group of rows. Sans, capitals, spaced out, accent colour. */
h3 {
  font-family: var(--sans); font-size: var(--t-sm); font-weight: 600; line-height: 1.3;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brass);
  margin: var(--s-5) 0 var(--s-1); padding: 0; border: 0;
}
.light h3 { color: var(--wine); }
.split__body > h3:first-child, .split__body--cols h3:first-child { margin-top: 0; }

/* Rows: one pattern for every list on the site. A thin line sits between rows, never above the first or below the last. */
.plain li, .services > div, .roles > div { padding: var(--s-2) 0; max-width: var(--measure); }
.plain li { padding: .8rem 0; }
.plain li + li, .services > div + div, .roles > div + div { border-top: 1px solid var(--hair-dark); }
.light .roles > div + div { border-top-color: var(--hair-light); }
.services > div:first-child, .roles > div:first-child { padding-top: .5rem; }

.services dt, .roles dt { font-family: var(--sans); font-size: var(--t-base); font-weight: 600; line-height: 1.4; margin: 0 0 .3rem; }
.services dd, .roles dd { margin: 0; color: var(--on-night-muted); line-height: 1.6; max-width: var(--measure); }
.light .roles dd { color: var(--ink-muted); }
.roles dt:only-child { margin-bottom: 0; }
.services, .roles, .plain { margin-top: var(--s-3); }
h3 + .services, h3 + .roles, h3 + .plain { margin-top: 0; }
.note-line { margin-top: var(--s-4); font-size: var(--t-sm); line-height: 1.6; color: var(--on-night-muted); max-width: 52ch; }

.split__body--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); max-width: none; }
.split__body--cols .plain li { max-width: none; }

/* ---------- Bridge between registers ---------- */
.bridge { height: clamp(5rem, calc(12 * var(--vw)), 9rem); background: linear-gradient(to bottom, var(--night), var(--linen)); }

/* ---------- Contact and footer ---------- */
.contact { border-top: 1px solid var(--hair-dark); }
.contact .button { font-size: var(--t-base); }
.foot { padding: 0 0 var(--s-4); font-size: var(--t-sm); color: var(--on-night-muted); }
.foot p { margin: 0; max-width: none; text-align: center; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem 1.6rem; margin: 0 0 .9rem; }
.foot__legal button {
  font: inherit; font-size: .8rem; color: var(--on-night-muted); background: none; border: 0; padding: .5rem 0; min-height: 2.75rem;
  display: inline-flex; align-items: center; cursor: pointer; text-decoration: none;
}
.foot__legal button:hover, .foot__legal button:focus-visible { color: var(--on-night); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .22em; }
.foot__legal button:focus-visible { outline: 2px solid #9cc7ff; outline-offset: 3px; }
.foot .foot__copy { font-size: .75rem; color: rgba(164, 179, 197, .8); }
.foot .foot__marks { margin-top: .3rem; font-size: .7rem; line-height: 1.5; color: rgba(164, 179, 197, .65); }

/* ---------- Small screens ---------- */
@container screen (max-width: 52rem) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: static; height: auto; align-items: flex-start; justify-content: flex-start; gap: 1rem;
    padding: 1.5rem var(--gutter) 1.75rem; border-right: 0; border-bottom: 1px solid var(--hair-dark);
  }
  .rail__photo { width: 9.5rem; margin-bottom: .6rem; }
  .rail__nav { flex-direction: row; flex-wrap: wrap; gap: .1rem 1.1rem; margin-top: 0; }
  .rail__nav a { font-size: 1.1rem; padding-left: .6rem; }
  .hero { padding-top: 3rem; }
  h1 { max-width: none; }
  .split, .split--wide { grid-template-columns: 1fr; gap: 1.5rem; }
  .split__head { position: static; }
  .split__body--cols { grid-template-columns: 1fr; }
  .split__body--cols > div + div { margin-top: 2.4rem; }
  .split__body--cols > div:last-child h3:first-child { margin-top: 0; }
}

.roles > div:first-child { border-top: 0; }

/* ---------- Scene: the site lives inside a laptop in a data center ---------- */
.screen { container: screen / inline-size; position: relative; background: var(--night); }

/* Flat mode (phones, small windows, no JS): the scene wrappers disappear and the site is a normal page. */
.stage__img, .stage__closed, .stage__video, .intro, .stepback { display: none; }

.scene-mode, .scene-mode body { height: 100%; overflow: hidden; }
.scene-mode .scene { position: fixed; inset: 0; overflow: hidden; background: #070e1a; }
.scene-mode .parallax {
  position: absolute; inset: 0;
  transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.scene-mode .stage {
  position: absolute; left: 0; top: 0; width: 5504px; height: 3072px; transform-origin: 0 0;
  background: #070e1a url("scene/data-center-low.webp") center / 100% 100% no-repeat;
  transition: transform 3s cubic-bezier(.65, 0, .15, 1);
}
.scene-mode .stage__img, .scene-mode .stage__closed, .scene-mode .stage__video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-mode .stage__video { object-fit: fill; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.scene-mode .stage__video.is-playing { opacity: 1; }
.scene-mode .stage__video.is-done { opacity: 0; }
.scene-mode .stage__closed.is-gone { visibility: hidden; }

/* The laptop screen: a measured rectangle inside the photo (image pixels). */
.scene-mode .screen {
  container-type: size; --vw: 1cqw; --vh: 1cqh;
  --gutter: clamp(1.25rem, calc(4 * var(--vw)), 3rem);
  position: absolute; left: 2140px; top: 1275px; width: 1225px; height: 755px;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth;
  border-radius: 10px; outline: none;
  box-shadow: 0 0 110px 14px rgba(86, 140, 255, .26);
  opacity: 0; transition: opacity 1s ease 1.6s;
}
.scene-mode.entering .screen, .scene-mode.entered .screen { opacity: 1; }
.scene-mode .screen::-webkit-scrollbar { width: 8px; }
.scene-mode .screen::-webkit-scrollbar-thumb { background: rgba(201,162,77,.45); border-radius: 4px; }
.scene-mode.instant .stage, .scene-mode.instant .screen { transition: none; }

.scene-mode .intro {
  display: flex; position: fixed; inset: 0; z-index: 5; flex-direction: column; align-items: center; justify-content: space-between;
  padding: clamp(2.5rem, 9vh, 6rem) 2rem clamp(2rem, 7vh, 4.5rem); text-align: center; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 14, 26, .82), rgba(7, 14, 26, 0) 42%, rgba(7, 14, 26, 0) 70%, rgba(7, 14, 26, .7));
  transition: opacity .9s ease, visibility 0s linear 0s;
}
.intro > * { pointer-events: auto; }
.intro__name { font-family: var(--serif); font-weight: 380; font-size: clamp(2.8rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -.01em; margin: 0 0 1rem; }
.intro__roles { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--on-night-muted); margin: 0 auto; }
.intro__bottom { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.intro .textlink { background: none; border: 0; font: inherit; font-size: .95rem; color: var(--on-night-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 5px; padding: .25rem; }
.intro .textlink:hover { color: var(--on-night); }
.scene-mode.entering .intro, .scene-mode.opening .intro { opacity: 0; pointer-events: none; }
.scene-mode.entering .intro > *, .scene-mode.opening .intro > * { pointer-events: none; }
.scene-mode.entered .intro { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .9s ease, visibility 0s linear .9s; }

.scene-mode .stepback {
  display: block; position: fixed; top: 1rem; right: 1.25rem; z-index: 6; font: inherit; font-size: .9rem; color: var(--on-night-muted);
  background: rgba(7, 14, 26, .6); border: 1px solid var(--hair-dark); border-radius: 3px; padding: .4rem .8rem; cursor: pointer;
}
.scene-mode .stepback[hidden] { display: none; }
.scene-mode .stepback:hover { color: var(--on-night); }

@media (prefers-reduced-motion: reduce) {
  .scene-mode .stage, .scene-mode .parallax, .scene-mode .screen, .scene-mode .intro, .scene-mode .stage__video { transition: none; }
}

/* ---------- Cybersecurity: certification badges beside the text ---------- */
.wrap--wide { width: min(100% - 2 * var(--gutter), 66rem); }
/* Wide: the folder, badges and button float at the left and the text wraps around them, then runs full width beneath. */
.credlayout { display: flow-root; }
.credlayout .split__body { grid-column: 2; grid-row: 1; }
.credleft { float: left; width: 23.5%; margin: 0 var(--s-5) calc(var(--s-5) - .45rem) 0; min-width: 0; }
.credlayout .below-float { clear: left; }
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.cert { container-type: inline-size; aspect-ratio: 1; min-width: 0; min-height: 0; overflow: hidden; background: var(--linen); border-radius: .7rem; display: grid; place-items: center; padding: 11%; }
.cert img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cert__ring { width: 100%; aspect-ratio: 1; border: 2px solid var(--brass); border-radius: 50%; display: grid; place-content: center; text-align: center; padding: 6%; color: var(--ink); overflow: hidden; }
.cert__ring b { font-family: var(--serif); font-weight: 500; font-size: 16cqw; line-height: 1.1; }
.cert__ring b.is-long { font-size: 13cqw; }
.cert__ring small { font-family: var(--sans); font-size: 9cqw; letter-spacing: .12em; text-transform: uppercase; color: #7a5f22; margin-top: .25rem; }
@container screen (max-width: 52rem) {
  .credlayout { display: grid; grid-template-columns: 1fr; row-gap: var(--s-4); }
  .credlayout .split__body, .credleft { grid-column: 1; }
  .credleft { float: none; width: auto; margin: 0; grid-row: 2; max-width: 20rem; }
  .credlayout .below-float { clear: none; }
  .certs { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
}

/* ---------- Title page: the Enter key ---------- */
.keycap {
  --key-top: #eceae4; --key-top-2: #cfccc4; --key-side: #8f8c85; --key-side-2: #5d5b56;
  position: relative; display: block; width: 11.5rem; padding: 0; border: 0; border-radius: .85rem; cursor: pointer;
  background: linear-gradient(180deg, var(--key-side) 0%, var(--key-side-2) 100%);
  box-shadow: 0 .55rem 0 #3b3a37, 0 .55rem 0 .06rem rgba(0,0,0,.35), 0 1.3rem 1.6rem rgba(0,0,0,.55), 0 .2rem .6rem rgba(0,0,0,.4);
  margin-bottom: .6rem; -webkit-tap-highlight-color: transparent; font: inherit; color: #1b1d22;
  transition: box-shadow .09s ease-out;
}
.keycap__face {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  position: relative; transform: translateY(-.5rem); padding: 1.15rem 1.35rem 1.05rem; border-radius: .85rem;
  background: radial-gradient(120% 140% at 50% 0%, #faf9f6 0%, var(--key-top) 45%, var(--key-top-2) 100%);
  box-shadow: inset 0 .12rem 0 rgba(255,255,255,.95), inset 0 -.18rem .35rem rgba(0,0,0,.14), inset .1rem 0 .2rem rgba(255,255,255,.5), inset -.1rem 0 .2rem rgba(0,0,0,.08);
  transition: transform .09s ease-out;
}
.keycap__face::before { /* slight dish in the key top */
  content: ""; position: absolute; inset: .45rem .55rem; border-radius: .55rem; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(255,255,255,.25)); box-shadow: inset 0 .08rem .2rem rgba(0,0,0,.12);
}
.keycap__label { position: relative; font-family: var(--sans); font-weight: 600; font-size: 1.15rem; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.keycap__arrow { position: relative; flex: none; }
.keycap:hover .keycap__face { background: radial-gradient(120% 140% at 50% 0%, #fff 0%, #f1efe9 45%, #d6d3cb 100%); }
.keycap:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; }
.keycap:active, .keycap.is-down { box-shadow: 0 .12rem 0 #3b3a37, 0 .12rem 0 .06rem rgba(0,0,0,.35), 0 .4rem .6rem rgba(0,0,0,.5); }
.keycap:active .keycap__face, .keycap.is-down .keycap__face { transform: translateY(.1rem); box-shadow: inset 0 .08rem 0 rgba(255,255,255,.8), inset 0 -.1rem .25rem rgba(0,0,0,.18); }
.keycap:active, .keycap.is-down { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .keycap, .keycap__face { transition: none; } }

/* ---------- Title page: everything fades in on arrival, the Enter key last ---------- */
@keyframes intro-in { from { opacity: 0; translate: 0 .7rem; } to { opacity: 1; translate: 0 0; } }
.scene-mode .intro__name  { animation: intro-in 1.1s cubic-bezier(.2,.7,.2,1) .3s both; }
.scene-mode .intro__roles { animation: intro-in 1.1s cubic-bezier(.2,.7,.2,1) .6s both; }
.scene-mode .intro .keycap { animation: intro-in 1.2s cubic-bezier(.2,.7,.2,1) 1.1s both; }
.scene-mode .intro .textlink { animation: intro-in 1s ease 1.7s both; }
@media (prefers-reduced-motion: reduce) {
  .scene-mode .intro__name, .scene-mode .intro__roles, .scene-mode .intro .keycap, .scene-mode .intro .textlink { animation: none; }
}

/* Contact: tall enough that jumping to it shows only Contact and the footer, with no trail of the section above */
.scene-mode .contact { min-height: calc(100cqh - 3.9rem); }

/* ---------- Hero button: dark pill with shield and arrow; glows only on hover or keyboard focus ---------- */
.glowbtn {
  display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: #f4f7ff;
  padding: .85rem 1.45rem .85rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: var(--t-base); line-height: 1.2;
  background: linear-gradient(180deg, #112240 0%, #0a1830 100%);
  border: 1.5px solid rgba(120, 165, 255, .38);
  box-shadow: none;
  transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.glowbtn__shield, .glowbtn__arrow { flex: none; }
.glowbtn__arrow { transition: transform .25s ease; }
.glowbtn:hover, .glowbtn:focus-visible {
  border-color: #6aaeff;
  box-shadow: 0 0 0 1px rgba(106, 174, 255, .45), 0 0 16px rgba(74, 150, 255, .6), 0 0 42px rgba(60, 130, 255, .35), inset 0 0 16px rgba(74, 150, 255, .28);
}
.glowbtn:hover .glowbtn__arrow, .glowbtn:focus-visible .glowbtn__arrow { transform: translateX(4px); }
.glowbtn:focus-visible { outline: 2px solid #9cc7ff; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .glowbtn, .glowbtn__arrow { transition: none; } .glowbtn:hover .glowbtn__arrow, .glowbtn:focus-visible .glowbtn__arrow { transform: none; } }

/* Secondary hero button: same dark pill, smaller and quieter, and it never glows */
.glowbtn--quiet { gap: .7rem; padding: .6rem 1.1rem .6rem .95rem; font-size: var(--t-sm); font-weight: 500; background: linear-gradient(180deg, rgba(17, 34, 64, .7), rgba(10, 24, 48, .7)); border-color: rgba(120, 165, 255, .28); }
.glowbtn__icon { flex: none; }
.glowbtn--quiet:hover, .glowbtn--quiet:focus-visible { box-shadow: none; border-color: rgba(150, 190, 255, .6); }
.glowbtn--quiet:focus-visible { outline: 2px solid #9cc7ff; outline-offset: 4px; }

/* Inside the laptop the tagline is already on the title page, so the opening page leaves it out. The flat (no laptop) page keeps it. */
.scene-mode .hero__roles { display: none; }

/* ---------- Hero look: Cormorant Garamond SemiBold headline, Inter supporting text ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
.hero { --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-family: var(--sans); }
.hero h1 {
  font-family: "Cormorant Garamond", var(--serif); font-weight: 600; font-optical-sizing: auto;
  font-size: clamp(2.6rem, calc(4.9 * var(--vw)), 4.3rem); line-height: 1.04; letter-spacing: -0.01em;
  max-width: none; text-wrap: initial; margin-bottom: var(--s-4);
}
.h1__line { display: block; }
.h1__accent { color: #3aa8ff; }
.hero .glowbtn, .hero .glowbtn__label { font-family: var(--sans); font-weight: 500; }
.hero__roles { font-weight: 400; }

/* ---------- Name in the menu: larger executive serif, name and degree on one line ---------- */
.rail { padding-right: 1rem; }
.wordmark { font-family: "Cormorant Garamond", var(--serif); font-size: 2.75rem; font-weight: 600; line-height: 1.02; letter-spacing: 0; white-space: nowrap; }
.wordmark__cred { font-family: inherit; font-size: .62em; font-weight: 600; letter-spacing: .03em; color: var(--brass); }
@media (max-width: 899px), (max-height: 559px) { .rail { padding-right: var(--gutter); } .wordmark { font-size: min(3rem, 13.5vw); } }

/* Inside the laptop the staff plays when the screen lights up, not while the title page is still showing */
.scene-mode:not(.entered) .staff__note,
.scene-mode:not(.entered) .staff__list li { animation-play-state: paused; }

/* Menu icons: brass line icons to the left of each label; the label keeps its existing colours */
.rail__nav a { display: flex; align-items: center; gap: .85rem; }
.rail__nav .ico { flex: none; width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@container screen (max-width: 52rem) { .rail__nav a { gap: .6rem; } .rail__nav .ico { width: 1.15rem; height: 1.15rem; } }

/* Menu panel: a softly lit glass look, with a fading glowing seam where it meets the page */
.rail {
  background: linear-gradient(180deg, #1a2f52 0%, #132339 55%, #0f1e36 100%);
  border-right: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.rail::after {
  content: ""; position: absolute; top: 8%; bottom: 8%; right: 0; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(150, 185, 255, .55), transparent);
  box-shadow: -7px 0 12px -3px rgba(110, 160, 255, .4);
}
.rail__nav a[aria-current="true"] { background: linear-gradient(90deg, rgba(201, 162, 77, .2), rgba(201, 162, 77, 0)); border-radius: 0 6px 6px 0; }
@container screen (max-width: 52rem) { .rail::after { display: none; } }

/* A short gold rule under each page heading */
h2::after { content: ""; display: block; width: 44px; height: 2px; margin-top: .9rem; background: var(--brass); border-radius: 1px; }

/* Contact: email button plus the "Call or text me" reveal */
.contact__actions { display: flex; flex-wrap: nowrap; align-items: stretch; gap: var(--s-2) clamp(.4rem, 1.8cqw, var(--s-3)); container-type: inline-size; }
/* Three pills share one row at any width: sizes follow the row's own width. After the phone number is revealed there are four, so that state may wrap. */
.contact__actions:has(#phone-out:not([hidden])) { flex-wrap: wrap; }
.contact__actions .epill { font-size: min(1.05rem, 1.95cqw); min-width: 0; flex: 0 0 auto; }
.contact__actions .epill__body { gap: .8em; padding: .85em 1.15em .85em 1em; }
.contact__actions .epill__icon { width: 1.5em; height: 1.5em; }
.contact__actions .epill__div { height: 1.7em; }
.contact__actions .epill__cap { width: 3.3em; margin-left: -1.5em; padding-left: 1.5em; }
.contact__actions .epill__arrow { width: 1.25em; height: 1.25em; }
/* Narrow screens: drop the icon and divider and let each label take two lines, so all three still fit on one row at a readable size. */
@container (max-width: 680px) {
  .contact__actions .epill { font-size: clamp(.6rem, 3.4cqw, 1rem); }
  .contact__actions .epill__icon, .contact__actions .epill__div { display: none; }
  .contact__actions .epill__body { padding: .7em .6em .7em 1em; }
  .contact__actions .epill__label { white-space: normal; max-width: 6em; text-align: left; line-height: 1.2; }
  .contact__actions .epill__cap { width: 2.4em; margin-left: -1.1em; padding-left: 1.1em; }
}
.contact__phone { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); }
.contact__actions [hidden] { display: none; }
button.glowbtn { font-family: inherit; cursor: pointer; }

/* ---------- Contact pills: dark and calm at rest, "electrified" on hover or keyboard focus ---------- */
.epill {
  position: relative; isolation: isolate; display: inline-flex; align-items: stretch; padding: 0; margin: 0;
  font-family: inherit; font-size: 1.05rem; font-weight: 500; line-height: 1.2; color: #f4f7ff; text-decoration: none; cursor: pointer;
  background: #0b1a32; border: 1.5px solid rgba(120, 165, 255, .3); border-radius: 999px; box-shadow: none;
  -webkit-appearance: none; appearance: none; transition: box-shadow .3s ease, border-color .3s ease;
}
.epill__body {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.4rem .9rem 1.3rem; border-radius: 999px; background: #0b1a32;
}
.epill__icon { flex: none; color: #a9bfe0; transition: color .3s ease, filter .3s ease; }
.epill__div { flex: none; width: 1.5px; height: 1.8rem; background: rgba(160, 190, 255, .35); transition: background-color .3s ease; }
.epill__label { white-space: nowrap; }
.epill__cap {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 3.5rem; margin-left: -1.6rem; padding-left: 1.6rem; border-radius: 0 999px 999px 0; color: #c3d3ee;
  transition: color .3s ease;
}
.epill__cap::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(135deg, #f7dc8f 0%, #e0b657 55%, #c9a24d 100%);
  clip-path: inset(0 0 0 calc(100% + 2px)); transition: clip-path .4s cubic-bezier(.2, .7, .2, 1);
}
.epill__arrow { flex: none; transition: transform .3s ease; }
.epill::after {
  content: ""; position: absolute; inset: -1.5px; z-index: 3; padding: 1.5px; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, #4f9bff 0%, #8fc2ff 38%, #f2cf7a 76%, #f0c466 100%);
  -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 exclude, linear-gradient(#000 0 0);
}
.epill:hover, .epill:focus-visible {
  box-shadow: -3px 0 16px rgba(74, 150, 255, .55), 3px 0 20px rgba(240, 190, 90, .5), inset 0 0 14px rgba(74, 150, 255, .16);
}
.epill:hover::after, .epill:focus-visible::after { opacity: 1; animation: epill-zap .6s linear; }
.epill:hover .epill__icon, .epill:focus-visible .epill__icon { color: #d4e6ff; filter: drop-shadow(0 0 6px rgba(110, 170, 255, .8)); }
.epill:hover .epill__div, .epill:focus-visible .epill__div { background: #e8b955; }
.epill:hover .epill__cap, .epill:focus-visible .epill__cap { color: #0d1a2b; }
.epill:hover .epill__cap::before, .epill:focus-visible .epill__cap::before { clip-path: inset(0); }
.epill:hover .epill__arrow, .epill:focus-visible .epill__arrow { transform: translateX(3px); }
.epill:focus-visible { outline: 2px solid #9cc7ff; outline-offset: 4px; }
@keyframes epill-zap { 0% { opacity: 0; } 14% { opacity: 1; } 27% { opacity: .3; } 40% { opacity: 1; } 54% { opacity: .55; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .epill, .epill__icon, .epill__div, .epill__cap, .epill__cap::before, .epill__arrow { transition: none; }
  .epill:hover::after, .epill:focus-visible::after { animation: none; }
  .epill:hover .epill__arrow, .epill:focus-visible .epill__arrow { transform: none; }
}
@media (max-width: 480px) { .epill { font-size: 1rem; } .epill__body { padding: .8rem 1.1rem .8rem 1rem; gap: .8rem; } }


/* ---------- Technology Leadership & Transformation: a manila folder that opens onto a stack of case files ---------- */
.folder {
  --manila: #dcc08a; --manila-2: #c9a768; --manila-3: #e9d4a2;
  appearance: none; background: none; border: 0; padding: 0; margin: 0 0 var(--s-3); width: 100%;
  display: block; color: inherit; font: inherit; text-align: left; cursor: pointer; position: relative;
}
.folder:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; border-radius: .6rem; }
.folder__art { display: block; position: relative; aspect-ratio: 19 / 13.5; container-type: inline-size; }
.folder__tab, .folder__back, .folder__papers, .folder__front { position: absolute; display: block; }
.folder__tab { left: 0; top: 0; width: 42%; height: 17%; background: var(--manila-2); border-radius: .5rem .5rem 0 0; clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%); }
.folder__back { left: 0; right: 0; top: 14%; bottom: 0; background: var(--manila-2); border-radius: 0 .55rem .55rem .55rem; }
.folder__papers { left: 5%; right: 5%; top: 9%; bottom: 40%; background: #fbf8f1; border-radius: 2px; transform: rotate(-1.4deg); box-shadow: 0 1px 2px rgba(60, 40, 10, .35); transition: transform .4s cubic-bezier(.3,.7,.2,1); }
.folder__papers::before { content: ""; position: absolute; inset: 0; background: #f3eee2; border-radius: 2px; transform: rotate(2.4deg) translate(2%, -4%); z-index: -1; box-shadow: 0 1px 2px rgba(60, 40, 10, .3); }
.folder__front {
  left: 0; right: 0; top: 30%; bottom: 0; border-radius: .55rem;
  background: linear-gradient(180deg, var(--manila-3), var(--manila) 55%, #d3b676);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .4);
  transform-origin: 50% 100%; transition: transform .4s cubic-bezier(.3,.7,.2,1);
}
.folder__label, .cover__label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70%;
  background: #fbf6ea; border: 1px solid rgba(60, 40, 10, .28); border-radius: 2px; padding: .55rem .6rem .5rem; text-align: center; color: var(--ink);
  box-shadow: 0 1px 1px rgba(60, 40, 10, .2);
}
.folder__label b, .cover__label b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.2; }
.folder__label small, .cover__label small { display: block; margin-top: .2rem; font-family: var(--sans); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
/* The label sits on top of the folder front instead of inside it: the front tilts in 3D on hover, which softened the text */
.folder .folder__label { top: 65%; z-index: 2; }
/* Folder label scales with the folder, which is now a narrow column */
@container screen (min-width: 52.01rem) {
  .folder__label { width: 84%; padding: 4.5cqw 3cqw 4cqw; }
  .folder__label b { font-size: 8.6cqw; }
  .folder__label small { font-size: 4.4cqw; letter-spacing: .08em; margin-top: 1.2cqw; }
}
.folder:hover .folder__papers, .folder:focus-visible .folder__papers { transform: translateY(-9%) rotate(-1.4deg); }
.folder:hover .folder__front, .folder:focus-visible .folder__front { transform: perspective(700px) rotateX(10deg); }

/* The open folder. It sits above the page, which stays visible but dimmed behind it. */
.vault {
  --manila: #dcc08a; --manila-2: #c9a768; --manila-3: #e9d4a2; --paper: #fbf8f1;
  --P: min(34rem, calc(100 * var(--vw) - 2 * var(--gutter)));
  --H: min(42rem, calc(100 * var(--vh) - 9.5rem));
  position: fixed; inset: 0; z-index: 60;
}
.vault[hidden] { display: none; }
.scene-mode .vault { position: absolute; inset: auto; left: 0; top: var(--vtop, 0px); width: 100%; height: var(--vhpx, 100%); }
.vault__scrim { position: absolute; inset: 0; background: rgba(7, 14, 26, .7); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); opacity: 0; transition: opacity .5s ease; }
.vault.is-on .vault__scrim { opacity: 1; }
.vault__stage { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem var(--gutter); }
.vault__close {
  position: absolute; top: .9rem; right: max(.9rem, calc(var(--gutter) - .6rem)); z-index: 20; width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  background: rgba(13, 26, 43, .9); color: var(--brass); border: 1px solid var(--brass); border-radius: 50%; cursor: pointer; padding: 0;
}
.vault__close:hover { background: var(--brass); color: var(--night); }
.vault__close:focus-visible, .vbtn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.book { position: relative; width: var(--P); height: var(--H); perspective: 2200px; opacity: 0; transform: translateY(16px); transition: opacity .45s ease .1s, transform .95s cubic-bezier(.5, 0, .2, 1); }
.vault.is-on .book { opacity: 1; transform: none; }
.book__left { display: none; }
.book__right, .cover__out, .cover__in { background: linear-gradient(180deg, var(--manila-3), var(--manila) 60%, #d3b676); border-radius: .7rem; box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .4); }
.book__right { position: absolute; inset: 0; }
.sheets { position: absolute; inset: 0; opacity: 0; transform: translateY(22px); transition: transform .8s cubic-bezier(.3,.7,.2,1) .55s, opacity .4s ease .55s; touch-action: pan-y; }
.vault.is-open .sheets { opacity: 1; transform: none; }

.cover { position: absolute; top: 0; left: 0; width: var(--P); height: 100%; z-index: 5; transform-origin: left center; transform-style: preserve-3d; transition: transform .95s cubic-bezier(.55, .05, .25, 1), opacity .25s linear .8s; }
.vault.is-open .cover { pointer-events: none; transform: rotateY(-125deg); opacity: 0; transition: transform .95s cubic-bezier(.55, .05, .25, 1), opacity .3s linear .55s; }
.cover__out, .cover__in { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cover__in { transform: rotateY(180deg); }
.cover__out::before { content: ""; position: absolute; left: 0; top: -1.7rem; width: 9rem; height: 1.8rem; background: var(--manila-2); border-radius: .55rem .55rem 0 0; clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%); }
.cover__label { width: 62%; padding: .9rem .8rem .8rem; }
.cover__label b { font-size: 1.6rem; }
.cover__label small { font-size: .7rem; }

/* One case file, one sheet of paper. */
.sheet {
  position: absolute; inset: .8rem; z-index: var(--z, 1); background: var(--paper); color: var(--ink); border-radius: 2px; padding: 1.4rem 1.6rem 1.3rem;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(23, 32, 46, .35) transparent;
  box-shadow: 0 1px 2px rgba(60, 40, 10, .35), 0 6px 14px rgba(60, 40, 10, .18);
  transform-origin: 18% 92%; transition: transform .55s cubic-bezier(.3, .7, .2, 1), opacity .4s ease;
}
.sheet:focus-visible { outline: 2px solid var(--wine); outline-offset: -4px; }
.sheet.is-before { transform: translate(-18%, -3%) rotate(-5deg); opacity: 0; pointer-events: none; }
.sheet.is-after { transform: translate(calc(var(--k) * 3px), calc(var(--k) * 3px)) rotate(calc(var(--k) * .7deg)); pointer-events: none; }
.sheet__no { margin: 0 0 .5rem; max-width: none; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
.sheet .sheet__title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.005em; text-transform: none; color: var(--ink); margin: 0 0 1rem; padding: 0 0 .85rem; border-bottom: 1px solid var(--hair-light); text-wrap: balance; }
.sheet__dl { margin: 0; }
.sheet__dl > div { margin: 0 0 .95rem; }
.sheet__dl > div:last-child { margin-bottom: 0; }
.sheet__dl dt { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); margin: 0 0 .2rem; }
.sheet__dl dd { margin: 0; font-family: var(--serif); font-size: 1rem; line-height: 1.5; color: var(--ink); }
.sheet--dense .sheet__dl dd { font-size: .93rem; line-height: 1.45; }
.sheet--dense .sheet__dl > div { margin-bottom: .8rem; }
.sheet__dl dd p { margin: 0 0 .55rem; max-width: none; }
.sheet__dl dd p:last-child { margin-bottom: 0; }
.sheet__dl dd p + p.sheet__stat { margin-top: .95rem; }
.sheet__dl dd p.sheet__stat { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.3; color: var(--wine); margin-bottom: .45rem; }
.sheet__dl dd.sheet__skills { font-family: var(--sans); font-size: .88rem; line-height: 1.5; color: var(--ink-muted); }

/* Contents, on the inside of the cover (wide screens only). */
.book__title { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.15; color: var(--ink); margin: 0 0 .35rem; max-width: none; }
.book__sub { margin: 0 0 1.4rem; max-width: none; font-size: .92rem; line-height: 1.5; color: #4a3d1f; }
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(60, 40, 10, .3); }
.toc li { border-bottom: 1px solid rgba(60, 40, 10, .3); }
.toc button { appearance: none; width: 100%; display: flex; gap: .9rem; align-items: baseline; text-align: left; background: none; border: 0; padding: .7rem .4rem; color: var(--ink); font: inherit; font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; cursor: pointer; border-left: 3px solid transparent; transition: background .2s; }
.toc button:hover { background: rgba(255, 255, 255, .28); }
.toc button:focus-visible { outline: 2px solid var(--wine); outline-offset: -2px; }
.toc button[aria-current="true"] { border-left-color: var(--wine); background: rgba(255, 255, 255, .38); }
.toc__n { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .12em; color: var(--wine); flex: none; }
.book__nav, .dock { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.book__nav { margin-top: auto; padding-top: 1.2rem; }
.vbtn { appearance: none; font-family: var(--sans); font-size: .85rem; letter-spacing: .03em; padding: .5rem .95rem; border-radius: 999px; cursor: pointer; background: transparent; color: var(--ink); border: 1px solid rgba(60, 40, 10, .55); }
.vbtn:hover:not(:disabled) { background: var(--night); color: var(--brass); border-color: var(--night); }
.vbtn:disabled { opacity: .4; cursor: default; }
.vcount { font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; color: #4a3d1f; }
.dock { width: var(--P); margin-top: .9rem; }
.dock .vbtn { color: var(--brass); border-color: rgba(201, 162, 77, .7); }
.dock .vbtn:hover:not(:disabled) { background: var(--brass); color: var(--night); border-color: var(--brass); }
.dock .vcount { color: var(--on-night-muted); }

/* Wide screens: the folder opens like a book, with the contents on the left and the case files on the right. */
@container screen (min-width: 56rem) {
  .vault { --P: min(34rem, calc((100 * var(--vw) - 2 * var(--gutter)) / 2)); --H: min(42rem, calc(92 * var(--vh))); }
  .book { width: calc(2 * var(--P)); transform: translate(-25%, 16px); transition: opacity .45s ease .1s, transform .95s cubic-bezier(.5, 0, .2, 1); }
  .vault.is-on .book { transform: translate(-25%, 0); }
  .vault.is-open .book { transform: none; }
  .book__right { inset: 0 0 0 auto; width: var(--P); border-radius: 0 .7rem .7rem 0; }
  .book__right::before, .book__left::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1.6rem; pointer-events: none; }
  .book__right::before { left: 0; background: linear-gradient(90deg, rgba(60, 40, 10, .28), transparent); }
  .book__left { display: flex; flex-direction: column; position: absolute; left: 0; top: 0; width: var(--P); height: 100%; padding: 2.4rem 2rem 1.6rem; border-radius: .7rem 0 0 .7rem; opacity: 0; transition: opacity .5s ease .7s;
    background: linear-gradient(180deg, var(--manila-3), var(--manila) 60%, #d3b676); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .4); }
  .book__left::before { right: 0; background: linear-gradient(270deg, rgba(60, 40, 10, .28), transparent); }
  .vault.is-open .book__left { opacity: 1; }
  .cover { left: var(--P); }
  .vault.is-open .cover { transform: rotateY(-180deg); transition: transform .95s cubic-bezier(.55, .05, .25, 1), opacity .25s linear .8s; }
  .dock { display: none; }
}
@container screen (max-width: 55.99rem) {
  .book__right { border-radius: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .folder__papers, .folder__front, .vault__scrim, .book, .sheets, .cover, .sheet, .book__left { transition: none !important; }
}

/* ---------- SEO pass: in-text links, footer menu, phone menu bar, video visibility ---------- */
.split__body p a { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.light .split__body p a { text-decoration-color: var(--wine); }
.split__body p a:hover { text-decoration-thickness: 2px; }

.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.4rem; margin: 0 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--hair-dark); }
.foot__nav a { color: var(--on-night-muted); text-decoration: none; padding: .55rem 0; min-height: 2.75rem; display: inline-flex; align-items: center; }
.foot__nav a:hover, .foot__nav a:focus-visible { color: var(--on-night); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .22em; }

/* The opening film is hidden (not just transparent) until it plays, so it never counts as the page's largest paint. */
.scene-mode .stage__video { visibility: hidden; }
.scene-mode .stage__video.is-playing { visibility: visible; }

html:not(.scene-mode) [id] { scroll-margin-top: 3.6rem; }
.quickbar {
  position: sticky; top: 0; z-index: 30; display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none;
  background: var(--night-raise); border-bottom: 1px solid var(--hair-dark); padding: 0 calc(var(--gutter) - .6rem);
}
.quickbar::-webkit-scrollbar { display: none; }
.quickbar a {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0 .75rem; white-space: nowrap;
  font-family: var(--serif); font-size: 1.05rem; text-decoration: none; color: var(--on-night-muted);
  border-bottom: 2px solid transparent; border-left: 0;
}
.quickbar a:hover, .quickbar a:focus-visible, .quickbar a[aria-current="true"] { color: var(--on-night); border-bottom-color: var(--brass); }

@container screen (max-width: 52rem) {
  .section { padding: var(--s-5) 0; }
  .bridge { height: 3.5rem; }
  .hero { padding-bottom: 2.5rem; }
  .glowbtn, .epill, .vbtn, .folder { min-height: 2.75rem; }
}

/* Role line under the lede (wine on light, brass on dark) */
.lede-roles { margin: .6rem 0 0; font-size: var(--t-sm); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.6; color: var(--wine); max-width: 40rem; }

/* ---------- Request My Resume: a pill under the badge grid, and the dialog it opens ---------- */
.credleft { container-type: inline-size; }
.glowbtn[hidden] { display: none; }
.glowbtn--resume {
  box-sizing: border-box; width: 100%; justify-content: space-between; margin-top: var(--s-3); gap: .55em;
  font-family: inherit; font-weight: 500; font-size: clamp(.74rem, 6.4cqw, .95rem); white-space: nowrap; cursor: pointer;
  padding: .8em 1em .8em .9em;
}
.glowbtn--resume .glowbtn__label { flex: 1; text-align: left; }
.glowbtn--resume .glowbtn__icon { width: 1.35em; height: 1.35em; }
.glowbtn--resume .glowbtn__arrow { width: 1.2em; height: 1.2em; }

.rr { position: fixed; inset: 0; z-index: 60; }
.rr[hidden] { display: none; }
.scene-mode .rr { position: absolute; inset: auto; left: 0; top: var(--vtop, 0px); width: 100%; height: var(--vhpx, 100%); }
.rr__scrim { position: absolute; inset: 0; background: rgba(7, 14, 26, .74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .32s ease; }
.rr.is-on .rr__scrim { opacity: 1; }
.rr__stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 1rem var(--gutter); overflow-y: auto; }
.rr__card {
  position: relative; width: min(29rem, 100%); box-sizing: border-box; padding: 2.1rem 1.9rem 1.7rem; color: #f4f7ff;
  background: linear-gradient(180deg, #112240 0%, #0a1830 100%); border: 1.5px solid rgba(120, 165, 255, .42); border-radius: 1.3rem;
  box-shadow: 0 0 0 1px rgba(106, 174, 255, .22), 0 0 34px rgba(60, 130, 255, .3), 0 26px 60px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .32s ease, transform .32s cubic-bezier(.3, .7, .2, 1);
}
.rr.is-on .rr__card { opacity: 1; transform: none; }
.rr__close { top: .8rem; right: .8rem; width: 2.3rem; height: 2.3rem; }
.rr__icon { display: block; color: #8fbcff; margin-bottom: .8rem; }
.rr__icon--ok { color: var(--brass); }
.rr__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.85rem; line-height: 1.15; color: #f4f7ff; }
.rr__title:focus { outline: none; }
.rr__lede { margin: .75rem 0 0; font-size: var(--t-base); line-height: 1.55; color: var(--on-night-muted); max-width: none; }
.rr__lede strong { color: #f4f7ff; font-weight: 600; overflow-wrap: anywhere; }
.rr__label { display: block; margin: 1.5rem 0 .45rem; font-size: var(--t-sm); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #cfe0f7; }
.rr__input {
  box-sizing: border-box; width: 100%; padding: .85rem 1rem; font: inherit; font-size: 1rem; color: #f4f7ff;
  background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(120, 165, 255, .4); border-radius: .8rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rr__input::placeholder { color: rgba(207, 224, 247, .5); }
.rr__input:focus { outline: none; border-color: #6aaeff; box-shadow: 0 0 0 1px rgba(106, 174, 255, .45), 0 0 14px rgba(74, 150, 255, .45); }
.rr__input[aria-invalid="true"] { border-color: #ff9a9a; box-shadow: 0 0 0 1px rgba(255, 154, 154, .35); }
.rr__hint { margin: .55rem 0 0; font-size: var(--t-sm); line-height: 1.5; color: var(--on-night-muted); max-width: none; }
.rr__error { margin: .6rem 0 0; font-size: var(--t-sm); line-height: 1.5; color: #ffb9b9; max-width: none; }
.rr__error[hidden] { display: none; }
.rr__fix { font: inherit; font-weight: 600; color: #fff; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.rr__fix:focus-visible { outline: 2px solid #9cc7ff; outline-offset: 3px; }
.rr__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.rr__send { width: 100%; box-sizing: border-box; justify-content: center; margin-top: 1.3rem; font-family: inherit; font-size: var(--t-base); cursor: pointer; }
.rr__send[disabled] { opacity: .65; cursor: progress; }
.rr__send[disabled]:hover { box-shadow: none; border-color: rgba(120, 165, 255, .38); }
.rr__send[disabled] .glowbtn__arrow { transform: none; }
.rr__fine { margin: .9rem 0 0; font-size: .8rem; color: rgba(164, 179, 197, .85); text-align: center; max-width: none; }
.rr__again { margin-top: 1.4rem; font-family: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .rr__scrim, .rr__card, .rr__input { transition: none; } }

/* ---------- Terms of Use and Privacy Policy dialog ---------- */
.rr--doc .rr__stage { grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.rr__card--doc { width: min(46rem, 100%); max-height: 100%; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.rr__doc { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.rr__doc[hidden] { display: none; }
.rr__dochead { padding: 1.8rem 3.6rem 1rem 1.9rem; border-bottom: 1px solid rgba(120, 165, 255, .22); }
.rr__updated { margin: .4rem 0 0; font-size: .8rem; color: rgba(164, 179, 197, .85); max-width: none; }
.rr__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(201, 162, 77, .6) transparent; overscroll-behavior: contain; padding: .4rem 1.9rem 1.9rem; font-size: .95rem; line-height: 1.65; color: #d3deef; }
.rr__scroll:focus-visible { outline: 2px solid #9cc7ff; outline-offset: -3px; }
.rr__scroll p { margin: .75rem 0 0; max-width: none; }
.rr__scroll h3 { margin: 1.6rem 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.3; color: #f4f7ff; }
.rr__scroll h3 + p { margin-top: .4rem; }
.rr__scroll ul { margin: .7rem 0 0; padding-left: 1.4rem; list-style: disc outside; }
.rr__scroll li::marker { color: var(--brass); }
.rr__scroll li { margin: .35rem 0; max-width: none; }
.rr__scroll strong { color: #f4f7ff; font-weight: 600; }
.rr__scroll a, .rr__textlink { color: #9cc7ff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.rr__scroll a:hover, .rr__textlink:hover { color: #fff; }
.rr__textlink { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.rr__textlink:focus-visible, .rr__scroll a:focus-visible { outline: 2px solid #9cc7ff; outline-offset: 3px; }
@media (max-width: 480px) { .rr__dochead { padding: 1.5rem 3.2rem .9rem 1.3rem; } .rr__scroll { padding: .3rem 1.3rem 1.6rem; } }
