/* ==========================================================================
   Dr. Osama Dawood — premium academic medical portfolio
   ========================================================================== */

:root {
  --background: #f5f1e9;
  --background-alt: #ebe7df;
  --surface: #fffdf8;
  --surface-muted: #eeebe4;
  --text: #171a19;
  --text-soft: #2f3b3a;
  --muted: #687271;
  --accent: #17666c;
  --accent-deep: #0d4045;
  --accent-soft: #d9e7e5;
  --surgical: #5e817b;
  --gold: #a97935;
  --oxblood: #6f3535;
  --border: rgba(23, 26, 25, .14);
  --border-strong: rgba(23, 26, 25, .24);
  --shadow: 0 24px 70px rgba(20, 28, 27, .11);
  --container: 1180px;
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --font-display: "Spectral", "Cormorant Garamond", Georgia, serif;
  --font-body: "IBM Plex Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
  --ease-premium: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 102, 108, .055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 102, 108, .04) 1px, transparent 1px),
    radial-gradient(circle at 78% 12%, rgba(169, 121, 53, .08), transparent 32rem),
    var(--background);
  background-size: 72px 72px, 72px 72px, auto, auto;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(126deg, transparent 0 28px, rgba(94, 129, 123, .045) 29px 30px, transparent 31px 74px),
    linear-gradient(180deg, rgba(255, 253, 248, .78), rgba(245, 241, 233, .96) 34%, rgba(245, 241, 233, .98));
}

body::after {
  content: "";
  position: fixed;
  right: -12vw;
  top: 18vh;
  width: 42vw;
  height: 70vh;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 18px, rgba(23, 102, 108, .24) 19px 20px, transparent 21px 38px);
  transform: rotate(-12deg);
}

img { display: block; max-width: 100%; }
a { color: var(--accent-deep); text-decoration: none; transition: color .24s var(--ease-premium); }
a:hover { color: var(--gold); }
button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

::selection { background: var(--accent-deep); color: #fffdf8; }

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

.skip {
  position: absolute;
  left: -999px;
  top: .75rem;
  z-index: 200;
  padding: .75rem 1rem;
  background: var(--text);
  color: var(--surface);
}

.skip:focus { left: .75rem; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1.2rem;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: .71rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(169, 121, 53, 0));
}

.lede {
  max-width: 66ch;
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.76;
}

.post-nominals,
.brand-sub,
.portrait-cap,
.rail .lbl,
.fact dt,
.tag,
.tl-date,
.rows .yr,
.chip,
.site-foot h4,
.foot-bar {
  letter-spacing: 0;
}

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(245, 241, 233, .58);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(130%);
  transition: background .36s var(--ease-premium), border-color .36s var(--ease-premium), box-shadow .36s var(--ease-premium);
}

.site-head.is-scrolled {
  background: rgba(255, 253, 248, .9);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 26px rgba(23, 26, 25, .055);
}

.progress-line {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent-deep), var(--gold), var(--oxblood));
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 84px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .85rem;
  color: var(--text);
}

.brand:hover { color: var(--text); }

.monogram {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--surface);
  background:
    linear-gradient(135deg, var(--accent-deep), var(--text));
  border: 1px solid rgba(255, 253, 248, .4);
  box-shadow: 0 16px 34px rgba(13, 64, 69, .18);
  font-family: var(--font-display);
  font-size: 1rem;
}

