:root {
  color-scheme: dark;
  --bg: #141d19;
  --surface: #1d2922;
  --surface-hover: #243329;
  --text: #edf0e8;
  --muted: #acb6ac;
  --subtle: #8b9c8e;
  --accent: #c7dfa4;
  --line: #35443a;
  --image-border: #405044;
  --selection: #435a35;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4ed;
  --surface: #ebece2;
  --surface-hover: #e2e6d9;
  --text: #202c24;
  --muted: #525f54;
  --subtle: #626e61;
  --accent: #3d5e24;
  --line: #c8cfc0;
  --image-border: #bdc6b5;
  --selection: #d8e8bd;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: var(--selection); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a[href], button, summary { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 550; color: var(--text); }
.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: 100; top: 12px; left: 12px; padding: 12px 20px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 10; pointer-events: none; }
.site-layout { max-width: 1344px; margin-inline: auto; padding: 88px 64px 0; display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.35fr); gap: clamp(64px, 7vw, 112px); align-items: start; }
.identity { position: sticky; top: 72px; min-height: calc(100svh - 144px); display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 2px; }
.location { display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 27px; }
.location-mark { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
h1 { font-size: clamp(46px, 4.6vw, 65px); font-weight: 600; line-height: 1.04; letter-spacing: -.055em; }
.name-period, .accent { color: var(--accent); }
.role { font-size: 18px; font-weight: 500; margin-top: 20px; letter-spacing: -.02em; }
.role-secondary { display: block; color: var(--muted); font-size: 15px; margin-top: 5px; font-weight: 400; }
.identity-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin-top: 14px; max-width: 290px; }
.section-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 55px; }
.section-nav a { min-height: 44px; display: flex; align-items: center; gap: 13px; width: max-content; font-size: 12px; color: var(--muted); font-weight: 500; transition: color .18s; }
.nav-number { font-size: 10px; font-variant-numeric: tabular-nums; color: var(--subtle); }
.nav-rule { display: inline-block; width: 25px; height: 1px; background: var(--line); transition: width .22s, background .22s; }
.section-nav a:hover, .section-nav a[aria-current] { color: var(--accent); }
.section-nav a:hover .nav-rule, .section-nav a[aria-current] .nav-rule { width: 48px; background: var(--accent); }
.identity-bottom { margin-top: 46px; }
.resume-link { display: inline-flex; min-height: 44px; gap: 10px; align-items: center; font-size: 13px; font-weight: 500; }
.resume-link:hover { color: var(--accent); }
.file-type { font-size: 9px; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); padding: 1px 4px; line-height: 1.5; }
.icon { width: 19px; height: 19px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.resume-link .icon { width: 14px; height: 14px; }
.identity-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 14px; }
.social-links { display: flex; gap: 21px; }
.social-links a { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.social-links a:hover { text-decoration: underline; text-underline-offset: 5px; color: var(--text); }
.theme-toggle { border: 1px solid transparent; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: none; color: var(--muted); }
.theme-toggle:hover { background: var(--surface); color: var(--accent); border-color: var(--line); }
.theme-toggle:active { background: var(--surface-hover); }
.moon-icon, [data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }
.sidebar-note { font-size: 10px; color: var(--subtle); margin-top: 15px; }
main { min-width: 0; }
.profile-switch { display: flex; gap: 24px; margin: -8px 0 28px; }
.profile-switch a { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 8px; border-bottom: 1px solid transparent; font-size: 11px; color: var(--muted); }
.profile-switch a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.profile-switch a:hover { color: var(--text); }
.text-link { text-decoration: underline; text-underline-offset: 4px; color: var(--text); }
.text-link:hover { color: var(--accent); }
.services-summary { margin-top: 26px; border-left: 1px solid var(--line); padding-left: 18px; }
.services-summary > p:not(.section-label) { color: var(--muted); font-size: 13px; margin-top: 8px; }
.services-summary .inline-link { margin-top: 5px; color: var(--accent); }
main > section, .contact-section { scroll-margin-top: 35px; }
.section-label { color: var(--text); font-size: 10px; letter-spacing: .12em; font-weight: 500; text-transform: uppercase; display: flex; gap: 12px; align-items: baseline; }
.section-label > span { color: var(--subtle); font-size: 10px; letter-spacing: 0; }
.about-heading { font-size: clamp(28px, 2.65vw, 38px); letter-spacing: -.045em; line-height: 1.25; font-weight: 450; margin-top: 27px; }
.about-heading em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.025em; }
.about-copy { margin-top: 25px; max-width: 560px; }
.about-copy p { color: var(--muted); font-size: 14px; line-height: 1.85; margin-top: 16px; }
.inline-link { font-size: 12px; display: inline-flex; gap: 12px; align-items: center; min-height: 44px; margin-top: 23px; font-weight: 500; }
.inline-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.inline-link .icon { width: 15px; height: 15px; }
.work-section { margin-top: 85px; }
.services-section, .process-section { margin-top: 85px; }
.intro-actions, .contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; }
.intro-actions .inline-link, .contact-actions .inline-link { margin-top: 0; }
.action-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--accent); background: var(--accent); color: var(--bg); padding: 10px 16px; font-size: 12px; font-weight: 550; border-radius: 3px; transition: background .2s, color .2s; }
.action-link:hover { background: transparent; color: var(--accent); }
.section-intro { color: var(--muted); font-size: 14px; line-height: 1.85; }
/* Layout adapted from 21st.dev Feature Section; sources in COMPONENTS.md. */
.service-list { display: grid; gap: 28px; margin-top: 32px; }
.service-entry { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; }
.service-number { display: grid; place-items: center; width: 40px; height: 40px; color: var(--accent); border: 1px solid var(--line); background: var(--surface); font-size: 11px; border-radius: 6px; }
.service-entry h3 { font-size: 16px; font-weight: 500; line-height: 1.5; }
.service-entry p { font-size: 13px; color: var(--muted); line-height: 1.85; margin-top: 9px; }
.service-entry .service-output { font-size: 11px; color: var(--accent); }
.service-note { margin-top: 30px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; line-height: 1.8; color: var(--muted); }
/* Connected-step layout adapted from 21st.dev How It Works Timeline. */
.process-list { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: process; }
.process-list li { position: relative; padding: 0 0 32px 62px; counter-increment: process; }
.process-list li::before { content: '0' counter(process); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 38px; height: 38px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); font-size: 11px; border-radius: 50%; }
.process-list li:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 44px; bottom: 6px; width: 1px; background: var(--line); }
.process-list li:last-child { padding-bottom: 0; }
.process-list h3 { font-size: 15px; font-weight: 500; padding-top: 5px; }
.process-list p { font-size: 13px; color: var(--muted); line-height: 1.85; margin-top: 8px; }
.workflow-preview { padding: 28px; background: var(--surface); border: 1px solid var(--image-border); border-radius: 6px; }
.workflow-preview ol { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.workflow-preview li { padding: 14px; border: 1px solid var(--line); font-size: 12px; }
.workflow-preview li span { display: block; color: var(--accent); font-size: 10px; margin-bottom: 8px; }
.workflow-preview > p:last-child { color: var(--muted); font-size: 10px; }
.role-enquiry { font-size: 12px; color: var(--muted); margin-top: 26px; line-height: 1.85; }
.component-credits { font-size: 10px; color: var(--subtle); margin-top: 10px; line-height: 1.8; }
.component-credits a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 981px) { .identity .section-nav { margin-top: 30px; gap: 0; } }
@media (max-height: 850px) and (min-width: 981px) { .identity { position: static; } }
@media (max-width: 540px) { .services-section, .process-section { margin-top: 65px; } .service-entry { gap: 14px; } .workflow-preview { padding: 20px; } .workflow-preview ol { grid-template-columns: 1fr; } }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 25px; padding-top: 24px; }
.section-heading h2 { font-size: 25px; font-weight: 500; letter-spacing: -.035em; line-height: 1.3; margin-top: 12px; }
.section-count { color: var(--subtle); font-size: 10px; white-space: nowrap; padding-bottom: 3px; font-variant-numeric: tabular-nums; }
.project-filters { display: flex; gap: 22px; margin-bottom: 28px; }
.project-filters button { min-height: 44px; background: none; border: 0; border-bottom: 1px solid transparent; padding: 0 0 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.project-filters button span { font-size: 9px; margin-left: 4px; color: var(--subtle); }
.project-filters button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.project-filters button:hover { color: var(--text); }
.project-filters button:active { border-color: var(--text); }
.project { margin-top: 47px; }
.project:first-child { margin-top: 0; }
.project-image-link { display: block; border-radius: 6px; }
.project-media { aspect-ratio: 1.6; position: relative; overflow: hidden; border-radius: 6px; border: 1px solid var(--image-border); background: var(--surface); }
.project-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-media img.is-missing { display: none; }
.media-fashley { background: #ede3d5; }
.visit-label { position: absolute; right: 14px; bottom: 14px; padding: 9px 12px; background: #141d19; color: #edf0e8; font-size: 10px; display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; border: 1px solid #405044; border-radius: 3px; }
.visit-label .icon { width: 14px; height: 14px; }
.project-image-link:hover .visit-label, .project-image-link:focus-visible .visit-label { opacity: 1; transform: none; }
.project-meta { margin-top: 18px; display: flex; justify-content: space-between; gap: 15px; color: var(--subtle); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.project h3 { font-size: 23px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; margin-top: 9px; }
.project h3 a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.project h3 .icon { width: 17px; height: 17px; color: var(--subtle); transition: transform .2s; }
.project h3 a:hover { color: var(--accent); }
.project h3 a:hover .icon { transform: translate(2px, -2px); color: var(--accent); }
.project-description { color: var(--muted); font-size: 13px; line-height: 1.85; margin-top: 7px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 15px; color: var(--accent); font-size: 10px; }
.project-tags li { line-height: 1.5; }
.project-details { margin-top: 15px; }
.project-details summary { min-height: 44px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; list-style: none; }
.project-details summary::-webkit-details-marker { display: none; }
.project-details summary > span { font-size: 18px; color: var(--subtle); font-weight: 300; transition: transform .2s; }
.project-details[open] summary > span { transform: rotate(45deg); }
.project-details summary:hover { color: var(--accent); }
.project-details > div { padding: 1px 0 17px; }
.project-details p { color: var(--muted); font-size: 12px; line-height: 1.85; margin-top: 10px; }
.project-compact { border: 1px solid var(--line); padding: 24px; border-radius: 6px; display: grid; grid-template-columns: 55px 1fr; gap: 20px; }
.compact-mark { color: var(--text); font-size: 33px; font-weight: 600; line-height: 1; padding-top: 8px; }
.compact-mark span { color: var(--accent); }
.project-compact .project-meta { margin-top: 0; }
.project-compact h3 { font-size: 20px; margin-top: 5px; }
.experience-section { margin-top: 100px; }
.experience-list { margin-top: 36px; }
.experience-entry { display: grid; grid-template-columns: 115px 1fr; gap: 23px; margin-top: 32px; }
.experience-entry:first-child { margin-top: 0; }
.experience-date { color: var(--subtle); font-size: 9px; padding-top: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.experience-entry h3 { font-weight: 500; font-size: 14px; line-height: 1.6; }
.company { color: var(--accent); font-size: 12px; margin-top: 3px; }
.company span { color: var(--muted); font-size: 10px; }
.experience-entry div > p:last-child { font-size: 12px; color: var(--muted); line-height: 1.85; margin-top: 10px; }
.experience-section > .inline-link { margin-top: 30px; }
.toolkit { margin-top: 38px; padding: 24px 0; }
.toolkit .section-label { color: var(--subtle); }
.toolkit ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.contact-section { margin-top: 100px; padding-bottom: 30px; }
.contact-section h2 { font-size: clamp(35px, 3.3vw, 45px); font-weight: 450; line-height: 1.15; letter-spacing: -.045em; margin-top: 25px; }
.contact-section > div > p:not(.section-label) { color: var(--muted); font-size: 13px; line-height: 1.85; max-width: 390px; margin-top: 20px; }
.contact-email { display: inline-flex; gap: 18px; align-items: center; font-size: clamp(14px, 1.6vw, 20px); margin-top: 24px; padding-bottom: 8px; border-bottom: 1px solid var(--accent); color: var(--accent); min-height: 44px; }
.contact-email:hover { color: var(--text); border-color: var(--text); }
.page-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 80px; padding-top: 16px; color: var(--subtle); font-size: 10px; }
.page-footer a { min-height: 44px; display: inline-flex; gap: 10px; align-items: center; }
.page-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.colophon { color: var(--subtle); font-size: 9px; margin-top: 7px; }
.research-interests { margin-top: 25px; }
.research-interests > p:last-child { color: var(--muted); font-size: 12px; margin-top: 9px; line-height: 1.85; }
.research-study { margin-top: 35px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.study-meta { color: var(--subtle); font-size: 10px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.research-study h3 { font-size: 23px; line-height: 1.35; letter-spacing: -.025em; font-weight: 500; margin-top: 13px; }
.research-study > p:not(.study-context):not(.study-note) { color: var(--muted); font-size: 13px; line-height: 1.85; margin-top: 16px; }
.study-context { color: var(--subtle); font-size: 11px; margin-top: 11px; line-height: 1.75; }
.research-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 24px 0; }
.research-metrics dt { color: var(--muted); font-size: 10px; min-height: 32px; line-height: 1.5; }
.research-metrics dd { color: var(--accent); font-size: 28px; letter-spacing: -.04em; margin: 8px 0 0; line-height: 1.2; }
.research-metrics dd span { font-size: 14px; letter-spacing: 0; margin-left: 2px; }
.results-table-wrap { margin-top: 25px; }
.results-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; color: var(--muted); }
.results-table caption { text-align: left; font-size: 11px; color: var(--text); margin-bottom: 10px; }
.results-table th, .results-table td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.results-table thead th { color: var(--text); font-weight: 500; font-size: 10px; }
.results-table tbody th { width: 36%; font-weight: 400; color: var(--text); }
.study-note { color: var(--subtle); font-size: 10px; line-height: 1.8; margin-top: 18px; }
.finding-note { background: var(--surface); padding: 20px; margin-top: 22px; border-radius: 4px; }
.finding-note > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.85; margin-top: 10px; }
.output-entry { padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 40px; }
.output-status { color: var(--accent); font-size: 10px; margin-bottom: 9px; }
.output-entry h3, .research-teaching > h3 { font-size: 16px; line-height: 1.6; font-weight: 500; }
.output-entry h4 { font-size: 14px; font-weight: 500; margin: 8px 0 0; }
.output-entry > p:not(.output-status):not(.study-meta) { color: var(--muted); font-size: 11px; line-height: 1.85; margin-top: 9px; }
.research-teaching { margin-top: 40px; }
@media (min-width: 1450px) { .site-layout { padding-top: 100px; } .identity { top: 90px; } }
@media (max-height: 760px) and (min-width: 981px) { .site-layout { padding-top: 48px; } .identity { top: 40px; min-height: calc(100svh - 80px); } .section-nav { margin-top: 28px; gap: 0; } .identity-bottom { margin-top: 25px; } .location { margin-bottom: 20px; } h1 { font-size: 52px; } }
@media (max-width: 1100px) { .site-layout { padding-inline: 40px; gap: 55px; grid-template-columns: minmax(270px, .9fr) minmax(0, 1.35fr); } .experience-entry { grid-template-columns: 1fr; gap: 5px; } .experience-date { padding: 0; } .project-meta { font-size: 8px; } }
@media (max-width: 980px) {
  .site-layout { display: block; padding: 48px 40px 0; max-width: 760px; }
  .identity { position: static; min-height: auto; padding-bottom: 42px; }
  .location { margin-bottom: 22px; }
  h1 { font-size: clamp(52px, 9vw, 76px); }
  h1 br { display: none; } h1 > span::before { content: ' '; }
  .identity-description { max-width: none; } .desktop-break { display: none; }
  .section-nav { margin-top: 28px; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
  .section-nav a { gap: 7px; } .nav-rule { display: none; }
  .identity-bottom { margin-top: 16px; }
  .identity-footer { margin-top: 0; border: 0; padding-top: 0; }
  .sidebar-note { display: none; }
  .about-section { padding-top: 30px; }
  .about-heading { font-size: 36px; }
  .about-copy { max-width: none; }
  .work-section { margin-top: 65px; }
  .section-count { font-size: 10px; }
  .project-meta { font-size: 9px; }
  .experience-entry { grid-template-columns: 125px 1fr; gap: 22px; }
  .contact-email { font-size: 20px; }
}
@media (max-width: 540px) {
  html { scroll-padding-top: 25px; }
  .site-layout { padding: 30px 24px 0; }
  .identity { padding-bottom: 30px; }
  h1 { font-size: clamp(47px, 12.5vw, 64px); }
  h1 br { display: initial; } h1 > span::before { content: none; }
  .location { font-size: 10px; margin-bottom: 23px; }
  .role { font-size: 17px; margin-top: 16px; }
  .identity-description { font-size: 13px; max-width: 270px; }
  .section-nav { gap: 0 19px; margin-top: 24px; }
  .section-nav a { font-size: 12px; gap: 6px; }
  .nav-number { font-size: 9px; }
  .social-links { gap: 20px; }
  .about-heading { font-size: 30px; margin-top: 20px; }
  .about-copy p { font-size: 13px; }
  .section-heading h2 { font-size: 22px; }
  .section-count { display: none; }
  .project-filters { gap: 24px; margin-bottom: 22px; }
  .project { margin-top: 39px; }
  .project-media { aspect-ratio: 1.4; }
  .project-media img { object-fit: cover; object-position: top left; }
  .visit-label { display: none; }
  .project-meta { font-size: 8px; gap: 8px; }
  .project h3 { font-size: 22px; }
  .project-description { font-size: 12px; }
  .project-tags { font-size: 9px; gap: 7px 12px; }
  .project-compact { padding: 18px; gap: 12px; grid-template-columns: 32px 1fr; }
  .compact-mark { font-size: 26px; }
  .experience-section { margin-top: 70px; }
  .experience-entry { grid-template-columns: 1fr; gap: 5px; margin-top: 30px; }
  .experience-date { font-size: 10px; }
  .contact-section { margin-top: 70px; }
  .contact-section h2 { font-size: 37px; }
  .contact-email { font-size: 15px; gap: 10px; }
  .page-footer { margin-top: 55px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
