@font-face {
  font-family: Inter;
  src: url('./assets/inter-latin-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('./assets/inter-latin-500-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
:root {
  font-family: Inter, Arial, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  color: #171b1f;
  background: #f7f8f6;
  --paper: #f7f8f6;
  --ink: #171b1f;
  --muted: #737e86;
  --blue: #537da0;
  --nav-blue: #6183a0;
  --navy: #193f63;
  --line: #dfe5e7;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { position: relative; isolation: isolate; margin: 0; min-height: 100svh; display: flex; flex-direction: column; overflow-x: clip; background: radial-gradient(ellipse at 50% 11%, #edf3f740, transparent 54%), var(--paper); }
/* Pages and popups share a slim thumb with no visible track or arrow buttons. */
html, .project-dialog { scrollbar-width: thin; scrollbar-color: #8195a5 transparent; }
@supports selector(::-webkit-scrollbar) {
  html, .project-dialog { scrollbar-width: auto; scrollbar-color: auto; }
  html::-webkit-scrollbar, .project-dialog::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
  html::-webkit-scrollbar-track, .project-dialog::-webkit-scrollbar-track { background: transparent; margin: 5px 0; }
  .project-dialog::-webkit-scrollbar-track { margin-block: 10px; }
  html::-webkit-scrollbar-thumb, .project-dialog::-webkit-scrollbar-thumb { background: #8195a5; border: solid transparent; border-width: 0 2px; background-clip: padding-box; border-radius: 999px; }
  html::-webkit-scrollbar-thumb:hover, .project-dialog::-webkit-scrollbar-thumb:hover { background-color: #617d92; }
  html::-webkit-scrollbar-button, .project-dialog::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  html::-webkit-scrollbar-corner, .project-dialog::-webkit-scrollbar-corner { background: transparent; }
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3, button, a, strong { font-weight: 400; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button svg, .contact-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: #d7e6f0; color: #183f5e; }
:focus-visible { outline: 2px solid #557d9f; outline-offset: 5px; }
h1:focus, main:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: -100px; left: 16px; padding: 12px 20px; background: var(--navy); color: white; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* Navigation scrolls with the document over the shared background. */
.site-header { position: relative; z-index: 10; margin: 0 5.5%; }
.navigation { display: flex; justify-content: center; gap: 12px; padding: 25px 0; max-width: 1050px; margin: auto; }
.navigation a { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 15px 21px; border-radius: 7px; color: var(--nav-blue); font-size: 15px; letter-spacing: -.2px; white-space: nowrap; transition: background 180ms, color 180ms; }
.navigation a span { display: block; transition: transform 180ms var(--ease); }
.navigation a:hover, .navigation a:focus-visible { color: var(--navy); background: #eaf0f4; }
.navigation a:hover span, .navigation a:focus-visible span { transform: scale(1.065); }
.navigation a[aria-current=page] { color: #123c62; background: #e0ebf3; }
.navigation a[aria-current=page] span { font-weight: 500; transform: scale(1.055); }

/* Shared layout and home */
main { flex: 1; min-width: 0; overflow: clip; }
.page { position: relative; width: min(1080px, 88%); margin: 0 auto; padding: 62px 0 85px; }
.home-page { max-width: 1080px; padding: 55px 0 70px; text-align: center; }
.home-backdrop { position: absolute; inset: 0; z-index: -1; overflow: clip; pointer-events: none; opacity: .6; mask-image: radial-gradient(ellipse at 50% 36%, #0003 0%, #0009 42%, #000 75%); }
/* Each route is one screen to the right of the previous route. Artwork can
   cross those screen boundaries while the outer layer clips to this viewport. */
.home-backdrop-drawing { position: absolute; inset: 0; transform: translateX(calc(var(--backdrop-page, 0) * -100%)); }
.home-backdrop-drawing::before {
  --gearbox-width: clamp(240px, 30vw, 487.5px);
  content: '';
  position: absolute;
  top: calc(52svh - var(--gearbox-width) * .86);
  left: 52%;
  width: var(--gearbox-width);
  aspect-ratio: 1 / 2.7;
  background: url('./assets/cycloidal-gearbox-wireframe.svg') center / contain no-repeat;
  opacity: .32;
  transform: translateX(-27%) rotate(-33deg);
  transform-origin: 0 0;
  pointer-events: none;
}
.background-wireframe { position: absolute; background-position: center; background-size: contain; background-repeat: no-repeat; pointer-events: none; opacity: .32; }
.wallet-wireframe {
  bottom: calc(30px + clamp(22px, 3vw, 37px));
  left: clamp(40px, 5vw, 90px);
  width: clamp(240px, 30vw, 400px);
  aspect-ratio: 2711 / 3323.2;
  background-image: url('./assets/wallet-wireframe.svg');
  transform: rotate(8deg);
}
@media (min-width: 641px) {
  .wallet-wireframe {
    top: clamp(135px, 20svh, 170px);
    bottom: auto;
  }
}
.experience-wireframes { position: absolute; inset: 0; transform: translateX(100%); }
.helios-wireframe {
  top: 90px;
  left: 42%;
  width: clamp(720px, 84vw, 1200px);
  aspect-ratio: 3267.6 / 3416.5;
  background-image: url('./assets/helios-wireframe.svg');
  opacity: .18;
  transform: translateX(-50%) rotate(-8deg);
}
.projects-wireframes { position: absolute; inset: 0; transform: translateX(200%); }
.towel-wireframe {
  bottom: calc(75px + clamp(20px, 3vw, 38px));
  right: clamp(45px, 5vw, 100px);
  width: clamp(250px, 30vw, 400px);
  aspect-ratio: 1014 / 796.2;
  background-image: url('./assets/towel-holder-wireframe.svg');
  opacity: .2;
  transform: rotate(-12deg);
}
.arm-wireframe {
  top: 20px;
  left: 36%;
  width: min(109.2vw, calc(93.6svh * 1.124), 1222px);
  aspect-ratio: 9075.9 / 8074.9;
  background-image: url('./assets/robotic-arm-wireframe.svg');
  opacity: .24;
  transform: translateX(-50%) rotate(6deg);
}
.hero { padding: 0 10px; }
.hero-mark { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; }
.hero-mark span { width: 27px; height: 1px; background: #c0d0dc; }
.hero-mark i { width: 6px; height: 6px; border: 1px solid #6e91af; transform: rotate(45deg); }
.portfolio-label { font-size: 11px; line-height: 1.6; letter-spacing: 2.2px; text-transform: uppercase; color: var(--blue); }
.hero h1 { font-size: clamp(55px, 7vw, 88px); letter-spacing: -5.8px; line-height: 1.12; margin-top: 22px; white-space: nowrap; }
.hero-mark-bottom { margin: 36px 0 0; }
.summary { max-width: 620px; margin: 34px auto 0; }
.home-introduction { display: grid; gap: 16px; text-wrap: pretty; }
.home-introduction .body-copy { line-height: 1.85; }
.featured-projects { margin-top: 72px; text-align: left; }
.featured-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.featured-heading-row h2 { font-size: 25px; letter-spacing: -.7px; }
.featured-projects .project-card-media { aspect-ratio: 4 / 3; }
.body-copy { font-size: 16px; line-height: 1.9; white-space: pre-line; }
.empty-copy { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 16px; color: var(--navy); padding: 8px 0; }
.site-footer { position: fixed; left: max(12px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); z-index: 20; width: max-content; margin: 0; padding: 0; pointer-events: none; font-size: 10px; line-height: 1.8; letter-spacing: .25px; color: #899299; background: var(--paper); }

/* Experience cards */
.experience-page { max-width: 940px; padding-top: 75px; }
.experience-list { display: grid; grid-auto-rows: 1fr; gap: 24px; padding: 0; list-style: none; margin: 0; }
.experience-item { min-width: 0; }
.experience-card { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 36px; width: 100%; height: 100%; min-height: 232px; padding: 32px; text-align: left; color: var(--ink); background: #fcfdfbf2; border: 1px solid #dce5eb; border-radius: 12px; box-shadow: 0 4px 20px #193f6305; transition: border-color 180ms, box-shadow 180ms, transform 180ms; }
.experience-card:hover, .experience-card:focus-visible { border-color: #98b3c8; box-shadow: 0 12px 32px #193f630d; transform: translateY(-2px); }
.experience-logo, .detail-dialog-logo { display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 1; background: #fff; border-radius: 9px; }
.experience-logo { width: 160px; padding: 12px; }
.experience-logo img, .detail-dialog-logo img { display: block; width: 100%; height: 100%; object-fit: contain; transform: scale(var(--logo-scale, 1)); }
.experience-initial { color: var(--navy); font-size: 42px; }
.experience-copy { min-width: 0; }
.experience-date { display: block; color: var(--blue); font-size: 12px; line-height: 1.8; }
.experience-copy .experience-date { padding-right: 36px; }
.experience-role { display: block; margin-top: 8px; font-size: 27px; letter-spacing: -.75px; line-height: 1.3; }
.experience-organization { display: block; margin-top: 9px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.experience-description { display: block; margin-top: 15px; font-size: 14px; line-height: 1.85; color: var(--muted); white-space: pre-line; }
.experience-action { position: absolute; top: 28px; right: 26px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-size: 21px; color: var(--navy); transition: transform 180ms; }
.experience-card:hover .experience-action, .experience-card:focus-visible .experience-action { transform: translate(2px, -2px); }

/* Projects */
.project-toolbar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 38px; }
.filter { min-height: 44px; background: transparent; border: 1px solid transparent; padding: 11px 19px; border-radius: 6px; font-size: 13px; color: #687b88; transition: background 140ms, color 140ms; }
.filter:hover { background: #eaf0f3; color: var(--navy); }
.filter.active { background: #e3edf4; color: #244c6d; border-color: #dbe6ee; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { display: flex; flex-direction: column; min-width: 0; padding: 0; text-align: left; color: inherit; overflow: hidden; border-radius: 9px; background: #fcfdfbf2; border: 1px solid #dfe7ec; outline-offset: 4px; transition: border-color 180ms, box-shadow 180ms, transform 180ms; }
.project-card-media { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #e9eff2; border-bottom: 1px solid #e0e7ec; }
.project-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 440ms var(--ease); }
.project-card-copy { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px; }
.project-card-title { display: block; font-size: 22px; letter-spacing: -.6px; line-height: 1.3; }
.project-card-purpose { display: block; font-size: 11px; line-height: 1.6; color: var(--blue); }
.project-card-description { display: block; font-size: 13px; line-height: 1.75; color: #697985; }
.project-card-action { display: block; margin-top: auto; padding-top: 8px; font-size: 12px; line-height: 1.7; color: var(--navy); }
.project-card:hover img, .project-card:focus img { transform: scale(1.035); }
.project-card:hover, .project-card:focus-visible { border-color: #96b2c7; box-shadow: 0 10px 24px #193f630c; transform: translateY(-2px); }
.empty-projects { color: var(--muted); text-align: center; padding: 50px 0; font-size: 14px; }

/* Project popup */
html.project-open { overflow: hidden; }
.project-dialog { position: fixed; width: min(960px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 64px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; color: var(--ink); background: var(--paper); border: 1px solid #dce5eb; border-radius: 16px; box-shadow: 0 24px 90px #0c25452e; }
.project-dialog::backdrop { background: #152b4566; backdrop-filter: blur(5px); }
.project-dialog[open] { animation: project-reveal 180ms var(--ease); }
.project-dialog[open]::backdrop { animation: project-shade 160ms ease-out; }
.project-dialog-toolbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 14px 0; pointer-events: none; }
.project-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #d9e4ec; border-radius: 50%; background: #edf3f8f5; color: var(--navy); box-shadow: 0 2px 8px #183f5e08; pointer-events: auto; transition: background 150ms; }
.project-close:hover { background: #dce9f3; }
.project-close svg { width: 18px; height: 18px; }
.related-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.related-project { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-align: left; color: var(--ink); background: #fff; border: 1px solid #d8e3eb; border-radius: 10px; transition: border-color 160ms, box-shadow 160ms; }
.related-project:hover { border-color: #7899b4; box-shadow: 0 6px 20px #183f5e12; }
.related-project-image { display: block; width: 100%; height: 180px; object-fit: contain; background: #edf2f5; border-bottom: 1px solid #e0e7ec; }
.related-project-copy { display: flex; flex-direction: column; gap: 10px; padding: 21px; flex: 1; }
.related-project-year { color: var(--blue); font-size: 12px; line-height: 1.6; }
.related-project-title { font-size: 24px; line-height: 1.3; letter-spacing: -.6px; }
.related-project-description { color: var(--muted); font-size: 13px; line-height: 1.7; }
.related-project-action { margin-top: auto; padding-top: 10px; color: var(--navy); font-size: 13px; line-height: 1.6; }
.project-detail { padding: 2px 48px 50px; }
.project-detail-header { display: flex; align-items: center; gap: 24px; padding-bottom: 25px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.detail-dialog-logo { flex: 0 0 90px; width: 90px; height: 90px; padding: 8px; }
.detail-dialog-heading { flex: 1; min-width: 0; }
#detail-dialog-dates { margin-top: 12px; }
#project-dialog-title { font-size: clamp(28px, 3.5vw, 38px); line-height: 1.25; letter-spacing: -1.4px; overflow-wrap: anywhere; }
#project-dialog-title:focus { outline: none; }
#project-dialog-purpose { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--blue); }
.project-detail-content { display: flex; flex-direction: column; gap: 23px; }
.project-detail-lead { font-size: 17px; line-height: 1.8; text-wrap: pretty; }
.project-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; list-style: none; }
.project-detail-tags + .project-detail-lead { margin-top: -7px; }
.project-detail-tags li { padding: 6px 10px; color: var(--blue); background: #eaf0f4; border: 1px solid #dde6ed; border-radius: 5px; font-size: 11px; line-height: 1.5; }
.project-detail-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin: 8px 0; }
.project-feature-copy { display: flex; flex-direction: column; gap: 17px; min-width: 0; }
.project-feature-copy .project-detail-heading { margin-top: 0; }
.project-feature-copy .project-detail-heading + .project-detail-text, .project-feature-copy .project-detail-heading + .project-detail-list { margin-top: -3px; }
.project-detail-feature .project-detail-image { margin: 0; }
.project-detail-feature .project-detail-video video { max-height: 450px; }
.project-detail-callout { padding: 23px 26px; border-left: 3px solid #7393ad; border-radius: 0 8px 8px 0; background: #edf2f5; margin: 8px 0 0; }
.project-callout-label { color: var(--navy); font-size: 13px; letter-spacing: .15px; line-height: 1.6; margin-bottom: 9px; }
.project-detail-links { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.project-detail-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 46px; padding: 12px 17px; border: 1px solid #ccdbe6; border-radius: 6px; font-size: 13px; line-height: 1.6; color: var(--navy); transition: background 150ms; }
.project-detail-link:hover { background: #e5edf3; }
.project-detail-link span { font-size: 19px; }
.project-detail-heading { margin-top: 14px; font-size: 22px; letter-spacing: -.6px; line-height: 1.4; overflow-wrap: anywhere; }
.project-detail-heading:first-child { margin-top: 0; }
.project-detail-heading + .project-detail-text, .project-detail-heading + .project-detail-list { margin-top: -12px; }
.project-detail-text, .project-detail-list { font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.project-detail-text { white-space: pre-line; }
.project-detail-list { margin: 0; padding-left: 22px; }
.project-detail-list li + li { margin-top: 7px; }
.project-detail-image { margin: 5px 0; width: 100%; min-width: 0; }
.project-detail-image.image-wide { max-width: 100%; }
.project-detail-image.image-medium { max-width: 520px; }
.project-detail-image.image-small { max-width: 320px; }
.project-detail-image.image-left { align-self: flex-start; }
.project-detail-image.image-center { align-self: center; }
.project-detail-image.image-right { align-self: flex-end; }
.project-detail-image img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #fff; border: 1px solid #e0e7ec; border-radius: 9px; }
.project-detail-image.image-tall { max-width: 440px; }
.project-detail-image.image-tall img { max-height: 900px; }
.project-image-button { display: block; width: 100%; padding: 0; background: transparent; border: 0; border-radius: 9px; cursor: zoom-in; }
.project-detail-video video { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #101820; border-radius: 7px; }
.project-detail-image figcaption { margin-top: 11px; font-size: 12px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.project-detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.project-detail-gallery .project-detail-image { max-width: 100%; }
.project-detail-gallery img { max-height: 440px; }
.project-detail-gallery video { height: 340px; }
.project-drawing-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-media-showcase { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; margin: 5px 0 0; }
.project-media-showcase .project-detail-image { margin: 0; }
.project-media-showcase img, .project-media-showcase video { width: 100%; height: auto; aspect-ratio: 1; max-height: none; object-fit: cover; object-position: center; border-radius: 9px; }
@keyframes project-reveal { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes project-shade { from { opacity: 0; } to { opacity: 1; } }

/* Resume */
#resume-download-container { display: flex; justify-content: center; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 14px 23px; min-height: 48px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; transition: background 180ms, transform 180ms; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.secondary-button { background: #edf2f5; color: var(--navy); border-color: #dce5eb; }
.secondary-button:hover { background: #e3edf4; }
.primary-button { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.primary-button:hover { background: #28577f; }
.button:disabled { color: #8798a5; background: #edf1f3; border-color: #e2e8ec; transform: none; }
.resume-viewer { max-width: 810px; min-height: 580px; margin: 36px auto 0; border: 1px solid #dfe5e8; border-radius: 7px; background: #fafbf9; box-shadow: 0 10px 35px #12324e04; overflow: hidden; }
.resume-placeholder { min-height: 580px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #879ba9; background: linear-gradient(#eff3f440, transparent); }
.resume-placeholder svg { width: 42px; height: 50px; fill: none; stroke: #9cb1c0; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 24px; }
.resume-placeholder p { font-size: 15px; color: #5a7386; }
.pdf-status { padding: 30px; line-height: 1.8; color: var(--muted); }
.pdf-sheet { position: relative; background: white; }
.pdf-sheet + .pdf-sheet { border-top: 8px solid var(--line); }
.pdf-sheet canvas, .pdf-sheet > img { display: block; width: 100%; height: auto; }
.pdf-text-layer { position: absolute; inset: 0; overflow: clip; text-align: initial; line-height: 1; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; --min-font-size: 1; --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size)); --min-font-size-inv: calc(1 / var(--min-font-size)); }
.pdf-text-layer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0 0; }
.pdf-text-layer > :not(.markedContent), .pdf-text-layer .markedContent span:not(.markedContent) { z-index: 1; --font-height: 0; font-size: calc(var(--text-scale-factor) * var(--font-height)); --scale-x: 1; --rotate: 0deg; transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv)); }
.pdf-text-layer .markedContent { display: contents; }
.pdf-text-layer ::selection { color: transparent; background: #80b4dc66; }

/* In-page document reader */
.document-reader { min-width: 0; }
.reader-toolbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 12px; border: 1px solid #dce5eb; border-radius: 8px; background: #edf2f5; color: var(--navy); }
.reader-button, .reader-zoom, .reader-page-input { min-height: 44px; border: 1px solid #ccdbe6; border-radius: 5px; background: var(--paper); color: var(--navy); font: inherit; font-size: 13px; }
.reader-button { min-width: 44px; }
.reader-button:hover:not(:disabled) { background: #dce9f3; }
.reader-button:disabled { opacity: .4; cursor: default; }
.reader-page-label { font-size: 13px; white-space: nowrap; }
.reader-page-input { width: 58px; padding: 6px; text-align: center; }
.reader-zoom { padding: 6px; }
.reader-status { padding: 10px 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.reader-viewport { max-height: 58dvh; min-height: 180px; overflow: auto; overscroll-behavior: contain; background: #e8eef1; border: 1px solid #dce5eb; border-radius: 5px; scrollbar-width: thin; scrollbar-color: #8195a5 transparent; }
.reader-viewport .pdf-sheet { margin-inline: auto; }
.project-detail-link { background: transparent; text-align: left; }
.project-featured-link { width: 100%; padding: 22px 24px; background: var(--navy); color: var(--paper); border-color: var(--navy); border-radius: 9px; box-shadow: 0 5px 18px #193f6318; }
.project-featured-link:hover { background: #28577f; }
.project-featured-link .project-link-copy { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.project-featured-link .project-link-title { font-size: 19px; line-height: 1.4; }
.project-featured-link .project-link-description { font-size: 13px; line-height: 1.6; color: #d5e3ef; }
@media (max-width: 600px) {
  .reader-toolbar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; padding: 8px; }
  .reader-page-label { text-align: center; font-size: 12px; }
  .reader-page-input { width: 42px; padding-inline: 2px; }
  .reader-zoom { grid-column: 1 / -1; justify-self: center; }
}

/* Contact links */
.contact-page { max-width: 640px; min-height: calc(100svh - 180px); display: flex; align-items: center; padding: 75px 0 110px; }
.contact-links { width: 100%; border-top: 1px solid var(--line); }
.contact-detail { display: flex; width: 100%; align-items: center; gap: 25px; padding: 35px 18px; text-align: left; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 3px; transition: background 180ms, color 180ms; }
.contact-detail:hover, .contact-detail:focus-visible { color: var(--navy); background: #eaf0f370; }
.contact-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px; background: #e6eef3; color: #4a7290; flex-shrink: 0; }
.contact-icon svg { width: 25px; height: 25px; }
.linkedin-icon { font-size: 27px; letter-spacing: -1.2px; }
.contact-text { min-width: 0; }
.contact-label { display: block; font-size: 18px; letter-spacing: -.35px; margin-bottom: 9px; }
.contact-value { display: block; color: var(--blue); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.external-arrow { margin-left: auto; padding-left: 8px; color: #7894a9; font-size: 24px; transition: transform 180ms; }
.contact-detail:hover .external-arrow { transform: translate(3px, -3px); }
.contact-copy-icon { margin-left: auto; padding-left: 8px; color: #7894a9; }
.contact-copy-icon svg { display: block; width: 22px; height: 22px; }
.contact-copy-status { min-height: 42px; padding: 12px 18px 0; color: var(--blue); font-size: 13px; line-height: 1.6; }
.noscript-message { padding: 24px; text-align: center; font-size: 14px; }
.noscript-message a { text-decoration: underline; }

@media (min-width: 1550px) {
  .home-page { padding-top: 85px; padding-bottom: 95px; }
  .site-header { margin-left: auto; margin-right: auto; width: min(1400px, 89%); }
}
@media (max-width: 900px) {
  .navigation { gap: 5px; }
  .navigation a { padding: 15px 16px; }
  .page { padding-top: 55px; padding-bottom: 65px; }
  .home-page { padding-top: 55px; }
  .hero h1 { font-size: 72px; letter-spacing: -4.5px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-page { padding: 65px 0 95px; }
}
@media (max-width: 640px) {
  .site-header { margin: 0 5%; }
  .navigation { gap: 3px; padding: 18px 0; }
  .navigation a { font-size: 13px; padding: 13px 10px; }
  .page { padding-top: 40px; padding-bottom: 55px; }
  .home-page { padding-top: 38px; padding-bottom: 55px; }
  .home-backdrop-drawing::before { --gearbox-width: 210px; opacity: .24; }
  .wallet-wireframe { left: 30px; width: 220px; opacity: .24; }
  .helios-wireframe { width: 164vw; opacity: .14; }
  .towel-wireframe { bottom: 90px; right: 35px; width: 240px; opacity: .14; }
  .arm-wireframe { top: 130px; width: min(130vw, calc(93.6svh * 1.124)); opacity: .18; }
  .hero { padding: 0; }
  .hero-mark { margin-bottom: 25px; }
  .portfolio-label { font-size: 8px; letter-spacing: 1.6px; }
  .hero h1 { font-size: clamp(37px, 9.2vw, 57px); letter-spacing: -2.5px; margin-top: 23px; }
  .hero-mark-bottom { margin: 30px 0 0; }
  .summary { margin-top: 28px; }
  .featured-projects { margin-top: 48px; }
  .featured-heading-row h2 { font-size: 22px; }
  .body-copy { font-size: 14px; }
  .experience-list { gap: 18px; }
  .experience-card { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; min-height: 210px; padding: 22px 18px; border-radius: 10px; }
  .experience-logo { width: 84px; padding: 5px; }
  .experience-date { font-size: 11px; }
  .experience-role { font-size: 21px; letter-spacing: -.45px; }
  .experience-organization { font-size: 13px; margin-top: 7px; }
  .experience-description { margin-top: 12px; font-size: 13px; }
  .experience-action { top: 18px; right: 14px; width: 28px; height: 28px; font-size: 19px; }
  .project-toolbar { gap: 5px; margin-bottom: 26px; }
  .filter { padding: 10px 13px; font-size: 12px; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 10px; }
  .project-dialog-toolbar { padding: 10px 10px 0; }
  .project-detail { padding: 6px 22px 32px; }
  .project-detail-header { gap: 16px; padding-bottom: 23px; margin-bottom: 25px; }
  .detail-dialog-logo { flex-basis: 68px; width: 68px; height: 68px; padding: 5px; }
  #project-dialog-title { letter-spacing: -.8px; }
  #project-dialog-purpose { font-size: 13px; }
  .project-detail-text, .project-detail-list { font-size: 14px; }
  .project-detail-lead { font-size: 15px; }
  .project-detail-heading { font-size: 20px; }
  .project-detail-gallery { grid-template-columns: 1fr; }
  .related-projects { grid-template-columns: 1fr; }
  .related-project-image { height: 170px; }
  .project-detail-feature { grid-template-columns: 1fr; gap: 24px; }
  .project-detail-feature .project-detail-image { max-width: 420px; justify-self: center; }
  .project-detail-feature .project-detail-video { max-width: 300px; }
  .project-detail-callout { padding: 19px 20px; }
  .project-detail-gallery video { height: auto; max-height: 400px; }
  .project-media-showcase { grid-template-columns: 1fr; gap: 20px; }
  .project-media-showcase .project-detail-image { max-width: 100%; }
  .project-media-showcase video { height: auto; max-height: none; }
  .resume-viewer, .resume-placeholder { min-height: 450px; }
  .resume-viewer { margin-top: 28px; }
  .contact-page { min-height: calc(100svh - 225px); padding: 55px 0 75px; }
  .contact-detail { gap: 16px; padding: 29px 4px; }
  .contact-icon { height: 44px; width: 44px; border-radius: 8px; }
  .contact-label { font-size: 16px; margin-bottom: 6px; }
  .contact-value { font-size: 13px; }
  .external-arrow { font-size: 21px; padding-left: 0; }
  .site-footer { font-size: 9px; }
}
@media (max-width: 540px) {
  .navigation { display: flex; flex-wrap: wrap; gap: 4px; padding: 15px 0; }
  .navigation a { flex: 0 0 calc(33.333% - 4px); min-height: 46px; padding: 13px 7px; font-size: 14px; }
}
@media (max-width: 480px) {
}
@media (hover: none) {
  .project-card-title { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