.brand-txt { display: flex; min-width: 0; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.08rem; }
.brand-sub {
  margin-top: .16rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .64rem;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  min-width: 4.9rem;
  min-height: 2.75rem;
  flex-shrink: 0;
  padding: .55rem .8rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  display: block;
  padding: .55rem 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.2;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .26rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  transition: transform .34s var(--ease-premium);
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Section rail */
.rail {
  position: fixed;
  left: 22px;
  top: 50%;
  z-index: 50;
  display: none;
  transform: translateY(-50%);
}

.rail ol {
  display: flex;
  flex-direction: column;
  gap: .72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail a {
  display: flex;
  align-items: center;
  gap: .68rem;
  color: var(--muted);
}

.rail .seg {
  width: 18px;
  height: 1px;
  background: rgba(23, 26, 25, .24);
  transition: width .32s var(--ease-premium), background .32s var(--ease-premium);
}

.rail .lbl {
  opacity: 0;
  transform: translateX(-5px);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: .62rem;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity .32s var(--ease-premium), transform .32s var(--ease-premium);
}

.rail a:hover .seg,
.rail a.active .seg {
  width: 38px;
  background: var(--gold);
}

.rail a:hover .lbl,
.rail a:focus-visible .lbl,
.rail a.active .lbl {
  opacity: 1;
  transform: none;
}

.rail a.is-on-dark .lbl {
  color: #fffdf8;
}

.rail a.is-on-dark .seg {
  background: rgba(255, 253, 248, .65);
}

.rail a.is-on-dark:hover .seg,
.rail a.is-on-dark.active .seg {
  background: #d6ad6e;
}

/* Hero */
.masthead {
  position: relative;
  isolation: isolate;
  min-height: 0;
  padding: 3.35rem 0 2.65rem;
  overflow: hidden;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 6rem 0 auto auto;
  width: 62%;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(23, 102, 108, .32), transparent);
}

.masthead::after {
  content: "neuro-spinal surgery";
  position: absolute;
  left: 8vw;
  bottom: 2.2rem;
  z-index: -1;
  color: rgba(23, 26, 25, .045);
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: .9;
  pointer-events: none;
}

.masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .66fr);
  gap: 4.5rem;
  align-items: center;
}

.doc-name {
  max-width: 11ch;
  font-size: 4.7rem;
  line-height: .95;
}

.post-nominals {
  margin: 1.15rem 0 1.55rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
}

.titles {
  display: grid;
  gap: .68rem;
  max-width: 62ch;
  margin: 0 0 1.65rem;
  padding: 0;
  list-style: none;
}

.titles li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.titles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: .45rem;
  height: 1px;
  background: var(--gold);
}

.portrait-col {
  position: relative;
  align-self: stretch;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portrait-col::before {
  content: "";
  position: absolute;
  inset: -1.35rem 1.35rem 1.35rem -1.35rem;
  z-index: -1;
  border: 1px solid rgba(23, 102, 108, .24);
  background:
    linear-gradient(135deg, rgba(23, 102, 108, .06), transparent 42%),
    linear-gradient(90deg, rgba(169, 121, 53, .09), transparent);
}

.portrait-col::after {
  content: "";
  position: absolute;
  right: -1.6rem;
  bottom: 4.2rem;
  width: 8.7rem;
  height: 8.7rem;
  border: 1px solid rgba(169, 121, 53, .42);
  background:
    linear-gradient(90deg, transparent 49%, rgba(169, 121, 53, .26) 50%, transparent 51%),
    linear-gradient(180deg, transparent 49%, rgba(169, 121, 53, .26) 50%, transparent 51%);
}

.portrait {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(23, 26, 25, .16);
  filter: grayscale(8%) contrast(1.02) saturate(.9);
  box-shadow: var(--shadow);
}

.portrait-cap {
  position: relative;
  max-width: 24ch;
  margin: 1rem 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .67rem;
  line-height: 1.55;
  text-align: right;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.65rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .72rem 1.18rem;
  overflow: hidden;
  border: 1px solid var(--accent-deep);
  border-radius: 4px;
  background: var(--accent-deep);
  color: #fffdf8;
  font-size: .91rem;
  line-height: 1.2;
  transition: transform .28s var(--ease-premium), border-color .28s var(--ease-premium), color .28s var(--ease-premium), background .28s var(--ease-premium);
}

.btn::after {
  content: "→";
  margin-left: .72rem;
  transition: transform .28s var(--ease-premium);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--text);
  background: var(--text);
  color: #fffdf8;
}

.btn:hover::after { transform: translateX(4px); }

.btn.ghost {
  background: transparent;
  color: var(--accent-deep);
}

.btn.ghost:hover {
  background: var(--surface);
  color: var(--text);
}

/* Interior heads */
.page-head {
  position: relative;
  isolation: isolate;
  padding: 5.4rem 0 3.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-head::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 58%;
  height: 70%;
  z-index: -1;
  opacity: .35;
  background:
    repeating-linear-gradient(130deg, transparent 0 18px, rgba(23, 102, 108, .16) 19px 20px, transparent 21px 44px);
}

.page-head h1 {
  max-width: 12ch;
  font-size: 4rem;
}

.page-head .lede { margin-top: 1.2rem; }

/* Sections */
.section {
  position: relative;
  padding: 4.7rem 0;
  border-bottom: 1px solid var(--border);
}

.section > .wrap {
  display: grid;
  grid-template-columns: minmax(190px, .32fr) minmax(0, 1fr);
  gap: 3.5rem;
}

