/* EDITING GUIDE
 * Theme colors/type: :root below.
 * Each page/component has a named section. Responsive overrides are near the end.
 * Background opacity/motion: DECORATIVE ATMOSPHERE. Corner cuts: POLYGON CONTROLS.
 * Changes to this file appear after a browser refresh; no rebuild is needed.
 */

@font-face {
  font-family: Barlow;
  src: url('/assets/fonts/Barlow-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('/assets/fonts/Barlow-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* THEME: the main colors, font, and sidebar width. */
:root {
  color-scheme: dark;
  --bg: #222223;
  --surface: #2b2b2d;
  --rail-bg: #1b1c1e;
  --ink: #eeeee9;
  --muted: #c1c1bd;
  --quiet: #aaa9a4;
  --accent: #d8d8d1;
  --button: #e0e0d8;
  --selected: #343436;
  --line: #414140;
  --rail: 260px;
  --font: Barlow, 'Segoe UI', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 var(--font);
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
}
button, input {
  font: inherit;
}
button, a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #757575;
  color: white;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1, h2, h3, p, figure {
  margin-top: 0;
}
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.22;
  margin-bottom: 18px;
}
h2 {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 16px;
}
h3 {
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 12px;
}
p {
  margin-bottom: 20px;
}
ul {
  padding-left: 22px;
}
li {
  padding-left: 3px;
}
li + li {
  margin-top: 10px;
}
.eyebrow {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--quiet);
  margin-bottom: 11px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid #888888;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  transition: background .12s;
}
.button-accent {
  background: var(--button);
  color: #232324;
}
.button-accent:hover {
  background: #c9c9c1;
}
.button > span {
  font-size: 20px;
  line-height: 1;
}
.link-arrow {
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
}

/* Shared navigation. The page structure remains independent of JavaScript. */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  height: 100dvh;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  overflow-y: auto;
  background: var(--rail-bg);
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: #6f6f6f var(--rail-bg);
}
.rail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 27px;
  padding-inline: 4px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}
.identity small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.identity-mark {
  flex-shrink: 0;
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.rail-search {
  margin-bottom: 22px;
}
.search-form label {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 9px;
  padding-left: 4px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #5f5f5f;
  background: #2e2e2e;
}
.search-field:focus-within {
  border-color: #adadad;
  box-shadow: 0 0 0 1px #adadad;
}
.search-field > svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.search-field input {
  width: 100%;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  outline: 0;
}
.search-field input::placeholder {
  color: #b8b8b8;
  opacity: 1;
}
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search-field kbd {
  padding: 2px 5px;
  border: 1px solid #656565;
  color: #c5c5c5;
  font: 12px/1.2 Consolas, monospace;
}
.clear-search {
  min-width: 24px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 23px;
  line-height: 1;
}
.search-submit {
  position: absolute;
  left: -9999px;
}
.search-submit:focus {
  position: static;
  width: 100%;
  margin-top: 9px;
  padding: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--button);
  color: #232324;
}
.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  transition: background .12s;
}
.nav-item:hover {
  background: #323232;
}
.nav-item.selected {
  background: var(--selected);
  color: #e6e6e6;
  box-shadow: inset 3px 0 #a6a6a6;
}
.rail-projects {
  margin-top: 23px;
  padding: 20px 4px 21px;
  border-top: 1px solid var(--line);
}
.rail-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.rail-projects ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rail-projects li {
  margin: 0;
  padding: 0;
}
.rail-projects a {
  display: flex;
  align-items: baseline;
  gap: 11px;
  min-height: 35px;
  padding: 6px 5px;
  margin-inline: -5px;
  border-radius: 6px;
  color: #cecece;
  font-size: 14px;
  line-height: 1.6;
}
.rail-projects a:hover {
  background: #323232;
  color: #ebebeb;
}
.rail-projects a.current-project {
  color: #e0e0e0;
  background: #383838;
}
.rail-bottom {
  margin-top: auto;
  padding: 18px 4px 0;
  border-top: 1px solid var(--line);
}
.resume-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  font-size: 15px;
  font-weight: 600;
}
.resume-link svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.resume-link > span {
  margin-left: auto;
  color: var(--accent);
}
.resume-link:hover {
  color: var(--accent);
}
.rail-location {
  display: block;
  color: var(--quiet);
  font-size: 13px;
  margin-top: 14px;
}
.mobile-header, .rail-close, .menu-backdrop {
  display: none;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: #e3e3e3;
  color: #282828;
  font-weight: 600;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}

