/* Color and composition layer. Tokens and interaction rules: MASTER.md. */
:root {
  --paper: #f8f4eb;
  --ink: #25231f;
  --muted: #625e55;
  --accent: #5933ae;
  --accent-hover: #41227f;
  --line: #cbc4b7;
  --control-line: #857b6c;
  --surface: #fffdf7;
  --coral: #ff936f;
  --mint: #cceade;
  --lilac: #e1d7f5;
  --lime: #dfec9b;
  --orange: #ff936f;
  --gold: #f1c96b;
  --forest: #173e37;
  --forest-muted: #c1d6c9;
  --forest-line: #5c8071;
  --panel-ink: #25231f;
  --panel-muted: #514d44;
  --bridge: #a93c27;
  --art-purple: #41227f;
  --radius: 12px;
  --radius-panel: 24px;
}
html[data-theme="dark"] {
  --paper: #1e2523;
  --ink: #f8f4eb;
  --muted: #c1cbc4;
  --accent: #d6c1ff;
  --accent-hover: #e4d6ff;
  --line: #52625a;
  --control-line: #8a9b90;
  --surface: #29332e;
  --lime: #dfec9b;
  --orange: #ff936f;
}
.site-header { height: 96px; border: 0; }
.brand-mark, html[data-theme="dark"] .brand-mark { background: var(--accent); color: var(--paper); }
.nav-cta, html[data-theme="dark"] .nav-cta { background: var(--accent); color: var(--paper) !important; }
.nav-cta:hover { background: var(--accent-hover); }
.preference-trigger, .theme-toggle { background: var(--surface); }
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: stretch; padding-block: var(--space-2) var(--space-3); }
.hero-topline { grid-column: 1 / -1; padding-bottom: 4px; }
.hero-topline > p { color: var(--ink); font-size: 14px; }
.hero-topline > a { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; color: var(--ink); font-size: 14px; text-decoration: none; }
.hero-topline > a:hover { color: var(--accent); }
.hero-identity, .location-card { position: relative; min-width: 0; border-radius: var(--radius-panel); color: var(--panel-ink); overflow: hidden; }
.hero-identity { background: var(--coral); padding: 36px 40px; display: flex; flex-direction: column; }
.hero-kicker { font: 500 14px/1.5 "DM Mono", monospace; margin: 0; }
.hero .nameplate { font-size: clamp(88px, 9.6vw, 138px); line-height: .92; letter-spacing: -.075em; font-weight: 600; white-space: normal; margin: 28px 0 40px; }
.hero .nameplate span { color: var(--panel-ink); }
.hero-disciplines { display: flex; flex-wrap: wrap; gap: 8px; padding-right: 64px; margin-top: auto; }
.hero-disciplines span { border: 1px solid var(--panel-muted); padding: 6px 12px; border-radius: 100px; font-size: 14px; }
.hero-jump { display: grid; place-items: center; width: 52px; height: 52px; position: absolute; bottom: 32px; right: 32px; border-radius: 50%; background: var(--panel-ink); color: var(--coral); text-decoration: none; font-size: 32px; }
.hero-jump:hover { background: var(--forest); }
.location-card { background: var(--mint); padding: 36px 32px 20px; display: flex; flex-direction: column; }
.location-name { font-size: clamp(39px, 4.3vw, 62px); font-weight: 600; line-height: 1; letter-spacing: -.055em; margin: 20px 0 0; }
.bridge-art { display: block; width: calc(100% + 64px); height: auto; margin: auto -32px 0; min-height: 140px; }
.bridge-sun { fill: var(--gold); }
.bridge-hill { fill: var(--lime); }
.bridge-structure { stroke: var(--bridge); }
.bridge-water { stroke: var(--forest); }
.location-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 12px; font: 500 12px/1.5 "DM Mono", monospace; }
.hero-copy { grid-column: 1 / -1; min-width: 0; background: var(--surface); border-radius: var(--radius-panel); padding: var(--space-4); gap: 0 var(--space-8); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-copy #hero-title { min-width: 0; overflow-wrap: anywhere; font-size: clamp(31px, 3.1vw, 45px); max-width: 600px; }
.hero-lede, html[data-theme="dark"] .hero-lede { color: var(--ink); }
.hero-actions { gap: 12px; }
.button { gap: 20px; padding: 12px 16px; font-size: 14px; }
.button-primary, html[data-theme="dark"] .button-primary { background: var(--accent); color: var(--paper) !important; border-color: var(--accent); }
.button-primary:hover, html[data-theme="dark"] .button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button-secondary, html[data-theme="dark"] .button-secondary { border-color: var(--line); background: transparent; }
.button-secondary:hover, html[data-theme="dark"] .button-secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper) !important; }
.skills-section { margin-top: 0; padding: 24px 0 0; }
.skills-controls { padding-inline: 8px; }
.skills-controls p { color: var(--ink); font-weight: 700; }
.practice-strip { border: 0; background: var(--lilac); border-radius: var(--radius-panel); padding-block: 28px; color: var(--panel-ink); }
.practice-group { gap: 0; padding: 0; }
.practice-group p { color: var(--panel-muted); padding: 0 40px; border-right: 1px solid var(--panel-muted); min-width: 240px; }
.practice-group strong { color: var(--panel-ink); }
.section { padding-block: 88px; }
.section-heading { margin-bottom: 40px; }
.section-heading .eyebrow, .about-copy > .eyebrow, .publication > .eyebrow { color: var(--accent); font-family: "DM Mono", monospace; font-size: 13px; margin-bottom: 16px; }
.section-heading h2, .about-copy h2 { font-size: clamp(39px, 4.6vw, 66px); }
.project { background: var(--surface); border-radius: var(--radius-panel); padding: 12px; }
.project-featured { gap: 0; }
.project-visual { border-radius: 16px; }
.project-featured .project-visual { min-height: 560px; }
.project-copy { padding: 24px 20px 12px; }
.project-featured .project-copy { max-width: none; }
.project-copy h3 { margin-top: 16px; }
.project-copy > p:not(.project-index):not(.project-role), html[data-theme="dark"] .project-copy > p:not(.project-index):not(.project-role) { color: var(--ink); }
.role-match-badge { border-color: transparent; background: var(--lilac); color: var(--panel-ink); }
.case-study-flow { background: var(--paper); }
.tech-list span, .detail-tags span { background: var(--paper); border-color: transparent; }
.project-grid { margin-top: 24px; gap: 24px; }
.project-grid > .project { padding-top: 12px; }
.project-grid > .project:nth-child(2) { padding-top: 12px; }
.project-small .project-copy { max-width: none; }
.project-small .project-visual { min-height: 440px; height: 440px; }
.project-links .text-link { color: var(--accent); }
.expand-visual { border-color: var(--panel-ink); }
.handoff-art, .handoff-files span { background: var(--art-purple); }
.retrieval-art { background: var(--lime); }
.retrieval-flow span:nth-of-type(2) { background: var(--forest); }
.explore-heading { margin-top: 64px; padding-left: 4px; }
.technology-map, html[data-theme="dark"] .technology-map { background: var(--lilac); color: var(--panel-ink); border: 0; border-radius: var(--radius-panel); padding: 40px; }
.technology-map .eyebrow, .technology-map-grid span { color: var(--panel-muted); }
.technology-map-grid > div { border-color: var(--panel-muted); }
.technology-map-grid strong { color: var(--panel-ink); }
.support-card { background: var(--surface); border: 0; border-top: 6px solid var(--mint); border-radius: var(--radius-panel); }
.support-card:nth-child(3n+2) { border-top-color: var(--lilac); }
.support-card:nth-child(3n) { border-top-color: var(--coral); }
.support-card.role-match, html[data-theme="dark"] .support-card.role-match { background: var(--surface); border-color: var(--accent); }
.section-dark, html[data-theme="dark"] .section-dark { --ink: #f8f4eb; --paper: var(--forest); --muted: var(--forest-muted); --line: var(--forest-line); --accent: var(--lime); --surface: #234d42; background: var(--forest); color: var(--ink); }
.section-dark .eyebrow, .section-dark .timeline-date { color: var(--lime); }
.timeline-item { padding-block: 40px; }
.experience-view-lens { color: var(--muted); }
.about-grid { gap: 64px; }
.education-card { background: var(--surface); border: 0; padding: 8px; border-radius: var(--radius-panel); }
.capabilities { background: var(--lilac); color: var(--panel-ink); border-radius: var(--radius-panel); padding: 32px; align-self: start; }
.capabilities > .mono-label { font-family: "DM Mono", monospace; font-size: 13px; }
.capability { grid-template-columns: 36px 1fr; gap: 12px; border-color: var(--panel-muted); }
.capability > span { display: inline; color: var(--panel-muted); font-size: 14px; padding-top: 6px; }
.capability h3 { font-size: 23px; }
.capability p, html[data-theme="dark"] .capability p { color: var(--panel-muted); }
.publication-card { background: var(--surface); border: 0; border-radius: var(--radius-panel); padding: 32px; }
.publication-year, html[data-theme="dark"] .publication-year { background: var(--mint); color: var(--panel-ink); border-radius: var(--radius); padding: 16px 8px; text-align: center; }
.publication-card > a, html[data-theme="dark"] .publication-card > a { background: var(--lilac); color: var(--panel-ink); }
.contact-section, html[data-theme="dark"] .contact-section { background: var(--coral); color: var(--panel-ink); border-radius: 32px 32px 0 0; }
.contact-section .eyebrow, .contact-section h2, .contact-link, .footer-row, .footer-row a,
html[data-theme="dark"] .contact-section .eyebrow, html[data-theme="dark"] .contact-section h2,
html[data-theme="dark"] .contact-link, html[data-theme="dark"] .footer-row, html[data-theme="dark"] .footer-row a { color: var(--panel-ink); }
.footer-row { border-color: var(--panel-muted); }
.contact-link:focus-visible, .footer-row a:focus-visible, .hero-jump:focus-visible { outline-color: var(--panel-ink); }
.preference-dialog { border-radius: var(--radius-panel); }
.preference-option .option-copy::after { border-color: var(--control-line); }
.preference-trigger, .theme-toggle, .skills-toggle, .button-secondary, html[data-theme="dark"] .button-secondary { border-color: var(--control-line); }
.preference-option input:checked + .option-copy { background: var(--lilac); border-color: var(--accent); }
.preference-option input:checked + .option-copy strong { color: var(--panel-ink); }
.preference-option input:checked + .option-copy small, .preference-option input:checked + .option-copy em { color: var(--panel-muted); }
.preference-continue { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.preference-continue:not(:disabled):hover { background: var(--accent-hover); }
@media (max-width: 1100px) {
  .hero .nameplate { font-size: 9.6vw; }
  .hero-identity { padding: 32px; }
  .hero-disciplines { padding-right: 36px; }
  .hero-copy { gap: 0 32px; }
  .hero-actions .button { width: 100%; }
  .about-grid { gap: 32px; }
}
@media (max-width: 900px) {
  .site-header { height: 88px; }
  .hero { grid-template-columns: 1.2fr 1fr; }
  .hero .nameplate { font-size: 9.4vw; }
  .hero-identity, .location-card { padding: 28px 24px; }
  .hero-jump { right: 20px; bottom: 20px; width: 44px; height: 44px; }
  .hero-disciplines { max-width: 240px; padding-right: 40px; }
  .hero-disciplines span { font-size: 12px; padding: 4px 8px; }
  .location-name { font-size: 44px; }
  .bridge-art { width: calc(100% + 48px); margin-inline: -24px; }
  .hero-copy { padding: 28px; }
  .hero-copy #hero-title { font-size: 32px; }
  .hero-copy #hero-title br { display: none; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-copy { padding-inline: 12px; }
  .project-small .project-visual { height: 340px; min-height: 340px; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 0; }
  .hero-topline { display: flex; gap: 8px; }
  .hero-topline p { font-size: 12px; max-width: 230px; }
  .hero-topline > a { font-size: 0; gap: 0; }
  .hero-topline > a span { font-size: 24px; }
  .hero-identity { padding: 28px 24px; }
  .hero-jump { top: 24px; right: 24px; bottom: auto; }
  .hero .nameplate { font-size: clamp(66px, 20vw, 112px); margin-block: 24px 32px; }
  .hero-disciplines { max-width: none; padding-right: 0; }
  .hero-disciplines span { font-size: 12px; }
  .location-card { min-height: 270px; padding: 24px; }
  .location-name { font-size: 39px; margin-top: 12px; position: relative; z-index: 1; }
  .bridge-art { position: absolute; width: 64%; min-height: 0; bottom: 44px; right: 0; margin: 0; }
  .location-footer { margin-top: auto; padding-top: 24px; position: relative; }
  .location-footer span:last-child { font-size: 10px; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 20px; }
  .hero-copy #hero-title { font-size: 31px; }
  .hero-lede, .personalization-note, .hero-actions { grid-column: 1; }
  .hero-actions .button { width: 100%; }
  .skills-section { padding-top: 16px; }
  .practice-group p { min-width: 230px; padding-inline: 28px; }
  .section { padding-block: 56px; }
  .section-heading { gap: 20px; margin-bottom: 28px; }
  .section-heading h2, .about-copy h2 { font-size: 39px; }
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-featured .project-visual, .project-small .project-visual { height: 340px; min-height: 340px; }
  .project-copy { padding: 24px 8px 8px; }
  .project-copy h3 { font-size: 31px; }
  .technology-map { padding: 24px; }
  .capabilities { padding: 24px; }
  .publication-card { grid-template-columns: 1fr 48px; padding: 24px; gap: 20px 12px; }
  .publication-year { grid-column: 1; justify-self: start; padding: 8px 16px; }
  .publication-year br { display: none; }
  .publication-card > div { grid-column: 1 / -1; grid-row: 2; }
  .publication-card > a { grid-column: 2; grid-row: 1; }
  .publication-card h2 { font-size: 22px; }
  .contact-section { border-radius: 24px 24px 0 0; }
  .contact-section h2 { font-size: 46px; }
}