.section > .wrap > h2 {
  position: sticky;
  top: 116px;
  align-self: start;
  max-width: 11ch;
  font-size: 2rem;
}

.section > .wrap > h2::before {
  content: "";
  display: block;
  width: 3.8rem;
  height: 1px;
  margin-bottom: 1rem;
  background: var(--gold);
}

.section-intro {
  max-width: 64ch;
  margin: 0 0 1.85rem;
  color: var(--muted);
}

.section > .wrap > .section-intro,
.section > .wrap > .prose,
.section > .wrap > .grid,
.section > .wrap > .facts,
.section > .wrap > .timeline,
.section > .wrap > .pubs,
.section > .wrap > .rows,
.section > .wrap > .tags,
.section > .wrap > .contact-grid,
.section > .wrap > .callout,
.section > .wrap > .actions {
  grid-column: 2;
}

.section > .wrap > h2 + .section-intro { grid-row: 1; }

.prose {
  max-width: 74ch;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.prose p + p { margin-top: 1.05rem; }

.pullquote {
  margin: 1.7rem 0;
  padding: 1.15rem 0 1.15rem 1.35rem;
  border-left: 2px solid var(--gold);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.25;
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
}

.fact {
  min-height: 12.5rem;
  padding: 1.35rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .94), rgba(238, 235, 228, .72));
}

.fact dt {
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.04;
}

.fact dd small {
  display: block;
  margin-top: .75rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .82rem;
  line-height: 1.45;
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  min-height: 15rem;
  padding: 1.55rem;
  overflow: hidden;
  background: rgba(255, 253, 248, .86);
  transition: transform .3s var(--ease-premium), background .3s var(--ease-premium), box-shadow .3s var(--ease-premium);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transition: width .42s var(--ease-premium);
}

.card:hover {
  z-index: 1;
  transform: translateY(-4px);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(23, 26, 25, .09);
}

.card:hover::before { width: 100%; }

.card h3 {
  margin-bottom: .75rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.68;
}

.tag,
.card .tag {
  display: block;
  margin-bottom: .85rem;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: .67rem;
  text-transform: uppercase;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9.25rem;
  top: .65rem;
  bottom: .65rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(23, 102, 108, .34), transparent);
}

.timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 2rem;
  padding: 1.45rem 0;
  border-top: 1px solid var(--border);
}

.timeline > li:last-child { border-bottom: 1px solid var(--border); }

.timeline > li::before {
  content: "";
  position: absolute;
  left: 8.96rem;
  top: 1.98rem;
  width: .62rem;
  height: .62rem;
  border: 1px solid var(--accent);
  background: var(--background);
  transform: rotate(45deg);
  transition: background .3s var(--ease-premium), transform .3s var(--ease-premium);
}

.timeline > li:hover::before {
  background: var(--gold);
  transform: rotate(45deg) scale(1.18);
}

.tl-date {
  padding-top: .18rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: .74rem;
  line-height: 1.4;
}

.tl-body h3 {
  margin-bottom: .35rem;
  font-size: 1.26rem;
}

.tl-body .org,
.tl-body .detail {
  color: var(--muted);
  font-size: .94rem;
}

.tl-body .detail {
  margin-top: .46rem;
  font-size: .9rem;
}

.tl-body .detail em { color: var(--text-soft); }

/* Publications */
.pubs {
  margin: 0;
  padding: 0;
  counter-reset: pub;
  list-style: none;
}

.pubs > li {
  position: relative;
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
}

.pubs > li:last-child { border-bottom: 1px solid var(--border); }

.pubs > li::before {
  counter-increment: pub;
  content: counter(pub, decimal-leading-zero);
  color: rgba(23, 26, 25, .26);
  font-family: var(--font-mono);
  font-size: .83rem;
  line-height: 1.4;
}

.pubs > li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  top: 0;
  height: 1px;
  background: var(--gold);
  transition: right .42s var(--ease-premium);
}

.pubs > li:hover::after { right: 0; }

.pub-title {
  display: block;
  margin-bottom: .55rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.28;
}

a.pub-title::after {
  content: "↗";
  display: inline-block;
  margin-left: .45rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: .82rem;
  transition: transform .28s var(--ease-premium);
}

a.pub-title:hover {
  color: var(--accent-deep);
}

a.pub-title:hover::after { transform: translate(3px, -3px); }

.pub-authors,
.pub-venue {
  margin-bottom: .25rem;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.56;
}

