:root {
  --ink: #111111;
  --copy: #555555;
  --soft-copy: #747474;
  --line: #dedede;
  --surface: #ffffff;
  --soft: #f5f5f5;
  --raised: #ebebeb;
  --accent-a: #19a7ce;
  --accent-b: #7662d7;
  --display: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", Consolas, monospace;
  --max: 1240px;
  --ease: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: var(--display); font-size: 15px; line-height: 1.6; }
body.is-presenting { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent-b); outline-offset: 4px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; left: 16px; top: -80px; padding: 10px 14px; background: var(--ink); color: white; transition: top var(--ease); }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; z-index: 10; top: 0; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 68px; display: flex; align-items: center; gap: 42px; }
.wordmark { font-size: 14px; font-weight: 800; letter-spacing: .16em; white-space: nowrap; }
.wordmark-mark { color: var(--accent-b); margin-left: 2px; }
.desktop-nav { display: flex; gap: 26px; color: var(--copy); font-size: 13px; }
.desktop-nav a, .back-top { transition: color var(--ease); }
.desktop-nav a:hover, .back-top:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.active-lens, .mono-label { color: var(--soft-copy); font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.active-lens { white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: 12px; padding: 0 18px; border: 1px solid var(--ink); cursor: pointer; transition: background var(--ease), color var(--ease), transform var(--ease), border-color var(--ease); }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #373737; }
.button-outline { background: white; color: var(--ink); }
.button-outline:hover { background: var(--soft); }
.button-small { min-height: 36px; padding: 0 13px; font-size: 12px; }
.hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: center; gap: 80px; padding-top: 90px; padding-bottom: 110px; }
.eyebrow { margin: 0 0 20px; color: var(--soft-copy); font: 500 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 880px; margin: 0; font-size: clamp(50px, 9vw, 128px); font-weight: 700; letter-spacing: -.08em; line-height: .91; }
.hero h1 span { color: #9a9a9a; }
.hero-role { margin: 38px 0 4px; font-size: 18px; font-weight: 700; }
.hero-lede { max-width: 420px; margin: 0; color: var(--copy); font-size: 18px; line-height: 1.45; }
.hero-current { display: grid; grid-template-columns: auto auto; gap: 5px 16px; max-width: 480px; margin: 42px 0 32px; padding: 15px 0 0; border-top: 1px solid var(--ink); font-size: 12px; }
.hero-current .muted { grid-column: 2; }
.muted { color: var(--soft-copy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-index { align-self: center; padding-left: 24px; border-left: 1px solid var(--line); }
.index-block { display: grid; gap: 9px; }
.index-block strong { font-size: 14px; font-weight: 600; }
.index-line { height: 74px; border-left: 1px solid var(--line); margin: 10px 0 10px 5px; }
.lens-section { padding-bottom: 72px; }
.section-heading h2, .philosophy-copy h2, .contact-section h2 { max-width: 760px; margin: 0; font-size: clamp(30px, 4.5vw, 62px); letter-spacing: -.06em; line-height: 1.03; }
.perspective-selector { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 46px; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.perspective-button { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; cursor: pointer; text-align: left; transition: background var(--ease), color var(--ease), padding var(--ease); }
.perspective-button:hover, .perspective-button.is-active { padding-left: 21px; background: var(--ink); color: white; }
.perspective-button.is-active { box-shadow: inset 4px 0 0 transparent; border-image: linear-gradient(180deg, var(--accent-a), var(--accent-b)) 1; }
.perspective-arrow { color: #999; font-size: 17px; }
.perspective-button:hover .perspective-arrow, .perspective-button.is-active .perspective-arrow { color: white; }
.lens-summary { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; margin-top: 26px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lens-summary p { max-width: 620px; margin: 0; color: var(--copy); }
.context-strip { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.context-strip-inner { display: flex; align-items: center; gap: 10px; min-height: 43px; color: var(--copy); font-size: 12px; }
.context-dot { width: 7px; height: 7px; display: inline-block; background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); }
.context-url { margin-left: auto; color: var(--soft-copy); font: 10px var(--mono); }
.section { padding-top: 120px; padding-bottom: 120px; }
.section-heading.with-rule { padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.section-intro { max-width: 490px; margin: 20px 0 0; color: var(--copy); }
.experience-list { border-bottom: 1px solid var(--line); }
.experience-item { display: grid; grid-template-columns: 180px minmax(0, 1fr) 180px; gap: 38px; padding: 34px 0 40px; border-bottom: 1px solid var(--line); transition: opacity var(--ease), transform var(--ease); }
.experience-item:last-child { border-bottom: 0; }
.experience-meta { display: grid; align-content: start; gap: 13px; }
.experience-meta strong { font-size: 12px; font-weight: 600; line-height: 1.4; }
.experience-main > h3 { max-width: 600px; margin: 0 0 28px; font-size: 22px; letter-spacing: -.035em; line-height: 1.35; font-weight: 600; }
.experience-main .eyebrow { margin-bottom: 12px; }
.theme-list { border-top: 1px solid var(--line); }
.theme-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); opacity: .78; transition: opacity var(--ease), background var(--ease); }
.theme-row.is-emphasized, .theme-row:hover { opacity: 1; background: var(--soft); }
.theme-row.is-emphasized { box-shadow: inset 3px 0 0 var(--accent-b); }
.theme-row strong { font-size: 13px; font-weight: 700; }
.theme-row p { max-width: 500px; margin: 3px 0 0; color: var(--copy); font-size: 13px; line-height: 1.5; }
.tag-list { display: flex; align-content: start; flex-wrap: wrap; justify-content: end; gap: 4px; }
.tag, .project-tech span { display: inline-block; padding: 3px 6px; color: var(--soft-copy); border: 1px solid var(--line); font: 9px var(--mono); text-transform: uppercase; }
.experience-skills > div { display: flex; flex-wrap: wrap; align-content: start; gap: 8px 0; margin-top: 14px; }
.experience-skills > div span { width: 100%; color: var(--copy); font-size: 11px; }
.section-gray { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 34px; background: var(--line); border: 1px solid var(--line); }
.project-card { min-height: 460px; display: flex; flex-direction: column; padding: 24px; background: var(--surface); transition: transform var(--ease), opacity var(--ease), box-shadow var(--ease); }
.project-card:hover { position: relative; z-index: 1; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.project-card.is-muted { opacity: .78; background: #f0f0f0; }
.project-card.is-featured { box-shadow: inset 4px 0 0 transparent; border-left: 4px solid; border-image: linear-gradient(180deg, var(--accent-a), var(--accent-b)) 1; }
.project-top, .project-bottom { display: flex; justify-content: space-between; gap: 10px; }
.project-number { color: #aaa; font: 12px var(--mono); }
.project-card h3 { margin: 45px 0 8px; font-size: 29px; letter-spacing: -.06em; line-height: 1.1; }
.project-problem { max-width: 500px; margin: 0 0 30px; color: var(--copy); font-size: 14px; }
.project-detail { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line); }
.project-detail p { margin: 0; color: var(--copy); font-size: 12px; line-height: 1.5; }
.project-tech { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 22px; }
.project-bottom { align-items: end; margin-top: 21px; padding-top: 13px; border-top: 1px solid var(--line); }
.project-status { color: var(--soft-copy); font: 10px var(--mono); text-transform: uppercase; }
.inline-link { color: var(--ink); font-size: 11px; border-bottom: 1px solid var(--ink); }
.two-column-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.two-column-heading .section-intro { margin: 0 0 28px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); }
.skill-group { min-height: 190px; display: flex; flex-direction: column; padding: 21px; border: 0; background: white; cursor: pointer; text-align: left; transition: background var(--ease), color var(--ease), transform var(--ease); }
.skill-group:hover, .skill-group.is-active { position: relative; z-index: 1; background: var(--ink); color: white; transform: translateY(-3px); }
.skill-group-header { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.skill-group:hover .mono-label, .skill-group.is-active .mono-label { color: #bcbcbc; }
.skill-items { display: flex; flex-wrap: wrap; align-content: start; gap: 8px 16px; margin-top: 19px; color: var(--copy); font-size: 13px; }
.skill-group:hover .skill-items, .skill-group.is-active .skill-items { color: white; }
.skill-items span::before { content: "/ "; color: var(--accent-b); font-family: var(--mono); }
.split-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.education-list, .community-list { border-bottom: 1px solid var(--line); }
.education-item { display: grid; grid-template-columns: 120px 1fr; gap: 25px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.education-item:last-child, .community-item:last-child { border-bottom: 0; }
.education-item h3, .community-item h3 { margin: 0 0 3px; font-size: 16px; letter-spacing: -.02em; }
.education-item p, .community-item p { margin: 0; color: var(--copy); font-size: 13px; }
.education-detail { margin-top: 14px !important; }
.community-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.community-item h3 { margin-top: 9px; }
.philosophy-section { display: grid; grid-template-columns: 180px 1fr; gap: 80px; padding-top: 140px; padding-bottom: 140px; }
.big-index { display: block; margin-top: 60px; font-size: 45px; line-height: 1; }
.philosophy-copy h2 { max-width: 820px; font-size: clamp(32px, 5vw, 68px); }
.philosophy-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 70px; padding-top: 20px; border-top: 1px solid var(--ink); }
.philosophy-notes p { margin: 0; color: var(--copy); font-size: 13px; }
.section-dark { background: var(--ink); color: white; }
.contact-section { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.eyebrow-light { color: #888; }
.contact-section h2 { max-width: 590px; }
.contact-note { max-width: 430px; margin: 25px 0 0; color: #aaa; font-size: 13px; }
.contact-note code { color: white; font-family: var(--mono); }
.contact-links { border-top: 1px solid #555; }
.contact-link { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border: 0; border-bottom: 1px solid #555; background: transparent; color: white; cursor: pointer; text-align: left; font-size: 14px; }
.contact-link:hover { color: #bbb; padding-left: 8px; }
.contact-link[aria-disabled="true"] { color: #777; cursor: help; }
.site-footer { background: var(--ink); border-top: 1px solid #444; color: #aaa; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; align-items: end; padding: 24px 0 30px; font-size: 11px; }
.footer-grid div { display: grid; gap: 4px; }
.footer-grid strong { color: white; font-weight: 600; }
.back-top { text-align: right; }
.present-overlay { position: fixed; z-index: 30; inset: 0; overflow: auto; padding: 35px 20px; background: rgba(17,17,17,.82); }
.present-shell { position: relative; width: min(100%, 700px); min-height: calc(100vh - 70px); display: flex; flex-direction: column; justify-content: center; margin: auto; padding: 45px clamp(20px, 6vw, 70px); background: white; color: var(--ink); }
.present-close { position: absolute; top: 14px; right: 17px; border: 0; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; }
.present-heading h2 { max-width: 520px; margin: 0 0 28px; font-size: clamp(30px, 5vw, 52px); letter-spacing: -.06em; line-height: 1.05; }
.present-card { display: grid; grid-template-columns: 1fr 190px; gap: 20px; align-items: center; padding: 23px; border: 1px solid var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.present-name { display: grid; gap: 2px; font-size: 19px; letter-spacing: .03em; line-height: 1.1; }
.present-name strong { font-size: 19px; }
.present-name small { margin-top: 12px; color: var(--copy); font: 10px var(--mono); letter-spacing: .1em; }
.qr-frame { width: 190px; height: 190px; display: grid; place-items: center; padding: 10px; background: white; border: 1px solid var(--ink); }
.qr-frame svg { display: block; width: 100%; height: 100%; }
.qr-fallback { color: var(--copy); font: 10px var(--mono); text-align: center; overflow-wrap: anywhere; }
.qr-fallback small { display: block; margin-top: 10px; font: 8px var(--mono); }
.present-url { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; color: var(--copy); font: 10px var(--mono); }
.present-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.present-footnote { margin: 20px 0 0; color: var(--copy); font-size: 11px; }
.toast { position: fixed; z-index: 40; right: 18px; bottom: 18px; max-width: calc(100% - 36px); padding: 12px 15px; background: var(--ink); color: white; font-size: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity var(--ease), transform var(--ease); }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .desktop-nav { display: none; }
  .nav-wrap { min-height: 60px; gap: 15px; }
  .active-lens { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 55px; padding-top: 76px; padding-bottom: 86px; }
  .hero-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 17px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .index-line { display: none; }
  .hero-current { grid-template-columns: 1fr; }
  .hero-current .muted { grid-column: auto; }
  .lens-section { padding-bottom: 54px; }
  .perspective-selector { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
  .perspective-button { min-height: 58px; font-size: 13px; }
  .lens-summary { grid-template-columns: 1fr; gap: 8px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .experience-item { grid-template-columns: 1fr; gap: 23px; padding: 28px 0 33px; }
  .experience-skills { padding-top: 5px; border-top: 1px solid var(--line); }
  .experience-skills > div { display: flex; gap: 7px 15px; }
  .experience-skills > div span { width: auto; }
  .experience-main > h3 { font-size: 19px; }
  .project-grid, .skills-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 0; padding: 20px; }
  .project-card h3 { margin-top: 34px; font-size: 26px; }
  .two-column-heading, .split-sections, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .two-column-heading .section-intro { margin: 0; }
  .split-sections { gap: 75px; }
  .philosophy-section { grid-template-columns: 1fr; gap: 25px; padding-top: 90px; padding-bottom: 90px; }
  .big-index { margin-top: 0; }
  .philosophy-notes { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .contact-section { padding: 75px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .back-top { grid-column: 1 / -1; text-align: left; padding-top: 18px; border-top: 1px solid #444; }
  .present-overlay { padding: 0; }
  .present-shell { min-height: 100vh; padding: 65px 20px 30px; }
  .present-card { grid-template-columns: 1fr 145px; padding: 15px; }
  .qr-frame { width: 145px; height: 145px; }
}

@media (max-width: 390px) {
  .nav-actions .button { padding-inline: 10px; }
  .hero h1 { font-size: 48px; }
  .hero-lede { font-size: 16px; }
  .perspective-selector { grid-template-columns: 1fr; }
  .present-card { grid-template-columns: 1fr; }
  .qr-frame { width: min(100%, 220px); height: auto; aspect-ratio: 1; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