/* SHARED PAGE LAYOUT: breadcrumbs, headings, and footer. */
.main-content {
  position: relative;
  z-index: 1;
  margin-left: var(--rail);
  padding: 0 clamp(30px,4.4vw,72px);
  max-width: 1700px;
}
.pagebar {
  display: flex;
  align-items: center;
  min-height: 67px;
  border-bottom: 1px solid var(--line);
}
.pagebar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.pagebar nav a:hover {
  color: var(--accent);
}
.pagebar nav > span[aria-current] {
  color: var(--ink);
}
.pagebar nav > span:not([aria-current]) {
  color: #929292;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 25px;
  margin-top: 55px;
  padding-block: 25px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.7;
}
.page-footer a {
  white-space: nowrap;
}
.page-footer a:hover {
  color: var(--accent);
}
.footer-separator {
  padding-inline: 8px;
  color: #939393;
}
.page-heading {
  padding: 36px 0 29px;
}
.page-heading h1 {
  max-width: 850px;
}
.page-lede {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.heading-link {
  margin-top: 18px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 21px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > .text-link {
  font-size: 15px;
  white-space: nowrap;
}

/* HOMEPAGE */
.home-hero {
  padding: 34px 0 36px;
}
.home-hero h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: 40px;
  line-height: 1.2;
}
.hero-summary {
  max-width: 760px;
}
.hero-summary > p {
  color: #d1d1d1;
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.current-role {
  display: block;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
  color: var(--accent);
}
.current-role > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}
.current-role:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  margin-top: 24px;
}
.home-work {
  padding-top: 27px;
  border-top: 1px solid var(--line);
}
.project-roster {
  border-top: 1px solid var(--line);
}
.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) 25px;
  align-items: center;
  gap: 15px;
  min-height: 137px;
  padding: 22px 10px;
  border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.project-row:hover, .project-row:focus-visible {
  border-radius: 2px;
  background: #343434;
}
.project-number {
  align-self: start;
  padding-top: 1px;
}
.row-category {
  display: block;
  margin-bottom: 7px;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.6;
}
.row-category > span {
  padding-inline: 6px;
  color: #919191;
}
.project-name :is(h2,h3) {
  margin-bottom: 7px;
  font-size: 22px;
  line-height: 1.3;
}
.project-name p {
  max-width: 740px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}
.home-experience {
  padding-top: 40px;
}
.employment-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.employment-preview article {
  min-width: 0;
}
.employment-preview h3 {
  margin-bottom: 10px;
}
.employment-preview .eyebrow {
  font-size: 13px;
}
.employment-preview p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.employment-preview .preview-role {
  color: #dedede;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}
.roster-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 3px 0 21px;
}
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-filters button {
  min-height: 42px;
  padding: 8px 17px;
  border: 1px solid #666666;
  background: transparent;
  color: #dadada;
  font-size: 15px;
  line-height: 1.5;
  transition: background .12s;
}
.project-filters button:hover {
  background: #3f3f3f;
}
.project-filters button.active {
  background: #d5d5d5;
  border-color: #d5d5d5;
  color: #2d2d2d;
}
.roster-note {
  max-width: 740px;
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.8;
  margin: 24px 0 0;
}