.pub-authors strong {
  color: var(--text);
  font-weight: 600;
}

.pub-venue { font-style: italic; }

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .46rem;
  margin-top: .78rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: .32rem .58rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 253, 248, .72);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .64rem;
  line-height: 1.2;
  text-transform: uppercase;
}

a.chip:hover {
  border-color: var(--gold);
  color: var(--text);
  background: var(--surface);
}

.chip.solid {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* Rows and tags */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows > li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 2rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--border);
}

.rows > li:last-child { border-bottom: 1px solid var(--border); }

.rows .yr {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: .74rem;
}

.rows .txt {
  color: var(--text-soft);
  font-size: .98rem;
}

.rows .txt em {
  display: block;
  margin-top: .18rem;
  color: var(--muted);
  font-size: .88rem;
  font-style: normal;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: .6rem .82rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 253, 248, .78);
  color: var(--text-soft);
  font-size: .92rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.contact-block {
  min-height: 17rem;
  padding: 1.65rem;
  background: var(--surface);
}

.contact-block h3 {
  margin-bottom: 1rem;
  font-size: 1.32rem;
}

.contact-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-block li {
  margin-bottom: .75rem;
  color: var(--text-soft);
  font-size: .95rem;
}

.contact-block .k {
  display: block;
  margin-bottom: .12rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .65rem;
  text-transform: uppercase;
}

.callout {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--gold);
  background:
    linear-gradient(90deg, rgba(169, 121, 53, .09), transparent 46%),
    rgba(255, 253, 248, .78);
  color: var(--muted);
  font-size: .95rem;
}

.callout strong {
  color: var(--text);
  font-weight: 600;
}

/* CTA band */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4.3rem 0;
  background:
    linear-gradient(135deg, rgba(23, 102, 108, .88), rgba(23, 26, 25, .97)),
    var(--text);
  color: rgba(255, 253, 248, .78);
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .24;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, .16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 253, 248, .1) 1px, transparent 1px);
  background-size: 70px 70px;
}

.band h2 {
  max-width: 14ch;
  margin-bottom: 1rem;
  color: #fffdf8;
  font-size: 2.45rem;
}

.band p {
  max-width: 58ch;
  color: rgba(255, 253, 248, .75);
}

.band .btn {
  border-color: #fffdf8;
  background: #fffdf8;
  color: var(--text);
}

.band .btn:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--text);
}

.band .btn.ghost {
  border-color: rgba(255, 253, 248, .38);
  background: transparent;
  color: #fffdf8;
}

.band .btn.ghost:hover {
  border-color: #fffdf8;
  background: rgba(255, 253, 248, .1);
  color: #fffdf8;
}

/* Footer */
.site-foot {
  padding: 3.5rem 0 2rem;
  background: #121514;
  color: rgba(255, 253, 248, .62);
  font-size: .88rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 2rem;
}

.site-foot h4 {
  margin-bottom: .9rem;
  color: #d6ad6e;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  text-transform: uppercase;
}

.site-foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-foot li { margin-bottom: .45rem; }
.site-foot a { color: rgba(255, 253, 248, .82); }
.site-foot a:hover { color: #d6ad6e; }

.foot-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 253, 248, .13);
  color: rgba(255, 253, 248, .45);
  font-family: var(--font-mono);
  font-size: .66rem;
}

/* Motion */
.site-head,
.masthead .eyebrow,
.doc-name,
.post-nominals,
.titles,
.masthead .lede,
.masthead .actions,
.portrait-col,
.page-head .eyebrow,
.page-head h1,
.page-head .lede,
.page-head .actions {
  opacity: 0;
  transform: translateY(18px);
}

body.is-loaded .site-head,
body.is-loaded .masthead .eyebrow,
body.is-loaded .doc-name,
body.is-loaded .post-nominals,
body.is-loaded .titles,
body.is-loaded .masthead .lede,
body.is-loaded .masthead .actions,
body.is-loaded .portrait-col,
body.is-loaded .page-head .eyebrow,
body.is-loaded .page-head h1,
body.is-loaded .page-head .lede,
body.is-loaded .page-head .actions {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease-premium), transform .9s var(--ease-premium);
}

