:root {
  color-scheme: light;
  --paper: #f4f1eb;
  --paper-deep: #eae6de;
  --ink: #24231f;
  --muted: #77746d;
  --line: #d8d3ca;
  --red: #a43a2d;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", sans-serif;
  --mono: "DM Mono", monospace;
  --page: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: #d8b4a9; color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: none; }
.wrap, .header-inner { width: min(var(--page), calc(100% - 64px)); margin-inline: auto; }
.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid rgb(36 35 31 / 9%); background: rgb(244 241 235 / 95%); backdrop-filter: blur(12px); }
.header-inner { min-height: 74px; display: flex; align-items: center; }
.wordmark { font: 600 22px/1 var(--sans); letter-spacing: -.08em; }
.wordmark span { color: var(--red); }
.main-nav { display: flex; gap: 34px; margin-left: auto; margin-right: 40px; }
.main-nav a, .header-contact { font-size: 13px; font-weight: 500; }
.main-nav a { color: var(--muted); transition: color .2s ease; }
.main-nav a:hover, .footer-links a:hover { color: var(--red); }
.header-contact { border-bottom: 1px solid var(--ink); padding: 4px 0; }
.header-contact span { color: var(--red); padding-left: 7px; }
.mobile-nav { display: none; }
.theme-toggle { display: inline-grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; margin-left: 18px; border: 1px solid var(--line); color: var(--ink); cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.theme-toggle:hover { border-color: var(--red); color: var(--red); transform: rotate(-8deg); }
.theme-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.theme-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.language-select { height: 34px; margin-left: 14px; padding: 0 23px 0 8px; border: 1px solid var(--line); border-radius: 0; appearance: none; background: transparent; color: var(--ink); font: 9px var(--mono); cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 14px, calc(100% - 7px) 14px; background-size: 3px 3px, 3px 3px; background-repeat: no-repeat; }
.language-select:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.intro { min-height: 650px; display: grid; grid-template-columns: 1.15fr .7fr; align-items: center; gap: 10%; padding-block: 88px 100px; position: relative; }
.intro-copy { max-width: 640px; }
.eyebrow { margin: 0 0 19px; color: var(--muted); font: 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

h1, h2, h3, p { margin-top: 0; }
.intro h1 { margin: 0 0 26px; font: 500 clamp(64px, 8vw, 104px)/.98 var(--serif); letter-spacing: -.065em; }
.intro h1 em, .about-intro h2 em, .contact-inner h2 em { color: var(--red); font-weight: 500; }
.intro-lede { max-width: 495px; margin-bottom: 29px; color: #5d5a54; font-size: 17px; line-height: 1.75; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 26px; padding: 0 18px; font-size: 13px; font-weight: 600; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--red); }
.text-link { padding-block: 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.text-link span { color: var(--red); padding-left: 5px; }
.work-section { background: #eeebe4; padding: 104px 0 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 43px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .about-intro h2 { margin: 0; font: 500 clamp(38px, 5vw, 56px)/1.1 var(--serif); letter-spacing: -.045em; }
.section-aside { width: 260px; margin: 0 0 3px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.project-list { border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 155px minmax(0, 1fr) 180px; gap: 32px; padding: 30px 0 32px; border-bottom: 1px solid var(--line); transition: padding .2s ease; }
.project:hover { padding-inline: 8px; }
.project-index { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; color: var(--red); font: 12px var(--mono); }
.project-index span { color: var(--muted); font-size: 9px; letter-spacing: .05em; }
.project-main h3, .more-project-grid h3 { margin: 0 0 8px; font: 500 29px/1.2 var(--serif); letter-spacing: -.025em; }
.project-subtitle { color: var(--muted); font: 14px var(--sans); letter-spacing: 0; }
.project-main > p { max-width: 585px; margin: 0; color: #615e57; font-size: 14px; line-height: 1.75; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li { padding: 3px 8px; border: 1px solid #d6d1c8; color: #68655e; font: 9px/1.6 var(--mono); }
.project-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding-top: 5px; }
.project-links a, .more-project-grid a { font-size: 11px; border-bottom: 1px solid transparent; }
.project-links a:hover, .more-project-grid a:hover { border-color: var(--red); }
.project-links span { padding-left: 4px; color: var(--red); }
.more-projects { margin-top: 23px; border-bottom: 1px solid var(--line); }
.more-projects summary { display: flex; justify-content: space-between; padding: 12px 0; cursor: pointer; color: var(--muted); font-size: 12px; list-style: none; }
.more-projects summary::-webkit-details-marker { display: none; }
.more-projects summary span { color: var(--red); font-size: 18px; transition: transform .2s ease; }
.more-projects[open] summary span { transform: rotate(45deg); }
.more-project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; padding: 17px 0 28px; }
.more-project-grid article { max-width: 390px; }
.more-project-grid .eyebrow { margin-bottom: 9px; font-size: 9px; }
.more-project-grid h3 { font-size: 23px; }
.more-project-grid p:not(.eyebrow) { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.about-section { display: grid; grid-template-columns: .8fr 1fr; gap: 12%; padding-block: 118px 126px; }
.about-intro .eyebrow { margin-bottom: 24px; }
.about-copy { max-width: 590px; padding-top: 6px; }
.about-copy > p { color: #5d5a54; font-size: 15px; line-height: 1.85; }
.about-copy a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.study-note { display: flex; gap: 25px; align-items: start; margin: 29px 0 26px; padding: 17px 0; border-block: 1px solid var(--line); font-size: 13px; }
.study-year { color: var(--red); font: 11px var(--mono); }
.study-note small { color: var(--muted); font-size: 11px; }
.toolbox .eyebrow { margin-bottom: 9px; font-size: 9px; }
.toolbox > p:last-child { max-width: 450px; color: #5d5a54; font-size: 12px; line-height: 1.8; }
.contact-section { background: var(--ink); color: var(--paper); padding: 87px 0 93px; }
.contact-inner { text-align: center; }
.contact-inner .eyebrow { color: #b2ada4; }
.contact-inner h2 { margin: 0 0 14px; font: 500 clamp(46px, 7vw, 76px)/1.1 var(--serif); letter-spacing: -.05em; }
.contact-inner > p:not(.eyebrow) { max-width: 450px; margin: 0 auto 25px; color: #c2beb6; font-size: 14px; }
.button-paper { background: var(--paper); color: var(--ink); }
.button-paper:hover { background: #fff; }
.site-footer { padding: 25px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 40px; row-gap: 12px; }
.footer-inner > p { margin: 0; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; gap: 18px; color: var(--muted); font-size: 11px; }
.copyright { grid-column: 1 / -1; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font: 9px var(--mono); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
@media (min-width: 1300px) { .intro { min-height: 720px; } }
@media (max-width: 760px) {
  .wrap, .header-inner { width: min(100% - 40px, var(--page)); }
  .header-inner { min-height: 66px; }
  .main-nav, .header-contact { display: none; }
  .mobile-nav { display: block; margin-left: auto; position: relative; }
  .mobile-nav summary { width: 39px; height: 39px; display: grid; place-content: center; gap: 5px; cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; width: 19px; height: 1px; background: var(--ink); }
  .mobile-nav nav { position: absolute; top: 48px; right: 0; display: grid; gap: 0; min-width: 180px; padding: 8px 15px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 12px 28px rgb(36 35 31 / 9%); }
  .mobile-nav nav a { padding: 9px 3px; font-size: 13px; border-bottom: 1px solid var(--line); }
  .mobile-nav nav a:last-child { border: 0; }
  .mobile-nav:not([open]) nav { display: none; }
  .intro { min-height: 0; grid-template-columns: 1fr .68fr; gap: 23px; padding-block: 66px 93px; }
  .intro .eyebrow { max-width: 290px; font-size: 9px; }
  .intro h1 { font-size: clamp(55px, 11vw, 78px); }
  .intro-lede { font-size: 14px; }
  .portrait { width: 100%; }
  .portrait figcaption { flex-direction: column; font-size: 8px; }
  .intro-note { right: 27%; bottom: 30px; font-size: 9px; }
  .work-section { padding: 75px 0 80px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 30px; }
  .section-aside { width: auto; max-width: 410px; }
  .project { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding-block: 23px; }
  .project-index { font-size: 10px; }
  .project-index span { font-size: 7px; overflow-wrap: anywhere; }
  .project-main h3 { font-size: 25px; }
  .project-main > p { font-size: 13px; }
  .project-links { grid-column: 2; flex-flow: row wrap; gap: 7px 16px; padding-top: 0; }
  .project-links a { font-size: 10px; }
  .about-section { grid-template-columns: 1fr; gap: 35px; padding-block: 80px 88px; }
  .about-intro h2 { font-size: 48px; }
  .contact-section { padding-block: 72px; }
  .footer-inner { grid-template-columns: 1fr auto; column-gap: 14px; }
  .footer-inner > p { display: none; }
  .footer-links { gap: 11px; }
}
@media (max-width: 560px) {
  .intro { grid-template-columns: 1fr; padding-bottom: 55px; }
  .intro h1 { font-size: clamp(62px, 15vw, 82px); }
  .portrait { width: min(64%, 270px); margin-top: 8px; }
  .intro-note { display: none; }
}
@media (max-width: 420px) {
  .wrap, .header-inner { width: calc(100% - 32px); }
  .intro { grid-template-columns: 1fr; padding-top: 50px; }
  .intro h1 { font-size: clamp(62px, 17vw, 76px); }
  .intro-lede { max-width: 100%; }
  .portrait { width: 70%; justify-self: end; margin-top: 10px; }
  .portrait figcaption { flex-direction: row; }
  .intro-note { right: auto; left: 17px; bottom: 34px; }
  .section-heading h2 { font-size: 39px; }
  .project { grid-template-columns: 1fr; gap: 9px; }
  .project-index { flex-direction: row; align-items: center; gap: 11px; }
  .project-index span { font-size: 8px; }
  .project-links { grid-column: 1; }
  .more-project-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { flex-wrap: wrap; justify-content: flex-end; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Hero, with a monumental animated code press filling the background. */
.intro { min-height: min(900px, calc(100svh - 74px)); grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr); gap: 1%; padding-block: 68px 74px; isolation: isolate; }
.hero-backdrop { position: absolute; z-index: 0; inset: 0 auto 0 50%; transform: translateX(-50%); width: 100vw; height: 100%; pointer-events: none; }
.code-foundry { display: block; width: 100%; height: 100%; opacity: .96; }
.flywheel, .paper-wheel { transform-box: view-box; transform-origin: 1439px 538px; animation: wheel-turn 16s linear infinite; }
.paper-wheel { transform-origin: 785px 268px; animation-duration: 24s; animation-direction: reverse; }
.belt-load { animation: belt-carry 8s linear infinite; }
.press-rod { animation: press-cycle 3.6s cubic-bezier(.45,0,.55,1) infinite; }
.code-scroll { animation: code-feed 10s linear infinite; }
.screen-sweep { animation: screen-scan 6s ease-in-out infinite alternate; }
.status-light { animation: status-blink 1.8s steps(2,end) infinite; }
.paper-ribbon { animation: paper-feed 5s ease-in-out infinite; transform-origin: 850px 205px; }
@keyframes wheel-turn { to { transform: rotate(360deg); } }
@keyframes belt-carry { to { transform: translate(218px, -32px); } }
@keyframes press-cycle { 0%, 100% { transform: translateY(0); } 48%, 62% { transform: translateY(18px); } }
@keyframes code-feed { to { transform: translateY(-205px); } }
@keyframes screen-scan { from { transform: translateY(-120px); } to { transform: translateY(180px); } }
@keyframes status-blink { 50% { opacity: .25; } }
@keyframes paper-feed { 50% { transform: rotate(1.2deg) translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .flywheel, .paper-wheel, .belt-load, .press-rod, .code-scroll, .screen-sweep, .status-light, .paper-ribbon { animation: none; } }
.intro-copy { max-width: none; position: relative; z-index: 1; }
.intro h1 { font-size: clamp(58px, 5.45vw, 76px); line-height: 1.01; letter-spacing: -.06em; }
.intro h1 em { color: var(--red); font-size: .86em; }
.intro-lede { max-width: 460px; font-size: 16px; }
.profile-note { display: flex; align-items: center; gap: 11px; margin-top: 32px; }
.profile-note img { display: block; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: center 28%; filter: saturate(.8); }
.profile-note span { display: grid; gap: 1px; }
.profile-note strong { font-size: 11px; font-weight: 600; }
.profile-note small { color: var(--muted); font-size: 10px; }
@media (max-width: 760px) {
  .intro { min-height: 640px; grid-template-columns: 1fr; gap: 10px; padding-block: 56px 62px; }
  .intro h1 { font-size: clamp(50px, 7.5vw, 64px); }
  .intro-lede { font-size: 14px; }
  .hero-backdrop { inset: 0 auto 0 50%; width: 120vw; }
  .code-foundry { width: 100%; object-position: 59% center; }
  .profile-note { margin-top: 25px; }
}
@media (max-width: 560px) {
  .intro { grid-template-columns: 1fr; gap: 30px; padding-block: 54px 58px; }
  .intro h1 { font-size: clamp(53px, 13vw, 68px); }
  .intro-lede { max-width: 430px; }
  .profile-note { margin-top: 22px; }
  .hero-backdrop { inset: 0 auto 0 50%; width: 165vw; opacity: .72; }
}
@media (max-width: 420px) {
  .intro { grid-template-columns: 1fr; }
  .intro h1 { font-size: clamp(48px, 14vw, 60px); }
  .intro-actions { gap: 17px; }
}
.experience-section { background: #eeebe4; padding: 100px 0 108px; }
.experience-heading { margin-bottom: 54px; }
.experience-heading h2 em { color: var(--red); font-weight: 500; }
.experience-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 9%; align-items: start; }
.timeline { border-top: 1px solid var(--line); }
.timeline-entry { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 20px; padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.timeline-date { margin: 3px 0 0; color: var(--red); font: 10px/1.55 var(--mono); }
.timeline-body .eyebrow, .tools-block > .eyebrow, .certificates-block > .eyebrow { margin: 0 0 8px; font-size: 9px; }
.timeline-body h3 { margin: 0 0 7px; font: 600 15px/1.4 var(--sans); letter-spacing: -.015em; }
.timeline-body h3 span { color: var(--muted); font-weight: 400; }
.timeline-body > p:not(.eyebrow) { max-width: 520px; margin: 0 0 9px; color: #615e57; font-size: 12px; line-height: 1.75; }
.quiet-link { font-size: 10px; border-bottom: 1px solid #c9c3b8; }
.quiet-link span { color: var(--red); }
.toolset { padding-top: 1px; }
.minor-heading { margin: 0 0 14px; font: 500 26px/1.2 var(--serif); letter-spacing: -.025em; }
.tool-list { margin: 0; border-top: 1px solid var(--line); }
.tool-list > div { display: grid; grid-template-columns: 98px minmax(0,1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tool-list dt { color: var(--muted); font: 9px/1.6 var(--mono); text-transform: uppercase; }
.tool-list dd { margin: 0; font-size: 11px; line-height: 1.6; }
.certificates-block { margin-top: 34px; }
.certificate-link { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.certificate-link:last-child { border-bottom: 1px solid var(--line); }
.certificate-link > span:first-child { display: grid; gap: 2px; }
.certificate-link strong { font: 500 12px/1.4 var(--sans); }
.certificate-link small { color: var(--muted); font-size: 10px; }
.certificate-link > span:last-child { color: var(--red); font-size: 13px; }
@media (max-width: 760px) {
  .experience-section { padding: 76px 0 82px; }
  .experience-heading { margin-bottom: 37px; }
  .experience-grid { grid-template-columns: 1fr; gap: 45px; }
  .toolset { max-width: 560px; }
}
@media (max-width: 420px) {
  .timeline-entry { grid-template-columns: 98px minmax(0,1fr); gap: 12px; }
  .timeline-date { font-size: 10px; }
  .timeline-body h3 { font-size: 14px; }
  .tool-list > div { grid-template-columns: 82px minmax(0,1fr); gap: 10px; }
}

/* Closing contact spread: a direct project brief and a small contact directory. */
.contact-section { padding: 96px 0 104px; }
.contact-inner { display: block; text-align: left; }
.contact-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 8%; align-items: end; margin-bottom: 43px; }
.contact-heading .eyebrow { margin-bottom: 19px; color: #d16a54; }
.contact-heading h2 { margin: 0; font: 700 clamp(62px, 8vw, 100px)/.86 var(--sans); letter-spacing: -.085em; }
.contact-heading h2 em { color: #d16a54; font-style: normal; font-weight: 500; }
.contact-heading > p { max-width: 445px; margin: 0 0 5px; color: #c2beb6; font-size: 15px; line-height: 1.8; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 38px; align-items: start; }
.contact-form { min-width: 0; border: 1px solid rgb(244 241 235 / 17%); padding: 37px 40px 30px; }
.form-field { margin-bottom: 29px; }
.form-field label { display: block; margin-bottom: 10px; color: #d0cbc2; font: 600 11px/1.4 var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.form-field label span { color: #e34256; }
.form-field input, .form-field textarea { display: block; width: 100%; border: 1px solid rgb(244 241 235 / 18%); border-radius: 0; outline: 0; background: #171715; color: var(--paper); font: 15px/1.6 var(--sans); transition: border-color .18s ease, background .18s ease; }
.form-field input { min-height: 59px; padding: 15px 17px; }
.form-field textarea { min-height: 150px; padding: 15px 17px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #77766f; font: 14px/1.6 var(--mono); }
.form-field input:focus, .form-field textarea:focus { border-color: #d16a54; background: #1c1b18; }
.form-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.button-submit { border: 0; background: #bd312d; color: #fff; cursor: pointer; text-transform: uppercase; }
.button-submit:hover { background: #d13e36; }
.button-submit:disabled { cursor: wait; opacity: .7; transform: none; }
.form-privacy { max-width: 290px; margin: 0; color: #aaa69e; font-size: 11px; line-height: 1.65; }
.form-feedback { display: none; margin: 24px 0 0; padding: 16px; border: 1px solid rgb(209 106 84 / 48%); color: var(--paper); font-size: 13px; line-height: 1.7; }
.form-feedback.is-visible { display: block; }
.form-feedback.is-error { border-color: rgb(227 66 86 / 65%); }
.form-feedback code { display: inline-block; margin: 5px 3px; padding: 3px 7px; background: rgb(244 241 235 / 9%); color: #f0a18e; font: 12px var(--mono); }
.form-feedback a { color: #f0a18e; text-decoration: underline; text-underline-offset: 3px; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-aside { display: grid; gap: 22px; }
.contact-panel { border: 1px solid rgb(244 241 235 / 19%); padding: 26px 26px 5px; }
.contact-panel > .eyebrow, .track-panel > .eyebrow { margin-bottom: 18px; color: #d16a54; }
.contact-email { display: flex; justify-content: space-between; align-items: center; gap: 13px; padding-bottom: 20px; color: var(--paper); font-size: 14px; overflow-wrap: anywhere; }
.contact-email span { flex: 0 0 auto; color: #d16a54; }
.contact-socials a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid rgb(244 241 235 / 16%); color: #b2ada4; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.contact-socials a span:last-child { color: var(--paper); }
.contact-socials a:hover span:last-child, .track-panel > a:hover { color: #d16a54; }
.track-panel { padding: 21px 25px 22px; border: 1px solid rgb(244 241 235 / 19%); background: #191917; }
.track-panel > .eyebrow { margin-bottom: 7px; font-size: 9px; }
.track-panel > a { display: inline-flex; gap: 9px; color: var(--paper); font: 500 17px var(--serif); }
.track-panel > p:last-child { margin: 8px 0 0; color: #aaa69e; font-size: 11px; line-height: 1.65; }
@media (max-width: 760px) {
  .contact-section { padding-block: 76px; }
  .contact-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 32px; }
  .contact-heading h2 { font-size: clamp(60px, 12vw, 82px); }
  .contact-heading > p { max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; gap: 27px; }
  .contact-form, .contact-aside { max-width: 600px; }
}
@media (max-width: 420px) {
  .contact-section { padding-block: 65px; }
  .contact-heading h2 { font-size: clamp(54px, 13vw, 68px); }
  .contact-form { padding: 27px 20px 22px; }
  .form-submit-row { align-items: flex-start; flex-direction: column; }
  .contact-panel { padding: 23px 20px 5px; }
  .contact-email { font-size: 13px; }
}

/* Project output panels: five small illustrated artifacts from the same workshop. */
.project { grid-template-columns: 68px minmax(205px, .66fr) minmax(0, 1.6fr) 142px; gap: 22px; align-items: center; }
.project-art { --art-ink: #34342f; --art-paper: #e5ded2; position: relative; min-width: 0; aspect-ratio: 1.58; overflow: hidden; border: 1px solid #c9c2b7; background: var(--art-paper); color: var(--art-ink); isolation: isolate; }
.project-art::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .25; pointer-events: none; background-image: linear-gradient(#726a5f12 1px, transparent 1px), linear-gradient(90deg, #726a5f12 1px, transparent 1px); background-size: 16px 16px; }
.art-label { position: absolute; z-index: 3; top: 9px; left: 10px; color: #6f685d; font: 7px/1.3 var(--mono); letter-spacing: .09em; }
.art-stamp { position: absolute; right: 9px; bottom: 8px; padding: 3px 5px; border: 1px solid #a43a2d80; color: #a43a2d; font: 7px var(--mono); letter-spacing: .08em; transform: rotate(-5deg); }
.project-main { min-width: 0; }
.project-main h3 { font-size: 27px; }
.project-links { gap: 8px; }

/* Manshverse: a prompt moves through an intent router into a model reply. */
.art-manshverse { --art-paper: #d9d5cc; background: #dedbd2; }
.chat-ui { position: absolute; inset: 27px 12px 10px; padding: 7px 8px; border: 1px solid #484941; background: #282a26; box-shadow: 4px 4px 0 #a49c8e; transform: rotate(-1deg); }
.mini-top { display: flex; align-items: center; gap: 3px; height: 10px; border-bottom: 1px solid #515148; color: #aaa395; font: 6px var(--mono); }
.mini-top i { width: 4px; height: 4px; border-radius: 50%; background: #a43a2d; }
.mini-top i:nth-child(2) { background: #b6a882; }.mini-top i:nth-child(3) { background: #858878; }
.mini-top span { margin-left: 5px; }
.chat-line { width: fit-content; max-width: 75%; margin-top: 9px; padding: 4px 6px; font: 7px var(--mono); }
.user-line { margin-left: auto; background: #474942; color: #ede7dc; }
.reply-line { display: flex; align-items: center; justify-content: space-between; width: 78%; background: #343b34; color: #d5d7c6; }
.reply-line strong { color: #d58a6f; font-size: 12px; }
.router-flow { display: flex; align-items: center; gap: 5px; margin: 7px 0 0 5px; color: #d5b297; font: 6px var(--mono); }
.router-flow b { padding: 3px 4px; border: 1px solid #77766a; font-weight: 400; }.router-flow i { width: 12px; height: 1px; background: #a43a2d; }
.project:hover .reply-line strong { animation: reply-pulse .7s ease 2; }
@keyframes reply-pulse { 50% { transform: translate(3px,-2px); color: #f1b08d; } }

/* Lexivoid: a word card laid out like a page from a pocket dictionary. */
.art-lexivoid { --art-paper: #e9e3d8; background: #e9e3d8; }
.word-sheet { position: absolute; inset: 25px 24px 10px 35px; padding: 10px 13px; background: #f7f3eb; box-shadow: 2px 3px 0 #c7beb0; transform: rotate(2deg); }
.word-sheet small, .word-sheet i { display: block; color: #7d7568; font: 6px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.word-sheet strong { display: block; margin: 0; color: #302e29; font: 500 clamp(22px, 2.3vw, 34px)/1.06 var(--serif); letter-spacing: -.05em; }
.word-sheet strong span { color: #a43a2d; }
.word-sheet i { font-style: normal; text-transform: none; letter-spacing: 0; }
.word-sheet hr { height: 1px; margin: 7px 0 5px; border: 0; background: #d8d0c4; }
.word-sheet p { margin: 0; color: #5f5a51; font: 8px var(--sans); }
.word-meter { display: flex; gap: 3px; margin-top: 7px; }.word-meter b { width: 20%; height: 2px; background: #d9d2c6; }.word-meter b:first-child, .word-meter b:nth-child(2) { background: #a43a2d; }
.art-index { position: absolute; right: 8px; bottom: 7px; color: #8e8679; font: 7px var(--mono); }
.project:hover .word-sheet { transform: rotate(0) translateY(-2px); transition: transform .25s ease; }

/* MilkDream: a sealed keepsake with a date on its archival tag. */
.art-milkdream { --art-paper: #e6dfd4; background: #e6dfd4; }
.capsule { position: absolute; top: 34px; left: 24%; width: 54px; height: 90px; filter: drop-shadow(5px 5px 0 #bcb3a5); }
.capsule-cap { position: absolute; top: 0; left: 4px; width: 46px; height: 16px; border: 2px solid #34342f; border-radius: 10px 10px 4px 4px; background: #a43a2d; }
.capsule-glass { position: absolute; inset: 12px 0 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid #34342f; border-radius: 9px 9px 14px 14px; background: linear-gradient(110deg,#f4f0e6 0 22%,#d0c8bb 23% 78%,#bcb3a5 79%); }
.capsule-glass small { color: #746d62; font: 5px var(--mono); letter-spacing: .08em; }.capsule-glass strong { color: #34342f; font: 500 23px/.98 var(--serif); }.capsule-glass i { width: 22px; height: 1px; margin: 5px 0 3px; background: #a43a2d; }.capsule-glass span { color: #746d62; font: 5px var(--mono); }
.capsule-foot { position: absolute; bottom: 0; left: 8px; width: 38px; height: 9px; border: 2px solid #34342f; border-radius: 0 0 5px 5px; background: #8a8378; }
.capsule-note { position: absolute; top: 53px; left: 53%; color: #756d61; font: italic 11px/1.4 var(--serif); transform: rotate(-5deg); }
.capsule-spark { position: absolute; top: 39px; right: 17%; color: #a43a2d; font-size: 19px; transform-origin: center; }
.project:hover .capsule-spark { animation: keepsake-spark .9s ease-in-out 2; }
@keyframes keepsake-spark { 50% { transform: rotate(35deg) scale(1.25); } }

/* bits&bytes: a warmly lit builder-night doorway and the people around a table. */
.art-bits { --art-paper: #ddd5c8; background: #ded6ca; }
.meetup-window { position: absolute; inset: 29px 28px 10px; overflow: hidden; border: 2px solid #49463f; background: #c5b9a7; }
.meetup-awning { position: absolute; inset: 0 0 auto; display: flex; height: 15px; background: #a43a2d; }.meetup-awning i { flex: 1; border-right: 1px solid #eee6d9; }.meetup-awning i:nth-child(2n) { background: #eee6d9; }
.meetup-sign { position: absolute; top: 20px; left: 50%; padding: 3px 7px; border: 1px solid #776f62; color: #514c43; font: 6px var(--mono); letter-spacing: .06em; white-space: nowrap; transform: translateX(-50%); }
.meetup-people { position: absolute; right: 20%; bottom: 20px; left: 20%; display: flex; justify-content: space-between; align-items: end; height: 33px; }
.meetup-people b { position: relative; width: 12px; height: 23px; border-radius: 7px 7px 2px 2px; background: #45453f; }.meetup-people b:nth-child(2n) { height: 28px; background: #a43a2d; }.meetup-people b::before { content: ""; position: absolute; top: -8px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: #d4c8b7; }
.meetup-table { position: absolute; right: 13%; bottom: 13px; left: 13%; height: 3px; background: #45453f; box-shadow: 4px 7px 0 -1px #45453f, -4px 7px 0 -1px #45453f; }
.meetup-date { position: absolute; right: 7px; bottom: 7px; color: #746b5e; font: 6px var(--mono); }
.project:hover .meetup-people b:nth-child(2n) { animation: builder-bob .65s ease-in-out 2 alternate; }
@keyframes builder-bob { to { transform: translateY(-4px); } }

/* Polaris: a practical route through a layered polar range. */
.art-polaris { --art-paper: #d9dedb; background: #d9dedb; }
.art-polaris svg { position: absolute; inset: 22px 0 0; width: 100%; height: calc(100% - 22px); }
.terrain-back { fill: #9da8a4; }.terrain-front { fill: #77847f; }
.map-route { fill: none; stroke: #a43a2d; stroke-width: 2; stroke-dasharray: 4 5; stroke-linecap: round; }
.map-pins { fill: #f3eee4; stroke: #a43a2d; stroke-width: 2; }
.polaris-readout { position: absolute; right: 7px; bottom: 6px; padding: 3px 4px; background: #f3eee4d9; color: #514f48; font: 5px/1.5 var(--mono); }
.map-cross { position: absolute; top: 39px; right: 14px; color: #a43a2d; font: 16px var(--mono); }
.project:hover .map-route { animation: route-draw 1.5s linear infinite; }
@keyframes route-draw { to { stroke-dashoffset: -36; } }

@media (max-width: 760px) {
  .project { grid-template-columns: 70px minmax(0, 1fr); gap: 12px 16px; align-items: start; }
  .project-index { grid-column: 1; grid-row: 1; }
  .project-art { grid-column: 2; grid-row: 1; width: 100%; aspect-ratio: 2.1; }
  .project-main, .project-links { grid-column: 1 / -1; }
  .project-main h3 { margin-bottom: 6px; }
}
@media (max-width: 420px) {
  .project { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .project-index span { max-width: 72px; }
  .project-art { aspect-ratio: 1.75; }
  .word-sheet { inset-inline: 17px; }
}

/* A quiet process rail sits under the sticky navigation and advances through the page. */
.process-track { position: fixed; z-index: 20; top: 73px; left: 0; width: 100%; height: 3px; background: #d7d0c5; pointer-events: none; }
.process-track > span { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.process-track > i { position: absolute; z-index: 1; top: 50%; left: var(--stop); width: 5px; height: 5px; border: 1px solid var(--paper); border-radius: 50%; background: #8f887e; transform: translate(-50%, -50%); }
.process-track > i.done { background: var(--red); box-shadow: 0 0 0 2px #a43a2d20; }
.process-track > i:first-of-type { left: 0; }

/* Staged reveals: content remains visible when motion is disabled or JS is unavailable. */
.motion-ready .reveal-on-scroll:not(.in-view) { opacity: 0; transform: translateY(16px); }
.reveal-on-scroll { transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal-on-scroll.in-view { opacity: 1; transform: none; }
.project:nth-child(2).in-view { transition-delay: .06s; }
.project:nth-child(3).in-view { transition-delay: .12s; }
.project:nth-child(4).in-view { transition-delay: .18s; }
.project:nth-child(5).in-view { transition-delay: .24s; }
.project.in-view .project-index { animation: label-stamp .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes label-stamp { 0% { opacity: .35; transform: translateY(-6px) scale(.92); } 70% { transform: translateY(1px) scale(1.03); } 100% { opacity: 1; transform: none; } }
.runout-label { display: flex; align-items: center; gap: 7px; margin-top: 11px; color: #81796e; font: 8px/1.4 var(--mono); letter-spacing: .08em; opacity: .76; transition: color .25s ease, letter-spacing .25s ease; }
.runout-label i { position: relative; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #a43a2d20; animation: status-led 2s steps(2,end) infinite; }
.in-view .runout-label { color: var(--red); letter-spacing: .12em; }
@keyframes status-led { 50% { opacity: .35; box-shadow: 0 0 0 4px #a43a2d12; } }
.project-art .art-label::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #a43a2d20; animation: status-led 2s steps(2,end) infinite; }

/* Experience entries read like stamped pages in a working logbook. */
.timeline { position: relative; display: grid; gap: 11px; border-top: 0; counter-reset: log-entry; }
.timeline-entry { position: relative; counter-increment: log-entry; grid-template-columns: 112px minmax(0, 1fr); gap: 19px; padding: 17px 18px; border: 1px solid #d7d0c5; border-left: 3px solid #b7aea0; background: #f1ede5; box-shadow: 3px 3px 0 #e1dbd1; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.timeline-entry::after { content: "LOG / 0" counter(log-entry); position: absolute; top: 10px; right: 11px; color: #9c9386; font: 7px var(--mono); letter-spacing: .06em; }
.timeline-entry:hover { border-left-color: var(--red); transform: translateX(3px); box-shadow: 5px 4px 0 #ded6ca; }
.timeline-date { width: fit-content; margin: 4px 0 0; padding-top: 6px; border-top: 2px solid var(--red); color: #756d62; font-size: 9px; }
.timeline-body .eyebrow { margin-bottom: 5px; font-size: 8px; }
.timeline-body h3 { padding-right: 48px; }

/* A pointer-following inspection lens appears only over the project artifacts. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-art { cursor: none; }
  .project-art::after { content: "+"; position: absolute; z-index: 5; top: var(--lens-y, 50%); left: var(--lens-x, 50%); display: grid; width: 76px; height: 76px; place-items: center; border: 1px solid #a43a2d; border-radius: 50%; background: #f4f1eb27; box-shadow: 0 0 0 5px #a43a2d1a, inset 0 0 0 1px #f4f1eb88; color: #a43a2d; font: 20px/1 var(--mono); backdrop-filter: contrast(1.18) saturate(1.2); opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.7); transition: opacity .16s ease, transform .2s cubic-bezier(.2,.8,.2,1); }
  .project-art.lens-active::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (max-width: 760px) {
  .process-track { top: 65px; height: 2px; }
  .timeline-entry { grid-template-columns: 90px minmax(0, 1fr); gap: 13px; padding: 15px 13px; }
  .timeline-entry::after { top: 7px; right: 8px; font-size: 6px; }
}
@media (max-width: 420px) {
  .timeline-entry { grid-template-columns: 1fr; gap: 8px; }
  .timeline-date { margin-top: 0; }
  .timeline-body h3 { padding-right: 0; }
  .timeline-entry::after { top: 16px; }
}

/* Dark workshop palette. The paper artifacts stay warm, like objects lit on a bench. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191916;
  --paper-deep: #22211d;
  --ink: #eee9df;
  --muted: #aaa396;
  --line: #3a3830;
  --red: #df795f;
}
:root[data-theme="dark"] body { background: #191916; color: #eee9df; }
:root[data-theme="dark"] ::selection { background: #a64c3b; color: #fff8ed; }
:root[data-theme="dark"] .site-header { border-color: #38362f; background: rgb(25 25 22 / 94%); }
:root[data-theme="dark"] .main-nav a { color: #aaa396; }
:root[data-theme="dark"] .main-nav a:hover, :root[data-theme="dark"] .footer-links a:hover { color: #df795f; }
:root[data-theme="dark"] .theme-toggle { border-color: #4a473e; color: #eee9df; }
:root[data-theme="dark"] .theme-toggle:hover { border-color: #df795f; color: #df795f; background: #28241f; }
:root[data-theme="dark"] .language-select { border-color: #4a473e; color: #eee9df; }
:root[data-theme="dark"] .language-select option { background: #22211d; color: #eee9df; }
:root[data-theme="dark"] .intro-lede, :root[data-theme="dark"] .project-main > p, :root[data-theme="dark"] .about-copy > p, :root[data-theme="dark"] .toolbox > p:last-child, :root[data-theme="dark"] .timeline-body > p:not(.eyebrow) { color: #c1bbaf; }
:root[data-theme="dark"] .button-dark { background: #eee9df; color: #22211d; }
:root[data-theme="dark"] .button-dark:hover { background: #df795f; color: #191916; }
:root[data-theme="dark"] .text-link { border-color: #514d43; }
:root[data-theme="dark"] .work-section, :root[data-theme="dark"] .experience-section { background: #20201c; }
:root[data-theme="dark"] .project-list, :root[data-theme="dark"] .project { border-color: #3a3830; }
:root[data-theme="dark"] .tags li { border-color: #4a473e; color: #c3bcae; }
:root[data-theme="dark"] .timeline-entry { border-color: #454238; border-left-color: #716457; background: #292822; box-shadow: 3px 3px 0 #161614; }
:root[data-theme="dark"] .timeline-entry:hover { border-left-color: #df795f; box-shadow: 5px 4px 0 #121210; }
:root[data-theme="dark"] .timeline-entry::after { color: #b8a990; }
:root[data-theme="dark"] .timeline-date { color: #d0c6b6; }
:root[data-theme="dark"] .certificate-link { border-color: #3a3830; }
:root[data-theme="dark"] .about-section { color: #eee9df; }
:root[data-theme="dark"] .contact-section { background: #11110f; color: #eee9df; }
:root[data-theme="dark"] .contact-heading > p { color: #c1bbaf; }
:root[data-theme="dark"] .contact-email, :root[data-theme="dark"] .contact-socials a span:last-child, :root[data-theme="dark"] .track-panel > a, :root[data-theme="dark"] .form-field input, :root[data-theme="dark"] .form-field textarea, :root[data-theme="dark"] .form-feedback { color: #eee9df; }
:root[data-theme="dark"] .contact-form, :root[data-theme="dark"] .contact-panel, :root[data-theme="dark"] .track-panel { border-color: #39372f; }
:root[data-theme="dark"] .track-panel { background: #1c1c19; }
:root[data-theme="dark"] .form-field input, :root[data-theme="dark"] .form-field textarea { border-color: #444138; background: #1c1c19; }
:root[data-theme="dark"] .form-field input:focus, :root[data-theme="dark"] .form-field textarea:focus { border-color: #df795f; background: #23221e; }
:root[data-theme="dark"] .button-paper { background: #eee9df; color: #22211d; }
:root[data-theme="dark"] .button-paper:hover { background: #df795f; }
:root[data-theme="dark"] .site-footer { color: #c1bbaf; }
:root[data-theme="dark"] .copyright { border-color: #3a3830; }
:root[data-theme="dark"] .process-track { background: #454238; }
:root[data-theme="dark"] .process-track > i { border-color: #191916; }
:root[data-theme="dark"] .mobile-nav nav { border-color: #454238; background: #22211d; box-shadow: 0 12px 28px #0008; }
:root[data-theme="dark"] .mobile-nav nav a { border-color: #3a3830; color: #eee9df; }
:root[data-theme="dark"] .mobile-nav summary span { background: #eee9df; }
:root[data-theme="dark"] .skip-link { background: #eee9df; color: #191916; }
:root[data-theme="dark"] body, :root[data-theme="dark"] .site-header, :root[data-theme="dark"] .work-section, :root[data-theme="dark"] .experience-section, :root[data-theme="dark"] .about-section, :root[data-theme="dark"] .contact-section { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
@media (max-width: 760px) {
  .theme-toggle { margin-left: auto; }
  .mobile-nav { margin-left: 10px !important; }
}

/* Phone layout: let every section reflow to the viewport instead of retaining
   desktop grid coordinates. Keep the foundry as atmosphere behind readable copy. */
@media (max-width: 600px) {
  html { scroll-padding-top: 74px; }
  body { font-size: 15px; }
  .wrap, .header-inner { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; }
  .wordmark { font-size: 20px; }
  .language-select { margin-left: auto; height: 32px; }
  .theme-toggle { width: 36px; height: 36px; margin-left: 9px; }
  .mobile-nav { margin-left: 5px !important; }
  .mobile-nav summary { width: 36px; height: 38px; }
  .mobile-nav nav { z-index: 30; top: 44px; min-width: 205px; padding: 8px 14px; }
  .mobile-nav nav a { padding: 11px 3px; }
  .process-track { top: 61px; }

  .intro { min-height: 0; display: block; padding: 59px 0 49px; }
  .intro-copy { max-width: 100%; }
  .intro .eyebrow { max-width: 250px; margin-bottom: 17px; font-size: 8px; line-height: 1.7; }
  .intro h1 { max-width: 100%; margin-bottom: 20px; font-size: clamp(43px, 12.4vw, 58px); line-height: .99; letter-spacing: -.065em; }
  .intro h1 em { font-size: .88em; }
  .intro-lede { max-width: 36em; margin-bottom: 22px; font-size: 14px; line-height: 1.7; }
  .intro-actions { align-items: flex-start; gap: 14px 19px; }
  .intro-actions .button { min-height: 46px; gap: 12px; padding-inline: 13px; font-size: 12px; }
  .text-link { font-size: 12px; }
  .profile-note { margin-top: 23px; }
  .hero-backdrop { inset: auto -31vw -25px auto; width: 135vw; height: 72%; opacity: .3; }
  .code-foundry { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }

  .work-section, .experience-section { padding-block: 61px 66px; }
  .section-heading { gap: 11px; margin-bottom: 25px; }
  .section-heading h2, .about-intro h2 { font-size: clamp(34px, 9.5vw, 43px); }
  .section-aside { max-width: 36em; font-size: 12px; }
  .project { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 21px 0 23px; }
  .project:hover { padding-inline: 0; }
  .project-index { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; gap: 10px; padding: 0; font-size: 10px; }
  .project-index span { max-width: none; overflow-wrap: normal; font-size: 7px; letter-spacing: .07em; }
  .project-art { grid-column: 1; grid-row: auto; width: 100%; aspect-ratio: 1.8; }
  .project-main, .project-links { grid-column: 1; }
  .project-main h3 { margin-bottom: 6px; font-size: 25px; }
  .project-subtitle { font-size: 12px; }
  .project-main > p { font-size: 13px; line-height: 1.7; }
  .tags { gap: 6px; margin-top: 11px; }
  .project-links { flex-flow: row wrap; gap: 9px 16px; padding-top: 2px; }
  .project-links a { font-size: 10px; }
  .art-label { top: 8px; left: 8px; font-size: 6px; }
  .word-sheet { inset: 25px 18px 10px; }
  .more-project-grid { grid-template-columns: 1fr; gap: 21px; }

  .experience-heading { margin-bottom: 27px; }
  .experience-grid { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .timeline { gap: 10px; }
  .timeline-entry { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 16px 13px; }
  .timeline-date { margin: 0; padding-top: 0; border: 0; font-size: 9px; }
  .timeline-entry::after { top: 15px; right: 10px; font-size: 6px; }
  .timeline-body .eyebrow { padding-right: 56px; font-size: 8px; }
  .timeline-body h3 { padding-right: 0; font-size: 14px; }
  .timeline-body > p:not(.eyebrow) { font-size: 12px; }
  .tool-list > div { grid-template-columns: 90px minmax(0, 1fr); gap: 11px; }
  .tool-list dd { overflow-wrap: anywhere; }

  .about-section { gap: 25px; padding-block: 66px 70px; }
  .about-intro .eyebrow { margin-bottom: 15px; }
  .about-copy > p { font-size: 14px; }
  .study-note { gap: 15px; }

  .contact-section { padding-block: 60px; }
  .contact-heading { gap: 17px; margin-bottom: 26px; }
  .contact-heading .eyebrow { margin-bottom: 15px; }
  .contact-heading h2 { font-size: clamp(49px, 13vw, 64px); line-height: .9; }
  .contact-heading > p { font-size: 13px; line-height: 1.7; }
  .contact-grid { gap: 20px; }
  .contact-form { padding: 23px 16px 20px; }
  .form-field { margin-bottom: 21px; }
  .form-field input, .form-field textarea { font-size: 16px; }
  .form-field input { min-height: 52px; padding: 12px; }
  .form-field textarea { min-height: 125px; padding: 12px; }
  .form-field input::placeholder, .form-field textarea::placeholder { font-size: 12px; }
  .form-submit-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .contact-panel, .track-panel { padding-inline: 16px; }
  .contact-email { font-size: 12px; }
  .contact-socials a { font-size: 8px; }
  .footer-inner { grid-template-columns: 1fr; gap: 13px; }
  .footer-inner > .wordmark { display: block; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; gap: 12px 18px; }
  .copyright { grid-column: 1; }
}

@media (max-width: 360px) {
  .wrap, .header-inner { width: calc(100% - 28px); }
  .wordmark { font-size: 18px; }
  .language-select { padding-left: 6px; padding-right: 17px; background-position: calc(100% - 8px) 14px, calc(100% - 5px) 14px; }
  .theme-toggle { margin-left: 6px; }
  .mobile-nav { margin-left: 2px !important; }
  .intro h1 { font-size: clamp(41px, 12vw, 48px); }
  .intro-actions { gap: 13px; }
  .intro-actions .button { font-size: 11px; }
  .contact-socials a { gap: 9px; letter-spacing: .025em; }
}

/* On phones, give the hero illustration its own visual zone below the copy. */
@media (max-width: 600px) {
  .intro {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 252px;
  }
  .intro-copy { max-width: 36rem; }
  .intro .eyebrow { max-width: 100%; margin-bottom: 14px; }
  .intro h1 { max-width: none; margin-bottom: 16px; font-size: clamp(42px, 11.8vw, 54px); }
  .intro-lede { max-width: 33rem; margin-bottom: 19px; }
  .hero-backdrop {
    inset: auto auto 0 50%;
    width: min(142vw, 680px);
    height: 248px;
    opacity: .88;
    transform: translateX(-50%);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 100%);
  }
  .code-foundry {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 66%;
  }
}

@media (max-width: 360px) {
  .intro { padding-top: 42px; padding-bottom: 226px; }
  .hero-backdrop { width: 154vw; height: 220px; }
}

@media (max-width: 600px) {
  .hero-backdrop { display: none; }
  .intro { padding-bottom: 48px; }
}
