:root {
  --header-height: 87px;
  --compact-header-height: 60px;
  --paper: #fff;
  --ink: #080808;
  --muted: #555;
  --accent: #080808;
  --button-ink: #fff;
  --line: #d0d0d0;
  --panel: #eee;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { border: 0; font: inherit; color: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #888; outline-offset: 6px; }
::selection { background: #999; color: #080808; }
h1, h2, h3, h4, p { margin: 0; }
p { line-height: 1.65; }
svg { display: block; width: 100%; height: 100%; }
.eyebrow { font: 600 10px/1.5 "SFMono-Regular", Consolas, monospace; letter-spacing: 1.6px; }
.section-wrap { padding: 65px max(6.5vw, 24px); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 56px; padding: 0 28px; background: var(--accent); color: var(--button-ink); font-size: 11px; letter-spacing: 1px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 #777; }
.button span { font-size: 22px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: #fff; color: #111; padding: 15px; }
.skip-link:focus { top: 15px; }
.modal-open { overflow: hidden; }
[data-scramble] { display: inline-block; font-variant-numeric: tabular-nums; }

/* Introduction */
#app { padding-top: var(--header-height); }
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 50; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 max(6.5vw, 24px); border-bottom: 1px solid #333; background: #080808; color: #fff; }
.site-header { transition: height 280ms ease; }
.site-header.is-scrolled { height: var(--compact-header-height); }
.wordmark { display: grid; place-items: center; flex: 0 0 76px; width: 76px; height: 48px; padding: 0; background: transparent; color: inherit; }
.wordmark-original { grid-area: 1 / 1; justify-self: start; white-space: nowrap; font: 900 37px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: -5px; opacity: calc(1 - var(--mark-progress, 0)); transform: translateX(calc(var(--mark-progress, 0) * 8px)) scale(calc(1 - var(--mark-progress, 0) * .35)); transform-origin: left center; }
.wordmark-original span { display: inline-block; font-size: 25px; margin-left: 8px; vertical-align: top; letter-spacing: 0; }
.wordmark svg { grid-area: 1 / 1; justify-self: start; width: 48px; height: 40px; overflow: visible; opacity: var(--mark-progress, 0); }
.wordmark path { fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.wordmark circle { fill: currentColor; }
.site-header nav { transition: opacity 180ms ease, transform 280ms ease, visibility 0s; }
.site-header.is-compact nav { opacity: 0; visibility: hidden; transform: translateX(-12px); pointer-events: none; transition: opacity 180ms ease, transform 280ms ease, visibility 0s 180ms; }
.site-header nav { display: flex; gap: 38px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.site-header nav a:hover, .project-links a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.name-hero { background: #080808; color: #fff; min-height: 350px; padding: 66px max(6.5vw, 24px) 65px; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.name-hero, .footer { position: relative; isolation: isolate; }
.name-hero::before, .footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url('./grain.svg') repeat; opacity: .045; }
.name-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(#ffffff12 1px, transparent 1px), linear-gradient(90deg, #ffffff12 1px, transparent 1px); background-size: 80px 80px; background-position: center; mask-image: radial-gradient(ellipse 43% 75% at 83% 48%, #000 0%, transparent 100%); }
@media (max-width: 700px) {
  .name-hero::after { opacity: .35; mask-image: linear-gradient(90deg, transparent 35%, #000); }
}
.name-intro { max-width: 620px; position: relative; z-index: 1; }
.name-intro > .eyebrow { color: #aaa; font-size: 10px; letter-spacing: 1px; }
.name-intro h1 { font: 550 clamp(44px, 4.8vw, 68px)/1.12 "Helvetica Neue", Arial, sans-serif; letter-spacing: -2.5px; margin: 20px 0 22px; }
.name-intro h1 span { color: #777; }
.name-description { font-size: 18px; line-height: 1.65; max-width: 540px; color: #e5e5e5; }
.location-codes { white-space: nowrap; }
.location-codes abbr { text-decoration: none; cursor: default; }
.work-areas { margin-top: 18px; font-size: 15px; color: #c6c6c6; }
.work-areas ul { margin: 7px 0 0; padding-left: 19px; }
.work-areas li { padding-left: 3px; line-height: 1.85; }
.name-history { font-size: 14px; color: #999; margin-top: 12px; }
.name-links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 12px; margin-top: 30px; }
.name-links a { padding-bottom: 4px; border-bottom: 1px solid #555; }
.name-links a:hover { border-color: #fff; }
.name-mark { width: 145px; height: 145px; flex-shrink: 0; margin-right: 5%; opacity: .75; }
.art-solid { fill: #fff; }

/* Experience */
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; gap: 24px; }
.section-heading h2, .about h2 { font: 550 34px/1.2 "Helvetica Neue", Arial, sans-serif; letter-spacing: -1px; }
.section-heading > p { font-size: 12px; max-width: 330px; color: var(--muted); }
.roles { border-top: 1px solid var(--line); }
.role { border-bottom: 1px solid var(--line); }
.role summary { list-style: none; display: flex; align-items: center; gap: 25px; padding: 28px 0; cursor: pointer; }
.role summary::-webkit-details-marker { display: none; }
.role-number { font: 10px monospace; align-self: flex-start; margin-top: 9px; }
.role-name { flex: 1; }
.role-name h3 { font-size: 23px; font-weight: 550; letter-spacing: -.5px; }
.role-name p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.role-date { font: 10px monospace; color: var(--muted); letter-spacing: .6px; }
.expand { font-size: 25px; width: 30px; text-align: right; }
.role-body { padding: 10px 50px 38px; display: grid; grid-template-columns: 1fr 2fr; gap: 70px; }
.role-context .eyebrow { font-size: 9px; color: var(--muted); }
.role-copy { max-width: 650px; }
.role-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; font-size: 12px; }
.role-links a { display: inline-flex; align-items: baseline; gap: 9px; border-bottom: 1px solid #aaa; padding-bottom: 4px; }
.role-links a:hover { border-color: var(--ink); }
.role-description { font-size: 15px; line-height: 1.85; color: var(--muted); max-width: 650px; }
details.is-animating { overflow: hidden; }
.role { overflow-anchor: none; }
.expand { transition: transform .28s cubic-bezier(.22, 1, .36, 1); }
.role[data-expanded="false"] .expand { transform: rotate(0); }
.role[data-expanded="true"] .expand { transform: rotate(45deg); }

/* Projects */
.work { background: #f4f4f4; --paper: #f4f4f4; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.project { min-width: 0; }
.project-image { display: block; width: 100%; height: 260px; position: relative; overflow: hidden; transition: transform .25s; padding: 0; }
.project-image:hover { transform: translateY(-6px); }
.project-image.lounge, .project-image.data { background: #e4e4e4; color: #111; }
.project-image.echo { background: #111; color: #fff; }
.image-arrow { position: absolute; right: 0; bottom: 0; width: 42px; height: 42px; background: var(--paper); color: #080808; display: grid; place-items: center; font-size: 25px; clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px); }
.project-copy { padding: 23px 0; }
.project-copy > .eyebrow { font-size: 8px; letter-spacing: 1px; color: var(--muted); }
.project-title { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0; align-items: center; }
.project h3 { font-size: 25px; letter-spacing: -1px; }
.project h3 button { padding: 0; background: none; text-align: left; font-weight: 700; letter-spacing: inherit; }
.project-stat { text-align: right; font-size: 24px; font-weight: 750; line-height: 1; }
.project-stat small { display: block; font-size: 8px; line-height: 1.4; margin-top: 5px; max-width: 90px; font-weight: 400; letter-spacing: 0; }
.project-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.7; color: var(--muted); min-height: 67px; }
.project-tags { font: 9px/1.6 monospace; letter-spacing: .1px; padding: 20px 0; }
.project-links { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 16px; font: 8px/1.5 monospace; letter-spacing: .2px; }
.text-link { background: transparent; padding: 0; font: inherit; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.lounge-illustration { padding: 25px 22px; height: 100%; transform: rotate(-4deg) scale(.9); border: 1px solid currentColor; margin: 0 10px; background: #fff; }
.desk-head, .desk-foot { display: flex; justify-content: space-between; gap: 8px; font: 7px monospace; letter-spacing: .5px; }
.desk-head { border-bottom: 1px solid; padding-bottom: 12px; }
.desk-head span:first-child { font-weight: bold; }
.desk-map { height: 147px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 13px 20px; padding: 20px; }
.station { border: 1px solid #888; position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; background: #ddd; }
.station i { display: block; width: 16px; height: 10px; background: #333; border-bottom: 3px solid #999; }
.station small { font: 6px monospace; }
.station:after { content: ""; position: absolute; bottom: -5px; width: 12px; height: 3px; border: 1px solid; }
.s2, .s5, .s10 { background: #bbb; }
.desk-foot { border-top: 1px solid; padding-top: 12px; }
.echo-illustration { padding: 5px; }
.data-illustration { padding: 27px; height: 100%; position: relative; }
.data-code { font: 8px monospace; display: block; text-align: left; }
.data-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; transform: rotate(-10deg); margin: 22px 15px; }
.data-grid i { height: 20px; background: #111; opacity: calc(.15 + var(--n)*.1); }
.data-illustration b { position: absolute; left: 25px; bottom: 41px; font-size: 37px; letter-spacing: -2px; color: #111; background: #e4e4e4; line-height: 1; padding: 3px; }
.data-caption { position: absolute; bottom: 20px; left: 30px; font: 7px monospace; letter-spacing: 1px; }

/* About and contact */
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 70px; }
.about-copy > p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.about-copy > p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.about-copy .about-lead { font-size: 21px; line-height: 1.5; color: var(--ink); letter-spacing: -.5px; }
.education { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 30px; }
.education h3 { font-size: 18px; margin: 15px 0 6px; }
.education p, .leadership p { font-size: 12px; color: var(--muted); }
.leadership { padding-top: 25px; }
.leadership p { margin-top: 14px; }
.footer { background: #080808; color: #fff; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; font: 500 38px/1.2 "Helvetica Neue", Arial, sans-serif; letter-spacing: -1px; margin: 0 0 28px; }
.footer-cta span { font-size: 30px; transition: transform .2s; }
.footer-cta:hover span { transform: translate(6px, -6px); }
.footer-links { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #444; padding: 25px 0 38px; font-size: 13px; }
.footer-links > div { display: flex; gap: 30px; font: 10px monospace; letter-spacing: 1px; }
.footer-bottom { display: flex; justify-content: space-between; font: 8px monospace; letter-spacing: 1px; gap: 15px; }

/* Project dialogs */
dialog { padding: 55px; max-width: 690px; width: calc(100% - 32px); max-height: 85vh; overflow: auto; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 20px; top: 18px; background: transparent; font-size: 22px; padding: 5px; }
dialog h2 { font-size: 42px; letter-spacing: -1px; margin: 15px 0 8px; }
.dialog-role { font-size: 12px; color: var(--muted); }
.dialog-stat { font-size: 48px; letter-spacing: -2px; display: flex; align-items: center; gap: 22px; margin: 30px 0; border-block: 1px solid var(--line); padding: 20px 0; }
.dialog-stat span { font: 12px/1.5 monospace; letter-spacing: 0; max-width: 150px; }
dialog h3 { font: 10px monospace; letter-spacing: 1px; margin: 25px 0 10px; }
dialog p { font-size: 14px; line-height: 1.8; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 15px; }
dialog .button { font-size: 9px; padding: 0 20px; gap: 15px; }
dialog .button.secondary { background: var(--panel); color: var(--ink); }

@media (min-width: 1600px) {
  .name-hero, .section-wrap, .site-header { padding-left: max(6.5vw, calc((100vw - 1400px)/2)); padding-right: max(6.5vw, calc((100vw - 1400px)/2)); }
}
@media (max-width: 1000px) {
  .project-image { height: 215px; }
  .projects { gap: 20px; }
  .project-title { align-items: flex-start; flex-direction: column; }
  .project-stat { text-align: left; font-size: 22px; }
  .project-stat small { max-width: none; }
  .project-copy > p:not(.eyebrow) { min-height: 85px; }
  .lounge-illustration { padding: 19px 12px; margin: 0; }
  .desk-map { gap: 12px; padding: 20px 5px; height: 125px; }
  .desk-head span:last-child, .desk-foot span:last-child { display: none; }
  .project-links { flex-wrap: wrap; }
  .data-illustration { padding: 22px 15px; }
  .data-illustration b { font-size: 29px; left: 14px; }
  .data-grid { margin-inline: 0; }
  .role-body { gap: 30px; padding-inline: 35px; }
  .role-date { font-size: 9px; }
}
@media (max-width: 700px) {
  :root { --header-height: 75px; --compact-header-height: 56px; }
  .site-header { padding-inline: 22px; }
  .wordmark-original { font-size: 31px; }
  .wordmark svg { width: 42px; }
  .site-header nav { gap: 17px; font-size: 8px; letter-spacing: .6px; }
  .name-hero { min-height: 0; padding: 45px 24px 48px; gap: 0; }
  .name-intro { max-width: 100%; }
  .name-intro h1 { font-size: 46px; letter-spacing: -2px; }
  .name-intro > .eyebrow { font-size: 8px; }
  .name-description { font-size: 16px; max-width: 330px; }
  .name-history { font-size: 12px; max-width: 270px; }
  .name-links { gap: 22px; font-size: 11px; }
  .name-mark { display: none; }
  .section-wrap { padding: 42px 24px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .section-heading h2, .about h2 { font-size: 29px; }
  .role summary { gap: 13px; flex-wrap: wrap; padding: 24px 0; }
  .role-number { font-size: 9px; width: 16px; }
  .role-name { flex-basis: calc(100% - 64px); }
  .role-name h3 { font-size: 21px; }
  .role-name p { font-size: 10px; line-height: 1.6; margin-top: 7px; }
  .role-date { margin-left: 29px; order: 4; }
  .expand { width: 20px; }
  .role-body { padding: 0 0 25px 29px; grid-template-columns: 1fr; gap: 24px; }
  .projects { grid-template-columns: 1fr; gap: 23px; }
  .project-image { height: 290px; }
  .project-title { flex-direction: row; align-items: center; }
  .project h3 { font-size: 27px; }
  .project-stat { text-align: right; font-size: 25px; }
  .project-stat small { max-width: 100px; }
  .project-copy > p:not(.eyebrow) { min-height: 0; font-size: 14px; }
  .project-copy > .eyebrow { font-size: 9px; }
  .project-links { font-size: 9px; }
  .project-tags { font-size: 10px; }
  .lounge-illustration { padding: 25px 20px; margin: 15px; height: 260px; }
  .desk-head span:last-child, .desk-foot span:last-child { display: inline; }
  .desk-map { height: 167px; padding: 20px; gap: 15px; }
  .data-grid i { height: 25px; }
  .data-illustration { padding: 30px; }
  .data-illustration b { font-size: 42px; left: 28px; bottom: 48px; }
  .data-caption { bottom: 25px; }
  .data-code { font-size: 9px; }
  .about { grid-template-columns: 1fr; gap: 25px; }
  .footer-cta { font-size: 32px; }
  .footer-links { align-items: flex-start; gap: 25px; flex-direction: column; font-size: 12px; }
  .footer-bottom { font-size: 7px; flex-wrap: wrap; line-height: 1.6; }
  dialog { padding: 40px 24px 30px; }
  dialog h2 { font-size: 36px; }
  .dialog-stat { font-size: 42px; }
  .dialog-links .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .wordmark, .site-header nav, .site-header.is-compact nav { transition: none; }
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
}