body.is-loaded .site-head { transition-delay: .02s; }
body.is-loaded .masthead .eyebrow,
body.is-loaded .page-head .eyebrow { transition-delay: .1s; }
body.is-loaded .doc-name,
body.is-loaded .page-head h1 { transition-delay: .18s; }
body.is-loaded .post-nominals { transition-delay: .26s; }
body.is-loaded .titles,
body.is-loaded .page-head .lede { transition-delay: .34s; }
body.is-loaded .masthead .lede { transition-delay: .42s; }
body.is-loaded .masthead .actions,
body.is-loaded .page-head .actions { transition-delay: .5s; }
body.is-loaded .portrait-col { transition-delay: .3s; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-premium), transform .8s var(--ease-premium), filter .8s var(--ease-premium);
  filter: blur(6px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.reveal[data-reveal="line"]:not(.in) {
  transform: translateX(-18px);
}

.reveal[data-reveal="scale"]:not(.in) {
  transform: scale(.985);
}

/* Responsive */
@media (min-width: 1280px) {
  .rail { display: block; }
}

@media (max-width: 1120px) {
  .doc-name { font-size: 4rem; }
  .page-head h1 { font-size: 3.35rem; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  body { font-size: 16px; }
  .reveal[data-reveal="line"]:not(.in) { transform: translateY(22px); }
  main, .site-foot { overflow-wrap: anywhere; }
  .head-inner { min-height: 76px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 253, 248, .97);
    transition: max-height .36s var(--ease-premium);
  }
  .nav.open {
    max-height: min(28rem, calc(100vh - 76px));
    max-height: min(28rem, calc(100dvh - 76px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav ul {
    display: grid;
    gap: 0;
    padding: .55rem 1.35rem 1rem;
  }
  .nav a {
    padding: .86rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav a::after { display: none; }
  .masthead {
    min-height: auto;
    padding: 3.4rem 0 3rem;
  }
  .masthead-grid {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }
  .portrait-col {
    width: min(26rem, 100%);
    order: -1;
    justify-self: center;
  }
  .portrait { height: auto; aspect-ratio: 5 / 6; }
  .doc-name { font-size: 3.45rem; }
  .masthead::after { font-size: 4.5rem; left: 1rem; }
  .section > .wrap {
    display: block;
  }
  .section > .wrap > h2 {
    position: static;
    max-width: 18ch;
    margin-bottom: 1.45rem;
  }
  .section > .wrap > .section-intro,
  .section > .wrap > .prose,
  .section > .wrap > .grid,
  .section > .wrap > .facts,
  .section > .wrap > .timeline,
  .section > .wrap > .pubs,
  .section > .wrap > .rows,
  .section > .wrap > .tags,
  .section > .wrap > .contact-grid,
  .section > .wrap > .callout,
  .section > .wrap > .actions {
    grid-column: auto;
  }
  .grid.cols-2,
  .grid.cols-3,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .wrap { padding-inline: 1rem; }
  .head-inner { gap: .6rem; }
  .brand { gap: .6rem; }
  .brand-name { font-size: clamp(.9rem, 4vw, 1.08rem); }
  .nav-toggle { min-width: 4.2rem; }
  .brand-sub { display: none; }
  .monogram { width: 38px; height: 38px; }
  .doc-name { font-size: 2.78rem; }
  .page-head h1 { font-size: 2.65rem; }
  .page-head { padding: 3.7rem 0 2.8rem; }
  .section { padding: 3.45rem 0; }
  .facts { grid-template-columns: 1fr; }
  .fact { min-height: auto; }
  .timeline::before { left: .32rem; }
  .timeline > li {
    grid-template-columns: 1fr;
    gap: .42rem;
    padding-left: 1.75rem;
  }
  .timeline > li::before {
    left: 0;
    top: 1.78rem;
  }
  .pubs > li {
    grid-template-columns: 1fr;
    gap: .55rem;
  }
  .rows > li {
    grid-template-columns: 1fr;
    gap: .2rem;
  }
  .card,
  .contact-block { min-height: auto; }
  .portrait-col {
    order: 0;
    margin-top: 2rem;
  }
  .actions { display: grid; }
  .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .band h2 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .site-head,
  .masthead .eyebrow,
  .doc-name,
  .post-nominals,
  .titles,
  .masthead .lede,
  .masthead .actions,
  .portrait-col,
  .page-head .eyebrow,
  .page-head h1,
  .page-head .lede,
  .page-head .actions,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media print {
  .site-head, .rail, .progress-line, .actions, .band, .site-foot { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before, body::after { display: none; }
  .section { padding: 1rem 0; border-bottom: 1px solid #ccc; }
  .section > .wrap { display: block; }
}
