/* Shared navigation and the selected-work reading path. */
:root { --ink: #0a0e28; --deep: #11163d; --cream: #f4ead5; --gold: #f5cf7a; --amber: #f0a540; --starlight: #dfe6ff; --serif: "Cormorant Garamond", Georgia, serif; --sans: "Space Grotesk", Arial, sans-serif; }
.skip-link { position: absolute; left: -10000px; top: .5rem; z-index: 100; }
.skip-link:focus { left: 1rem; padding: .8rem 1rem; background: var(--cream); color: var(--ink); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 5px; border-radius: 3px; }
.site-nav { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.2rem max(6vw, calc((100vw - 1240px) / 2)); background: var(--ink); border-bottom: 1px solid #f5cf7a30; font: 400 .78rem/1.5 var(--sans); }
.site-nav a { color: var(--cream); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav .site-brand { color: var(--gold); letter-spacing: .025em; }
.site-nav__links { display: flex; gap: .8rem 1.5rem; flex-wrap: wrap; }
.action-row { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1.6rem; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1.1rem; border: 1px solid #f5cf7a80; border-radius: 5px; font: 400 .85rem/1.5 var(--sans); color: var(--gold); text-decoration: none; transition: background .2s, color .2s; }
.action:hover { background: var(--gold); color: var(--ink); }
.action--primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.action--primary:hover { background: var(--cream); }
.hero__summary { max-width: 58ch; margin: 1.3rem auto 0; color: var(--cream); font-size: clamp(.95rem, 1.5vw, 1.1rem); text-wrap: pretty; text-shadow: 0 2px 8px var(--ink), 0 1px 25px var(--ink); }
.hero__content .action-row { justify-content: center; }
.hero__content .action:not(.action--primary) { background: #0a0e28d9; }
.hero__title-part { white-space: nowrap; }
.home-intro-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.2rem; }
.home-intro-links a { color: var(--gold); text-underline-offset: .25em; }
.project-context { font-size: .85rem; line-height: 1.65; color: var(--starlight); margin-top: .7rem; max-width: 62ch; }
.pcard .project-context + .acts { margin-top: 1rem; }
.home-contact-links { justify-content: center; }
section[id], article[id] { scroll-margin-top: 1.5rem; }

/* The portfolio uses the same palette with quieter, editorial layouts. */
.builder-page { margin: 0; background: radial-gradient(ellipse at 85% 0%, #4a3f7a55, transparent 40%), var(--ink); color: var(--cream); font: 400 16px/1.7 var(--sans); }
.builder-page * { box-sizing: border-box; }
.builder-page a { color: var(--gold); text-underline-offset: .25em; }
.builder-page .action--primary { color: var(--ink); }
.builder-page h1, .builder-page h2, .builder-page h3, .builder-page p { margin: 0; }
.builder-page h1, .builder-page h2, .builder-page h3 { font-family: var(--serif); font-weight: 600; line-height: 1.06; }
.builder-page h1 { font-size: clamp(3.2rem, 6.7vw, 6rem); letter-spacing: -.025em; }
.builder-page h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.builder-page h3 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.builder-page em { color: var(--gold); font-weight: inherit; }
.builder-wrap { width: min(1120px, 88%); margin: 0 auto; }
.builder-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding: clamp(3.5rem, 8vw, 7rem) 0 4rem; align-items: center; }
.eyebrow { font: 400 .68rem/1.7 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.2rem !important; }
.builder-lede { margin-top: 1.5rem !important; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--starlight); max-width: 58ch; }
.builder-byline { color: #c0c6e2; font-size: .8rem; margin-top: 1.4rem !important; }
.flight-notes { border: 1px solid #f5cf7a40; background: #11163da6; border-radius: 8px; padding: 1.7rem; }
.flight-notes ol { margin: 0; padding: 0; list-style: none; counter-reset: route; }
.flight-notes li { counter-increment: route; padding: 1.1rem 0; border-top: 1px solid #f5cf7a26; }
.flight-notes li::before { content: "0" counter(route); font-size: .7rem; color: var(--amber); margin-right: .7rem; }
.flight-notes a { font-size: .95rem; }
.flight-notes small { display: block; margin: .3rem 0 0 1.75rem; color: #c0c6e2; line-height: 1.6; }
.flight-notes .flight-foot { font-size: .75rem; color: #c0c6e2; border-top: 1px solid #f5cf7a26; padding-top: 1rem; }
.evidence-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #f5cf7a40; border-bottom: 1px solid #f5cf7a40; }
.evidence-strip div { padding: 1.3rem 1.4rem; border-right: 1px solid #f5cf7a26; }
.evidence-strip div:first-child { padding-left: 0; }
.evidence-strip div:last-child { border-right: 0; }
.evidence-strip strong { display: block; color: var(--gold); font: 600 1.6rem/1.3 var(--serif); }
.evidence-strip span { display: block; margin-top: .3rem; font-size: .76rem; color: #c0c6e2; }
.builder-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-intro { max-width: 64ch; margin-top: 1.2rem !important; color: var(--starlight); }
.project-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem 3.5rem; padding: 3rem 0; border-bottom: 1px solid #f5cf7a30; }
.project-feature:last-child { padding-bottom: 0; border-bottom: 0; }
.project-feature p { margin-top: 1rem; }
.project-number { font: 400 .65rem/1.5 var(--sans); color: var(--amber); letter-spacing: .18em; text-transform: uppercase; }
.project-feature h3 { margin-top: .7rem; }
.project-feature .stack { color: var(--gold); font-size: .74rem; }
.personal-intro { border-bottom: 1px solid #f5cf7a30; }
.personal-intro + .builder-section { padding-top: 3rem; }
.project-feature .contribution { padding-left: 1rem; border-left: 2px solid var(--amber); font-size: .88rem; color: var(--starlight); }
.contribution strong { display: block; color: var(--gold); font-weight: 500; margin-bottom: .35rem; }
.project-detail { border: 1px solid #f5cf7a30; background: #11163d88; border-radius: 8px; padding: 1.7rem; align-self: start; }
.project-detail h4, .method-grid h3 { font: 500 .8rem/1.5 var(--sans); color: var(--gold); margin: 0 0 .6rem; }
.project-detail ul { margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--starlight); }
.project-detail li + li { margin-top: .65rem; }
.project-detail .scope { font-size: .77rem; line-height: 1.7; color: #c0c6e2; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #f5cf7a26; }
.pipeline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.5rem 0 .5rem; font-size: .72rem; }
.pipeline span { border: 1px solid #f5cf7a55; padding: .45rem .7rem; border-radius: 4px; background: #0a0e28; }
.pipeline b { color: var(--amber); font-weight: 400; }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.3rem; }
.outcome-grid div { padding: .8rem; border-left: 2px solid var(--amber); background: #0a0e28; font-size: .76rem; }
.outcome-grid strong { display: block; color: var(--gold); font-weight: 500; }
.method-section { border-top: 1px solid #f5cf7a40; border-bottom: 1px solid #f5cf7a40; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2.2rem; }
.method-grid p { font-size: .88rem; color: var(--starlight); margin-top: .7rem; }
.method-grid a { display: inline-block; margin-top: .9rem; font-size: .8rem; }
.evaluation-note { margin-top: 2rem; padding: 1.2rem 1.4rem; background: #f5cf7a0a; border-left: 2px solid var(--amber); color: #c0c6e2; font-size: .82rem; }
.evaluation-note strong { color: var(--cream); }
.more-work { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.more-work img { width: 100%; max-height: 240px; object-fit: contain; }
.more-work p { margin-top: 1rem; color: var(--starlight); }
.builder-contact { padding: 3rem 0 4rem; border-top: 1px solid #f5cf7a40; }
.builder-contact p { margin-top: 1rem; color: var(--starlight); }
.builder-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.7rem 0; border-top: 1px solid #f5cf7a26; font-size: .75rem; color: #c0c6e2; }
.builder-page code { font-size: .9em; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .site-nav { align-items: flex-start; flex-direction: column; padding: 1rem 6vw; gap: .6rem; }
  .site-nav__links { gap: .5rem 1.1rem; }
  .builder-hero, .project-feature, .more-work { grid-template-columns: 1fr; }
  .builder-hero { gap: 2rem; padding-top: 3rem; }
  .method-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .evidence-strip div { padding: 1rem .7rem; }
  .evidence-strip strong { font-size: 1.2rem; }
  .project-feature { gap: 1.5rem; padding: 2.5rem 0; }
  .project-detail { padding: 1.25rem; }
  .hero__content { padding-left: 6vw; padding-right: 6vw; }
  .hero__title { font-size: clamp(2.25rem, 8vw, 3.6rem); }
  .hero__title-part { display: block; }
  .hero__title .llc { display: inline-block; margin-top: .5rem; vertical-align: baseline; }
  .hero__eyebrow { letter-spacing: .25em; }
  .hero__tagline { white-space: normal; margin-top: 1rem; }
  .hero__summary { margin-top: 1rem; font-size: .95rem; }
  .hero__content .action-row { gap: .5rem; margin-top: 1.2rem; }
  .hero__content .action { padding: .6rem .8rem; font-size: .78rem; }
}
@media (max-width: 380px) {
  .site-nav { font-size: .72rem; }
  .builder-page h1 { font-size: 2.8rem; }
  .evidence-strip { grid-template-columns: 1fr; }
  .evidence-strip div { padding: .8rem 0; border-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .action { transition: none; } }

/* JavaScript / TypeScript recorded workflow. */
.case-wrap { max-width: 1040px; }
.case-hero { padding: clamp(3.5rem, 7vw, 6rem) 0 3rem; }
.case-hero h1 { font-size: clamp(3rem, 7vw, 5.7rem); }
.case-section { border-bottom: 1px solid #f5cf7a30; }
.case-section .section-intro { max-width: 76ch; }
.case-table-wrap { overflow-x: auto; margin-top: 1.7rem; }
.case-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .86rem; }
.case-table caption { text-align: left; color: var(--gold); margin-bottom: .75rem; font-size: .8rem; }
.case-table th, .case-table td { padding: .85rem .8rem; border-bottom: 1px solid #f5cf7a30; vertical-align: top; }
.case-table thead { color: var(--gold); background: #11163d; }
.case-table th { font-weight: 500; }
.case-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.7rem; }
.case-code-grid > div { min-width: 0; }
.case-code-grid h3 { font: 500 .85rem/1.5 var(--sans); color: var(--gold); }
.case-code-grid pre, .case-code { padding: 1rem; overflow-x: auto; border: 1px solid #f5cf7a40; border-radius: 5px; background: #11163d; font-size: .86rem; line-height: 1.7; }
.case-code { margin-top: 1.5rem; }
.case-wrap pre code { white-space: pre; overflow-wrap: normal; }
@media (max-width: 760px) {
  .case-code-grid { grid-template-columns: 1fr; }
  .case-table { font-size: .78rem; }
  .case-table th, .case-table td { padding: .7rem .5rem; }
}
