:root {
  color-scheme: dark;
  --ink: #f8f4eb;
  --muted: #a6c1c8;
  --paper: #00202b;
  --panel: #002c3b;
  --line: #254553;
  --green: #ccf1fa;
  --lime: #66d3eb;
  --orange: #66d3eb;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --sans: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(#ffffff03 1px, transparent 1px), linear-gradient(90deg, #ffffff03 1px, transparent 1px);
  background-size: 44px 44px;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--orange); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
img { display: block; max-width: 100%; }
::selection { background: var(--orange); color: #001923; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 14px; transform: translateY(-160%); background: var(--orange); color: #001923; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.home-page::after { position: fixed; z-index: 0; inset: 0; background: radial-gradient(380px circle at var(--pointer-x, 80vw) var(--pointer-y, 15vh), #66d3eb12, transparent 68%), radial-gradient(520px circle at 8% 88%, #eb123f0a, transparent 70%); content: ''; pointer-events: none; }
.home-page .home-shell, .home-page .site-footer { position: relative; z-index: 1; }
.home-page .site-header { display: none; }
.home-page .home-shell { width: min(calc(100% - 72px), 1360px); margin: 0 auto; }
.home-layout { display: grid; grid-template-columns: minmax(255px, 310px) minmax(0, 820px); justify-content: space-between; gap: clamp(48px, 8vw, 120px); }
.profile-rail { position: sticky; top: 22px; align-self: start; display: flex; min-height: calc(100svh - 44px); flex-direction: column; padding: 30px 0 20px; }
.rail-mark { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; text-decoration: none; }
.rail-mark img { width: 38px; height: 38px; }
.rail-mark span { display: none; }
.rail-name { max-width: 310px; margin: 2px 0 8px; font-size: clamp(44px, 4.2vw, 52px); line-height: .98; letter-spacing: -.075em; font-weight: 600; }
.rail-role { margin: 19px 0 8px; color: var(--ink); font-size: 16px; font-weight: 600; }
.rail-intro { max-width: 290px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.rail-portfolio { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 12px; margin-top: 24px; padding: 0 15px; border: 1px solid #254553; border-left: 2px solid var(--orange); background: linear-gradient(105deg, #003344, #002c3b); color: var(--ink); font: 11px var(--mono); letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: background .18s, border-color .18s, transform .18s; }
.rail-portfolio:hover, .rail-portfolio:focus-visible { transform: translateX(3px); border-color: var(--orange); background: #003b4d; color: var(--ink); }
.rail-portfolio::before { width: 17px; height: 17px; flex: 0 0 auto; border: 1px solid #66d3eb77; background: linear-gradient(135deg, transparent 45%, #66d3eb44 46% 54%, transparent 55%); content: ''; }
.rail-portfolio-arrow { margin-left: auto; color: var(--orange); font-size: 14px; }
.rail-actions { display: grid; gap: 9px; margin-top: 20px; }
.rail-resume, .rail-contact { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid #2f5866; color: var(--ink); font: 11px var(--mono); letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: background .18s, border-color .18s, transform .18s; }
.rail-resume { border-left: 2px solid #66d3eb99; background: linear-gradient(105deg, #0b4556, #083a49); }
.rail-contact { border-color: #66d3eb66; border-left: 2px solid var(--orange); background: linear-gradient(105deg, #1a6175, #125062); }
.rail-resume::before, .rail-contact::before { width: 17px; height: 17px; flex: 0 0 auto; border: 1px solid #66d3eb99; content: ''; }
.rail-resume::before { background: linear-gradient(#66d3eb88, #66d3eb88) 3px 4px / 9px 1px no-repeat, linear-gradient(#66d3eb88, #66d3eb88) 3px 7px / 9px 1px no-repeat, linear-gradient(#66d3eb88, #66d3eb88) 3px 10px / 6px 1px no-repeat; }
.rail-contact::before { background: linear-gradient(35deg, transparent 49%, #66d3ebbb 50% 54%, transparent 55%) left / 50% 100% no-repeat, linear-gradient(-35deg, transparent 49%, #66d3ebbb 50% 54%, transparent 55%) right / 50% 100% no-repeat; }
.rail-resume:hover, .rail-resume:focus-visible, .rail-contact:hover, .rail-contact:focus-visible { transform: translateX(3px); border-color: var(--orange); }
.rail-resume:hover, .rail-resume:focus-visible { background: #0e5266; }
.rail-contact:hover, .rail-contact:focus-visible { background: #1f7288; }
.rail-button-arrow { margin-left: auto; color: var(--orange); font-size: 14px; }
.rail-resume-format { margin-left: -2px; padding: 2px 4px; border: 1px solid #66d3eb66; color: var(--orange); font-size: 8px; }
.rail-nav { display: grid; gap: 5px; margin-top: 24px; }
.rail-nav a { position: relative; display: flex; align-items: center; gap: 13px; width: fit-content; min-height: 44px; padding: 4px 8px 4px 0; color: var(--muted); font: 12px var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: color .18s; }
.rail-nav a span { width: 27px; color: #86a4ad; font-size: 10px; }
.rail-nav a::before { position: absolute; top: 50%; left: -10px; width: 2px; height: 0; background: var(--orange); content: ''; transform: translateY(-50%); transition: height .16s; }
.rail-nav a:hover, .rail-nav a[aria-current="location"] { color: var(--ink); }
.rail-nav a[aria-current="location"]::before { height: 22px; }
.rail-nav a[aria-current="location"] span { color: var(--orange); }
.rail-social a { color: var(--muted); font: 10px var(--mono); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
.rail-social a:hover { color: var(--orange); }
.rail-social { display: flex; gap: 8px; margin-top: auto; padding-top: 24px; }
.rail-social a { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: border-color .18s, color .18s, background .18s; }
.rail-social a:hover, .rail-social a:focus-visible { border-color: var(--orange); background: #66d3eb12; color: var(--orange); }
.rail-social svg { width: 18px; height: 18px; fill: currentColor; }
.rail-location { margin: 12px 0 0; color: #89a5ad; font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 761px) and (max-height: 900px) {
  .profile-rail { max-height: calc(100svh - 44px); min-height: 0; margin: 0 -6px 0 -12px; padding: 16px 6px 12px 12px; overflow-y: auto; scrollbar-width: thin; }
  .rail-portfolio, .rail-resume, .rail-contact { min-height: 44px; }
  .rail-portfolio { margin-top: 16px; }
  .rail-nav { gap: 0; margin-top: 12px; }
  .rail-nav a { min-height: 36px; }
  .rail-actions { gap: 7px; margin-top: 12px; }
  .rail-social { padding-top: 14px; }
}
.home-content { min-width: 0; }
.home-section { scroll-margin-top: 26px; padding: clamp(38px, 8vw, 40px) 0; }
.home-section:first-child { padding-top: clamp(66px, 9vh, 104px); border-top: 0; }
.about-section h2 { margin: 0 0 22px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.06; letter-spacing: -.06em; font-weight: 500; }
.home-section > .eyebrow, .home-section-heading .eyebrow { margin-bottom: 18px; }
.home-section h1 { max-width: 820px; margin-bottom: 28px; font-size: clamp(58px, 8vw, 104px); line-height: .94; letter-spacing: -.085em; text-transform: uppercase; font-weight: 500; }
.about-copy { max-width: 740px; margin-bottom: 17px; color: #d7e7e7; font-size: clamp(17px, 2vw, 20px); line-height: 1.75; }
.about-note { max-width: 700px; margin: 0; color: var(--muted); font-size: 14px; }
.focus-area-block { margin-top: 36px; }
.micro-heading { margin: 0 0 13px; color: var(--orange); font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.focus-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.focus-list li { display: grid; align-content: start; gap: 7px; padding: 15px 14px; border: 1px solid #254553; background: #002734; }
.focus-list li > svg { width: 25px; height: 25px; margin-bottom: 3px; color: var(--orange); fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.focus-area-block .focus-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.focus-list strong { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3; }
.focus-list span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.home-section-heading { margin-bottom: 24px; }
.home-section-heading .eyebrow { margin-bottom: 11px; }
.home-section-heading h2, .home-contact h2 { margin: 0; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.06; letter-spacing: -.06em; font-weight: 500; }
.experience-list, .work-list { border-top: 1px solid var(--line); }
.experience-row { display: grid; grid-template-columns: minmax(100px, 145px) minmax(0, 1fr); gap: 16px 24px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.experience-dates { padding-top: 3px; color: var(--orange); font: 9px/1.6 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.experience-main { display: grid; gap: 3px; }
.experience-main strong { font-size: 15px; font-weight: 700; }
.experience-main > span:not(.experience-summary) { color: #c6dadd; font-size: 13px; }
.experience-summary { max-width: 610px; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.experience-preview { display: grid; gap: 6px; padding: 0 0 0 15px; margin: 8px 0 0; color: #c6dadd; font-size: 12px; line-height: 1.65; }
.experience-preview li::marker { color: var(--orange); }
.experience-details { margin-top: 3px; }
.experience-details summary { display: flex; width: fit-content; min-width: 44px; min-height: 44px; align-items: center; gap: 9px; padding: 6px 10px 6px 0; color: var(--orange); cursor: pointer; font: 10px var(--mono); letter-spacing: .08em; list-style: none; text-transform: uppercase; }
.experience-details summary::-webkit-details-marker { display: none; }
.details-less { display: none; }
.experience-details[open] .details-more { display: none; }
.experience-details[open] .details-less { display: inline; }
.details-icon { position: relative; width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; }
.details-icon::before, .details-icon::after { position: absolute; top: 50%; left: 50%; width: 5px; height: 1px; background: currentColor; content: ''; transform: translate(-50%, -50%); }
.details-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .16s; }
.experience-details[open] .details-icon::after { transform: translate(-50%, -50%); }
.experience-details summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.experience-details ul { display: grid; gap: 6px; padding: 0 0 3px 15px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.experience-details li::marker { color: var(--orange); }
.recognition-block, .focus-area-block { margin-top: 38px; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--line); background: linear-gradient(115deg, #07313d, #002c3b); }
.about-feature-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.about-feature-heading > svg { width: 34px; height: 34px; flex: 0 0 auto; padding: 6px; border: 1px solid #66d3eb66; color: var(--orange); fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feature-kicker { margin: 0 0 2px; color: var(--orange); font: 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.about-feature-heading h3 { margin: 0; color: var(--ink); font-size: 19px; line-height: 1.2; letter-spacing: -.04em; font-weight: 600; }
.work-row { display: grid; grid-template-columns: 145px minmax(0, 1fr) 26px; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .2s, background .2s; }
.work-row:hover, .work-row:focus-visible { padding-right: 12px; padding-left: 12px; background: #ffffff05; }
.work-thumb { width: 145px; aspect-ratio: 1.72; overflow: hidden; border: 1px solid var(--line); background: #123844; }
.work-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; filter: saturate(.76); transition: transform .4s, filter .3s; }
.work-row:hover .work-thumb img, .work-row:focus-visible .work-thumb img { transform: scale(1.04); filter: saturate(1); }
.work-number { display: grid; width: 145px; aspect-ratio: 1.72; place-items: center; border: 1px solid var(--line); background: linear-gradient(135deg, #07313d, #002734); color: var(--orange); font: 16px var(--mono); }
.work-copy { display: grid; gap: 5px; }
.work-meta { color: var(--orange); font: 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.work-copy strong { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.work-copy > span:last-child { color: var(--muted); font-size: 11px; line-height: 1.55; }
.row-arrow { justify-self: end; color: var(--orange); transition: transform .2s; }
.work-row:hover .row-arrow, .work-row:focus-visible .row-arrow { transform: translate(3px, -3px); }
.archive-link { margin: 18px 0 0; text-align: right; }
.archive-link a { color: var(--orange); font: 10px var(--mono); letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.home-contact { padding-bottom: 70px; }
.home-contact h2 { max-width: 650px; margin-bottom: 18px; }
.home-contact > p:not(.eyebrow) { max-width: 640px; color: var(--muted); font-size: 14px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px 24px; margin-top: 25px; }
.contact-secondary { color: var(--ink); font: 10px var(--mono); text-decoration-color: var(--orange); text-transform: uppercase; }
.home-page .site-footer { width: min(calc(100% - 72px), 1360px); }

.site-header {
  width: min(calc(100% - 64px), var(--content));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; font-weight: 700; letter-spacing: -.035em; }
.brand img { width: 32px; height: 32px; filter: grayscale(1); }
.brand::after { content: ' / SOFTWARE + SYSTEMS'; color: var(--muted); font: 10px var(--mono); letter-spacing: .07em; }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 42px); }
.site-nav a { position: relative; color: var(--muted); font: 11px var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { position: absolute; right: 0; bottom: -12px; left: 0; height: 2px; background: var(--orange); content: ''; }
.page-shell { width: min(calc(100% - 64px), var(--content)); margin: 0 auto; }

.hero { position: relative; padding: clamp(76px, 10vw, 138px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero::before { position: absolute; top: 8%; right: -6vw; width: 47%; height: 90%; border: 1px solid #66d3eb20; content: ''; pointer-events: none; transform: skewY(-8deg); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: clamp(42px, 7vw, 100px); align-items: center; }
.hero-copy { max-width: 800px; }
.eyebrow { display: inline-flex; align-items: center; gap: 11px; margin: 0 0 25px; color: var(--orange); font: 10px/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { width: 22px; height: 1px; background: currentColor; content: ''; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: 23px; font-size: clamp(62px, 10.2vw, 132px); line-height: .91; letter-spacing: -.09em; font-weight: 500; }
.hero h1 { text-transform: uppercase; }
.hero-copy > p:not(.eyebrow) { max-width: 620px; color: #c6dadd; font-size: clamp(17px, 2vw, 20px); line-height: 1.72; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 18px; border: 1px solid var(--orange); background: var(--orange); color: #001923; font: 700 11px var(--mono); letter-spacing: .02em; text-decoration: none; transition: background .18s, color .18s, transform .18s; }
.button::after { content: '↗'; font-size: 14px; }
.button:hover { transform: translateY(-2px); background: transparent; color: var(--orange); }
.button.secondary { border-color: #89a5ad; background: transparent; color: var(--ink); }
.button.secondary:hover { border-color: var(--orange); background: var(--orange); color: #001923; }

.section { position: relative; padding: clamp(58px, 8vw, 94px) 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr); align-items: end; gap: 10px 40px; margin-bottom: 33px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
.section-heading h2 { margin: 0; font-size: clamp(31px, 4.7vw, 57px); line-height: 1.03; letter-spacing: -.065em; font-weight: 500; }
.section-heading > p:not(.eyebrow) { max-width: 460px; margin: 0; color: var(--muted); font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
@media (min-width: 521px) { .project-grid { grid-auto-rows: minmax(490px, auto); } }
.project-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, transform .25s; }
.project-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.project-card > a { display: flex; height: 100%; flex-direction: column; text-decoration: none; }
.project-visual { position: relative; aspect-ratio: 1.8; overflow: hidden; padding: 11px; background: #123844; border-bottom: 1px solid var(--line); }
.project-visual::after { position: absolute; inset: 0; border: 1px solid #f8f4eb18; content: ''; pointer-events: none; }
.project-visual img { display: block; width: 100%; height: 100%; object-fit: contain; filter: saturate(.76) contrast(1.06); transition: transform .5s, filter .4s; }
.project-card:hover .project-visual img { transform: scale(1.025); filter: saturate(1) contrast(1.05); }
.project-card.text-only > a::before { display: block; aspect-ratio: 1.8; border-bottom: 1px solid var(--line); background: url('mark.svg') center / 34px no-repeat, #123844; content: ''; }
.project-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 21px 21px; }
.project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--orange); font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.project-card h3 { margin: 11px 0 8px; font-size: 23px; line-height: 1.15; letter-spacing: -.05em; font-weight: 500; }
.project-card p { margin: 0; color: var(--muted); font-size: 13px; }
.project-card .tag-list { margin-top: auto; padding-top: 19px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; list-style: none; }
.tag-list li { padding: 4px 8px; border: 1px solid #3b5962; color: #b4cbd0; font: 9px var(--mono); letter-spacing: .04em; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 19px; color: var(--orange); font: 11px var(--mono); text-transform: uppercase; }
.text-link::after { content: '→'; transition: transform .2s; }
.project-card:hover .text-link::after { transform: translateX(4px); }

.page-hero { padding: clamp(62px, 9vw, 110px) 0 50px; }
.page-hero h1 { max-width: 980px; margin-bottom: 19px; font-size: clamp(48px, 8vw, 94px); }
.page-hero > p:last-child { max-width: 700px; color: var(--muted); font-size: 17px; }
.resume-page-hero { padding: 38px 0 22px; }
.resume-page-hero .eyebrow { margin-bottom: 12px; }
.resume-page-hero h1 { margin-bottom: 14px; font-size: clamp(36px, 5vw, 58px); }
.resume-page-hero > p:last-child { margin-bottom: 0; }
.resume-viewer { display: flex; flex-direction: column; width: 100%; height: min(86vh, 1200px); min-height: 620px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.resume-viewer iframe { display: block; flex: 1; width: 100%; height: 100%; border: 0; }
.resume-toolbar { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #002734; }
.resume-toolbar[hidden] { display: none; }
.resume-toolbar button { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font: 18px/1 var(--sans); }
.resume-toolbar button:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.resume-toolbar button:disabled { cursor: default; opacity: .4; }
.resume-toolbar .resume-fit { margin-left: 8px; font: 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.resume-toolbar output { min-width: 52px; color: var(--muted); font: 12px var(--mono); text-align: center; }
.resume-pages { flex: 1; min-height: 0; overflow: auto; padding: 16px; scrollbar-gutter: stable; }
.resume-pages[hidden] { display: none; }
.resume-page { position: relative; margin: 0 auto 16px; background: #fff; }
.resume-page:last-child { margin-bottom: 0; }
.resume-page canvas { display: block; width: 100%; height: 100%; }
.resume-page a { position: absolute; }
.resume-page a:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.resume-loading { margin: 0; color: var(--muted); font-size: 14px; }
.resume-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.resume-open { color: var(--muted); font-size: 13px; }
.resume-viewer.is-fallback { height: auto; min-height: 0; max-height: none; }
.resume-fallback { max-width: 640px; margin: 0; padding: 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.section-index { display: flex; align-items: baseline; gap: 20px; margin-top: 34px; padding-top: 15px; border-top: 1px solid var(--line); }
.section-index > span { flex: 0 0 auto; color: var(--orange); font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.section-index ol { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 0; list-style: none; }
.section-index a { color: var(--muted); font: 11px var(--mono); text-decoration: none; }
.section-index a::after { display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-top: 1px solid var(--orange); border-right: 1px solid var(--orange); content: ''; transform: rotate(45deg); }
.section-index a:hover { color: var(--ink); }
.portfolio-section { scroll-margin-top: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.portfolio-index { display: flex; align-items: center; gap: 22px; padding: 21px 0 16px; border-bottom: 1px solid var(--line); }
.portfolio-index-label { flex: 0 0 auto; color: var(--orange); font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.portfolio-index ol { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 0; list-style: none; }
.portfolio-index a { color: var(--muted); font: 11px var(--mono); text-decoration: none; }
.portfolio-index a::after { display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-top: 1px solid var(--orange); border-right: 1px solid var(--orange); content: ''; transform: rotate(45deg); }
.portfolio-index a:hover { color: var(--ink); }
.portfolio-page .portfolio-section:first-of-type { padding-top: 42px; }
.project-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(230px, .6fr); gap: clamp(30px, 6vw, 78px); align-items: start; }
.project-detail > div > .project-visual { aspect-ratio: auto; margin-bottom: 36px; border: 1px solid var(--line); }
.project-detail > div > .project-visual img { height: auto; max-height: min(72vh, 620px); }
.project-video { aspect-ratio: 16 / 9; margin-bottom: 36px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.project-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.project-detail aside { position: sticky; top: 24px; padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.project-detail aside h2 { margin-bottom: 15px; color: var(--orange); font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.project-detail aside p { color: var(--muted); font-size: 13px; }
.project-detail aside strong { color: var(--ink); font-weight: 500; }
.project-detail .project-content-section { padding: 25px 0 28px; }
.project-detail .project-content-section .section-heading { display: block; margin-bottom: 12px; }
.project-detail .project-content-section .section-heading .eyebrow { margin: 0 0 8px; }
.project-detail .project-content-section .section-heading h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.project-detail .project-content-section > p { margin: 0 0 10px; color: #c6dadd; }
.project-detail .project-content-section > p:last-of-type { margin-bottom: 0; }
.project-section-image { margin: 18px 0 0; }
.project-section-image img { display: block; width: 100%; max-height: 560px; object-fit: contain; background: #001923; }
.section-gallery { margin-top: 18px; }
.section-gallery .project-section-image { margin-top: 0; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.gallery-controls[hidden] { display: none; }
.gallery-button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 10px var(--mono); cursor: pointer; }
.gallery-button:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.gallery-button:disabled { opacity: .5; }
.gallery-status { color: var(--muted); font: 10px var(--mono); }
.prose { max-width: 740px; }
.prose h2 { margin: 40px 0 13px; font-size: 27px; line-height: 1.2; letter-spacing: -.045em; font-weight: 500; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #c6dadd; }
.prose ul { padding-left: 20px; }
.prose li { padding-left: 4px; margin-bottom: 8px; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 180px 1fr; gap: 5px 28px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.timeline-item > :first-child { grid-column: 1; grid-row: 1 / span 3; color: var(--orange); font: 10px/1.7 var(--mono); }
.timeline-item > :not(:first-child) { grid-column: 2; }
.timeline-item h3 { margin-bottom: 2px; font-size: 18px; letter-spacing: -.03em; font-weight: 500; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 13px; }
.contact-card { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--orange); background: #002c3b; color: var(--ink); }
.contact-card h2 { max-width: 550px; margin: 0 0 8px; font-size: clamp(30px, 5vw, 54px); line-height: 1.08; letter-spacing: -.06em; font-weight: 500; }
.contact-card p { max-width: 100%; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.contact-card a:not(.button) { color: var(--ink); text-decoration-color: var(--orange); }
.contact-card .button { flex: 0 0 auto; }
.contact-card p .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.site-footer { width: min(calc(100% - 64px), var(--content)); display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); letter-spacing: .03em; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); text-decoration-color: var(--orange); }
.site-footer a:hover { color: var(--orange); }

@media (max-width: 760px) {
  .site-header, .page-shell { width: min(calc(100% - 36px), var(--content)); }
  .site-footer { width: min(calc(100% - 36px), var(--content)); }
  .site-header { min-height: 72px; gap: 16px; }
  .brand { font-size: 13px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .brand::after { display: none; }
  .site-nav { gap: clamp(12px, 3vw, 20px); }
  .site-nav a { font-size: 10px; }
  .home-page .home-shell, .home-page .site-footer { width: min(calc(100% - 36px), var(--content)); }
  .home-layout { grid-template-columns: 1fr; gap: 0; }
  .profile-rail { position: relative; top: auto; min-height: 0; padding: 22px 0 18px; border-bottom: 1px solid var(--line); }
  .rail-name { max-width: 450px; font-size: clamp(40px, 7vw, 52px); }
  .rail-role { margin-top: 12px; }
  .rail-portfolio { margin-top: 17px; }
  .rail-nav { grid-template-columns: repeat(4, max-content); gap: 8px 19px; margin-top: 18px; }
  .rail-actions { margin-top: 15px; }
  .rail-social { margin-top: 18px; padding-top: 0; }
  .home-section:first-child { padding-top: 54px; }
  .work-row { grid-template-columns: 112px minmax(0, 1fr) 20px; gap: 12px; }
  .work-thumb, .work-number { width: 112px; }
  .focus-list, .focus-area-block .focus-list { grid-template-columns: 1fr; }
  .hero-grid, .project-detail { grid-template-columns: 1fr; }
  .hero { padding-top: 66px; }
  .hero-aside { min-height: 340px; background-size: min(75%, 330px) auto; background-position: 70% 38px; }
  .project-grid { gap: 14px; }
  .project-card-copy { padding: 18px; }
  .project-detail aside { position: static; }
}
@media (max-width: 520px) {
  body { font-size: 15px; }
  .site-header, .page-shell { width: min(calc(100% - 28px), var(--content)); }
  .site-footer { width: min(calc(100% - 28px), var(--content)); }
  .home-page .home-shell, .home-page .site-footer { width: min(calc(100% - 30px), var(--content)); }
  .home-layout { grid-template-columns: 1fr; gap: 0; }
  .profile-rail { position: relative; top: auto; min-height: 0; padding: 22px 0 18px; }
  .rail-mark { margin-bottom: 12px; }
  .rail-role { margin-top: 13px; }
  .rail-intro { max-width: 100%; }
  .rail-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin: 2px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
  .rail-nav a { gap: 8px; font-size: 9px; }
  .rail-actions { margin-top: 16px; }
  .rail-social { margin-top: 14px; }
  .rail-location { margin-top: 9px; }
  .home-section { padding: 55px 0; }
  .home-section:first-child { padding-top: 44px; }
  .home-section h1 { font-size: clamp(51px, 15vw, 75px); }
  .experience-row { grid-template-columns: 1fr; gap: 6px; }
  .work-row { grid-template-columns: 88px minmax(0, 1fr) 18px; gap: 10px; }
  .work-thumb, .work-number { width: 88px; }
  .work-copy strong { font-size: 14px; }
  .work-copy > span:last-child { font-size: 10px; }
  .archive-link { text-align: left; }
  .site-header { align-items: center; flex-wrap: wrap; padding: 13px 0 12px; }
  .site-nav { width: 100%; justify-content: space-between; order: 2; padding-top: 8px; }
  .site-nav a[aria-current="page"]::after { bottom: -8px; }
  .hero { padding: 58px 0 66px; }
  h1 { font-size: clamp(52px, 15vw, 75px); }
  .hero-grid { gap: 36px; }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .section-heading .eyebrow, .section-heading > p:not(.eyebrow) { grid-column: 1; }
  .section-index { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 24px; }
  .section-index ol { gap: 9px 18px; }
  .portfolio-index { align-items: flex-start; flex-direction: column; gap: 10px; padding: 18px 0 14px; }
  .portfolio-index ol { gap: 8px 17px; }
  .portfolio-page .portfolio-section:first-of-type { padding-top: 34px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-visual, .project-card.text-only > a::before { aspect-ratio: 1.55; }
  .page-hero { padding-top: 54px; }
  .resume-page-hero { padding: 34px 0 18px; }
  .resume-viewer { height: 76svh; min-height: 480px; max-height: 850px; }
  .timeline-item { grid-template-columns: 1fr; gap: 7px; }
  .timeline-item > :first-child, .timeline-item > :not(:first-child) { grid-column: 1; grid-row: auto; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .home-page::after { display: none; }
}
