/* Shared palette, typography, and the main portfolio composition. */
:root {
  --display: 'IBM Plex Sans', Arial, sans-serif;
  --name: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: 'Courier New', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 35px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); }
h1,h2,h3,h4,p { margin: 0; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
em { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button { color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button,a,input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--dark); outline-offset: 5px; }
::selection { background: var(--action); color: var(--ink); }
.wrap { width: calc(100% - 112px); max-width: 1320px; margin: 0 auto; }
.mono,.eyebrow { font: 14px/1.6 var(--mono); letter-spacing: .06em; }
.eyebrow { color: var(--dark); }
.skip-link { position: fixed; top: -100px; left: 15px; z-index: 20; background: var(--paper); padding: 12px; }
.skip-link:focus { top: 15px; }
.site-header { height: 106px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font: 600 29px/1 var(--display); letter-spacing: -.055em; color: var(--ink); }
.wordmark span { color: var(--accent); }
.site-header nav { display: flex; gap: 38px; font-size: 14px; }
.site-header a:not(.wordmark):hover { color: var(--dark); }
.header-contact { border-bottom: 1px solid var(--line); font-size: 14px; padding-bottom: 3px; }

/* Name and free-standing signal drawing share an open, asymmetrical spread. */
.hero { position: relative; padding-top: 39px; }
.hero-name { width: 58%; position: relative; z-index: 1; pointer-events: none; }
.hero-prelude { font-size: 19px; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }
.hero-name h1 { font: 600 clamp(96px,11.2vw,154px)/1.04 var(--name); letter-spacing: -.035em; color: var(--ink); white-space: nowrap; }
.name-period { color: var(--accent); }
.hero-workbench { display: grid; grid-template-columns: 1fr 1.13fr; gap: 8%; }
.hero-copy { padding: 30px 0 60px; position: relative; z-index: 1; }
.index-label { font: 400 14px var(--display); color: var(--accent); letter-spacing: .015em; }
.hero-description { font: 500 clamp(25px,2.25vw,33px)/1.35 var(--display); letter-spacing: -.025em; margin: 23px 0 20px; }
.hero-description a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.hero-description a:hover { color: var(--dark); text-decoration-color: currentColor; }
.hero-description em { color: var(--dark); }
.hero-context { font-size: 15px; color: var(--muted); line-height: 1.75; max-width: 410px; }
.hero-actions { display: flex; align-items: center; gap: 29px; margin: 29px 0 36px; }
.button { display: inline-flex; align-items: center; gap: 30px; padding: 13px 20px; min-height: 48px; font-size: 14px; border-radius: 3px; }
.button.dark { background: var(--action); color: var(--ink); }
.button.dark:hover { background: var(--action-hover); }
.button span { font-size: 18px; }
.text-button { font-size: 14px; border-bottom: 1px solid currentColor; line-height: 1.9; white-space: nowrap; }
.hero-location { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.signal-lab { position: relative; min-width: 0; margin-top: -162px; display: flex; flex-direction: column; justify-content: center; }
.lab-top { display: flex; gap: 16px; align-items: center; padding: 0 15px 12px; position: relative; z-index: 1; }
.lab-top>.mono { font: 14px var(--body); letter-spacing: 0; color: var(--muted); }
.lab-top>.lab-live { font: 14px var(--mono); letter-spacing: .04em; }
.lab-live { margin-left: auto; }
#motion-toggle { border: 1px solid var(--line); border-radius: 50%; width: 30px; height: 30px; font-size: 14px; }
.canvas-wrap { min-height: 430px; position: relative; background-color: var(--surface-inset); background-image: linear-gradient(color-mix(in srgb, var(--line-strong) 9.4%, transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb, var(--line-strong) 9.4%, transparent) 1px,transparent 1px); background-size: 32px 32px; border: 1px solid var(--line); border-radius: 6px; }
.canvas-wrap:before { content: ''; position: absolute; inset: 15px; background: linear-gradient(var(--accent),var(--accent)) left top / 22px 2px no-repeat,linear-gradient(var(--accent),var(--accent)) left top / 2px 22px no-repeat,linear-gradient(var(--dark),var(--dark)) right bottom / 22px 2px no-repeat,linear-gradient(var(--dark),var(--dark)) right bottom / 2px 22px no-repeat; pointer-events: none; }
canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; border-radius: inherit; }
canvas:active { cursor: grabbing; }
.lab-stamp { position: absolute; bottom: 26px; right: 28px; font-size: 14px; color: var(--muted); pointer-events: none; }
.lab-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 23px 10px 0; }
.shape-options { display: flex; gap: 5px; }
.shape-options button { font-size: 14px; padding: 8px 13px; border-bottom: 1px solid transparent; }
.shape-options button.active { border-bottom-color: var(--dark); color: var(--dark); font-weight: 600; }
.shape-options button:hover { background: var(--surface); border-radius: 20px; }
.drag-note { font-family: var(--body); font-style: normal; font-size: 14px; letter-spacing: 0; color: var(--muted); }
.hero-bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 24px 0; font-size: 14px; color: var(--muted); }
.hero-bottom a { color: var(--dark); }
.hero-bottom a:hover { text-decoration: underline; text-underline-offset: 5px; }
.section-pad { padding: 108px 0; }
.section-heading { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 50px; }
.section-heading h2 { font-size: clamp(45px,5.4vw,76px); }
.section-aside,.section-heading>.text-button { position: absolute; right: 0; bottom: 5px; font-size: 14px; color: var(--muted); }
.section-aside { font: italic 17px var(--serif); }