/* PROJECT CASE STUDIES */
.case-header {
  padding-top: 31px;
}
.case-eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.case-eyebrow .eyebrow {
  margin: 0;
  font-size: 14px;
}
.context-label {
  display: inline-block;
  padding: 4px 10px;
  background: #3f3f3f;
  color: #dfdfdf;
  font-size: 13px;
  line-height: 1.6;
}
.case-header h1 {
  margin-bottom: 15px;
}
.case-subtitle {
  max-width: 780px;
  margin-bottom: 13px;
  font-size: 21px;
  line-height: 1.5;
}
.case-result {
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 25px;
}
.case-facts {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 24px;
  padding: 21px 0;
  border-block: 1px solid var(--line);
  margin: 0;
}
.case-facts dt {
  font-size: 13px;
  line-height: 1.5;
  color: var(--quiet);
  margin-bottom: 7px;
}
.case-facts dd {
  font-size: 15px;
  line-height: 1.6;
  color: #e0e0e0;
  margin: 0;
}
.case-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.case-toc a:hover {
  color: var(--accent);
}
.case-overview, .case-evidence {
  display: grid;
  grid-template-columns: 170px minmax(0,1fr);
  gap: 35px;
  padding-top: 35px;
}
.case-section-title h2 {
  font-size: 25px;
  margin: 0;
}
.case-problem {
  color: #dedede;
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 25px;
}
.case-overview-content h3 {
  font-size: 21px;
}
.contribution-list {
  color: #cacaca;
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 28px;
}
.contribution-list li::marker {
  color: #a4a4a4;
}
.tool-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 6px 15px;
  padding: 0;
  margin: 0 0 24px;
}
.tool-list li {
  padding: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #d7d7d7;
}
.tool-list li:not(:last-child)::after {
  content: '·';
  color: #9b9b9b;
  padding-left: 15px;
}
.case-limits {
  padding: 1px 0 1px 17px;
  border-left: 3px solid #7c7c7c;
  margin-top: 25px;
}
.case-limits h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.case-limits p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}
.sample-section {
  margin-top: 38px;
  border: 1px solid #686868;
  border-radius: 2px;
  overflow: hidden;
  scroll-margin-top: 24px;
}
.sample-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: #414141;
  color: #e5e5e5;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.sample-banner > span:last-child {
  color: #c8c8c8;
  font-weight: 400;
}
.sample-content {
  background: #303030;
  padding: 24px;
}
.sample-disclosure {
  padding-bottom: 19px;
  margin-bottom: 24px;
  border-bottom: 1px solid #575757;
  color: #d1d1d1;
  font-size: 15px;
  line-height: 1.7;
}
.sample-content h2 {
  font-size: 25px;
  margin-bottom: 16px;
}
.sample-intro {
  max-width: 750px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 27px;
}
.flow-figure {
  margin: 0 0 28px;
}
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 14px;
}
.flow-diagram > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  gap: 15px;
  padding: 15px;
  border: 1px solid #747474;
  border-radius: 2px;
}
.flow-diagram strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.flow-arrow {
  font-size: 22px;
  color: #b7b7b7;
}
.flow-figure figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: var(--quiet);
  margin-top: 12px;
}
.sample-notes {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 25px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.note-index {
  display: block;
  margin-bottom: 10px;
}
.sample-notes h3 {
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.sample-notes p {
  font-size: 16px;
  line-height: 1.8;
  color: #c6c6c6;
  margin: 0;
  overflow-wrap: anywhere;
}
.sample-checks {
  margin-top: 27px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.sample-checks h3 {
  font-size: 20px;
}
.sample-checks ul {
  list-style: none;
  margin: 0 0 17px;
  padding: 0;
}
.sample-checks li {
  position: relative;
  padding-left: 23px;
  font-size: 16px;
  line-height: 1.8;
  color: #cbcbcb;
}
.sample-checks li::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid #a9a9a9;
  border-radius: 3px;
}
.sample-checks > p {
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.case-evidence {
  padding-top: 36px;
  scroll-margin-top: 24px;
}
.case-evidence > div > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.case-evidence ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.case-evidence li {
  display: flex;
  align-items: baseline;
  gap: 17px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  color: #d2d2d2;
  font-size: 16px;
  line-height: 1.75;
}
.evidence-placeholder {
  min-width: 48px;
  font-size: 13px;
  color: #b8b8b8;
}
.next-project {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-top: 43px;
  padding: 25px 0 21px;
  border-top: 1px solid var(--line);
}
.next-project h2 {
  font-size: 25px;
  margin: 0;
}
.next-project:hover h2 {
  color: var(--accent);
}
.case-back {
  font-size: 15px;
}

/* EXPERIENCE */
.job {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.4fr);
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 10px;
  margin-bottom: 39px;
}
.job h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.job-role {
  color: #e3e3e3;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 20px;
}
.job > div > p:not(.job-role), .job ul {
  color: #cacaca;
  font-size: 17px;
  line-height: 1.8;
}
.job h3 {
  font-size: 21px;
  margin-top: 27px;
}
.job .scope-note {
  font-size: 15px !important;
  color: var(--muted) !important;
  padding-left: 16px;
  border-left: 3px solid #7f7f7f;
  margin-block: 23px;
}
.job .text-link {
  font-size: 16px;
}
/* ABOUT, SKILLS, AND EDUCATION */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 35px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.large-copy {
  color: #e2e2e2;
  font-size: 22px;
  line-height: 1.6;
}
.about-intro > div p, .about-outside > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}
.experience-skills, .experience-education, .about-outside, .about-contact {
  margin-top: 39px;
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 35px;
}
.skills-grid article {
  padding-top: 21px;
  border-top: 1px solid var(--line);
}
.skill-number {
  display: block;
  margin-bottom: 13px;
}
.skills-grid h3 {
  font-size: 22px;
}
.skills-grid p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 9px;
}
.education-list {
  border-top: 1px solid var(--line);
}
.education {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 25px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.education h3 {
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 7px;
}
.education p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}
.education > span {
  color: #d1d1d1;
  font-size: 14px;
  white-space: nowrap;
}
.education-status {
  display: block;
  color: #c6c6c6;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 7px;
}
.earlier-education {
  margin-top: 17px;
}
.earlier-education summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  padding-block: 8px;
}
.earlier-education[open] .education-list {
  margin-top: 14px;
}
.about-outside > p {
  max-width: 780px;
}
/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 45px;
  padding-top: 13px;
}
.contact-intro h2 {
  font-size: 26px;
  margin-bottom: 14px;
}
.contact-intro > p {
  color: #d8d8d8;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 7px;
}
.contact-intro .contact-location {
  color: var(--muted);
  margin-bottom: 23px;
}
.contact-fields dl {
  border-top: 1px solid var(--line);
  margin: 0;
}
.contact-fields dl > div {
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
}
.contact-fields dt {
  color: var(--quiet);
  font-size: 14px;
  margin-bottom: 8px;
}
.contact-fields dd {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.placeholder-note {
  color: var(--quiet);
  font-size: 15px;
  line-height: 1.8;
  margin-top: 21px;
}
/* RÉSUMÉ */
.resume-heading {
  padding-top: 32px;
  margin-bottom: 29px;
}
.resume-heading h1 {
  font-size: 36px;
  margin-bottom: 15px;
}
.resume-role {
  font-size: 22px;
  color: #e0e0e0;
  line-height: 1.5;
  margin-bottom: 13px;
}
.resume-heading > p:not(.eyebrow):not(.resume-role) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  margin-bottom: 23px;
}
.resume-page section {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 30px;
}
.resume-page section h2 {
  font-size: 26px;
  margin-bottom: 20px;
}
.resume-page section > p, .resume-work p, .resume-work li {
  color: #cccccc;
  font-size: 17px;
  line-height: 1.8;
}
.resume-work article + article {
  margin-top: 30px;
}
.resume-job-title {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: baseline;
}
.resume-job-title h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.resume-job-title > span {
  font-size: 14px;
  color: #c9c9c9;
  white-space: nowrap;
}
.resume-work article > p {
  margin-bottom: 16px;
}
.resume-work strong, .resume-tools strong, .resume-projects strong {
  color: #e7e7e7;
  font-weight: 600;
}
.resume-page .education-list {
  border-top: 0;
}
.resume-page .education:first-child {
  padding-top: 0;
}

