:root { color-scheme: light; --bg: #f7f6f2; --surface: #fcfbf8; --text: #202b29; --muted: #59625d; --line: #d8dcd4; --accent: #994521; --art: #e5e9df; --art-line: #bdc8b5; --focus: #245ebd; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --bg: #171e1c; --surface: #202925; --text: #f0f1e9; --muted: #b2beb5; --line: #3b4941; --accent: #f2ad85; --art: #28372d; --art-line: #4c6554; --focus: #a5c8ff; } }
:root[data-theme="dark"] { color-scheme: dark; --bg: #171e1c; --surface: #202925; --text: #f0f1e9; --muted: #b2beb5; --line: #3b4941; --accent: #f2ad85; --art: #28372d; --art-line: #4c6554; --focus: #a5c8ff; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--art-line); color: var(--text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 48px; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 10; background: var(--surface); padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 110px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.brand-mark { font: bold 29px Georgia, serif; border: 1px solid var(--line); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; padding-bottom: 4px; }
nav { display: flex; gap: 26px; margin-left: auto; }
nav a { text-decoration: none; color: var(--muted); padding-block: 12px; font-size: 14px; }
nav a:hover, nav a[aria-current] { color: var(--text); }
nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.pulse { position: relative; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.pulse::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: pulse-ring 2.6s ease-out infinite; }
@keyframes pulse-ring { 0% { transform: scale(.45); opacity: .9; } 60%, 100% { transform: scale(1.35); opacity: 0; } }
[data-page="contact"] .pulse::before { animation: none; }
@media (prefers-reduced-motion: reduce) { .pulse::before { animation: none; } }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--text); padding: 8px 12px; min-height: 44px; cursor: pointer; font-size: 13px; }
.theme-toggle > span:first-child { font-size: 21px; line-height: 1; }
.hero { display: grid; grid-template-columns: 1.8fr 1fr; align-items: center; gap: 50px; padding-block: 80px 96px; }
.eyebrow { margin: 0 0 20px; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(42px, 4.8vw, 64px); line-height: 1.12; letter-spacing: -.045em; margin-bottom: 28px; }
h1 em { font-weight: 400; color: var(--accent); }
h2 { font-size: 36px; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 24px; }
h3 { font-size: 21px; line-height: 1.35; letter-spacing: -.025em; }
p { margin-bottom: 20px; }
.intro { color: var(--muted); max-width: 580px; font-size: 18px; line-height: 1.7; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.button { display: inline-flex; gap: 10px; align-items: center; justify-content: center; text-decoration: none; background: var(--text); color: var(--bg); padding: 13px 21px; border-radius: 5px; font-size: 14px; border: 1px solid transparent; min-height: 44px; }
.button:hover { opacity: .85; }
.button-compact { padding: 11px 16px; font-size: 13px; }
.button-outline { background: transparent; color: var(--text); border-color: var(--line); }
.button-outline:hover { border-color: var(--accent); opacity: 1; }
.text-link { font-size: 14px; text-decoration: none; padding-block: 12px; }
.text-link:hover { text-decoration: underline; }
.text-link span { margin-left: 8px; }
.live-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 40px; }
.live-strip .eyebrow { margin: 0; }
.live-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.live-list a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 100px; padding: 7px 13px; font-size: 12px; text-decoration: none; }
.live-list a > span { color: var(--accent); font-size: 9px; }
.live-list a:hover { border-color: var(--accent); }
.hero-art { aspect-ratio: 1; border-radius: 50% 50% 6px 6px; background: var(--art); position: relative; overflow: hidden; display: grid; place-items: center; }
.art-orbit { position: absolute; width: 135%; height: 52%; border: 1px solid var(--art-line); border-radius: 50%; transform: rotate(-35deg); }
.art-orbit::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); position: absolute; left: 20%; top: 3%; }
.art-monogram { font: italic 116px Georgia, serif; letter-spacing: -.09em; padding-right: 16px; position: relative; }
.art-monogram span { color: var(--accent); }
.art-caption { position: absolute; bottom: 25px; font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.about-section { border-block: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; padding-block: 48px; }
.about-section h2 { margin-bottom: 0; }
.about-copy p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.section { margin-block: 54px 70px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2, .section-heading .eyebrow { margin-bottom: 0; }
.section-heading .text-link { white-space: nowrap; }
.section-heading .eyebrow + h2 { margin-top: 14px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-list { display: flex; flex-direction: column; gap: 22px; }
.project-card { display: flex; flex-direction: column; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 26px; overflow-wrap: anywhere; }
.project-list .project-card { padding: 32px; }
.project-card.upcoming { border-style: dashed; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 30px; }
.project-card-copy .card-top { margin-bottom: 22px; }
.card-top .eyebrow { margin: 0; font-size: 10px; }
.card-number { font: italic 25px Georgia, serif; color: var(--muted); }
.project-card h3 { font-size: 20px; margin-bottom: 14px; }
.project-list .project-card h3 { font-size: 25px; }
.project-description { color: var(--muted); font-size: 14px; max-width: 720px; margin-bottom: 16px; }
.project-list .project-description { font-size: 16px; max-width: 820px; }
.card-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 12px; }
.status { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 4px 10px; white-space: nowrap; }
.status.live { color: var(--text); }
.status.live > span { color: var(--accent); }
.project-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.project-planned { font-size: 13px; padding-block: 10px; }
.project-gallery { margin: 0; }
.project-gallery-track { display: flex; gap: 12px; margin: 0; padding: 4px 2px 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.project-gallery-track li { flex: 0 0 auto; scroll-snap-align: start; }
.project-gallery-link { display: block; box-sizing: border-box; height: min(220px, 45vw); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); text-decoration: none; line-height: 0; }
.project-gallery-link:hover { border-color: var(--accent); }
.project-gallery-link:focus-visible { outline-offset: 2px; }
.project-gallery-link img { display: block; width: auto; height: 100%; max-width: 72vw; object-fit: cover; object-position: top center; }
.project-list .project-gallery-link { height: min(280px, 48.75vw); }
.project-list .project-gallery-link img { max-width: 78vw; }
.project-gallery-placeholder { border: 1px dashed var(--line); border-radius: 6px; padding: 28px 20px; text-align: center; }
.project-gallery-placeholder p { margin: 0; font-size: 13px; }
.lightbox { border: none; padding: 0; margin: auto; max-width: min(96vw, 1240px); width: 100%; background: transparent; color: var(--text); }
.lightbox::backdrop { background: rgba(8, 12, 11, .82); }
.lightbox-inner { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 16px; }
.lightbox-toolbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.lightbox-stage { display: flex; align-items: center; gap: 10px; }
.lightbox-figure { margin: 0; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.lightbox-viewport { flex: 1 1 auto; min-width: 0; min-height: 0; }
.lightbox-image { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; border-radius: 4px; }
.lightbox-caption { margin: 12px 4px 0; font-size: 13px; color: var(--muted); }
.lightbox-close, .lightbox-nav { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); min-width: 44px; min-height: 44px; cursor: pointer; font-size: 24px; line-height: 1; flex: 0 0 auto; }
.lightbox-nav { font-size: 28px; padding-inline: 4px; }
@media (max-width: 699px) {
  .lightbox { margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; }
  .lightbox::backdrop { background: rgba(8, 12, 11, .94); }
  .lightbox-inner { display: flex; flex-direction: column; box-sizing: border-box; width: 100%; min-height: 100dvh; max-height: 100dvh; border: none; border-radius: 0; padding: calc(8px + env(safe-area-inset-top, 0px)) 8px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); }
  .lightbox-toolbar { position: absolute; top: calc(8px + env(safe-area-inset-top, 0px)); right: 8px; z-index: 2; margin: 0; }
  .lightbox-close { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); }
  .lightbox-stage { position: relative; flex: 1 1 auto; min-height: 0; gap: 0; align-items: stretch; }
  .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); opacity: .92; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-figure { flex: 1 1 auto; min-height: 0; }
  .lightbox-viewport { overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; display: flex; align-items: flex-start; justify-content: center; max-height: calc(100dvh - 52px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  .lightbox-image { width: 100%; max-width: 100%; height: auto; max-height: none; border-radius: 6px; }
  .lightbox-caption { margin: 10px 6px 0; font-size: 12px; text-align: center; flex: 0 0 auto; }
  .project-gallery-link { height: min(180px, 45vw); }
  .project-list .project-gallery-link { height: min(180px, 48.75vw); }
}
.page-heading { padding-block: 72px 30px; }
.page-heading h1 { max-width: 820px; }
.section-note { margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.section-note strong { color: var(--text); font-weight: 600; }
.timeline { border-top: 1px solid var(--line); }
.experience-entry { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.experience-entry h3 { margin-bottom: 8px; }
.experience-entry .organization { color: var(--accent); font-size: 14px; }
.detail-list { margin: 0; padding-left: 20px; color: var(--muted); }
.detail-list li { padding-left: 4px; margin-bottom: 12px; }
.leadership-list { max-width: 860px; }
.experience-entry p:last-child { margin-bottom: 0; color: var(--muted); }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.skill-card { border-top: 1px solid var(--line); padding-top: 28px; }
.skill-card p { color: var(--muted); }
.contact-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; }
.contact-list { padding: 0; margin: 0; list-style: none; }
.contact-list li { border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list li > div { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px; text-decoration: none; }
.contact-list .muted { font-size: 13px; text-align: right; }
.contact-list a:hover { color: var(--accent); }
.contact-list small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 28px 36px; color: var(--muted); font-size: 12px; }
.site-footer a, .site-footer .analytics-preferences { padding-block: 12px; text-decoration: none; }
.analytics-preferences { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; }
.analytics-preferences:hover { color: var(--text); text-decoration: underline; }
.analytics-consent-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.analytics-consent-text { margin: 0; flex: 1 1 auto; min-width: 0; max-width: 65ch; font-size: 13px; line-height: 1.45; color: var(--text); }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.analytics-consent-button { border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text); padding: 10px 16px; min-height: 44px; min-width: 108px; cursor: pointer; font-size: 13px; }
.analytics-consent-button:hover { border-color: var(--accent); }
@media (min-width: 640px) {
  .analytics-consent { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; max-width: none; }
  .analytics-consent-inner { pointer-events: auto; border-radius: 10px 10px 0 0; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); box-shadow: 0 -8px 28px rgba(0, 0, 0, .08); }
  html.analytics-banner-open body { padding-bottom: var(--analytics-banner-offset, 0px); }
}
@media (max-width: 639px) {
  .analytics-consent { position: static; padding-block: 0 18px; pointer-events: auto; }
  .analytics-consent-inner { box-shadow: none; }
}
.lab-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lab-panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.lab-panel h2 { font-size: 28px; margin-bottom: 18px; }
.lab-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.lab-panel textarea { width: 100%; resize: vertical; min-height: 220px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.lab-hint { font-size: 13px; margin: 8px 0 18px; }
.lab-samples { margin-bottom: 22px; }
.sample-list { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sample-list a { font-size: 12px; text-decoration: none; border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px; }
.sample-list a:hover { border-color: var(--accent); }
.sample-list a.is-active { border-color: var(--accent); background: var(--bg); }
.lab-alert { color: var(--accent); font-size: 14px; margin-top: 16px; }
.dispatch-outcome { scroll-margin-top: 24px; }
.dispatch-result-block { margin-top: 0; scroll-margin-top: 32px; }
.dispatch-result-block #result-title:focus { outline: none; }
.dispatch-result-block #result-title:focus-visible { outline: 3px solid var(--focus); outline-offset: 8px; }
.dispatch-outcome-section { margin-block: 0 48px; }
.button.is-busy { cursor: wait; opacity: 0.75; }
.lab-diagram { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 16px; font-size: 11px; line-height: 1.5; overflow-x: hidden; white-space: pre-wrap; word-break: break-word; }
.lab-alert[tabindex="-1"]:focus { outline: none; }
.lab-alert[tabindex="-1"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
.rule-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.rule-list li { margin-bottom: 12px; }
.lab-result { border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--surface); }
.lab-result-headline { font-size: 20px; font-family: Georgia, serif; margin-bottom: 12px; }
.status-clear { border-color: var(--art-line); }
.status-escalate, .status-ambiguous, .status-unavailable { border-color: var(--accent); }
.prob-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prob-table th, .prob-table td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
@media (max-width: 1000px) { .wrap { padding-inline: 30px; } .hero { gap: 30px; } .art-monogram { font-size: 95px; } }
@media (max-width: 700px) {
  .wrap { padding-inline: 22px; }
  .site-header { flex-wrap: wrap; gap: 10px; padding-top: 20px; padding-bottom: 18px; }
  .brand { margin-right: auto; font-size: 14px; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; margin: 8px 0 0; }
  nav a { font-size: 13px; }
  .hero { grid-template-columns: 1fr; padding-block: 40px 48px; gap: 36px; }
  h1 { font-size: clamp(38px, 8.8vw, 58px); }
  h2 { font-size: 30px; }
  .hero-art { max-width: 270px; width: 100%; justify-self: center; }
  .art-monogram { font-size: 100px; }
  .about-section, .contact-section { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .live-strip { margin-top: 30px; }
  .section-heading { align-items: flex-start; }
  .section-heading > .eyebrow { max-width: 110px; text-align: right; }
  .section { margin-block: 40px 48px; }
  .project-list .project-card { padding: 26px; }
  .page-heading { padding-block: 40px 20px; }
  .experience-entry { grid-template-columns: 1fr; gap: 8px; }
  .site-footer { flex-wrap: wrap; gap: 4px 20px; padding-block: 22px; }
  .site-footer > span:nth-child(2) { order: 3; width: 100%; }
  .site-footer > a { margin-left: auto; }
  .lab-layout { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
  .project-gallery-track { padding: 2px 2px 6px; padding-inline-end: 8vw; gap: 12px; align-items: stretch; }
  .project-gallery-track li { flex: 0 0 auto; width: min(92vw, 420px); max-width: 92vw; scroll-snap-stop: always; }
  .project-gallery-link,
  .project-list .project-gallery-link { display: block; box-sizing: border-box; width: 100%; max-width: 100%; height: auto; min-height: 0; }
  .project-gallery-link picture,
  .project-list .project-gallery-link picture { display: block; line-height: 0; }
  .project-gallery-link img,
  .project-list .project-gallery-link img { display: block; width: 100%; height: auto; max-width: 100%; max-height: min(68dvh, 560px); object-fit: contain; object-position: top center; }
}