/* Offset visual essays, each with its own composition. */
.project { display: grid; grid-template-columns: 1.22fr 1fr; gap: 8%; align-items: center; padding: 28px 0 75px; }
.project-art { grid-column: 1; grid-row: 1; position: relative; height: 410px; width: 100%; overflow: hidden; text-align: left; }
.project-meta { grid-column: 2; padding: 15px 0; }
.project-category { font-size: 14px; color: var(--muted); margin-bottom: 23px; }
.project-meta h3 { font-size: 42px; margin-bottom: 23px; }
.project-meta h3 button { text-align: left; letter-spacing: inherit; line-height: inherit; }
.project-meta h3 button:hover { color: var(--dark); }
.project-meta>p:not(.project-category) { color: var(--muted); font-size: 14px; max-width: 350px; line-height: 1.85; }
.project-tech { font-size: 14px; color: var(--muted); margin: 25px 0 28px; }
.inline-link { display: inline-flex; align-items: center; gap: 20px; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.project-research { grid-template-columns: 1fr 1.22fr; }
.project-research .project-art { grid-column: 2; border-radius: 0 105px 0 0; }
.project-research .project-meta { grid-column: 1; padding-left: 7%; }
.search-art { background: var(--surface-inset); border-radius: 2px 2px 100px 2px; color: var(--accent); }
.research-art { background: var(--blue); color: var(--blue-ink); }
.art-kicker,.art-bottom { position: absolute; z-index: 2; left: 28px; font: 14px/1.5 var(--mono); letter-spacing: .04em; }
.art-kicker { top: 25px; }
.art-bottom { bottom: 25px; max-width: 80%; font-size: 14px; }
.project-open { position: absolute; right: 24px; bottom: 20px; font-size: 27px; transition: transform .2s; }
.project-art:hover .project-open { transform: translate(4px,-4px); }
.language-composition { position: absolute; inset: 76px 35px 60px; }
.language-composition>span { display: block; position: relative; z-index: 1; font: 62px/.98 var(--serif); letter-spacing: -.05em; }
.language-composition>span:nth-child(2) { margin: 10px 0 15px 30px; font-style: italic; }
.language-composition>span:nth-child(3) { font-size: 37px; margin-left: 3px; letter-spacing: -.08em; }
.language-composition svg { position: absolute; inset: -40px -40px; width: calc(100% + 80px); height: calc(100% + 80px); fill: none; stroke: var(--accent); stroke-width: 1.8; transition: transform .6s; }
.language-composition i { position: absolute; right: 0; top: 45%; font: 52px var(--serif); font-style: normal; color: var(--accent); }
.search-art:hover svg { transform: rotate(8deg); }
.lost-found { position: absolute; inset: 80px 45px 58px; display: flex; flex-direction: column; }
.lost-found>span { font: 76px/.9 var(--serif); letter-spacing: -.06em; }
.lost-letter { opacity: .28; transition: opacity .4s; }
.research-art:hover .lost-letter { opacity: 1; }
.lost-found>em { align-self: flex-end; font-size: 77px; line-height: 1; }
.lost-found svg { width: 100%; height: 80px; margin: 5px 0; fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.systems-strip { display: grid; grid-template-columns: 55px 1fr auto; gap: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; align-items: center; }
.system-index { font: italic 35px var(--serif); color: var(--accent); }
.systems-strip .project-category { margin-bottom: 9px; }
.systems-strip h3 { font-size: 29px; margin-bottom: 10px; }
.systems-strip p:not(.project-category) { font-size: 14px; color: var(--muted); max-width: 540px; }

input[type=range] { width: 100%; margin: 18px 0 8px; accent-color: var(--dark); cursor: ew-resize; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { font-size: 14px; padding: 4px 9px; border-radius: 20px; background: var(--surface-raised); }
.about-section { background: var(--surface-inset); border-radius: 85px 0 0 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; align-items: center; }
.about-intro h2 { font-size: 76px; margin-top: 25px; }
.about-bio>p { font-size: 16px; line-height: 1.9; color: var(--muted); }
.about-bio .inline-link { margin-top: 25px; }
.contact-section { padding-top: 70px; }
.contact-top { display: flex; justify-content: space-between; gap: 20px; }
.contact-top>.mono { font-size: 14px; color: var(--muted); }
.contact-top .status-dot { margin-right: 7px; }
.contact-title { display: flex; align-items: center; gap: .2em; font: 400 clamp(80px,11vw,160px)/1.2 var(--display); letter-spacing: -.06em; padding: 34px 0 45px; color: var(--ink); }
.contact-title em { color: var(--dark); }
.contact-arrow { margin-left: auto; font: 70px var(--serif); width: 110px; height: 110px; display: grid; place-items: center; background: var(--accent); color: var(--ink); border-radius: 50%; transition: transform .2s; }
.contact-title:hover .contact-arrow { transform: rotate(12deg); }
.contact-bottom { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 28px 0 55px; }
.email-link { font-size: 21px; letter-spacing: -.035em; }
#copy-email { margin-left: 12px; font-size: 21px; }
#copy-status { display: block; position: absolute; font: 14px var(--mono); }
.social-links { display: flex; align-items: center; gap: 25px; font-size: 14px; }
.social-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 14px; }

/* Accessible native detail dialog and download links. */
dialog { border: 1px solid var(--line); border-radius: 6px 6px 40px 6px; padding: 0; background: var(--paper); color: var(--ink); width: calc(100% - 40px); max-width: 740px; max-height: 90vh; }
dialog::backdrop { background: color-mix(in srgb, var(--surface-inset) 90.2%, transparent); backdrop-filter: blur(5px); }
.dialog-inner { padding: 55px 48px 42px; position: relative; }
.dialog-close { position: absolute; right: 15px; top: 9px; font-size: 30px; width: 32px; height: 40px; }
.dialog-inner .eyebrow { font-size: 14px; margin-bottom: 24px; }
.dialog-inner h2 { font: 48px/1.06 var(--serif); letter-spacing: -.05em; margin-bottom: 25px; color: var(--dark); }
.dialog-inner h3 { font-size: 22px; margin: 30px 0 12px; }
.dialog-inner p:not(.eyebrow),.dialog-inner ul { font-size: 14px; line-height: 1.8; color: var(--muted); margin-bottom: 18px; }
.dialog-inner ul { padding-left: 19px; }
.dialog-inner li { margin: 9px 0; }
.dialog-inner .tags { margin: 25px 0; }
.dialog-inner .dialog-note { font-size: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.dialog-metric { font: 50px var(--serif); color: var(--dark); margin: 25px 0; }
.dialog-metric small { display: block; font: 14px/1.8 var(--body); max-width: 330px; color: var(--muted); }
.resume-links { margin: 30px 0; }
.resume-link { display: flex; justify-content: space-between; padding: 23px 0; border-top: 1px solid var(--line); gap: 15px; }
.resume-link:last-child { border-bottom: 1px solid var(--line); }
.resume-link strong { font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.resume-link small { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.resume-link>span { font-size: 26px; }
.resume-link:hover { color: var(--dark); }
.noscript-note { padding: 20px; font-size: 14px; }

@media (max-width:1100px) {
  .wrap { width: calc(100% - 72px); }
  .hero { padding-top: 30px; }
  .hero-workbench { gap: 5%; }
  .canvas-wrap { min-height: 390px; }
  .signal-lab { margin-top: -130px; }
  .project { gap: 6%; }
  .project-art { height: 370px; }
  .project-meta h3 { font-size: 35px; }
  .language-composition>span { font-size: 53px; }
  .language-composition>span:nth-child(3) { font-size: 30px; }
  .lost-found { inset: 80px 30px 55px; }
  .lost-found>span,.lost-found>em { font-size: 67px; }
  .about-intro h2 { font-size: 64px; }
}
@media (max-width:800px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { height: 83px; }
  .site-header nav { gap: 22px; font-size: 14px; }
  .hero-name { width: 100%; }
  .hero-name h1 { font-size: clamp(90px,14vw,112px); }
  .hero-workbench { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-description { font-size: 29px; }
  .hero-context { font-size: 14px; }
  .hero-copy { padding-bottom: 35px; }
  .index-label { font-size: 15px; }
  .hero-actions { gap: 16px; flex-wrap: wrap; }
  .signal-lab { margin-top: -30px; }
  .canvas-wrap { min-height: 310px; }
  .lab-top { gap: 10px; padding: 0 0 10px; }
  .lab-live,.drag-note { display: none; }
  .lab-top>.mono { font-size: 14px; }
  #motion-toggle { margin-left: auto; }
  .lab-bottom { justify-content: center; padding: 15px 0 0; }
  .shape-options button { padding: 8px 10px; font-size: 14px; }
  .section-pad { padding: 75px 0; }
  .section-heading h2 { font-size: 49px; }
  .section-aside { display: none; }
  .project { gap: 30px; padding-bottom: 60px; }
  .project-art { height: 335px; }
  .project-meta h3 { font-size: 30px; }
  .project-meta>p:not(.project-category) { font-size: 14px; }
  .project-category { font-size: 14px; }
  .project-tech { font-size: 14px; line-height: 1.8; }
  .project-research .project-meta { padding-left: 0; }
  .art-kicker,.art-bottom { left: 20px; font-size: 14px; }
  .language-composition { inset: 90px 25px 55px; }
  .language-composition>span { font-size: 42px; }
  .language-composition>span:nth-child(2) { margin-left: 10px; }
  .language-composition>span:nth-child(3) { font-size: 25px; }
  .language-composition i { display: none; }
  .lost-found { inset: 80px 23px 55px; }
  .lost-found>span,.lost-found>em { font-size: 54px; }
  .systems-strip { grid-template-columns: 35px 1fr; gap: 20px; }
  .systems-strip>.inline-link { grid-column: 2; justify-self: start; }
  .about-grid { gap: 8%; }
  .about-intro h2 { font-size: 55px; }
  .about-bio>p { font-size: 14px; }
  .contact-arrow { width: 75px; height: 75px; font-size: 45px; }
  .contact-bottom { flex-wrap: wrap; }
}
@media (max-width:600px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { height: 76px; }
  .wordmark { font-size: 28px; }
  .site-header nav { gap: 17px; font-size: 14px; }
  .header-contact { display: none; }
  .hero { padding-top: 25px; }
  .hero-prelude { font-size: 17px; margin-bottom: 7px; }
  .hero-name h1 { font-size: clamp(80px,22vw,118px); }
  .hero-workbench { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { padding: 25px 0 23px; }
  .index-label { font-size: 16px; }
  .hero-description { font-size: clamp(23px,5.9vw,31px); margin: 23px 0 18px; }
  .hero-context { font-size: 14px; max-width: 400px; }
  .hero-actions { margin: 24px 0 24px; gap: 28px; }
  .hero-location { font-size: 14px; }
  .signal-lab { margin: 20px 0 30px; }
  .canvas-wrap { min-height: 335px; }
  .lab-top { padding: 0 10px 14px; }
  .lab-top>.mono { font-size: 14px; }
  .lab-live { display: block; }
  .lab-bottom { justify-content: space-between; }
  .shape-options button { font-size: 14px; padding: 10px 14px; }
  .drag-note { display: block; font-size: 14px; }
  .hero-bottom { font-size: 14px; flex-wrap: wrap; gap: 12px 24px; padding: 20px 0; }
  .hero-bottom>span { width: 100%; }
  .section-pad { padding: 65px 0; }
  .section-heading { gap: 20px; margin-bottom: 28px; }
  .section-heading h2 { font-size: 43px; }
  .eyebrow { font-size: 14px; }
  .project,.project-research { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 15px 0 50px; }
  .project-art { order: -1; height: 345px; }
  .project-meta { padding: 0; }
  .project-category { margin-bottom: 16px; font-size: 14px; }
  .project-meta h3 { font-size: 35px; margin-bottom: 17px; }
  .project-meta>p:not(.project-category) { font-size: 14px; }
  .project-tech { margin: 20px 0; }
  .art-kicker,.art-bottom { font-size: 14px; left: 25px; }
  .art-bottom { font-size: 14px; }
  .language-composition { inset: 70px 30px 60px; }
  .language-composition>span { font-size: 55px; }
  .language-composition>span:nth-child(3) { font-size: 30px; }
  .language-composition>span:nth-child(2) { margin-left: 23px; }
  .lost-found { inset: 80px 33px 55px; }
  .lost-found>span,.lost-found>em { font-size: 65px; }
  .systems-strip h3 { font-size: 28px; }
  .systems-strip p:not(.project-category) { font-size: 14px; }
  .about-section { border-radius: 45px 0 0 0; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-intro h2 { font-size: 54px; }
  .about-bio>p { font-size: 14px; }
  .contact-section { padding-top: 45px; }
  .contact-top { gap: 10px; }
  .contact-top>.mono { font-size: 14px; }
  .contact-title { font-size: clamp(48px,14vw,80px); padding: 30px 0; }
  .contact-arrow { width: 48px; height: 48px; font-size: 30px; flex-shrink: 0; }
  .contact-bottom { padding-bottom: 35px; gap: 25px; }
  .email-link { font-size: 21px; }
  .social-links { gap: 26px; }
  .footer-bottom { font-size: 14px; flex-wrap: wrap; gap: 12px; }
  .footer-bottom>span:nth-child(2) { display: none; }
  .dialog-inner { padding: 48px 25px 30px; }
  .dialog-inner h2 { font-size: 36px; }
  .dialog-inner p:not(.eyebrow),.dialog-inner ul { font-size: 14px; }
  .resume-link strong { font-size: 18px; }
}
@media (max-width:360px) {
  .hero-description { font-size: 28px; }
  .canvas-wrap { min-height: 290px; }
  .drag-note { display: none; }
  .lab-bottom { justify-content: center; }
  .section-heading h2 { font-size: 37px; }
  .project-art { height: 315px; }
  .language-composition>span { font-size: 47px; }
  .language-composition>span:nth-child(3) { font-size: 27px; }
  .lost-found>span,.lost-found>em { font-size: 56px; }
  .contact-arrow { width: 40px; height: 40px; font-size: 25px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*:before,*:after { animation: none !important; transition: none !important; }
}