/* Search results are normal links; focus and browser history remain predictable. */
.quick-search {
  padding-top: 14px;
}
.search-status {
  font-size: 13px;
  color: #dadada;
  line-height: 1.7;
  margin-bottom: 8px;
}
.quick-search ul {
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
}
.quick-search li {
  margin: 0;
  padding: 0;
}
.quick-search li + li {
  border-top: 1px solid #515151;
}
.quick-search li a {
  display: block;
  padding: 12px 6px;
  border-radius: 6px;
}
.quick-search li a:hover {
  background: #3c3c3c;
}
.quick-search li strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #ebebeb;
}
.quick-search li small {
  display: block;
  font-size: 13px;
  line-height: 1.75;
  color: #c5c5c5;
  margin-top: 6px;
}
.quick-search .empty-search {
  font-size: 14px;
  line-height: 1.8;
  color: #d1d1d1;
  padding: 8px 6px;
}
.all-results {
  display: block;
  border-top: 1px solid var(--line);
  padding: 13px 6px 0;
  font-size: 14px;
  color: #dadada;
}
.full-search-status {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 22px;
}
.search-result {
  display: block;
  border-top: 1px solid var(--line);
  padding: 23px 0;
}
.search-result > span {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: #c2c2c2;
  margin-bottom: 8px;
}
.search-result h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.search-result p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 0;
  max-width: 760px;
}
.search-result:hover h2 {
  color: var(--accent);
}
.search-empty {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.search-empty h2 {
  font-size: 26px;
}
.search-empty p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.search-nojs {
  color: #d3d3d3;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 12px;
}
.no-js .project-filters, .no-js .search-form {
  display: none;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 1100px) {
  :root {
    --rail: 240px;
  }
  .sidebar {
    padding-inline: 17px;
  }
  .identity {
    font-size: 20px;
    gap: 10px;
  }
  .identity small {
    font-size: 12px;
  }
  .main-content {
    padding-inline: 33px;
  }
  .case-overview, .case-evidence {
    grid-template-columns: 145px 1fr;
    gap: 27px;
  }
  .sample-notes {
    gap: 20px;
  }
  .flow-diagram {
    gap: 10px;
  }
  .flow-diagram > div {
    padding: 12px;
  }
}
@media (max-width: 900px) {
  :root {
    --rail: 230px;
  }
  .main-content {
    padding-inline: 28px;
  }
  .search-field kbd {
    display: none;
  }
  .identity-mark {
    width: 48px;
    height: 48px;
  }
  .home-hero h1 {
    font-size: 36px;
  }
  .employment-preview, .about-intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .employment-preview article + article {
    border-top: 1px solid var(--line);
    padding-top: 23px;
  }
  .case-facts {
    grid-template-columns: 1fr 1.3fr;
    gap: 20px;
  }
  .case-facts > div:last-child {
    grid-column: 1/-1;
  }
  .case-overview, .case-evidence {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sample-notes {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .sample-notes article {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0 12px;
  }
  .sample-notes p {
    grid-column: 2;
  }
  .note-index {
    margin-top: 4px;
  }
  .flow-diagram strong {
    font-size: 15px;
  }
  .flow-arrow {
    font-size: 19px;
  }
  .job {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 33px;
  }
  .resume-job-title {
    display: block;
  }
  .resume-job-title > span {
    display: block;
    margin-bottom: 13px;
  }
  .page-footer {
    align-items: start;
    font-size: 12px;
  }
}
@media (max-width: 740px) {
  html {
    scroll-padding-top: 85px;
  }
  body {
    font-size: 17px;
  }
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 67px;
    padding: 11px 22px;
    background: var(--rail-bg);
    border-bottom: 1px solid var(--line);
  }
  .mobile-header > a {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
  }
  .mobile-header > a > span:last-child {
    display: inline-block;
    margin-left: 11px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #747474;
    background: #373737;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
  }
  .menu-toggle > span {
    font-size: 17px;
    color: var(--accent);
  }
  .sidebar {
    z-index: 60;
    width: min(300px,calc(100% - 38px));
    padding: 25px 22px;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .14s;
  }
  .rail-top {
    gap: 14px;
  }
  .sidebar .identity {
    font-size: 20px;
    gap: 11px;
  }
  .sidebar .identity small {
    font-size: 12px;
  }
  .rail-close {
    display: block;
    flex-shrink: 0;
    min-width: 32px;
    min-height: 36px;
    border: 1px solid #5f5f5f;
    background: #353535;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
  }
  .menu-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    border: 0;
    background: #151515bf;
  }
  .menu-backdrop:focus-visible {
    outline: 0;
  }
  .search-field input {
    font-size: 14px;
  }
  .rail-projects a {
    min-height: 37px;
    font-size: 14px;
  }
  .main-content {
    margin-left: 0;
    padding-inline: 23px;
  }
  .pagebar {
    min-height: 51px;
  }
  .pagebar nav {
    font-size: 13px;
    gap: 9px;
  }
  .home-hero {
    padding: 27px 0 30px;
  }
  .home-hero h1 {
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 18px;
  }
  .hero-summary > p {
    font-size: 17px;
    line-height: 1.75;
  }
  .current-role {
    font-size: 16px;
  }
  .current-role > span {
    font-size: 14px;
    line-height: 1.75;
  }
  .hero-actions {
    gap: 23px;
    margin-top: 23px;
  }
  .hero-actions .text-link {
    font-size: 15px;
  }
  .button {
    font-size: 15px;
    padding-inline: 15px;
    gap: 17px;
  }
  .home-work {
    padding-top: 23px;
  }
  .section-heading {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading > .text-link {
    font-size: 14px;
  }
  .project-row {
    grid-template-columns: 23px 1fr 18px;
    gap: 10px;
    padding: 20px 0;
    min-height: 142px;
  }
  .row-category {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 8px;
  }
  .row-category > span {
    padding-inline: 4px;
  }
  .project-name :is(h2,h3) {
    font-size: 21px;
    line-height: 1.4;
  }
  .project-name p {
    font-size: 16px;
    line-height: 1.7;
  }
  .link-arrow {
    font-size: 20px;
  }
  .home-experience {
    padding-top: 31px;
  }
  .employment-preview p {
    font-size: 17px;
  }
  .employment-preview .preview-role {
    font-size: 16px;
  }
  .page-heading {
    padding: 28px 0 25px;
  }
  .page-heading h1, .case-header h1, .resume-heading h1 {
    font-size: 30px;
    line-height: 1.3;
  }
  .page-lede {
    font-size: 17px;
    line-height: 1.75;
  }
  .project-filters {
    gap: 7px;
  }
  .project-filters button {
    font-size: 14px;
    padding-inline: 14px;
  }
  .roster-toolbar {
    align-items: start;
    gap: 12px;
  }
  .roster-note {
    font-size: 14px;
  }
  .case-header {
    padding-top: 25px;
  }
  .case-eyebrow {
    margin-bottom: 17px;
    gap: 12px;
  }
  .case-eyebrow .eyebrow {
    font-size: 13px;
  }
  .context-label {
    font-size: 12px;
  }
  .case-subtitle {
    font-size: 20px;
    line-height: 1.5;
  }
  .case-result {
    font-size: 17px;
    line-height: 1.75;
  }
  .case-facts {
    gap: 19px 23px;
    padding-block: 19px;
  }
  .case-facts dt {
    font-size: 13px;
  }
  .case-facts dd {
    font-size: 14px;
    line-height: 1.75;
  }
  .case-toc {
    font-size: 14px;
    gap: 20px;
  }
  .case-overview, .case-evidence {
    padding-top: 28px;
    gap: 18px;
  }
  .case-section-title h2 {
    font-size: 25px;
  }
  .case-problem {
    font-size: 17px;
    line-height: 1.8;
  }
  .contribution-list {
    font-size: 17px;
    line-height: 1.8;
    padding-left: 18px;
  }
  .tool-list {
    gap: 5px 12px;
  }
  .tool-list li {
    font-size: 14px;
  }
  .tool-list li:not(:last-child)::after {
    padding-left: 12px;
  }
  .case-limits p {
    font-size: 16px;
  }
  .sample-section {
    margin-top: 30px;
    scroll-margin-top: 85px;
  }
  .sample-banner {
    padding: 11px 17px;
    font-size: 13px;
    gap: 8px;
  }
  .sample-banner > span:last-child {
    font-size: 12px;
  }
  .sample-content {
    padding: 20px 18px 23px;
  }
  .sample-disclosure {
    font-size: 15px;
  }
  .sample-content h2 {
    font-size: 24px;
  }
  .sample-intro {
    font-size: 17px;
    line-height: 1.8;
  }
  .flow-diagram {
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
  }
  .flow-diagram > div {
    flex-direction: row;
    align-items: center;
    justify-content: start;
    min-height: 66px;
    gap: 18px;
    padding: 14px;
  }
  .flow-diagram strong {
    font-size: 16px;
  }
  .flow-arrow {
    align-self: center;
    transform: rotate(90deg);
    line-height: 1;
    font-size: 20px;
  }
  .sample-notes {
    gap: 24px;
  }
  .sample-notes h3 {
    font-size: 19px;
  }
  .sample-notes p, .sample-checks li {
    font-size: 16px;
    line-height: 1.8;
  }
  .sample-checks h3 {
    font-size: 20px;
  }
  .sample-checks > p {
    font-size: 14px;
  }
  .case-evidence {
    scroll-margin-top: 85px;
  }
  .case-evidence li {
    gap: 14px;
    font-size: 16px;
    line-height: 1.8;
  }
  .next-project {
    margin-top: 32px;
    padding-block: 23px 18px;
  }
  .next-project h2 {
    font-size: 24px;
  }
  .job {
    padding-top: 23px;
    margin-top: 5px;
    margin-bottom: 32px;
  }
  .job h2 {
    font-size: 25px;
  }
  .job-role {
    font-size: 18px;
    line-height: 1.7;
  }
  .job > div > p:not(.job-role), .job ul {
    font-size: 17px;
  }
  .about-intro {
    gap: 7px;
  }
  .large-copy {
    font-size: 21px;
    line-height: 1.6;
  }
  .about-intro > div p, .about-outside > p {
    font-size: 17px;
    line-height: 1.8;
  }
  .experience-skills, .experience-education, .about-outside, .about-contact {
    margin-top: 30px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .skills-grid h3 {
    font-size: 21px;
  }
  .skills-grid p {
    font-size: 17px;
  }
  .education {
    gap: 20px;
    padding-block: 20px;
  }
  .education h3 {
    font-size: 18px;
  }
  .education p {
    font-size: 16px;
  }
  .education > span {
    font-size: 13px;
  }
  .education-status {
    font-size: 14px;
  }
  .contact-grid {
    padding-top: 7px;
    gap: 30px;
  }
  .contact-intro h2 {
    font-size: 25px;
  }
  .contact-fields dd {
    font-size: 18px;
  }
  .resume-heading {
    padding-top: 27px;
  }
  .resume-role {
    font-size: 20px;
    line-height: 1.6;
  }
  .resume-page section h2 {
    font-size: 25px;
  }
  .resume-job-title h3 {
    font-size: 21px;
  }
  .resume-page section > p, .resume-work p, .resume-work li {
    font-size: 17px;
  }
  .page-footer {
    margin-top: 40px;
    padding-block: 23px;
    gap: 19px;
    font-size: 12px;
  }
  .page-footer > span {
    max-width: 235px;
  }
  .no-js .mobile-header {
    position: static;
  }
  .no-js .menu-toggle {
    display: none;
  }
  .no-js .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 20px 23px;
    transform: none;
    visibility: visible;
  }
  .no-js .rail-top, .no-js .rail-projects, .no-js .rail-bottom {
    display: none;
  }
  .no-js .primary-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .no-js .nav-item {
    min-height: 42px;
    font-size: 15px;
  }
}
@media (max-width: 370px) {
  .main-content {
    padding-inline: 19px;
  }
  .mobile-header {
    padding-inline: 19px;
  }
  .mobile-header > a > span:last-child {
    display: none;
  }
  .home-hero h1 {
    font-size: 30px;
  }
  .hero-actions {
    gap: 20px;
  }
  .project-filters button {
    font-size: 13px;
    padding-inline: 12px;
  }
  .row-category {
    font-size: 12px;
  }
  .project-name :is(h2,h3) {
    font-size: 20px;
  }
  .case-facts {
    gap: 20px 16px;
  }
  .case-toc {
    gap: 16px;
    font-size: 13px;
  }
  .sample-content {
    padding-inline: 15px;
  }
  .sample-notes article {
    grid-template-columns: 17px 1fr;
    gap: 0 10px;
  }
  .sample-banner {
    padding-inline: 15px;
  }
  .education {
    display: block;
  }
  .education > span {
    display: block;
    margin-top: 10px;
  }
  .page-footer {
    flex-wrap: wrap;
  }
}

/* All sequence labels share one compact, fixed-width numeral style. */
.index-number,
.rail-projects a > .index-number,
.project-number,
.skill-number,
.note-index,
.flow-diagram > div > span {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -.025em;
  color: var(--quiet);
  min-width: 2ch;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* DECORATIVE ATMOSPHERE: opacity and colors can be adjusted here.
 * This layer cannot intercept clicks and is hidden when printing. */
.ambient-background {
  position: fixed;
  inset: 0 0 0 var(--rail);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.ambient-tints {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 180px 380px at 0% 10%, rgb(151 113 84 / .09), transparent 90%),
    radial-gradient(ellipse 210px 500px at 100% 35%, rgb(129 101 126 / .10), transparent 90%),
    radial-gradient(ellipse 180px 330px at 100% 95%, rgb(109 137 113 / .09), transparent 90%);
}
.ambient-background::before,
.ambient-background::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 112px;
  opacity: .075;
}
.ambient-background::before {
  left: 0;
  background: repeating-linear-gradient(130deg, transparent 0 24px, #bca49a 24px 25px, transparent 25px 49px);
  mask-image: linear-gradient(to right, #000, transparent);
}
.ambient-background::after {
  right: 0;
  background-image: linear-gradient(#9eafb8 1px, transparent 1px), linear-gradient(90deg, #9eafb8 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to left, #000, transparent);
}
/* POLYGON CONTROLS: --cut is the corner size. Keep keyboard focus visible. */
.button,
.search-field,
.nav-item,
.project-filters button,
.context-label,
.menu-toggle,
.rail-close,
.clear-search,
.search-field kbd,
.search-submit,
.skip-link { --cut: 4px;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.context-label, .clear-search, .search-field kbd {
  --cut: 2px;
}
.button:focus-visible,
.nav-item:focus-visible,
.project-filters button:focus-visible,
.menu-toggle:focus-visible,
.rail-close:focus-visible,
.clear-search:focus-visible,
.search-submit:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--focus-ink, #efefe8);
}
.button-accent, .project-filters button.active, .search-submit {
  --focus-ink: #343433;
}
.search-field:focus-within {
  border-color: #bdbdb7;
  box-shadow: inset 0 0 0 1px #bdbdb7;
}
@media (max-width: 740px) {
  .ambient-background {
    left: 0;
  }
  .ambient-tints {
    opacity: .65;
  }
  .ambient-background::before, .ambient-background::after {
    width: 60px;
    opacity: .025;
  }
}

/* ACCESSIBILITY: keep decoration still when requested. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* PRINT / SAVE AS PDF */
@media print {
  @page {
    margin: 16mm;
  }
  body {
    --bg: #fff;
    --surface: #fff;
    --ink: #171717;
    --muted: #444;
    --quiet: #555;
    --accent: #333;
    --line: #bbb;
    color-scheme: light;
    background: #fff;
    color: #171717;
    font-size: 10.5pt;
  }
  .ambient-background, .sidebar, .mobile-header, .menu-backdrop, .skip-link, .pagebar, .hero-actions, .project-filters, .case-toc, .case-back, .next-project, .print-button, .page-footer {
    display: none !important;
  }
  .main-content {
    margin: 0;
    padding: 0;
    max-width: none;
  }
  h1, .home-hero h1, .page-heading h1, .case-header h1, .resume-heading h1 {
    font-size: 24pt;
    line-height: 1.25;
  }
  h2, .section-heading h2, .case-section-title h2, .sample-content h2, .resume-page section h2 {
    font-size: 16pt;
    break-after: avoid;
  }
  h3, .project-name :is(h2,h3), .job h2, .resume-job-title h3 {
    font-size: 13pt;
    break-after: avoid;
  }
  .home-hero, .page-heading, .case-header, .resume-heading {
    padding-top: 0;
  }
  .hero-summary > p, .current-role, .current-role > span, .project-name p, .row-category, .project-number, .eyebrow, .employment-preview p, .employment-preview .preview-role, .case-subtitle, .case-result, .case-facts dt, .case-facts dd, .case-problem, .contribution-list, .tool-list li, .case-limits p, .case-evidence > div > p, .case-evidence li, .evidence-placeholder, .large-copy, .about-intro > div p, .skills-grid p, .about-outside > p, .education p, .education > span, .education-status, .resume-role, .resume-heading > p:not(.eyebrow):not(.resume-role), .resume-page section > p, .resume-work p, .resume-work li, .resume-work strong, .resume-tools strong, .resume-projects strong {
    color: #333;
    font-size: 10pt;
  }
  .project-row[hidden] {
    display: grid !important;
  }
  .project-row, .education, .skills-grid article, .resume-work article {
    break-inside: avoid;
  }
  .project-row {
    min-height: 100px;
    padding-block: 16px;
  }
  .employment-preview {
    grid-template-columns: 1fr 1fr;
  }
  .context-label {
    background: #eee;
    color: #333;
    font-size: 8pt;
  }
  .case-facts {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .case-facts > div:last-child {
    grid-column: auto;
  }
  .case-overview, .case-evidence {
    grid-template-columns: 130px 1fr;
    gap: 25px;
  }
  .sample-section {
    border-color: #888;
  }
  .sample-banner {
    background: #ebebeb;
    color: #333;
    font-size: 9pt;
  }
  .sample-banner > span:last-child, .sample-disclosure, .sample-intro, .sample-notes p, .sample-checks li, .sample-checks > p, .flow-figure figcaption, .flow-diagram > div > span, .flow-arrow, .note-index {
    color: #444;
    font-size: 9pt;
  }
  .sample-content {
    background: #fff;
    padding: 20px;
  }
  .sample-notes {
    grid-template-columns: repeat(3,1fr);
  }
  .sample-notes article {
    display: block;
  }
  .sample-notes h3, .sample-checks h3 {
    font-size: 12pt;
  }
  .flow-diagram > div {
    min-height: 75px;
    break-inside: avoid;
  }
  .flow-diagram strong {
    font-size: 10pt;
  }
  .job {
    grid-template-columns: 80px 1fr;
    gap: 25px;
  }
  .job-role, .job > div > p:not(.job-role), .job ul {
    color: #333;
    font-size: 10pt;
  }
  .job .scope-note {
    color: #444 !important;
    font-size: 9pt !important;
  }
  .job .text-link {
    display: none;
  }
  .education h3 {
    font-size: 11pt;
  }
  .contact-intro > p, .contact-intro .contact-location, .contact-fields dt, .placeholder-note {
    color: #444;
  }
  .contact-fields dd {
    font-size: 11pt;
  }
  .contact-intro .button {
    display: none;
  }
  .resume-page section {
    padding-top: 16px;
    margin-top: 22px;
  }
  .resume-job-title {
    display: flex;
  }
  .resume-job-title > span {
    color: #444;
    font-size: 9pt;
  }
  .resume-page .education {
    padding-block: 13px;
  }
  .search-result h2 {
    font-size: 14pt;
  }
  .search-result p, .search-result > span, .full-search-status {
    color: #444;
    font-size: 10pt;
  }
}

/* ==========================================================================
   VIEWPORT EDGE ACCENTS & DECORATION
   ========================================================================== */
#viewport-edge-accent {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 
    inset 0 2px 8px rgba(151, 113, 84, 0.22),
    inset -2px 0 10px rgba(129, 101, 126, 0.22),
    inset 0 -2px 12px rgba(109, 137, 113, 0.22),
    inset 2px 0 10px rgba(151, 113, 84, 0.2);
  border: 1px solid rgba(216, 216, 209, 0.06);
}

/* Bubbling / Floating Trivia Logos */
#bubbling-logos-container {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  overflow: hidden;
}

.bubbling-logo {
  position: absolute;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #d5d3ca;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .105;
  cursor: pointer;
  transition: opacity 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.bubbling-logo:hover {
  opacity: 0.85;
  stroke: var(--ink);
  transform: scale(1.25) !important;
}

#trivia-toast {
  position: fixed;
  bottom: 24px;
  left: calc(var(--rail) + 24px);
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  --cut: 4px;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  padding: 14px 18px;
  z-index: 10000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.25s ease;
  pointer-events: none;
}

#trivia-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 5px;
}

.toast-body {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

/* ==========================================================================
   HIDDEN PORTFOLIO TERMINAL
   ========================================================================== */
#terminal-chatbox-window {
  position: fixed;
  bottom: 80px;
  right: 28px;
  width: 600px;
  height: 480px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 110px);
  background: var(--rail-bg);
  border: 1px solid var(--line);
  --cut: 4px;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

#terminal-chatbox-window.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.terminal-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  user-select: none;
}

.terminal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.terminal-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-btn-ctrl {
  background: transparent;
  border: 1px solid #555;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 3px 8px;
  --cut: 2px;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  transition: background 0.12s ease;
}

.term-btn-ctrl:hover {
  background: #444;
  color: #fff;
}

.term-btn-close:hover {
  background: #a33;
  color: #fff;
}

.terminal-quick-actions {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  background: #18191b;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.term-pill {
  padding: 3px 9px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  background: #27282b;
  color: var(--ink);
  border: 1px solid #484848;
  --cut: 2px;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease;
}

.term-pill:hover {
  background: var(--button);
  color: #232324;
}

.terminal-screen {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
  background: #151617;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
}

.terminal-screen.scanlines::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
  background-size: 100% 4px;
  opacity: 0.6;
}

.terminal-line {
  margin-bottom: 7px;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-line.cmd-echo {
  color: #ffffff;
  font-weight: 600;
}

.terminal-line.cmd-success {
  color: #b8e6b8;
}

.terminal-line.cmd-error {
  color: #e6a8a8;
}

.terminal-line.cmd-ascii {
  color: var(--accent);
  font-size: 12px;
}

.terminal-input-bar {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  gap: 8px;
}

.terminal-prompt-text {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.terminal-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: #ffffff;
}

/* Code Snippet Box inside Case Studies */
.code-preview-box {
  background: #1e1e20;
  border: 1px solid var(--line);
  --cut: 4px;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  margin: 24px 0;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #2a2a2c;
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--muted);
}

.code-content {
  padding: 16px;
  overflow-x: auto;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

/* SPA View Section Switching */
.view-section {
  display: none;
}
.view-section.active-view {
  display: block;
}

@media (max-width: 740px) {
  #terminal-chatbox-window {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 70px;
    height: 420px;
  }
  #trivia-toast {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}


/* Company metadata needs room for full organization names. */
.job-meta, .job-body { min-width: 0; }
.job-meta h2 { overflow-wrap: break-word; }
.profile-photo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 24px;
}
.about-contact { scroll-margin-top: 30px; }
@media (min-width: 741px) and (max-width: 1100px) {
  .job { grid-template-columns: 1fr; gap: 24px; }
}
@media print {
  #terminal-chatbox-window, #trivia-toast { display: none !important; }
}
